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: #fbbf24; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #f59e0b; }

.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: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.cart-minimum-notice strong {
    color: #78350f;
}
/* Estilo para o link de categoria */
.category-link {
    color: white;
}
.category-link.active {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Modal de idade (+18) */
.age-gate-popup {
    border-radius: 1rem !important;
    padding: 1.5rem 1.25rem 1.25rem !important;
    font-family: 'Poppins', system-ui, sans-serif !important;
    max-width: 22rem !important;
}

.age-gate-popup-deny {
    max-width: 20rem !important;
}

.age-gate-title {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em;
    width: 100% !important;
    text-align: center !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.age-gate-popup .swal2-html-container,
.age-gate-html {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0.75rem 1rem 0.25rem !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

.age-gate-body {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #475569;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.age-gate-logo-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.age-gate-logo {
    display: block;
    max-width: 6.5rem;
    max-height: 5rem;
    width: auto;
    height: auto;
    margin: 0;
    object-fit: contain;
    object-position: center center;
}

.age-gate-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0;
    border-radius: 9999px;
    background: #fffbeb;
    border: 2px solid #fde68a;
    color: #b45309;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.age-gate-lead {
    margin: 0 0 0.75rem;
    color: #64748b;
}

.age-gate-question {
    margin: 0;
    font-weight: 600;
    color: #0f172a;
}

.age-gate-btn {
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    padding: 0.55rem 1rem !important;
}

.age-gate-btn-confirm:focus {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35) !important;
}

#main-category-nav {
    overflow: visible;
}

/* Menu de categorias — desktop horizontal / mobile lateral */
.category-nav-bar {
    display: flex;
    align-items: stretch;
    min-height: 44px;
    min-width: 0;
}

.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-scroll-wrap {
    display: none;
    flex: 1 1 0;
    min-width: 0;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

.category-nav-viewport {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-padding-inline: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.75) rgba(0, 0, 0, 0.08);
}

.category-nav-viewport.category-nav-viewport--overflow {
    justify-content: flex-start;
}

.category-nav-viewport:focus {
    outline: none;
}

.category-nav-viewport:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.category-nav-viewport::-webkit-scrollbar {
    height: 5px;
}

.category-nav-viewport::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.08);
}

.category-nav-viewport::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 999px;
}

.category-nav-track {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    min-width: min-content;
    flex-shrink: 0;
}

.category-nav-track .category-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0.65rem 0.7rem;
    white-space: nowrap;
    font-size: 0.8125rem;
}

.category-nav-scroll-btn {
    display: none;
    flex: 0 0 2.25rem;
    align-self: stretch;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease;
}

.category-nav-scroll-btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.2);
}

.category-nav-scroll-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

@media (min-width: 1280px) {
    .category-nav-track .category-link {
        padding: 0.75rem 0.85rem;
        font-size: 0.875rem;
    }
}

.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: #f59e0b;
    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 #d97706;
    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(217, 119, 6, 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-scroll-wrap {
        display: flex;
    }

    .category-nav-viewport {
        scrollbar-width: none;
    }

    .category-nav-viewport::-webkit-scrollbar {
        display: none;
        height: 0;
    }

    .category-nav-scroll-btn:not([hidden]) {
        display: inline-flex;
    }

    .category-drawer,
    .category-drawer-backdrop {
        display: none !important;
    }

    .category-nav--many .category-menu-toggle {
        display: inline-flex;
        width: auto;
        flex-shrink: 0;
        padding: 0.65rem 0.85rem;
        border-right: 1px solid rgba(0, 0, 0, 0.12);
    }

    .category-nav--many ~ .category-drawer {
        display: flex !important;
    }

    .category-nav--many ~ .category-drawer-backdrop {
        display: block !important;
    }
}
/* Grade de categorias na home — quebra linha dentro do container */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem 0.35rem;
    width: 100%;
    max-width: 100%;
    justify-items: center;
    box-sizing: border-box;
}

@media (min-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 1rem 0.5rem;
    }
}

.category-grid-item {
    width: 100%;
    max-width: 5.5rem;
}

.category-grid-label {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    hyphens: auto;
}

/* Estilo para a categoria da grade ativa */
.category-grid-item.active .category-grid-label,
.category-grid-item.active p {
    color: #f59e0b;
    font-weight: 700;
}
.category-grid-item.active div {
    border-color: #f59e0b;
    transform: scale(1.05);
}
/* Animação para destacar produto */
@keyframes highlight {
    0% { background-color: #fef3c7; } /* amber-100 */
    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;
    /* Alterado para 0 para colar no topo da tela */
    top: 0; 
    left: 0;
    right: 0;
    /* Aumentado para ficar na frente de tudo */
    z-index: 30; 
    
    /* Alterado para a cor primária do site */
    background-color: #f59e0b; 
    
    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;
}

/* Melhoria de contraste para o campo de busca quando fixo */
#search-container.fixed-search input {
    background-color: white;
    border-color: #fbbf24; /* Tom de âmbar mais claro */
}

/* Classe para adicionar o espaçamento no 'main' e evitar o "pulo" do conteúdo */
main.search-is-fixed {
    /* A altura exata será definida via JavaScript para ser precisa */
    padding-top: 80px; 
}
/* Titulo do produto no carrossel — limita a 3 linhas para nao vazar sobre o preco */
.product-title-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25rem;
}
