/* ============================================================================
 * Receiteria Shopping List — frontend.
 * Integrado ao design system do tema receiteriav2 (cores, modal, botões).
 *
 * Tokens herdados do tema (style.css):
 *   --cor-primaria, --cor-primaria-hover, --cor-fundo-bege, --cor-fundo-bege-claro,
 *   --cor-texto-principal, --cor-texto-secundario, --cor-texto-claro, --cor-verde,
 *   --cor-cinza, --shadow-light
 *
 * Mobile-first; breakpoint principal 768px (mesmo do tema).
 * Touch targets ≥ 44x44px; focus rings no estilo box-shadow do tema.
 * Reduced-motion respeitado.
 * ========================================================================== */

.rcshop-add-btn,
.rcshop-fab,
.rcshop-sheet,
.rcshop-toast {
    --rcshop-primary: var(--cor-primaria, #F53E28);
    --rcshop-primary-hover: var(--cor-primaria-hover, #FD3E26);
    --rcshop-success: var(--cor-verde, #36eb98);
    --rcshop-bg: var(--cor-branco, #fff);
    --rcshop-bg-soft: var(--cor-fundo-bege-claro, #FBF7F1);
    --rcshop-bg-bege: var(--cor-fundo-bege, #F7EFE4);
    --rcshop-text: var(--cor-texto-principal, #53240C);
    --rcshop-text-soft: var(--cor-texto-secundario, #703416);
    --rcshop-text-muted: var(--cor-texto-claro, #947160);
    --rcshop-border: var(--cor-cinza, #E2D7C6);
    --rcshop-backdrop: rgba(83, 36, 12, .45);
    --rcshop-shadow: 0 8px 32px rgba(83, 36, 12, .18);
    --rcshop-shadow-soft: var(--shadow-light, 0 2px 4px rgba(0, 0, 0, .1));
    --rcshop-focus: 0 0 0 3px rgba(245, 62, 40, .25);

    --rcshop-r-pill: 30px;
    --rcshop-r-md: 12px;
    --rcshop-r-sm: 8px;

    --rcshop-ease: cubic-bezier(.4, 0, .2, 1);
    --rcshop-dur: 200ms;

    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ── SVG icons via CSS mask ─────────────────────────────────────────────
 * Estratégia: o JS injeta um <span class="rcshop-add-btn__icon">🛒</span>
 * com o emoji. O CSS esconde o glyph (font-size: 0) e pinta um SVG via
 * mask-image em currentColor — não precisa mexer no JS pra trocar ícone.
 * ===================================================================== */
.rcshop-icon,
.rcshop-add-btn__icon,
.rcshop-fab__icon,
.rcshop-sheet__close-icon,
.rcshop-recipe__remove-icon,
.rcshop-sheet__title-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    font-size: 0;
    line-height: 0;
    flex: 0 0 auto;
    vertical-align: middle;
}

/* Shopping bag (Heroicons outline 24) */
.rcshop-add-btn__icon,
.rcshop-fab__icon,
.rcshop-sheet__title-icon {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M16 11V7a4 4 0 0 0-8 0v4M5 9h14l-1.5 11a2 2 0 0 1-2 1.7H8.5A2 2 0 0 1 6.5 20Z'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M16 11V7a4 4 0 0 0-8 0v4M5 9h14l-1.5 11a2 2 0 0 1-2 1.7H8.5A2 2 0 0 1 6.5 20Z'/></svg>");
}
.rcshop-fab__icon { width: 22px; height: 22px; }
.rcshop-sheet__title-icon { width: 20px; height: 20px; }

/* Check (state "na lista") */
.rcshop-add-btn.is-in-list .rcshop-add-btn__icon {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}

/* X close */
.rcshop-sheet__close-icon,
.rcshop-recipe__remove-icon {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>");
}
.rcshop-sheet__close-icon  { width: 20px; height: 20px; }
.rcshop-recipe__remove-icon { width: 16px; height: 16px; }

/* Esconde o glyph emoji injetado pelo JS dentro dos slots de ícone — o
 * mask cobre tudo. Mantemos os emojis SÓ nas categorias (decisão de
 * produto explícita no brief, Seção 4). */
.rcshop-add-btn__icon::first-letter,
.rcshop-fab__icon::first-letter { font-size: 0; }

/* ── Botão "lista de compras" na receita ────────────────────────────── *
 * Visual alinhado às pills do .ingredientes-header (style.css:2206-2253):
 * branco com borda cinza, texto marrom, ícone vermelho. Hover com leve
 * tinge vermelho — exatamente igual aos botões `.rc-scaler-control` e
 * `.btn-converter` que ficam ao lado.
 * ===================================================================== */
.rcshop-add-btn {
    position: relative; /* ancora o badge "novo" absoluto */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    /* Mesma altura e box-sizing das pills .rc-scaler-control e .btn-converter
       (style.css:10371-10392 define elas com height: 40px !important). Sem
       o !important aqui, regras genéricas de .btn / .btn-primary do tema
       podem reduzir altura. */
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 16px !important;
    box-sizing: border-box;
    background: #fff;
    color: var(--rcshop-text);
    border: 1.5px solid var(--rcshop-border);
    border-radius: 999px !important;
    font-family: inherit;
    font-weight: 500;
    font-size: 13px !important;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0 !important;
    touch-action: manipulation;
    transition: background var(--rcshop-dur) var(--rcshop-ease),
                color var(--rcshop-dur) var(--rcshop-ease),
                border-color var(--rcshop-dur) var(--rcshop-ease);
    -webkit-tap-highlight-color: transparent;
}
.rcshop-add-btn .rcshop-add-btn__icon { color: var(--rcshop-primary); }
.rcshop-add-btn:hover {
    background: rgba(245, 62, 40, .06);
    border-color: var(--rcshop-primary);
    color: var(--rcshop-text);
}
.rcshop-add-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 62, 40, .25);
}
.rcshop-add-btn.is-in-list {
    background: #fff;
    color: var(--rcshop-text);
    border-color: var(--rcshop-success);
}
.rcshop-add-btn.is-in-list .rcshop-add-btn__icon { color: var(--rcshop-success); }
.rcshop-add-btn.is-in-list:hover {
    background: rgba(54, 235, 152, .08);
    color: var(--rcshop-text);
    border-color: var(--rcshop-success);
}
.rcshop-add-btn.is-loading { opacity: .65; cursor: progress; pointer-events: none; }
.rcshop-add-btn[disabled] { cursor: not-allowed; opacity: .55; }

/* Badge "novo" — posicao ABSOLUTA (nao soma na largura do botao, nao quebra
   o layout das pills no mobile). Fica no topo, dentro da borda direita do
   botao (right > 0) pra nunca vazar e causar scroll horizontal. */
.rcshop-add-btn__badge {
    position: absolute;
    top: -7px;
    right: 6px;
    z-index: 2;
    pointer-events: none;
    background: var(--rcshop-primary);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .02em;
    padding: 2px 6px;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.rcshop-add-btn.is-in-list .rcshop-add-btn__badge { display: none; }
@media (prefers-reduced-motion: no-preference) {
    .rcshop-add-btn__badge { animation: rcshop-badge-pop .32s cubic-bezier(.34, 1.56, .64, 1); }
}
@keyframes rcshop-badge-pop {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.rcshop-add-btn__icon { width: 16px; height: 16px; }

/* Hierarquia das ações (brief Seção 7.1): "lista de compras é a ação
 * primária; converter vira secundária". Quando o JS injeta o botão,
 * marca o container com .rcshop-has-add — o converter encolhe pra
 * só-ícone (40x40) tanto em desktop (flex) quanto mobile (grid).
 *
 * Especificidade reforçada com !important porque o tema usa estilos
 * cumulativos em .btn-converter (style.css:2238-2253 e 4659). */
.ingredientes-header.rcshop-has-add .btn-converter {
    width: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    gap: 0 !important;
    justify-content: center !important;
    font-size: 0 !important;     /* esconde o text node "converter" */
    overflow: hidden !important;
    flex: 0 0 40px !important;
    color: var(--rcshop-primary, #F53E28) !important;
    border-color: var(--rcshop-border, #E2D7C6) !important;
    background: #fff !important;
}
.ingredientes-header.rcshop-has-add .btn-converter:hover {
    background: rgba(245, 62, 40, .08) !important;
    border-color: var(--rcshop-primary, #F53E28) !important;
}
/* Sobrescreve o ícone do Font Awesome (fa-exchange-alt foi renomeado
   na v6 e pode não renderizar). Usa SVG mask em currentColor — funciona
   independente da versão/kit do FA carregado. */
.ingredientes-header.rcshop-has-add .btn-converter i {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    font-size: 0 !important;          /* esconde glyph FA se ainda renderizasse */
    margin: 0 !important;
    line-height: 1 !important;
    background-color: var(--rcshop-primary, #F53E28) !important;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M8 3 4 7l4 4'/><path d='M4 7h16'/><path d='m16 21 4-4-4-4'/><path d='M20 17H4'/></svg>") !important;
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M8 3 4 7l4 4'/><path d='M4 7h16'/><path d='m16 21 4-4-4-4'/><path d='M20 17H4'/></svg>") !important;
    -webkit-mask-size: contain !important;
    mask-size: contain !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
    -webkit-mask-position: center !important;
    mask-position: center !important;
}
.ingredientes-header.rcshop-has-add .btn-converter i::before { content: none !important; }

/* Mobile: 3 controles em linha abaixo do h2 "ingredientes".
 * Override da regra style.css:4667-4677 que fixava grid em 2 colunas.
 * Tudo encolhe pra caber no viewport (iPhone SE 320-375px). */
@media (max-width: 768px) {
    .ingredientes-header.rcshop-has-add {
        grid-template-columns: auto 1fr 36px !important;
        column-gap: 6px !important;
    }

    /* Todos os 3 perdem 4px de altura e diminuem font */
    .ingredientes-header.rcshop-has-add .rc-scaler-control,
    .ingredientes-header.rcshop-has-add .btn-converter,
    .ingredientes-header.rcshop-has-add .rcshop-add-btn {
        height: 36px !important;
        min-height: 36px !important;
        font-size: 12px !important;
    }

    .ingredientes-header.rcshop-has-add .rc-scaler-control {
        width: auto;
        padding: 0 6px !important;
        gap: 2px;
    }
    .ingredientes-header.rcshop-has-add .rc-scaler-control .rc-scaler-btn {
        width: 22px;
        height: 22px;
        font-size: 14px;
    }
    .ingredientes-header.rcshop-has-add .rc-scaler-control .rc-scaler-label {
        max-width: 70px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ingredientes-header.rcshop-has-add .rcshop-add-btn {
        width: 100% !important;
        /* Padding lateral pequeno pra economizar espaço — sem isso o
           botão fica largo demais e empurra o converter pra fora. */
        padding: 0 8px !important;
        gap: 4px !important;
    }
    .ingredientes-header.rcshop-has-add .rcshop-add-btn__icon {
        width: 14px !important;
        height: 14px !important;
    }

    .ingredientes-header.rcshop-has-add .btn-converter {
        width: 36px !important;
        min-width: 36px !important;
        flex: 0 0 36px !important;
    }
    .ingredientes-header.rcshop-has-add .btn-converter i {
        width: 14px !important;
        height: 14px !important;
    }
}

/* Telas muito estreitas (iPhone SE 320px): perde label "porções"
 * pra dar mais largura ao botão primário. */
@media (max-width: 359px) {
    .ingredientes-header.rcshop-has-add .rc-scaler-control .rc-scaler-label {
        display: none;
    }
}

/* ── Botão do header (desktop ≥ 1200px) ─────────────────────────────── *
 * Injetado pelo JS dentro do .d-flex que carrega search + login.
 * Visual harmonizado com o .btn-login do tema: pill, fonte Poppins,
 * ícone à esquerda + badge contador à direita.
 * ===================================================================== */
.rcshop-header-btn {
    --rcshop-primary: var(--cor-primaria, #F53E28);
    --rcshop-text: var(--cor-texto-principal, #53240C);
    --rcshop-border: var(--cor-cinza, #E2D7C6);

    display: none; /* Mostrado só em desktop via media query abaixo */
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    margin: 0 8px 0 4px;
    background: #fff;
    border: 1.5px solid var(--rcshop-border);
    border-radius: 999px;
    color: var(--rcshop-text);
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: background .2s, border-color .2s, color .2s;
    -webkit-tap-highlight-color: transparent;
}
.rcshop-header-btn:hover {
    background: rgba(245, 62, 40, .06);
    border-color: var(--rcshop-primary);
    color: var(--rcshop-text);
}
.rcshop-header-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 62, 40, .25);
}

.rcshop-header-btn__icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: var(--rcshop-primary);
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M16 11V7a4 4 0 0 0-8 0v4M5 9h14l-1.5 11a2 2 0 0 1-2 1.7H8.5A2 2 0 0 1 6.5 20Z'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M16 11V7a4 4 0 0 0-8 0v4M5 9h14l-1.5 11a2 2 0 0 1-2 1.7H8.5A2 2 0 0 1 6.5 20Z'/></svg>");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    flex: 0 0 auto;
}

.rcshop-header-btn__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: var(--rcshop-primary);
    color: #fff;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    font-family: inherit;
}

/* Por default oculto — ativado conforme breakpoint */
.rcshop-header-btn { display: none; }

/* ── Variant DESKTOP: pill com texto, no slot .d-xl-block ───────────── */
@media (min-width: 1200px) {
    .rcshop-hdr-btn--desk.is-visible { display: inline-flex; }
    .rcshop-hdr-btn--mob { display: none !important; }
}

/* ── Variant MOBILE: icon-only redondo, no slot dos togglers ─────────
 * Mesmo visual dos .navbar-toggler (lupa, hamburger): transparente,
 * sem borda, 44x44px touch target, ícone marrom. Badge contador no
 * canto superior direito.
 * ===================================================================== */
@media (max-width: 1199px) {
    .rcshop-hdr-btn--desk { display: none !important; }
    .rcshop-hdr-btn--mob {
        all: unset;
        /* all: unset reseta display também — força oculto por default;
           o JS adiciona .is-visible só quando tem ≥1 receita na lista. */
        display: none;
        position: relative;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        border-radius: 50%;
        background: transparent;
        color: var(--rcshop-text, #53240C);
        cursor: pointer;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
        font-family: 'Poppins', system-ui, -apple-system, sans-serif;
        font-size: 0;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    .rcshop-hdr-btn--mob.is-visible { display: inline-flex; }
    .rcshop-hdr-btn--mob:hover {
        background: rgba(255, 255, 255, .12);
    }
    .rcshop-hdr-btn--mob:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, .35);
    }
    .rcshop-hdr-btn--mob .rcshop-header-btn__icon {
        width: 22px;
        height: 22px;
        background-color: #fff;
        -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M16 11V7a4 4 0 0 0-8 0v4M5 9h14l-1.5 11a2 2 0 0 1-2 1.7H8.5A2 2 0 0 1 6.5 20Z'/></svg>");
        mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M16 11V7a4 4 0 0 0-8 0v4M5 9h14l-1.5 11a2 2 0 0 1-2 1.7H8.5A2 2 0 0 1 6.5 20Z'/></svg>");
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: center;
        mask-position: center;
    }
    .rcshop-hdr-btn--mob .rcshop-header-btn__count {
        position: absolute;
        top: 4px;
        right: 2px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        background: var(--rcshop-primary, #F53E28);
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        line-height: 1;
        border-radius: 9px;
        border: 1.5px solid #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-family: inherit;
    }
}

/* FAB só aparece se NENHUM botão de header foi injetado (página rara
   sem o header padrão). Quando o header btn está presente, body ganha
   a classe e o FAB fica oculto em qualquer breakpoint. */
body.rcshop-has-header-btn .rcshop-fab { display: none !important; }

/* ── FAB (carrinho fixo, mobile/tablet < 1200px) ────────────────────── */
.rcshop-fab {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--rcshop-primary);
    color: #fff;
    border: 0;
    cursor: pointer;
    box-shadow: var(--rcshop-shadow);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    touch-action: manipulation;
    transition: transform var(--rcshop-dur) var(--rcshop-ease),
                box-shadow var(--rcshop-dur) var(--rcshop-ease),
                background var(--rcshop-dur) var(--rcshop-ease);
    -webkit-tap-highlight-color: transparent;
}
.rcshop-fab.is-visible { display: inline-flex; animation: rcshop-fab-in .35s var(--rcshop-ease); }
.rcshop-fab:hover { background: var(--rcshop-primary-hover); transform: translateY(-2px); }
.rcshop-fab:active { transform: scale(.95); }
.rcshop-fab:focus-visible { outline: none; box-shadow: var(--rcshop-shadow), var(--rcshop-focus); }
.rcshop-fab__count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--rcshop-text);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid #fff;
    line-height: 1;
    font-family: inherit;
}

/* ── Bottom sheet (mobile) / Modal centrado (desktop) ───────────────── */
.rcshop-sheet {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    color: var(--rcshop-text);
}
.rcshop-sheet.is-open { display: block; }

.rcshop-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: var(--rcshop-backdrop);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    animation: rcshop-fade-in 180ms var(--rcshop-ease);
}

.rcshop-sheet__panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--rcshop-bg-soft);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -12px 40px rgba(83, 36, 12, .25);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    animation: rcshop-slide-up 280ms var(--rcshop-ease);
    overflow: hidden;
}

/* Handle bar visual (mobile only — afirma "puxe pra fechar") */
.rcshop-sheet__panel::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(83, 36, 12, .18);
    z-index: 2;
}

/* ── Header ─────────────────────────────────────────────────────────── */
.rcshop-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 20px 14px;
    background: var(--rcshop-primary);
    color: #fff;
    flex: 0 0 auto;
}
.rcshop-sheet__title {
    margin: 0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: lowercase;
    letter-spacing: .01em;
}
.rcshop-sheet__close {
    background: rgba(255, 255, 255, .12);
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    touch-action: manipulation;
    transition: background var(--rcshop-dur) var(--rcshop-ease);
    -webkit-tap-highlight-color: transparent;
}
.rcshop-sheet__close:hover { background: rgba(255, 255, 255, .25); }
.rcshop-sheet__close:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); }

/* ── Zona de receitas ───────────────────────────────────────────────── */
.rcshop-sheet__recipes {
    padding: 10px 20px 12px;
    background: var(--rcshop-bg);
    border-bottom: 1px solid var(--rcshop-border);
    flex: 0 0 auto;
    /* Altura fixa pequena — chips ficam em scroll horizontal, não cresce
       quando a pessoa adiciona muitas receitas. */
    overflow: hidden;
}
.rcshop-sheet__recipes .rcshop-section-title {
    margin-bottom: 6px;
}
.rcshop-sheet__items {
    overflow-y: auto;
    padding: 16px 20px 8px;
    background: var(--rcshop-bg-soft);
    flex: 1 1 auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.rcshop-section-title {
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    color: var(--rcshop-text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 10px;
}

.rcshop-empty {
    color: var(--rcshop-text-muted);
    font-size: 14px;
    margin: 8px 0 16px;
    text-align: center;
    line-height: 1.5;
    padding: 24px 8px;
    border: 1.5px dashed var(--rcshop-border);
    border-radius: var(--rcshop-r-md);
    background: var(--rcshop-bg-soft);
}

/* ── Tira horizontal de chips de receita ────────────────────────────
 * Layout horizontal compacto: thumb circular pequena à esquerda + texto
 * no meio + × à direita. Altura total ~64px por chip. Scroll horizontal
 * quando tem muitas; não cresce a zona vertical independente da quantidade.
 * ===================================================================== */
.rcshop-recipes__strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 0 -20px;
    padding: 2px 20px 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--rcshop-border) transparent;
}
.rcshop-recipes__strip::-webkit-scrollbar { height: 4px; }
.rcshop-recipes__strip::-webkit-scrollbar-thumb {
    background: var(--rcshop-border);
    border-radius: 2px;
}
.rcshop-recipes__strip::-webkit-scrollbar-track { background: transparent; }

/* Chip individual — pílula horizontal */
.rcshop-recipe {
    position: relative;
    flex: 0 0 200px;
    width: 200px;
    display: grid;
    grid-template-columns: 44px 1fr 28px;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 6px;
    background: var(--rcshop-bg-soft);
    border: 1px solid var(--rcshop-border);
    border-radius: 999px;
    scroll-snap-align: start;
    transition: border-color var(--rcshop-dur) var(--rcshop-ease),
                background var(--rcshop-dur) var(--rcshop-ease);
}
.rcshop-recipe:hover { border-color: var(--rcshop-primary); }
.rcshop-recipe img,
.rcshop-recipe__thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.rcshop-recipe__thumb-fallback {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--rcshop-bg-bege);
    color: var(--rcshop-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.rcshop-recipe__name {
    color: var(--rcshop-text);
    font-weight: 600;
    font-size: 12px;
    line-height: 1.2;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--rcshop-dur) var(--rcshop-ease);
    /* alinha à esquerda do grid cell */
    min-width: 0;
}
.rcshop-recipe__name:hover { color: var(--rcshop-primary); }

/* Yield em capsula bem pequena, alinhada abaixo do nome */
.rcshop-recipe__yield {
    color: var(--rcshop-text-muted);
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    grid-column: 2;             /* mesma coluna do nome */
    grid-row: 2;                /* linha abaixo */
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Move grid: name na linha 1, yield na linha 2, thumb e remove span 2 linhas */
.rcshop-recipe { grid-template-rows: auto auto; }
.rcshop-recipe img,
.rcshop-recipe__thumb,
.rcshop-recipe__thumb-fallback { grid-row: 1 / span 2; grid-column: 1; }
.rcshop-recipe__name { grid-column: 2; grid-row: 1; }
.rcshop-recipe__remove { grid-column: 3; grid-row: 1 / span 2; }

/* Botão de remover — compacto à direita */
.rcshop-recipe__remove {
    background: transparent;
    border: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--rcshop-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    touch-action: manipulation;
    transition: background var(--rcshop-dur) var(--rcshop-ease),
                color var(--rcshop-dur) var(--rcshop-ease),
                transform 80ms ease;
    -webkit-tap-highlight-color: transparent;
}
.rcshop-recipe__remove:hover {
    background: rgba(245, 62, 40, .1);
    color: var(--rcshop-primary);
}
.rcshop-recipe__remove:active { transform: scale(.9); }
.rcshop-recipe__remove:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(245, 62, 40, .35); }
.rcshop-recipe__remove-icon { width: 14px; height: 14px; }

/* ── Itens por categoria ────────────────────────────────────────────── */
.rcshop-cat { margin-bottom: 22px; }
.rcshop-cat:last-child { margin-bottom: 0; }

.rcshop-cat__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--rcshop-text);
    padding-bottom: 6px;
    border-bottom: 1.5px solid var(--rcshop-border);
}
.rcshop-cat__emoji {
    font-size: 18px;
    line-height: 1;
    /* Categorias mantêm emoji por decisão de produto (brief Seção 4):
     * emoji = âncora visual rápida no bottom sheet e no WhatsApp. */
}

.rcshop-cat__items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rcshop-item {
    border-bottom: 1px dashed rgba(226, 215, 198, .7);
}
.rcshop-item:last-child { border-bottom: 0; }

.rcshop-item label {
    display: flex;
    align-items: flex-start;     /* alinha topo pq agora tem 2 linhas */
    gap: 12px;
    padding: 12px 4px;
    cursor: pointer;
    line-height: 1.4;
    min-height: 44px;
    touch-action: manipulation;
}
.rcshop-item input[type="checkbox"] {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin: 2px 0 0 0;            /* compensa align-items:flex-start */
    accent-color: var(--rcshop-success);
    cursor: pointer;
    border: 2px solid var(--rcshop-border);
    border-radius: 5px;
}

/* Body do item: 2 linhas verticais (primary + usage) */
.rcshop-item__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rcshop-item__primary {
    font-size: 15px;
    color: var(--rcshop-text);
    word-break: break-word;
    line-height: 1.35;
    transition: color var(--rcshop-dur) var(--rcshop-ease),
                text-decoration-color var(--rcshop-dur) var(--rcshop-ease);
}
.rcshop-item__usage {
    font-size: 12px;
    color: var(--rcshop-text-muted);
    line-height: 1.3;
    transition: color var(--rcshop-dur) var(--rcshop-ease);
}
.rcshop-item.is-checked .rcshop-item__primary {
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    text-decoration-color: rgba(148, 113, 96, .6);
    color: var(--rcshop-text-muted);
}
.rcshop-item.is-checked .rcshop-item__usage {
    text-decoration: line-through;
    color: var(--rcshop-text-muted);
    opacity: .7;
}

/* Compat: classe antiga sobrevivente (caso algum render legado a use) */
.rcshop-item__text {
    flex: 1 1 auto;
    font-size: 15px;
    color: var(--rcshop-text);
    word-break: break-word;
}

.rcshop-item__from {
    color: var(--rcshop-text-muted);
    font-size: 11px;
    font-weight: 600;
    background: var(--rcshop-bg-bege);
    padding: 3px 8px;
    border-radius: 999px;
    flex: 0 0 auto;
    white-space: nowrap;
    align-self: center;            /* mantém centralizado verticalmente */
}

/* ── "talvez você já tenha" — seção colapsável ─────────────────────── */
.rcshop-pantry {
    margin-top: 24px;
    border-top: 1px dashed var(--rcshop-border);
    padding-top: 16px;
}
.rcshop-pantry__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 4px;
    cursor: pointer;
    list-style: none;
    color: var(--rcshop-text-soft);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--rcshop-r-sm);
    transition: background var(--rcshop-dur) var(--rcshop-ease);
    -webkit-tap-highlight-color: transparent;
}
.rcshop-pantry__summary::-webkit-details-marker { display: none; }
.rcshop-pantry__summary::before {
    content: '';
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 18 15 12 9 6'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 18 15 12 9 6'/></svg>");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: transform var(--rcshop-dur) var(--rcshop-ease);
}
.rcshop-pantry[open] .rcshop-pantry__summary::before {
    transform: rotate(90deg);
}
.rcshop-pantry__summary:hover {
    background: var(--rcshop-bg-bege);
}
.rcshop-pantry__label {
    flex: 1 1 auto;
    text-transform: lowercase;
    letter-spacing: .01em;
}
.rcshop-pantry__count {
    color: var(--rcshop-text-muted);
    font-size: 11px;
    font-weight: 500;
    background: var(--rcshop-bg-bege);
    padding: 3px 8px;
    border-radius: 999px;
}
.rcshop-pantry__items {
    margin-top: 4px;
    opacity: .85; /* visual mais discreto que a lista principal */
}

/* ── Rodapé com saídas ──────────────────────────────────────────────── */
.rcshop-sheet__foot {
    display: flex;
    gap: 10px;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    background: var(--rcshop-bg);
    border-top: 1px solid var(--rcshop-border);
    flex: 0 0 auto;
}
.rcshop-btn {
    flex: 1 1 0;
    padding: 12px 16px;
    border: 0;
    border-radius: var(--rcshop-r-pill);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    touch-action: manipulation;
    transition: background var(--rcshop-dur) var(--rcshop-ease),
                color var(--rcshop-dur) var(--rcshop-ease),
                box-shadow var(--rcshop-dur) var(--rcshop-ease),
                transform 80ms ease;
    -webkit-tap-highlight-color: transparent;
}
.rcshop-btn:active { transform: scale(.98); }
.rcshop-btn:focus-visible { outline: none; box-shadow: var(--rcshop-focus); }

.rcshop-btn--whats {
    background: #25D366;
    color: #fff;
}
.rcshop-btn--whats:hover { background: #1ebe5a; }
.rcshop-btn--whats svg { width: 18px; height: 18px; }

.rcshop-btn--print {
    background: var(--rcshop-bg-bege);
    color: var(--rcshop-text);
    border: 1px solid var(--rcshop-border);
}
.rcshop-btn--print:hover {
    background: #fff;
    box-shadow: var(--rcshop-shadow-soft);
}

/* Body lock quando sheet aberta */
body.rcshop-locked { overflow: hidden; }

/* ── Toast ──────────────────────────────────────────────────────────── */
.rcshop-toast {
    position: fixed;
    left: 50%;
    bottom: calc(80px + env(safe-area-inset-bottom));
    transform: translateX(-50%) translateY(140%);
    background: #fff;
    color: var(--rcshop-text);
    padding: 12px 16px 12px 18px;
    border-radius: var(--rcshop-r-md);
    border-left: 4px solid var(--rcshop-success);
    box-shadow: var(--rcshop-shadow);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    z-index: 10000;
    opacity: 0;
    transition: opacity .22s var(--rcshop-ease), transform .28s var(--rcshop-ease);
    pointer-events: none;
    max-width: calc(100vw - 32px);
}
.rcshop-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.rcshop-toast__action {
    background: transparent;
    color: var(--rcshop-primary);
    border: 0;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    text-transform: lowercase;
    padding: 6px 4px;
    border-radius: var(--rcshop-r-sm);
    transition: background var(--rcshop-dur) var(--rcshop-ease);
    touch-action: manipulation;
    min-height: 32px;
    -webkit-tap-highlight-color: transparent;
}
.rcshop-toast__action:hover { background: rgba(245, 62, 40, .08); }
.rcshop-toast__action:focus-visible { outline: none; box-shadow: var(--rcshop-focus); }

/* ── Animations ─────────────────────────────────────────────────────── */
@keyframes rcshop-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes rcshop-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
@keyframes rcshop-slide-left {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}
@keyframes rcshop-fab-in {
    from { transform: scale(.6); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* ── Desktop ≥ 768px (mesmo breakpoint do tema) ─────────────────────── */
@media (min-width: 768px) {
    .rcshop-sheet__panel {
        top: 0;
        bottom: 0;
        left: auto;
        right: 0;
        width: min(480px, 92vw);
        max-height: 100vh;
        border-top-right-radius: 0;
        border-top-left-radius: var(--rcshop-r-md);
        border-bottom-left-radius: var(--rcshop-r-md);
        animation: rcshop-slide-left 280ms var(--rcshop-ease);
    }
    .rcshop-sheet__panel::before { display: none; }
    .rcshop-sheet__head { padding-top: 18px; }
    .rcshop-fab { right: 24px; bottom: 24px; }
    .rcshop-toast { bottom: 24px; }
    .rcshop-sheet__recipes { max-height: 32vh; }
}

/* ── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .rcshop-add-btn,
    .rcshop-fab,
    .rcshop-btn,
    .rcshop-recipe__name,
    .rcshop-recipe__remove,
    .rcshop-item__text,
    .rcshop-sheet__close,
    .rcshop-toast,
    .rcshop-toast__action {
        transition: none;
    }
    .rcshop-sheet__backdrop,
    .rcshop-sheet__panel,
    .rcshop-fab.is-visible {
        animation: none;
    }
}

/* ── Print ──────────────────────────────────────────────────────────── *
 * Quando o usuário aperta "imprimir" dentro do sheet, marcamos
 * body.rcshop-printing — esconde TUDO menos o sheet e formata o sheet
 * pra papel A4.
 * ===================================================================== */
/* Remove cabecalho/rodape do navegador (titulo da pagina, data, URL, paginacao).
   No Chrome, com margin 0 nao ha margin-box pros headers/footers. As margens
   de impressao passam a ser controladas pelo padding do painel (em mm). */
/* QR code por receita: so na impressao (na tela fica oculto) */
.rcshop-recipe__qr { display: none; }

@page { margin: 0; }

@media print {
    .rcshop-fab,
    .rcshop-toast { display: none !important; }

    body.rcshop-printing {
        background: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    body.rcshop-printing > *:not(.rcshop-sheet) { display: none !important; }
    body.rcshop-printing .rcshop-sheet { all: unset !important; display: block !important; }
    body.rcshop-printing .rcshop-sheet__backdrop,
    body.rcshop-printing .rcshop-sheet__head,
    body.rcshop-printing .rcshop-sheet__foot,
    body.rcshop-printing .rcshop-recipe__remove { display: none !important; }

    body.rcshop-printing .rcshop-sheet__panel {
        all: unset !important;
        display: block !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 14mm 15mm 16mm !important;
        color: #2b2b2b !important;
        background: #fff !important;
        font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* panel::before tem decoracao de tela — mantem oculto no print */
    body.rcshop-printing .rcshop-sheet__panel::before { display: none !important; }

    /* Cabecalho: titulo da marca + regua vermelha (no recipes::before, que e limpo) */
    body.rcshop-printing .rcshop-sheet__recipes::before {
        content: 'Lista de compras';
        display: block;
        font-family: 'Poppins', sans-serif;
        font-size: 28px;
        font-weight: 800;
        letter-spacing: -0.02em;
        color: #f53e28 !important;
        margin: 0 0 14px;
        padding-bottom: 12px;
        padding-right: 120px;
        border-bottom: 2.5px solid #f53e28;
        /* logo Receiteria no canto direito do cabecalho */
        background: url('https://www.receiteria.com.br/wp-content/themes/receiteriav2/assets/receiteria.png') no-repeat right 6px;
        background-size: auto 26px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body.rcshop-printing .rcshop-sheet__recipes,
    body.rcshop-printing .rcshop-sheet__items {
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
    }

    body.rcshop-printing .rcshop-section-title { display: none !important; }

    /* Receitas desta lista — GRADE de 2 colunas de cards verticais (QR no topo) */
    body.rcshop-printing .rcshop-recipes__strip {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        margin: 0 0 4px !important;
        padding: 0 !important;
        overflow: visible !important;
        background: transparent !important;
    }
    /* Aviso (linha cheia, acima dos cards): o QR abre a receita no site */
    body.rcshop-printing .rcshop-recipes__strip::before {
        content: 'Aponte a câmera do celular para o QR de cada receita e abra o passo a passo completo no site.';
        grid-column: 1 / -1;
        display: block;
        margin: 0 0 2px;
        padding: 7px 12px;
        background: #fff6f4 !important;
        border-left: 3px solid #f53e28 !important;
        border-radius: 6px;
        color: #9a3a2c !important;
        font-size: 11px;
        line-height: 1.45;
        font-weight: 600;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    body.rcshop-printing .rcshop-recipe__thumb,
    body.rcshop-printing .rcshop-recipe__thumb-fallback { display: none !important; }

    /* Card vertical: QR no topo, nome e rendimento abaixo, rótulo "escaneie" no pé */
    body.rcshop-printing .rcshop-recipe {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: center !important;
        gap: 7px !important;
        position: static !important;
        width: 100% !important;
        flex: none !important;
        padding: 13px 10px 11px !important;
        background: #faf5ee !important;
        border: 1px solid #efe2d2 !important;
        border-top: 3px solid #f53e28 !important;
        border-radius: 10px !important;
        page-break-inside: avoid !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    /* 1 receita só → card horizontal de largura total: texto à esquerda, QR à direita */
    body.rcshop-printing .rcshop-recipe:only-child {
        grid-column: 1 / -1 !important;
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        align-items: center !important;
        text-align: left !important;
        column-gap: 18px !important;
        padding: 16px 20px !important;
    }
    body.rcshop-printing .rcshop-recipe:only-child .rcshop-recipe__name {
        grid-column: 1 !important; grid-row: 1 !important;
        font-size: 16px !important; line-height: 1.2 !important;
    }
    body.rcshop-printing .rcshop-recipe:only-child .rcshop-recipe__yield {
        grid-column: 1 !important; grid-row: 2 !important;
        font-size: 11.5px !important;
    }
    body.rcshop-printing .rcshop-recipe:only-child::after {
        grid-column: 1 !important; grid-row: 3 !important;
    }
    body.rcshop-printing .rcshop-recipe:only-child .rcshop-recipe__qr {
        grid-column: 2 !important; grid-row: 1 / -1 !important;
        align-self: center !important;
        width: 96px !important; height: 96px !important;
    }
    body.rcshop-printing .rcshop-recipe::before { display: none !important; }

    body.rcshop-printing .rcshop-recipe__name {
        order: 2 !important;
        flex: none !important;
        font-weight: 700 !important;
        color: #53240c !important;
        display: block !important;
        -webkit-line-clamp: none !important;
        overflow: visible !important;
        min-height: 0 !important;
        font-size: 12.5px !important;
        line-height: 1.25 !important;
    }
    body.rcshop-printing .rcshop-recipe__name::after { content: none !important; }
    body.rcshop-printing .rcshop-recipe__yield {
        order: 3 !important;
        display: block !important;
        margin: 0 !important;
        color: #8a7a6d !important;
        font-size: 10.5px !important;
        font-weight: 600 !important;
    }
    /* Rótulo "escaneie" no pé do card */
    body.rcshop-printing .rcshop-recipe::after {
        content: 'escaneie ↗';
        order: 4;
        margin-top: 1px;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #c46a5c !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* QR QUADRADO e INTEIRO, no topo do card — sobrescreve o border-radius:50% */
    body.rcshop-printing .rcshop-recipe__qr {
        order: 1 !important;
        display: block !important;
        width: 84px; height: 84px;
        flex: 0 0 auto !important;
        border: 0 !important;
        border-radius: 0 !important;
        object-fit: contain !important;
        background: #fff !important;
        image-rendering: pixelated;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Categorias — titulo da marca + regua suave; nunca quebra no meio da pagina */
    body.rcshop-printing .rcshop-cat { margin: 0; padding-top: 7mm; page-break-inside: avoid; }
    body.rcshop-printing .rcshop-cat__title {
        font-family: 'Poppins', sans-serif;
        font-size: 13.5px;
        font-weight: 700;
        color: #f53e28 !important;
        border-bottom: 1.5px solid #e7d9c8 !important;
        padding-bottom: 5px;
        margin-bottom: 6px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Itens — checkbox limpo + texto + "voce usa" sutil */
    body.rcshop-printing .rcshop-item label { padding: 5px 0; min-height: 0; gap: 9px; align-items: flex-start; }
    body.rcshop-printing .rcshop-item__text,
    body.rcshop-printing .rcshop-item__primary { color: #2b2b2b !important; font-size: 12.5px; font-weight: 500; }
    body.rcshop-printing .rcshop-item__usage { color: #8a7a6d !important; font-size: 10.5px; font-style: italic; }
    body.rcshop-printing .rcshop-item__from { display: none !important; }
    body.rcshop-printing .rcshop-item input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 14px; height: 14px;
        margin-top: 1px;
        border: 1.5px solid #c9a99a;
        border-radius: 4px;
        background: #fff;
        flex-shrink: 0;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body.rcshop-printing .rcshop-pantry { margin-top: 15px; }
    body.rcshop-printing .rcshop-pantry__summary { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 13.5px; color: #53240c !important; cursor: default; }
    body.rcshop-printing .rcshop-pantry__summary::before { display: none !important; }
    body.rcshop-printing .rcshop-pantry__count { display: none !important; }
    body.rcshop-printing .rcshop-pantry__items { opacity: 1; }

    /* Rodape de marca (substitui o footer do navegador, removido) */
    body.rcshop-printing .rcshop-sheet__panel::after {
        content: 'receiteria.com.br  ·  receitas fáceis, rápidas e testadas';
        display: block;
        margin-top: 18px;
        padding-top: 10px;
        border-top: 1px solid #ece2d4;
        text-align: center;
        font-size: 10px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #b3a496 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
