/* ==========================================================================
   TEMA DARK PREMIUM - GM CENTER / SISTEMA
   Arquivo: style.css
   ========================================================================== */

:root {
    --bg-black: #000000;
    --dark-gray: #121212;
    --medium-gray: #1a1a1a;
    --light-gray: #b3b3b3;
    --red-main: #d90000;
    --gold: #c5a059;
    --text-white: #ffffff;
    
    --cor-destaque: #d90000;
    --cor-fundo: #000000;
    --cor-texto: #ffffff;
    --cor-card: #121212;
    --cor-borda: #222222;
}

body {
    background-color: var(--bg-black) !important;
    color: var(--text-white) !important;
    font-family: 'Montserrat', sans-serif !important;
    margin-bottom: 70px; 
}

/* =========================================
   1. HEADER E NAVEGAÇÃO
   ========================================= */
.top-info-bar { background-color: #000; padding: 10px; display: flex; justify-content: space-around; font-size: 0.8rem; color: var(--light-gray); border-bottom: 1px solid #222; }
.top-info-bar span { display: flex; align-items: center; gap: 5px; }

.navbar-custom-dark { background-color: var(--bg-black); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #222; }
.navbar-custom-dark i { font-size: 1.5rem; color: var(--text-white); }

.header-icons a { color: var(--text-white); text-decoration: none; margin-left: 15px; }
.header-icons .badge { background-color: var(--red-main) !important; }

/* =========================================
   AJUSTES DA BARRA DE BUSCA (DESKTOP E MOBILE)
   ========================================= */
.desktop-search-form input { 
    background-color: var(--medium-gray) !important; 
    color: #ffffff !important; 
    border: 1px solid #444 !important; 
    border-right: none !important; 
}

/* Texto "O que você procura?" visível e elegante */
.desktop-search-form input::placeholder,
#mobile-search-input-overlay::placeholder { 
    color: #aaaaaa !important; 
    opacity: 1; 
}

/* Efeito quando clica para digitar */
.desktop-search-form input:focus { 
    background-color: var(--dark-gray) !important; 
    color: #ffffff !important; 
    border-color: var(--red-main) !important; 
    box-shadow: 0 0 8px rgba(217, 0, 0, 0.5) !important; 
}

/* Botão de Pesquisa Vermelho */
.desktop-search-form button { 
    background-color: var(--red-main) !important; 
    color: #ffffff !important; 
    border: 1px solid var(--red-main) !important; 
    transition: 0.3s;
}
.desktop-search-form button:hover { 
    background-color: #a30000 !important; 
    border-color: #a30000 !important; 
}

/* Busca do celular */
#mobile-search-input-overlay {
    background-color: var(--medium-gray) !important;
    color: #ffffff !important;
    border: 1px solid #444 !important;
}
#mobile-search-input-overlay:focus {
    border-color: var(--red-main) !important;
    box-shadow: 0 0 8px rgba(217, 0, 0, 0.5) !important;
}

/* =========================================
   2. HERO BANNER PRINCIPAL
   ========================================= */
.hero-banner {
    padding: 80px 5%;
    display: flex;
    align-items: center;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0) 100%), url('./img/banner_bateria.png');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #000; 
    position: relative;
    border-bottom: 1px solid #222;
    min-height: 500px;
}

.hero-content { flex: 1; z-index: 2; max-width: 60%; }
.hero-title { font-size: 2.8rem; line-height: 1.1; margin-bottom: 15px; font-weight: 700; text-shadow: 2px 2px 4px rgba(0,0,0,0.9); }
.hero-title span { color: var(--gold); }
.hero-text { color: var(--light-gray); margin-bottom: 25px; font-size: 1.1rem; text-shadow: 1px 1px 3px rgba(0,0,0,0.9); }

