body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}
.hero-cover {
    background-image: url('../../hero-corujao.webp?v=3');
    background-size: cover;
    background-position: center;
}
/* Scrollbar customizada */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: #f87171; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #E7222E; }

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Estilos do Carrinho */
#cart-content.collapsed #cart-expanded {
    display: none;
}
#cart-content:not(.collapsed) #cart-collapsed {
    display: none;
}

.cart-minimum-notice {
    margin-top: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.cart-minimum-notice strong {
    color: #7f1d1d;
}
/* Estilo para o link de categoria */
.category-link {
    color: white;
}
.category-link.active {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Menu de categorias — desktop horizontal / mobile lateral */
.category-nav-bar {
    display: flex;
    align-items: stretch;
    min-height: 44px;
}

.category-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem 1rem;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.category-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.08);
}

.category-nav-desktop {
    display: none;
    flex: 1;
    justify-content: center;
    overflow-x: auto;
    flex-wrap: nowrap;
}

.category-nav-desktop .category-link {
    display: inline-block;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.category-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.category-drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.category-drawer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    width: min(85vw, 280px);
    height: 100%;
    height: 100dvh;
    background: #E7222E;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

.category-drawer.is-open {
    transform: translateX(0);
}

.category-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #b91c1c;
    flex-shrink: 0;
}

.category-drawer-title {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.category-drawer-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.25rem;
}

.category-drawer-links {
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.category-drawer-links .category-link {
    display: block;
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid rgba(185, 28, 28, 0.55);
    font-size: 0.9375rem;
}

.category-drawer-links .category-link.active {
    background: rgba(0, 0, 0, 0.12);
    text-decoration: none;
    font-weight: 700;
}

body.category-drawer-open {
    overflow: hidden;
}

@media (min-width: 768px) {
    .category-menu-toggle {
        display: none;
    }

    .category-nav-desktop {
        display: flex;
    }

    .category-drawer,
    .category-drawer-backdrop {
        display: none !important;
    }
}
/* Home — logo acima da faixa branca (mobile + desktop) */
.store-header {
    position: relative;
    overflow: visible;
}
.header-hero-band {
    position: relative;
    z-index: 1;
    min-height: 7.75rem;
    overflow: hidden;
}
.header-hero-band::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.06;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='8' fill='white'/%3E%3C/svg%3E");
    background-size: 40px 40px;
}
.header-logo-anchor {
    position: absolute;
    left: 50%;
    top: 0.35rem;
    transform: translateX(-50%);
    z-index: 40;
    line-height: 0;
    pointer-events: none;
}
.header-logo-anchor .header-brand-card {
    pointer-events: auto;
}
.header-brand-card {
    margin: 0;
    padding: 0.3rem;
    overflow: hidden;
    border-radius: 1rem;
    display: block;
}
.header-brand-logo-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6.5rem;
    height: 6.5rem;
    background: #fff;
    padding: 0.35rem;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid #f3f4f6;
}
.header-brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
}
.header-main-sheet {
    position: relative;
    margin-top: -2.25rem;
    z-index: 10;
}
.header-main-inner {
    padding-top: 6.5rem;
}
@media (min-width: 640px) {
    .header-hero-band {
        min-height: 11rem;
    }
    .header-logo-anchor {
        top: 11rem;
        transform: translate(-50%, -50%);
    }
    .header-brand-card {
        padding: 0.45rem;
    }
    .header-brand-logo-frame {
        width: 8rem;
        height: 8rem;
        padding: 0.25rem;
    }
    .header-main-sheet {
        margin-top: -2.75rem;
    }
    .header-main-inner {
        padding-top: 7.5rem;
    }
}
@media (min-width: 768px) {
    .header-hero-band {
        min-height: 14rem;
    }
    .header-logo-anchor {
        top: 14rem;
    }
    .header-brand-logo-frame {
        width: 9rem;
        height: 9rem;
        padding: 0.2rem;
    }
    .header-brand-card {
        padding: 0.5rem;
    }
    .header-main-sheet {
        margin-top: -3.25rem;
    }
    .header-main-inner {
        padding-top: 8.75rem;
    }
}

#category-grid-container {
    display: block;
    padding-left: 1rem;
    padding-right: 1rem;
}

.category-grid-section {
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .category-grid-section {
        max-width: 28rem;
    }
}

.category-grid-heading {
    margin: 0 0 0.75rem;
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
}

.category-grid-primary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 0.65rem 0.5rem;
    width: 100%;
    direction: ltr;
}

/* Mobile: carrossel horizontal (em vez da grade 2×2) */
@media (max-width: 639px) {
    #category-grid-container {
        padding-left: 0;
        padding-right: 0;
    }

    .category-grid-section {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .category-grid-heading {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .category-grid-primary {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 0.75rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 1rem;
        padding: 0 1rem 0.35rem;
        scrollbar-width: none;
    }

    .category-grid-primary::-webkit-scrollbar {
        display: none;
    }

    .category-grid-item {
        flex: 0 0 5.25rem;
        width: 5.25rem;
        scroll-snap-align: start;
    }

    .category-grid-icon {
        max-width: 100%;
    }
}

@media (min-width: 640px) {
    .category-grid-primary {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-flow: row;
        gap: 0.75rem;
    }
}

.category-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    font-family: inherit;
}

.category-grid-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 4.75rem;
    aspect-ratio: 1;
    margin: 0 auto 0.4rem;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.category-grid-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-grid-label {
    display: block;
    width: 100%;
    font-size: 0.6875rem;
    line-height: 1.25;
    font-weight: 500;
    color: #374151;
    text-align: center;
    padding: 0 0.125rem;
    word-break: break-word;
}

@media (min-width: 480px) {
    .category-grid-icon {
        max-width: 5rem;
        margin-bottom: 0.5rem;
    }

    .category-grid-label {
        font-size: 0.8125rem;
    }
}

.category-grid-item.active .category-grid-icon {
    border-color: #E7222E;
    box-shadow: 0 0 0 1px #E7222E;
    transform: scale(1.02);
}

.category-grid-item.active .category-grid-label {
    color: #E7222E;
    font-weight: 700;
}

.category-grid-extras {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #f3f4f6;
}

.category-grid-extras-title {
    margin: 0 0 0.5rem;
    text-align: center;
    font-size: 0.625rem;
    color: #9ca3af;
}

.category-grid-extras-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    max-width: 18rem;
    margin: 0 auto;
}

.category-grid-extra-pill {
    width: 100%;
    font-size: 0.6875rem;
    line-height: 1.2;
    font-weight: 500;
    color: #4b5563;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 0.45rem 0.35rem;
    cursor: pointer;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

@media (min-width: 480px) {
    .category-grid-extra-pill {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

    .category-grid-extras-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        max-width: none;
        gap: 0.5rem;
    }

    .category-grid-extra-pill {
        width: auto;
    }
}

.category-grid-extra-pill:hover {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fff;
}

.category-grid-extra-pill.category-grid-item.active {
    color: #b91c1c;
    border-color: #E7222E;
    background: #fef2f2;
    font-weight: 600;
}

.category-drawer-subhead {
    margin: 0.75rem 0 0.35rem;
    padding: 0 1.15rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.category-drawer-link-muted {
    font-size: 0.875rem;
    opacity: 0.95;
}

.catalog-section-muted {
    border-top: 1px solid #f3f4f6;
    padding-top: 0.5rem;
}

.category-carousel-scroll {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding: 0 1rem 0.5rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.category-carousel-scroll > div {
    scroll-snap-align: start;
}

.category-carousel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0 1rem 0.5rem;
}

@media (min-width: 640px) {
    .category-carousel-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.category-carousel-grid > .flex-shrink-0 {
    width: 100%;
    max-width: none;
    flex-shrink: 1;
}

@media (max-width: 639px) {
    /* Doces / Comidinhas (≤6 itens) usam .category-carousel-grid no JS — no mobile viram carrossel */
    .category-carousel-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0.75rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 1rem;
        padding: 0 1rem 0.5rem;
        scrollbar-width: none;
        grid-template-columns: unset;
    }

    .category-carousel-grid::-webkit-scrollbar {
        display: none;
    }

    .category-carousel-grid > .flex-shrink-0 {
        flex: 0 0 10rem;
        width: 10rem;
        max-width: 10rem;
        scroll-snap-align: start;
        flex-shrink: 0;
    }

    .category-carousel-scroll {
        scrollbar-width: none;
    }

    .category-carousel-scroll::-webkit-scrollbar {
        display: none;
    }

    #carousels-container section h2 {
        font-size: 1.125rem !important;
        line-height: 1.35;
    }

    #carousels-container .catalog-section-muted h2 {
        font-size: 1.0625rem !important;
    }

    #carousels-container section .px-4 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Estilo para a categoria da grade ativa (cards principais) — ver regras em .category-grid-item.active acima */
/* Animação para destacar produto */
@keyframes highlight {
    0% { background-color: #fee2e2; }
    100% { background-color: transparent; }
}
.highlight-product {
    animation: highlight 2s ease-out;
}

/* =================================================================== */
/* CÓDIGO ATUALIZADO PARA A BARRA DE PESQUISA FIXA (29/08/2025) */
/* =================================================================== */
#search-container.fixed-search {
    position: fixed;
    top: 0; 
    left: 0;
    right: 0;
    z-index: 30; 
    background-color: #E7222E; 
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
}

#search-container.fixed-search input {
    background-color: white;
    border-color: #f87171;
}

main.search-is-fixed {
    padding-top: 80px; 
}
/* Modal de combinação (SweetAlert) */
.pairing-offer-swal {
    max-width: 22rem !important;
    border-radius: 1rem !important;
}
.pairing-offer-swal-html {
    margin: 0 !important;
    padding: 0 0.25rem !important;
    text-align: left !important;
}
.pairing-offer-lead {
    font-size: 0.8125rem;
    color: #4b5563;
    margin: 0 0 0.75rem;
    line-height: 1.45;
}
.pairing-offer-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.pairing-offer-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.6rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.pairing-offer-card:hover {
    border-color: #fecaca;
    background: #fffbfb;
}
.pairing-offer-card:has(.pairing-offer-cb:checked) {
    border-color: #E7222E;
    background: #fff5f5;
}
.pairing-offer-cb {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    accent-color: #E7222E;
}
.pairing-offer-card img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    border-radius: 0.5rem;
    background: #f9fafb;
    flex-shrink: 0;
}
.pairing-offer-card-body {
    min-width: 0;
    flex: 1;
}
.pairing-offer-reason {
    font-size: 0.65rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.2;
}
.pairing-offer-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111827;
    margin: 0.1rem 0 0;
    line-height: 1.25;
}
.pairing-offer-price {
    font-size: 0.75rem;
    font-weight: 700;
    color: #E7222E;
    margin: 0.15rem 0 0;
}

.cart-pairings-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.65rem;
    border-radius: 0.75rem;
    border: 1px solid #f3f4f6;
    background: #fafafa;
}

.cart-pairings-chip img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    flex-shrink: 0;
}

.product-title-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25rem;
}

/* Modal de sabores (estilo referência pizzaria) */
.pfs-group{border:1px solid #f0f0f0;border-radius:14px;padding:12px;margin-bottom:14px;background:#fff}
.pfs-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:10px}
.pfs-title{display:block;font-weight:700;font-size:14px;color:#1f2937}
.pfs-sub{display:block;font-size:12px;color:#9ca3af;margin-top:2px}
.pfs-req{flex-shrink:0;font-size:10px;font-weight:700;color:#e7222e;background:#fff1f1;border:1px solid #fecaca;border-radius:999px;padding:3px 8px;white-space:nowrap;height:fit-content}
.pfs-tabs{display:flex;gap:6px;margin-bottom:10px;overflow-x:auto;-webkit-overflow-scrolling:touch}
.pfs-tabs::-webkit-scrollbar{display:none}
.pfs-tab{flex-shrink:0;font-size:12px;font-weight:700;padding:6px 12px;border-radius:999px;border:1.5px solid #e5e7eb;background:#fff;color:#6b7280;cursor:pointer}
.pfs-tab.is-active{background:#e7222e;border-color:#e7222e;color:#fff}
.pfs-panel{display:flex;flex-direction:column;gap:8px}
.pfs-panel.hidden{display:none}
.pfs-card{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:1.5px solid #eef0f2;border-radius:12px;padding:8px;background:#fff;cursor:pointer;transition:border-color .12s,background .12s}
.pfs-card.is-selected{border-color:#e7222e;background:#fff6f6}
.pfs-thumb{width:46px;height:46px;border-radius:10px;object-fit:cover;flex-shrink:0;background:#f3f4f6}
.pfs-info{flex:1;min-width:0;display:flex;flex-direction:column}
.pfs-name{font-size:13px;font-weight:700;color:#1f2937;line-height:1.2}
.pfs-desc{font-size:11px;color:#9ca3af;line-height:1.3;margin-top:1px}
.pfs-free{font-size:11px;font-weight:700;color:#0e9f6e;margin-top:2px}
.pfs-check{flex-shrink:0;width:22px;height:22px;border-radius:50%;border:2px solid #e5e7eb;color:transparent;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800}
.pfs-card.is-selected .pfs-check{background:#e7222e;border-color:#e7222e;color:#fff}
.pfs-free.pfs-extra{color:#e7222e}

#pizza-product-modal .pizza-modal-scroll {
    max-height: min(85vh, 720px);
}

/* Rodapé — cardápio, legal (Google Ads / LGPD) */
.site-footer-link {
    color: #fecaca;
    transition: color 0.15s ease;
}
.site-footer-link:hover,
.site-footer-link:focus-visible {
    color: #fff;
    outline: none;
}
.site-footer-link--underline {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.site-footer-nav-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.5rem;
}
.site-footer-linklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.75rem;
    font-size: 0.75rem;
}
@media (min-width: 640px) {
    .site-footer-linklist {
        font-size: 0.875rem;
        gap: 0.35rem 1rem;
    }
}
