body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* Status da loja (ABERTO/FECHADO) */
.aberto {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

/* AnimaÃ§Ã£o de piscar para o status */
@keyframes pisca {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.btn-pisca {
    animation: pisca 2s ease-in-out infinite;
}

/* Cards Modernos de InformaÃ§Ãµes */
.status-badge-modern {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
    padding: 7px 15px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.25);
}

.info-grid-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 20px;
}

.info-grid-modern--three .info-item-modern:last-child {
    grid-column: 1 / -1;
}

.store-summary-wrap {
    display: flex;
    justify-content: center;
    margin: 8px 0 12px;
}

.store-summary {
    width: max-content;
    max-width: 100%;
    padding: 0 4px;
    color: #4b5563;
    text-align: left;
}

.store-summary-line {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 7px;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 550;
}

.store-summary-line i {
    width: 15px;
    color: #6b7280;
    text-align: center;
    font-size: 11px;
}

.store-summary-line strong {
    color: #172033;
    font-weight: 800;
}

.store-summary-line .store-summary-green {
    color: #07883f;
}

.store-summary-minimum > span:first-child {
    width: 15px;
    color: #f5b800;
    text-align: center;
    font-size: 13px;
}

.store-summary-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 2px 0 8px 22px;
}

.store-summary-chips span {
    padding: 5px 10px;
    border: 1px solid #d8dde5;
    border-radius: 999px;
    background: #fff;
    color: #596579;
    font-size: 10px;
    font-weight: 650;
}

.store-summary-online {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    color: #07883f;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 850;
}

.store-summary-online > span {
    width: 9px;
    height: 9px;
    border: 2px solid #7add9d;
    border-radius: 50%;
    background: #10a84f;
}

@media (max-width: 480px) {
    .store-summary { width: max-content; max-width: 100%; }
    .store-summary-line { font-size: 11px; }
    .store-summary-chips span { padding: 4px 9px; font-size: 9px; }
}

.info-item-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.icon-circle-modern {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFCC01;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    flex-shrink: 0;
}

.item-text-modern {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.item-label-modern {
    font-size: 9px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.item-value-modern {
    font-size: 12px;
    color: #000;
    font-weight: 600;
    line-height: 1.3;
}

.item-value-modern strong {
    font-weight: 700;
}

@media (max-width: 768px) {
    .info-grid-modern {
        gap: 6px;
    }
    
    .info-item-modern {
        padding: 8px;
        gap: 6px;
    }
    
    .icon-circle-modern {
        width: 28px;
        height: 28px;
    }
    
    .item-label-modern {
        font-size: 8px;
    }
    
    .item-value-modern {
        font-size: 10px;
    }
}
.hero-cover {
    background-image: linear-gradient(rgba(0,0,0,.38), rgba(0,0,0,.38)), url('banner.jpg');
    background-size: cover;
    background-position: center;
}
.ze-logo-mark {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    border: 4px solid #fff;
    background: #ffcc01;
    color: #111;
    box-shadow: 0 12px 30px rgba(0,0,0,.28);
    line-height: .85;
    font-weight: 900;
    transform: rotate(-4deg);
}
.ze-logo-mark span { font-size: 64px; letter-spacing: -6px; }
.ze-logo-mark strong { font-size: 14px; letter-spacing: 2px; margin-top: 8px; }
.ze-logo-mark--small { width: 64px; height: 64px; border: 0; border-radius: 16px; box-shadow: none; transform: none; margin: 0 auto 12px; }
.ze-logo-mark--small span { font-size: 30px; }
.ze-logo-mark--small strong { font-size: 7px; letter-spacing: 1px; margin-top: 4px; }
.ze-logo-mark--hero { width: 128px; height: 128px; }
@media (min-width: 768px) { .ze-logo-mark--hero { width: 192px; height: 192px; } }
.ze-logo-image { display: block; object-fit: contain; }
.ze-logo-image--small { width: 64px; height: 64px; margin: 0 auto 12px; }
.ze-logo-image--hero { width: 128px; height: 128px; border-radius: 999px; border: 4px solid #fff; box-shadow: 0 12px 30px rgba(0,0,0,.28); }
@media (min-width: 768px) { .ze-logo-image--hero { width: 192px; height: 192px; } }
/* Scrollbar customizada */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: #FFCC01; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #e6b800; }

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Mantém nomes longos dentro do card sem sobrepor os preços. */
.product-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    line-height: 1.2;
    min-height: 3.6em;
}
.product-card-title-wrap {
    flex: 0 0 64px !important;
    height: 64px !important;
    min-height: 64px !important;
    overflow: hidden !important;
}

/* Estilos do Carrinho */
#cart-content.collapsed #cart-expanded {
    display: none;
}
#cart-content:not(.collapsed) #cart-collapsed {
    display: none;
}
/* Estilo para o link de categoria */
.category-link {
    color: white;
    flex-shrink: 0;
}
.category-link.active {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Barra de categorias: scroll horizontal suave no mobile (iOS) */
#category-nav-links {
    -webkit-overflow-scrolling: touch;
}
/* Estilo para a categoria da grade ativa */
.category-grid-item.active p {
    color: var(--be-category, #C9A227);
    font-weight: 700;
}
.category-grid-item.active div {
    border-color: var(--be-category, #C9A227);
    transform: scale(1.05);
}
/* AnimaÃƒÂ§ÃƒÂ£o para destacar produto */
@keyframes highlight {
    0% { background-color: #fff8cc; }
    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; 
    
    /* Cor primÃ¡ria do site */
    background-color: #FFCC01; 
    
    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: #FFCC01;
}

/* 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; 
}

/* Modal de imagem ampliada */
#image-modal {
    transition: opacity 0.3s ease-in-out;
}
#image-modal:not(.hidden) {
    display: flex;
}
#modal-image {
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* =================================================================== */
/* Layout polish — vitrine estilo delivery (iFood-like)                */
/* =================================================================== */
:root {
    --be-brand: #ffcc01;
    --be-brand-dark: #e6b800;
    /* Ouro do logotipo (âmbar/dourado) — barra e opções de categoria */
    --be-category: #C9A227;
    --be-category-mid: #D4AF37;
    --be-category-dark: #A8841A;
    --be-ink: #171717;
    --be-surface: #f4f5f7;
    --be-card-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
}

body.home.blog {
    background: var(--be-surface);
}

main#wp--skip-link--target {
    background: linear-gradient(180deg, #fafbfc 0%, var(--be-surface) 280px);
}

/* Barra compacta ao rolar */
.store-sticky-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 55;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    padding-top: max(10px, env(safe-area-inset-top, 0px));
    background: linear-gradient(180deg, #ffd633 0%, var(--be-brand) 100%);
    border-bottom: 1px solid var(--be-brand-dark);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-110%);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    pointer-events: none;
}

.store-sticky-bar.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}

.store-sticky-bar__logo {
    height: 48px;
    width: auto;
    max-width: 48px;
    border-radius: 999px;
    object-fit: contain;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.store-sticky-bar__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    line-height: 1.15;
}

.store-sticky-bar__text strong {
    font-size: 15px;
    font-weight: 800;
    color: var(--be-ink);
    letter-spacing: -0.02em;
}

.store-sticky-bar__text span {
    font-size: 12px;
    font-weight: 600;
    color: #3d3a00;
}

.store-sticky-bar__badge {
    margin-left: auto;
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #07883f;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

header > .hero-cover {
    box-shadow: inset 0 -40px 60px rgba(0, 0, 0, 0.25);
}

#main-category-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: var(--be-category, #C9A227) !important;
    background-image: linear-gradient(180deg, var(--be-category-mid, #D4AF37) 0%, var(--be-category, #C9A227) 100%);
    border-bottom: 1px solid var(--be-category-dark, #A8841A) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

#main-category-nav .category-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    color: #1a1508;
    transition: background 0.2s ease, transform 0.15s ease;
}

#main-category-nav .category-link.active {
    background: rgba(26, 21, 8, 0.18);
    color: #0f0c04;
    font-weight: 800;
    text-decoration: none;
}

#category-grid-container {
    display: flex;
    gap: 14px;
    scroll-padding-inline: 16px;
}

.category-grid-item > div {
    box-shadow: var(--be-card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-grid-item:active > div {
    transform: scale(0.96);
}

#carousels-container .flex-shrink-0.w-40,
#category-page-container [id^="product-card-"] {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px !important;
    box-shadow: var(--be-card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#carousels-container .flex-shrink-0.w-40:hover,
#category-page-container [id^="product-card-"]:hover {
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.12);
}

#carousels-container h2,
#category-page-container h2 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--be-ink);
    margin-bottom: 0.75rem;
}

#search-bar {
    min-height: 48px;
    font-size: 15px !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

#carousels-container button.rounded-full,
#category-page-container button.rounded-full {
    min-width: 44px !important;
    min-height: 44px !important;
    width: 44px !important;
    height: 44px !important;
}

#app-bottom-nav .app-nav-btn {
    min-height: 48px;
    padding-top: 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
    .store-sticky-bar__text strong {
        font-size: 16px;
    }
}