.hero-btns { display: flex; gap: 15px; margin-bottom: 30px; }
.btn-banner-red { background-color: var(--red-main); color: var(--text-white); padding: 12px 25px; border-radius: 5px; font-weight: bold; text-decoration: none; border: none; text-transform: uppercase;}
.btn-banner-red:hover { background-color: #a30000; color: white;}
.btn-banner-outline { background-color: rgba(0,0,0,0.6); color: var(--text-white); border: 1px solid var(--text-white); padding: 12px 25px; border-radius: 5px; font-weight: bold; text-decoration: none; text-transform: uppercase; }
.btn-banner-outline:hover { background-color: var(--text-white); color: #000; }

.hero-features { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.9rem; color: var(--text-white); }
.hero-features div { display: flex; align-items: center; gap: 10px; text-shadow: 1px 1px 3px #000;}
.hero-features i { color: var(--gold); }

@media (max-width: 768px) {
    .hero-banner {
        background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('./img/banner_bateria.png');
        background-position: 70% center;
        background-size: cover;
        background-repeat: no-repeat;
        text-align: center;
        min-height: auto;
        padding: 60px 5%;
    }
    .hero-content { max-width: 100%; }
    .hero-title { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; }
    .hero-features { justify-content: center; }
}
/* =========================================
   3. GRID DE CATEGORIAS (FOTO E NOME AMPLIADOS)
   ========================================= */
.section-title-lines {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.section-title-lines::before,
.section-title-lines::after {
    content: '';
    height: 1px;
    background-color: var(--red-main);
    width: 80px; 
    margin: 0 15px;
}

.products-grid-scroll { 
    display: flex; 
    overflow-x: auto; 
    gap: 15px; 
    padding: 10px 5% 20px 5%; 
    scrollbar-width: none; 
}
.products-grid-scroll::-webkit-scrollbar { display: none; }

.cat-card-banner { 
    background-color: transparent; 
    border-radius: 8px; 
    padding: 25px 15px; 
    border: 1px solid #2a2a2a; 
    text-align: center; 
    min-width: 220px; 
    max-width: 220px; 
    text-decoration: none; 
    display: flex; 
    flex-direction: column; 
    transition: all 0.3s ease; 
}
.cat-card-banner:hover { 
    border-color: var(--red-main); 
    background-color: #0a0a0a;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* Imagens das categorias: Estilo Original Restaurado */
.cat-image-wrapper { 
    height: 120px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 20px; 
}
.cat-image-wrapper img { 
    max-height: 100%; 
    max-width: 100%; 
    object-fit: contain; 
    filter: drop-shadow(0px 5px 8px rgba(0,0,0,0.7));
}

.cat-card-banner h3 { 
    color: var(--text-white); 
    font-size: 1.1rem; 
    margin: 0; 
    text-transform: uppercase; 
    font-weight: 800; 
    line-height: 1.2; 
    letter-spacing: 0.5px;
}

/* Botão Ouro */
.btn-ver-todos-gold {
    background-color: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}
.btn-ver-todos-gold:hover {
    background-color: var(--gold);
    color: var(--bg-black);
}

.section-title-red { color: var(--text-white); letter-spacing: 2px; text-align: center; margin: 40px 0 20px; text-transform: uppercase; font-size: 1.5rem; font-weight: bold; }

/* =========================================
   4. CARDS DE PRODUTOS E VARIANTES PHP
   ========================================= */
.produto-card { 
    background-color: var(--dark-gray) !important; 
    border: 1px solid var(--medium-gray) !important; 
    border-top: 3px solid var(--red-main) !important; 
    border-radius: 12px; 
    padding: 15px; 
    text-align: center; 
    color: var(--text-white); 
    transition: 0.3s; 
    position: relative; 
    display: flex; 
    flex-direction: column; 
}
.produto-card:hover { 
    border-color: var(--red-main) !important; 
    box-shadow: 0 8px 25px rgba(217,0,0,0.15); 
    transform: translateY(-5px);
}

/* O SEGREDO DO FUNDO BRANCO E DEGRADÊ AQUI (Apenas nos produtos) */
.produto-imagem-wrapper { 
    position: relative; 
    margin-bottom: 15px; 
    background: radial-gradient(circle, #ffffff 0%, #f5f5f5 100%); /* Fundo que combina com fotos brancas */
    border-radius: 8px; /* Arredonda as pontas do fundo da foto */
    padding: 15px; /* Cria um "quadro" (respiro) ao redor do produto */
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05); 
}

.produto-imagem { 
    width: 100%; 
    height: 200px; 
    object-fit: contain; 
    mix-blend-mode: multiply; /* A MÁGICA: Elimina a borda branca quadrada das fotos JPEG */
    transition: transform 0.4s ease;
}

.produto-card:hover .produto-imagem {
    transform: scale(1.08); /* Dá um zoom suave no produto quando o mouse passa por cima */
}

/* Etiqueta de Promoção adaptada para fundo claro */
.badge-promocao-img { 
    position: absolute; 
    top: 10px; 
    left: 10px; 
    background: var(--red-main); 
    color: #fff; 
    padding: 4px 10px; 
    border-radius: 4px; 
    font-weight: bold; 
    font-size: 0.8rem; 
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Limita o nome do produto a 2 linhas e adiciona "..." */
.produto-nome { 
    font-size: 1rem; 
    color: var(--text-white); 
    margin-bottom: 10px; 
    line-height: 1.2; 
    min-height: 2.4em; 
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.produto-nome a { color: var(--text-white); text-decoration: none; text-transform: uppercase;}

.produto-preco { font-size: 1.2rem; font-weight: bold; color: var(--gold); margin-bottom: 10px;}
.preco-riscado { color: var(--light-gray); font-size: 0.9rem; }

.btn-dt-primary { background-color: var(--red-main) !important; color: #fff !important; border: none !important; text-transform: uppercase; font-weight: bold; }
.btn-dt-primary:hover { background-color: #a30000 !important; }

/* Selos Dinâmicos de Cores/Tamanhos */
.variantes-overlay { position: absolute; bottom: 5px; left: 0; width: 100%; display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; background: rgba(0,0,0,0.6); padding: 5px; }
.var-badge { display: inline-block; font-size: 0.7rem; font-weight: bold; text-align: center; border: 1px solid #444; }
.var-circle { border-radius: 50%; width: 22px; height: 22px; line-height: 20px; padding: 0; }
.var-square { background: #333; color: #fff; padding: 2px 5px; border-radius: 3px; }
.var-sem-estoque { opacity: 0.4; text-decoration: line-through; }
/* =========================================
   5. SEÇÃO DE BENEFÍCIOS E WHATSAPP
   ========================================= */
.why-choose { padding: 60px 5%; background: linear-gradient(135deg, rgba(0,0,0,1) 60%, rgba(139,0,0,0.3) 100%); border-top: 1px solid #222; }
.why-choose h2 { color: var(--gold); margin-bottom: 40px; text-transform: uppercase; text-align: center; font-weight: bold;}
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.benefit-card { text-align: center; color: var(--gold); }
.benefit-card i { font-size: 2.5rem; margin-bottom: 15px; }
.benefit-card h3 { font-size: 1.1rem; text-transform: uppercase; margin-bottom: 10px; font-weight: bold; color: var(--text-white);}
.benefit-card p { color: var(--light-gray); font-size: 0.9rem; }

.budget-section { padding: 40px 5%; background-color: var(--bg-black); }
.whatsapp-banner { background: linear-gradient(to right, #4a0000, #000); border: 1px solid #330000; padding: 30px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.wa-content { display: flex; align-items: center; gap: 20px; }
.wa-content i { font-size: 4rem; color: var(--text-white); }
.wa-text h3 { text-transform: uppercase; color: var(--text-white); margin: 0; font-weight: bold; }
.wa-text p { color: var(--light-gray); font-size: 1rem; margin: 5px 0 0; }
.phone-large { display: block; font-size: 2rem; color: var(--gold); font-weight: bold; margin-top: 10px; }
.qr-code-area { text-align: center; background: #fff; padding: 10px; border-radius: 8px;}
.qr-code-area img { width: 100px; height: 100px; }
.qr-code-area p { color: #000; font-size: 0.8rem; font-weight: bold; margin-bottom: 5px; }

/* =========================================
   6. FOOTER E MOBILE NAV
   ========================================= */
.main-footer { padding: 50px 5%; background-color: var(--medium-gray); border-top: 2px solid var(--red-main); color: var(--light-gray); }
.footer-col h4 { text-transform: uppercase; color: var(--text-white); font-size: 1.1rem; margin-bottom: 20px; font-weight: bold;}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--light-gray); text-decoration: none; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-col i { color: var(--gold); margin-right: 10px; }

.mobile-bottom-nav { position: fixed; bottom: 0; width: 100%; background-color: var(--bg-black); display: flex; justify-content: space-around; padding: 10px 0; border-top: 2px solid var(--red-main); z-index: 1000; }
.mobile-nav-item { color: var(--light-gray); text-decoration: none; font-size: 0.7rem; display: flex; flex-direction: column; align-items: center; background: none; border: none; }
.mobile-nav-item.active { color: var(--red-main); }
.mobile-nav-item i { font-size: 1.2rem; margin-bottom: 5px; }

/* =========================================
   7. MODAIS, OFFCANVAS E TOAST (SISTEMA)
   ========================================= */
.offcanvas { background-color: var(--dark-gray); color: #fff; }
.offcanvas-header { border-bottom: 1px solid #333; }
.btn-close { filter: invert(1); } 

.list-group-item { background-color: transparent; color: #fff; border-color: #333; }
.list-group-item:hover { background-color: var(--medium-gray); color: var(--gold); }
.list-group-item.bg-light { background-color: var(--medium-gray) !important; color: #fff !important; border: none; }
.text-dark { color: #fff !important; }

.modal-content { background-color: var(--dark-gray); color: #fff; border: 1px solid #333;}
.modal-header { border-bottom: 1px solid #333;}
.modal-footer { border-top: 1px solid #333;}

.form-control { background-color: var(--medium-gray); border: 1px solid #444; color: #fff;}
.form-control:focus { background-color: var(--medium-gray); color: #fff; border-color: var(--red-main); box-shadow: none;}
.form-select { background-color: var(--medium-gray) !important; color: #fff !important; border-color: #444 !important; }

/* Alerta de Produto Adicionado */
.toast-alert { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); background-color: var(--red-main); color: white; padding: 12px 24px; border-radius: 5px; font-weight: bold; z-index: 9999; box-shadow: 0 4px 6px rgba(0,0,0,0.5); display: none; text-transform: uppercase; }

/* =========================================
   8. BOTÕES FLUTUANTES (WHATSAPP/INSTAGRAM)
   ========================================= */
.botoes-flutuantes { position: fixed; bottom: 90px; right: 20px; display: flex; flex-direction: column; gap: 15px; z-index: 999; }
.botao-flutuante { width: 55px; height: 55px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; font-size: 28px; text-decoration: none; box-shadow: 0 4px 10px rgba(0,0,0,0.5); transition: transform 0.3s; }
.botao-flutuante:hover { transform: scale(1.1); color: white;}
.botao-flutuante.whatsapp { background-color: #25D366; }
.botao-flutuante.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }