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('../../images/ze-delivery-banner.jpg?v=3');
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a; /* fallback: nunca fica cinza se a imagem falhar */
}
.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: #FFCC01;
    font-weight: 700;
}
.category-grid-item.active div {
    border-color: #FFCC01;
    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); }
}
