/* ==========================================================================
   CONFIGURAÇÕES GERAIS E TEXTURA DE FUNDO ORIGINAL (CLEAN)
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* O CADEADO CORRIGIDO: Usa "clip" no lugar de "hidden" para não matar o cabeçalho */
html, body {
    max-width: 100%;
    overflow-x: clip;
}

body { 
    background-color: #f4f5f7; 
    color: #1a1a1a; 
}

/* ==========================================================================
   BLOCO DO GATEWAY DE IDADE TRADICIONAL
   ========================================================================== */
.age-gate-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.95); 
    color: #ffffff; 
    z-index: 9999; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    padding: 20px; 
}

.age-gate-content { 
    background: #ffffff; 
    color: #1a1a1a; 
    padding: 40px 20px; 
    border-radius: 12px; 
    max-width: 400px; 
    border: 3px solid #d90000; 
}

.alert-icon, .lock-icon { 
    font-size: 40px; 
    color: #d90000; 
    margin-bottom: 15px; 
}

.age-buttons { 
    display: flex; 
    gap: 10px; 
    margin-top: 20px; 
    justify-content: center; 
}

.age-buttons button { 
    padding: 15px 25px; 
    border: none; 
    border-radius: 6px; 
    font-size: 16px; 
    font-weight: bold; 
    cursor: pointer; 
    transition: 0.2s; 
}

.btn-confirm { background: #d90000; color: #ffffff; }
.btn-deny { background: #eee; color: #1a1a1a; }

/* ==========================================================================
   CABEÇALHO E NAVEGAÇÃO FIXA DINÂMICA (SMART STICKY)
   ========================================================================== */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1002;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease-in-out; 
    transform: translateY(0);
}

.sticky-header.header-hidden {
    transform: translateY(-100%);
}

.top-bar { 
    background: #000000; 
    padding: 15px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 3px solid #d90000; 
    flex-wrap: nowrap; 
    gap: 20px; 
}

.logo-img { 
    height: 55px; 
    width: auto; 
    max-width: 200px; 
    object-fit: contain; 
}

.search-box { 
    flex: 1; 
    max-width: 600px; 
    position: relative; 
    margin: 0 auto; 
}

.search-box i { 
    position: absolute; 
    left: 18px; 
    top: 50%; 
    transform: translateY(-50%); 
    color: #666; 
    font-size: 16px; 
    z-index: 2; 
}

#search-input { 
    width: 100%; 
    padding: 14px 20px 14px 45px; 
    border: none; 
    border-radius: 30px; 
    outline: none; 
    font-size: 15px; 
    background: #ffffff; 
}

.header-actions { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

.social-icon { 
    color: #555; 
    font-size: 24px; 
    text-decoration: none; 
    transition: transform 0.2s, color 0.2s; 
}

.social-icon:hover { transform: scale(1.15); }
.instagram-icon:hover { color: #E1306C; }
.whatsapp-icon:hover { color: #25D366; }
.maps-icon:hover { color: #d90000; } /* Cor vermelha da Sucuri no hover */

.cart-icon { 
    position: relative; 
    cursor: pointer; 
    font-size: 24px; 
    color: #ffffff; 
    transition: 0.2s; 
}

.cart-icon:hover { color: #d90000; }

#cart-count { 
    position: absolute; 
    top: -8px; 
    right: -12px; 
    background: #d90000; 
    color: #ffffff; 
    border-radius: 50%; 
    width: 22px; 
    height: 22px; 
    font-size: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: bold; 
    border: 2px solid #000000; 
}

.categories-nav { 
    background: #d90000; 
    padding: 12px 5%; 
}

.categories-scroll { 
    display: flex; 
    overflow-x: auto; 
    gap: 15px; 
    width: 100%;
    align-items: center; 
    padding: 5px 15px;
    -webkit-overflow-scrolling: touch; 
    justify-content: flex-start; /* MODIFICADO: Começa sempre da esquerda */
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.categories-scroll::-webkit-scrollbar { display: none; }

.cat-btn { 
    background: transparent; 
    border: none; 
    padding: 5px 10px; 
    white-space: nowrap; 
    font-size: 14px; 
    font-weight: bold; 
    cursor: pointer; 
    color: rgba(255,255,255,0.8); 
    transition: 0.2s; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    flex-shrink: 0; /* ADICIONADO: Impede que os botões sejam esmagados no PC */
}

.cat-btn:hover, .cat-btn.active { color: #ffffff; }
.cat-btn.active { border-bottom: 2px solid #ffffff; }

/* ==========================================================================
   BANNERS E TEXTOS CENTRAIS
   ========================================================================== */
.banner-section { width: 100%; background: #000000; }
.main-banner-video { width: 100%; height: 350px; object-fit: cover; display: block; border-bottom: 5px solid #d90000; }
.section-title { text-align: center; padding: 40px 20px 20px; }
.section-title h2 { font-size: 32px; color: #1a1a1a; margin-bottom: 5px; font-weight: 900; }
.section-title p { color: #666; font-size: 15px; }

/* ==========================================================================
   GRADE PRINCIPAL E CARDS DE PRODUTO
   ========================================================================== */
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 25px; 
    padding: 20px 5% 50px; 
    max-width: 1400px; 
    margin: 0 auto; 
}

.product-card { 
    background: #ffffff; 
    border-radius: 12px; 
    padding: 20px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); 
    display: flex; 
    flex-direction: column; 
    text-align: center; 
    transition: 0.3s; 
    border: 1px solid #eee; 
}

.product-card:hover { 
    border-color: #d90000; 
    box-shadow: 0 8px 25px rgba(217,0,0,0.15); 
    transform: translateY(-3px); 
}

.prod-img { width: 100%; height: 200px; object-fit: contain; margin-bottom: 15px; }
.prod-cat { font-size: 12px; color: #666; font-weight: bold; text-transform: uppercase; margin-bottom: 5px; }
.prod-name { font-size: 16px; font-weight: bold; color: #1a1a1a; margin-bottom: 15px; line-height: 1.3; height: 42px; overflow: hidden; }

/* ANCORAGEM UX DE RODAPÉ E INDICADOR DE ECONOMIA */
.card-bottom {
    margin-top: auto; 
    display: flex;
    flex-direction: column;
    width: 100%;
}

.economy-badge {
    color: #d90000;
    font-size: 12px;
    font-weight: 800;
    margin-top: -10px;
    margin-bottom: 10px;
}

/* CAIXA CINZA TRACEJADA */
.prod-prices { 
    background: #f4f5f7; 
    padding: 12px; 
    border-radius: 8px; 
    margin-bottom: 15px; 
    font-size: 13px; 
    color: #666; 
    text-align: center; 
    border: 1px dashed #ccc; 
    min-height: 85px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.prod-prices strong { 
    color: #d90000; 
    font-size: 16px; 
    display: block; 
    margin-top: 5px; 
}

.price-display { font-size: 22px; font-weight: 900; color: #1a1a1a; margin-bottom: 15px; }

.toggle-group { 
    display: flex; 
    background: #eee; 
    border-radius: 8px; 
    margin-bottom: 15px; 
    overflow: hidden; 
    border: 1px solid #ddd; 
}

.toggle-btn { 
    flex: 1; 
    padding: 10px 0; 
    border: none; 
    background: transparent; 
    cursor: pointer; 
    font-weight: bold; 
    color: #666; 
    font-size: 13px; 
    transition: 0.2s; 
}

.toggle-btn.active { background: #d90000; color: #ffffff; }

.action-group { display: flex; gap: 10px; align-items: center; justify-content: center; margin-bottom: 0; }
.qty-control { display: flex; align-items: center; background: #f4f5f7; border-radius: 8px; border: 1px solid #ccc; }
.qty-control button { width: 40px; height: 40px; border: none; background: transparent; font-size: 20px; cursor: pointer; color: #1a1a1a; font-weight: bold; }

/* INPUT DE NÚMERO (DIGITÁVEL) */
.qty-control input { 
    width: 45px; 
    height: 40px; 
    text-align: center; 
    border: none; 
    background: transparent; 
    font-weight: bold; 
    font-size: 16px; 
    outline: none; 
    cursor: text; 
    color: #1a1a1a;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-control input[type=number] {
    -moz-appearance: textfield;
}

.btn-add { 
    flex: 1; 
    background: #000000; 
    color: #ffffff; 
    border: none; 
    border-radius: 8px; 
    font-weight: bold; 
    cursor: pointer; 
    transition: 0.2s; 
    height: 40px; 
    text-transform: uppercase; 
    font-size: 13px; 
}

.btn-add:hover { background: #d90000; }

/* ==========================================================================
   BOTÃO VOLTAR AO TOPO
   ========================================================================== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #d90000;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 900; 
    display: none; 
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, transform 0.3s;
}

#back-to-top:hover {
    background-color: #000000;
    transform: scale(1.1);
}

/* ==========================================================================
   NOVO DESIGN: CARRINHO FLUTUANTE (FLOATING CART)
   ========================================================================== */
.floating-cart-btn {
    position: fixed;
    bottom: 95px; 
    right: 30px;
    background-color: #d90000;
    color: #ffffff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1001; 
    transition: transform 0.2s, background-color 0.2s;
}

.floating-cart-btn:hover {
    transform: scale(1.1);
    background-color: #000000;
}

#floating-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #000000;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d90000;
}

/* ==========================================================================
   CARRINHO LATERAL (DRAWER)
   ========================================================================== */
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; opacity: 0; visibility: hidden; transition: 0.3s; }
.overlay.active { opacity: 1; visibility: visible; backdrop-filter: blur(3px); }
.cart-drawer { position: fixed; top: 0; right: -100%; width: 100%; max-width: 420px; height: 100%; background: #ffffff; z-index: 2001; display: flex; flex-direction: column; transition: right 0.3s; box-shadow: -5px 0 25px rgba(0,0,0,0.2); }
.cart-drawer.active { right: 0; }
.cart-header { padding: 20px; background: #d90000; color: #ffffff; display: flex; justify-content: space-between; align-items: center; }

.cart-header-actions { display: flex; align-items: center; gap: 15px; }
.btn-clear-cart { background: rgba(255,255,255,0.2); border: none; color: #ffffff; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: bold; transition: 0.2s; }
.btn-clear-cart:hover { background: #ffffff; color: #d90000; }
.close-cart { background: transparent; border: none; color: #ffffff; cursor: pointer; font-size: 20px; }

.cart-body { flex: 1; overflow-y: auto; padding: 20px; }

/* Layout da linha do carrinho com controles de Qtde e quebra inteligente */
.cart-item { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 15px; flex-wrap: wrap; gap: 10px;}
.item-info { flex: 1; min-width: 150px; }
.item-info h4 { font-size: 14px; margin-bottom: 5px; color: #1a1a1a; }
.item-info p { font-size: 13px; color: #666; margin-bottom: 5px; }
.item-price { color: #d90000; font-weight: bold; font-size: 15px; }

/* Controles de Qtde (Plus/Minus) dentro da gaveta do carrinho */
.cart-item-actions { display: flex; align-items: center; gap: 12px; }
.cart-qty-control { display: flex; align-items: center; background: #f4f5f7; border-radius: 6px; border: 1px solid #ccc; height: 32px; overflow: hidden; }
.cart-qty-control button { width: 28px; height: 100%; border: none; background: transparent; font-size: 16px; cursor: pointer; color: #1a1a1a; font-weight: bold; transition: background 0.2s; }
.cart-qty-control button:hover { background: #e0e0e0; }
.cart-qty-control input { width: 35px; height: 100%; text-align: center; border: none; background: transparent; font-weight: bold; font-size: 13px; outline: none; color: #1a1a1a; }
.cart-qty-control input::-webkit-outer-spin-button,
.cart-qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-qty-control input[type=number] { -moz-appearance: textfield; }

.item-remove { background: transparent; border: none; color: #bbb; cursor: pointer; font-size: 18px; padding: 5px; transition: 0.2s; }
.item-remove:hover { color: #d90000; }

.cart-footer { padding: 20px; border-top: 1px solid #eee; background: #f4f5f7; }
.total-row { display: flex; justify-content: space-between; font-weight: 900; font-size: 20px; margin-bottom: 15px; color: #1a1a1a; }
.total-value { color: #d90000; }
.client-data input { width: 100%; padding: 14px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 8px; font-size: 14px; outline: none; }
.btn-checkout { width: 100%; background: #25D366; color: #ffffff; border: none; padding: 16px; font-size: 16px; font-weight: bold; border-radius: 8px; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px; text-transform: uppercase; transition: 0.3s; }
.btn-checkout:disabled { background: #999999; cursor: not-allowed; } /* ADICIONADO: Botão cinza bloqueado */
.whatsapp-warning { background-color: #fff3cd; color: #856404; border-left: 4px solid #ffeeba; padding: 12px; font-size: 13px; margin-bottom: 15px; border-radius: 6px; line-height: 1.4; display: flex; align-items: flex-start; gap: 8px; text-align: left; }
.whatsapp-warning i { color: #d39e00; font-size: 16px; margin-top: 2px; }
.pickup-notice { font-size: 14px; color: #d90000; text-align: center; margin-top: 12px; font-weight: bold; } /* MODIFICADO: Vermelho, maior e negrito */

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
.site-footer { background: #ffffff; border-top: 1px solid #ddd; padding: 50px 5%; margin-top: 20px; text-align: center; }
.footer-container { display: flex; justify-content: space-between; align-items: flex-start; max-width: 1400px; margin: 0 auto; flex-wrap: wrap; gap: 40px; }
.footer-col { flex: 1; min-width: 280px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-logo-box { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; justify-content: center; }
.footer-snake-icon { height: 40px; width: auto; object-fit: contain; }
.footer-logo { font-size: 22px; font-weight: 900; letter-spacing: -0.5px; }
.footer-logo .txt-nova { color: #ffdd00; -webkit-text-stroke: 1px #1a1a1a; font-weight: bold; margin-right: 4px; }
.footer-logo .txt-sucuri { color: #d90000; }
.footer-desc { max-width: 350px; color: #666; font-size: 13px; line-height: 1.5; }
.footer-col h4 { font-size: 16px; color: #1a1a1a; margin-bottom: 20px; text-transform: uppercase; font-weight: bold; }
.footer-col p { font-size: 14px; color: #666; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.footer-col p i { color: #d90000; font-size: 18px; width: 20px; text-align: center; }
.footer-col p a { color: #666; text-decoration: none; }
.footer-col p a:hover { color: #d90000; text-decoration: underline; }

/* ==========================================================================
   DISPOSITIVOS MÓVEIS (BLINDAGEM CONTRA VAZAMENTO E AJUSTES DE CARRINHO)
   ========================================================================== */
@media (max-width: 768px) {
    .top-bar { flex-direction: column; padding: 15px; }
    .search-box { width: 100%; margin: 10px 0; }
    .header-actions { width: 100%; justify-content: center; gap: 30px; }
    .footer-container { flex-direction: column; align-items: center; }
    
    .categories-nav { padding-left: 0; padding-right: 0; top: 153px; }
    .categories-scroll { justify-content: flex-start; padding-left: 15px; padding-right: 15px; }
    .cat-btn { flex-shrink: 0; }
    
    #back-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; font-size: 16px; }

    .floating-cart-btn {
        bottom: 80px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .cart-drawer {
        width: 85%; 
    }

    .product-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px; 
        padding: 15px 10px 80px; 
        width: 100%; 
        box-sizing: border-box;
    }
    .product-card { 
        padding: 12px; 
        min-width: 0; 
    }
    .prod-img { height: 120px; }
    .prod-name { font-size: 13px; height: 36px; }
    .price-display { font-size: 16px; }
    .toggle-btn { font-size: 11px; padding: 8px 0; }
    .qty-control button { width: 25px; }
    .qty-control input { width: 35px; font-size: 14px; }
    .btn-add { font-size: 11px; padding: 0 5px; }
}

/* ==========================================================================
   ESTILIZAÇÃO DE PRODUTOS ESGOTADOS
   ========================================================================== */
.product-card.esgotado { background-color: #f9f9f9; border-color: #e0e0e0; opacity: 0.65; filter: grayscale(80%); pointer-events: none; }
.product-card.esgotado:hover { transform: none; box-shadow: 0 4px 15px rgba(0,0,0,0.08); border-color: #e0e0e0; }
.esgotado-badge { color: #666; font-size: 16px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; margin: 25px 0; padding: 10px; background: #e8e8e8; border-radius: 6px; border: 1px dashed #ccc; }
.btn-disabled { background-color: #888 !important; color: #ddd !important; cursor: not-allowed !important; width: 100%; }