/* ==========================================
   1. CONFIGURAÇÕES BASE E VARIÁVEIS (DINÂMICAS)
   ========================================== */
:root {
    --cor-background: #0a0a0a;
    --cor-header: #000000;
    --cor-rodape: #000000;
    --cor-destaque: #00ff41;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --red-alert: #e53935;
    --green-success: #00a650;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background-color: var(--cor-background) !important;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ==========================================
   2. TOPO E CABEÇALHO
   ========================================== */
.announcement-bar {
    background-color: var(--cor-header) !important;
    color: var(--cor-destaque);
    text-align: center;
    padding: 8px 5px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-header {
    background-color: var(--cor-header) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    gap: 10px;
}

.logo-container img { max-height: 45px; width: auto; }

.insta-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}
.insta-link i { color: var(--cor-destaque); }

/* ==========================================
   3. CARROSSEL E CONTADOR
   ========================================== */
.carousel-wrapper { width: 100%; overflow: hidden; background: #000; }
.carousel-track { display: flex; transition: transform 0.5s ease-in-out; }
.carousel-slide { min-width: 100%; }
.banner-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

@media (min-width: 992px) { .banner-img { aspect-ratio: 21 / 9; } }

.countdown-section {
    padding: 20px 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.countdown-section h3 { color: var(--cor-destaque); font-size: 0.8rem; font-weight: 900; margin-bottom: 12px; }
.timer-display { display: flex; justify-content: center; align-items: center; gap: 8px; }
.time-box { background: #000; border: 1px solid #333; border-radius: 8px; padding: 8px; min-width: 65px; }
.time-box span { display: block; font-size: 1.4rem; font-weight: 900; color: var(--cor-destaque); }
.time-box small { font-size: 0.55rem; color: #777; text-transform: uppercase; font-weight: 700; }
.separator { color: #333; font-weight: 900; }

/* ==========================================
   4. HOME CARDS (ATUALIZADO PARA 2 COLUNAS NO MOBILE)
   ========================================== */
.produtos-container { padding: 30px 10px; }
.section-title { text-align: center; font-size: 1.5rem; margin-bottom: 25px; font-weight: 900; }

/* Grid base agora começa com 2 colunas para mobile */
.grid-produtos { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px; 
}

/* Mantém 4 colunas em telas maiores (PC/Tablets grandes) */
@media (min-width: 992px) { 
    .grid-produtos { 
        grid-template-columns: repeat(4, 1fr); 
        gap: 20px; 
        max-width: 1200px; 
        margin: 0 auto; 
    } 
}

.card-produto {
    background: var(--white) !important;
    color: #111 !important;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column; /* Garante que o conteúdo empurre o botão para baixo */
}

.card-produto:hover { transform: translateY(-5px); }
.selo-desconto { position: absolute; top: 8px; right: 8px; background: var(--red-alert); color: var(--white); padding: 4px 6px; font-size: 0.65rem; font-weight: 900; border-radius: 4px; z-index: 2; }
.img-container { width: 100%; aspect-ratio: 1 / 1; padding: 8px; background: #fff; }
.img-container img { width: 100%; height: 100%; object-fit: contain; }

.info-produto { padding: 10px; padding-top: 0; flex-grow: 1; }
.stars-row { color: #f1c40f; font-size: 0.7rem; margin-bottom: 5px; }
.stars-row span { color: #999; margin-left: 3px; font-weight: 400; }

/* Título otimizado para não quebrar o layout no celular */
.info-produto h3 { 
    font-size: 0.85rem; 
    font-weight: 800; 
    margin-bottom: 8px; 
    line-height: 1.2; 
    color: #111; 
    height: 2.4em; /* Trava em duas linhas de altura */
    overflow: hidden;
}

.precos { margin-bottom: 8px; }
.preco-antigo { color: #bbb; text-decoration: line-through; font-size: 0.75rem; }
.preco-atual { font-size: 1.2rem; font-weight: 900; color: #000; display: block; }
.pix-label { color: var(--green-success); font-size: 0.7rem; font-weight: 800; display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.full-badge { color: var(--green-success); font-weight: 900; font-size: 0.65rem; font-style: italic; margin-top: 5px; }

.stock-bar-home { width: 100%; height: 6px; background: #eee; border-radius: 10px; margin: 8px 0 5px; overflow: hidden; }
.stock-fill-home { height: 100%; background: linear-gradient(90deg, #f9ce34, #ff3b30); border-radius: 10px; }
.alta-procura-label { font-size: 0.65rem; color: var(--red-alert); font-weight: 900; display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }

/* Wrapper do botão para ele ficar grudado na base do card */
.btn-comprar-wrapper { padding: 0 10px 10px 10px; margin-top: auto; }
.btn-comprar { width: 100%; padding: 12px; background-color: var(--cor-destaque) !important; color: #000 !important; border: none; border-radius: 8px; font-size: 0.85rem; font-weight: 900; text-transform: uppercase; cursor: pointer; }

/* ==========================================
   5. PÁGINA DO PRODUTO (LAYOUT JEETER/ML)
   ========================================== */

/* Container Principal Branco */
.produto-page-wrapper {
    background: #111111;
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: 120px;
    position: relative;
}

/* Header Flutuante (Botão voltar) */
.pd-header {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}
.pd-btn-back {
    background: rgba(255,255,255,0.9);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #000;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Imagem e Badge Amarelo */
.pd-image-box {
    width: 100%;
    aspect-ratio: 1/1.1;
    background: #f7f7f7;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.pd-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.pd-badge-top {
    position: absolute;
    top: 20px; left: 15px;
    background: #facc15; 
    color: #000;
    font-weight: 900;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Informações do Produto */
.pd-info-container {
    padding: 20px;
}

.pd-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #000;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Estrelas e Avaliações */
.pd-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}
.pd-rating i { color: #facc15; }
.pd-rating .pd-score { font-weight: 900; color: #000; margin-left: 4px; }
.pd-rating .pd-reviews { color: #888; text-decoration: underline; margin-left: 2px; }

/* Bloco de Preço */
.pd-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}
.pd-current-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: #000;
    line-height: 1;
}
.pd-old-price {
    color: #a3a3a3;
    text-decoration: line-through;
    font-size: 1.1rem;
    font-weight: 600;
}
.pd-red-pill {
    background: var(--red-alert);
    color: #fff;
    font-weight: 900;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
}

.pd-pix-info {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 15px;
}
.pd-pix-info i { color: var(--green-success); }

.pd-shipping-full {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
}
.pd-shipping-full span {
    color: var(--green-success);
    font-weight: 900;
    font-style: italic;
}

/* Gatilho: Disponibilidade */
.pd-stock-container {
    margin-bottom: 15px;
}
.pd-stock-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 900;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.pd-stock-header .label { color: #888; }
.pd-stock-header .value { color: var(--red-alert); }

.pd-stock-bar {
    width: 100%;
    height: 6px;
    background: #f3f4f6;
    border-radius: 10px;
    overflow: hidden;
}
.pd-stock-fill {
    height: 100%;
    background: linear-gradient(90deg, #facc15, #ef4444);
    border-radius: 10px;
}

/* Gatilho: Alta Procura */
.pd-fire-alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    margin-bottom: 25px;
}
.pd-fire-alert .fire-text {
    color: var(--red-alert);
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 4px;
}
.pd-fire-alert .units-left { color: #666; font-weight: 700; }

/* Rodapé Fixo de Compra */
.pd-sticky-buy {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    max-width: 600px; margin: 0 auto;
    background: #fff;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    z-index: 100;
    display: flex;
    gap: 15px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.pd-qty-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 0 10px;
    width: 100px;
    height: 50px;
}
.pd-qty-selector button {
    background: none; border: none;
    font-size: 1.2rem; color: #444; font-weight: bold; cursor: pointer;
}
.pd-qty-selector span { font-weight: 900; font-size: 1rem; color: #000; }

.pd-btn-buy {
    flex: 1;
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 900;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.pd-btn-buy div { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.pd-btn-buy div small { font-size: 0.6rem; text-transform: uppercase; font-weight: 800; opacity: 0.9;}

/* ==========================================
   6. EXTRAS 
   ========================================== */
.filtros-categoria { display: flex; gap: 10px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.filtros-categoria::-webkit-scrollbar { display: none; }
.btn-filtro { background: #222; color: #fff; border: 1px solid #333; padding: 8px 18px; border-radius: 25px; white-space: nowrap; font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.btn-filtro.ativo { background: var(--cor-destaque) !important; color: #000 !important; border-color: var(--cor-destaque); }

/* Menu inferior e Modal */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--cor-rodape, #000000) !important;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    z-index: 99999;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
/* ==========================================
   7. RODAPÉ PREMIUM (FOOTER DE CREDIBILIDADE)
   ========================================== */
.premium-footer {
    background-color: #050505;
    color: #999;
    padding: 40px 20px 80px 20px; /* 80px embaixo para não ficar atrás do menu mobile */
    font-size: 0.85rem;
    border-top: 1px solid #1a1a1a;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 20px;}
}
.footer-col h4 {
    color: #fff;
    font-weight: 900;
    margin-bottom: 15px;
    font-size: 1rem;
    text-transform: uppercase;
}
.footer-col p { line-height: 1.6; margin: 0; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #999; text-decoration: none; transition: 0.3s; display: flex; align-items: center; gap: 8px;}
.footer-col ul li a:hover { color: var(--cor-destaque); }

.payment-icons, .security-seals {
    display: flex; gap: 10px; flex-wrap: wrap; margin-top: 5px;
}
.payment-icons img, .security-seals img {
    height: 35px; object-fit: contain; background: #fff; padding: 4px; border-radius: 6px;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid #1a1a1a;
    font-size: 0.75rem;
    color: #555;
}

/* ==========================================
   8. CARROSSEL "VOCÊ PODE GOSTAR" (ESTILO SHOPIFY)
   ========================================== */
.related-products {
    padding: 30px 0 100px 0; /* Espaço para o botão fixo de comprar */
    background: var(--cor-background);
}
.related-products h3 {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--white);
    padding: 0 15px;
}
.related-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    padding: 0 15px 20px 15px;
}
.related-carousel::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.related-carousel .card-produto {
    min-width: 160px; /* Largura fixa para manter o formato lado a lado deslizando */
    max-width: 180px;
    scroll-snap-align: start;
    flex-shrink: 0;
}