/* ==========================================================
   CONFIGURAÇÕES GLOBAIS - FUTURISTA E ADAPTÁVEL
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Poppins:wght@300;600&display=swap');

:root {
    --color-dark: #0f0f0f;
    --color-background: #3E4093; /* AZUL ÍNDIGO (Fundo do corpo) */
    --color-primary: #3E4093; /* AZUL ÍNDIGO/ESCURO (Cor principal) */
    --color-secondary: #F62D35; /* Magenta Neon (Contraste/Destaque) */
    --color-text-light: #f0f0f0; /* Cor Branca para texto/elementos claros */
    --color-card-bg: #FFFFFF; /* Cor de fundo dos slides/cards (CLARO) */
    --color-text-dark: #333; 
    --color-background-header: #ffffff; /* Branco Total */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text-light); 
    line-height: 1.6;
    scroll-behavior: smooth;
}

main {
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================
   ANIMAÇÕES E UTILITÁRIOS
   ========================================================== */
@keyframes neon-pulse {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

@keyframes blink {
    0% { opacity: 1.0; }
    50% { opacity: 0.2; }
    100% { opacity: 1.0; }
}

h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    
    color: var(--color-text-light); 
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7); 
    border-bottom: 2px solid rgba(255, 255, 255, 0.5); 
    
    padding-bottom: 10px;
}

/* ==========================================================
   HEADER / TITULO / LOGO ANIMADO (Fundo Branco Total)
   ========================================================== */
.main-header {
    background: var(--color-background-header); 
    backdrop-filter: none; 
    
    padding: 20px 5%;
    border-bottom: 3px solid var(--color-secondary); 
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; 
}

/* Corrigindo o texto para o fundo branco */
.main-header,
.main-header a,
.contact-info h1 {
    color: var(--color-text-dark) !important; 
}

/* Logotipo */
.logo {
    text-decoration: none;
    display: block;
    line-height: 0;
}

/* ESTILIZAÇÃO E ANIMAÇÃO DA IMAGEM DO LOGO */
.logo-img {
    height: 80px; 
    width: auto;
    filter: none; 
    animation: neon-pulse 1.5s infinite alternate; 
}

.contact-info {
    text-align: left;
    flex-grow: 1;
    margin: 10px 20px;
}

.contact-info h1 {
    font-size: 1rem;
    font-weight: 300;
}

.phone-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem; 
    font-weight: 700;
    color: var(--color-primary) !important; 
    text-shadow: 0 0 5px var(--color-primary);
}

/* ==========================================================
   NAVEGAÇÃO PRINCIPAL (MAIN-NAV) 
   ========================================================== */

.main-nav {
    flex-grow: 1; 
    text-align: right; 
    order: 3; 
}

.main-nav ul {
    list-style: none !important; 
    display: flex !important;
    justify-content: flex-end !important;
    gap: 30px !important; 
    margin: 0 !important; 
    padding: 0 !important; 
}

.main-nav li {
    padding: 0 !important; 
}

.main-nav a {
    color: var(--color-text-dark) !important; 
    text-decoration: none !important;
    padding: 8px 0 !important; 
    font-size: 1.15rem !important; 
    font-weight: 700 !important; 
    letter-spacing: 1px; 
    transition: color 0.3s, text-shadow 0.3s, border-bottom 0.3s;
    position: relative;
    display: block; 
}

/* Efeito Hover Aprimorado (Usando a nova cor principal) */
.main-nav a:hover,
.main-nav a:focus {
    color: var(--color-primary) !important; 
    text-shadow: 0 0 7px var(--color-primary), 0 0 15px rgba(62, 64, 147, 0.7) !important; 
    border-bottom: 3px solid var(--color-secondary) !important; 
}

/* ==========================================================
   SLIDE DE DESTAQUES (Carrossel com Botões)
   ========================================================== */
.product-slider-section {
    position: relative;
    margin-bottom: 50px;
}

.slider-wrapper {
    overflow: hidden;
    position: relative; 
    border-radius: 10px;
    box-shadow: 0 0 20px var(--color-secondary); 
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-item {
    background: var(--color-card-bg); /* Fundo CLARO (Para slides) */
    color: var(--color-text-dark); /* Texto escuro (Para contraste no slide claro) */
    min-width: 100%; 
    width: 100%; 
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    height: 450px; 
}

.slider-item img {
    width: 100%; 
    height: 280px; 
    object-fit: contain; 
    max-width: 400px; 
    
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px; 
}

.price-tag {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--color-primary); 
    margin-top: auto; 
}

/* ESTILO E POSICIONAMENTO DOS BOTÕES AVANÇAR E RETROCEDER */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: var(--color-primary); 
    border: 1px solid var(--color-primary);
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: background 0.3s, transform 0.3s;
    font-size: 1.2rem;
    line-height: 1;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prev-btn:hover, .next-btn:hover {
    background: var(--color-primary);
    color: var(--color-dark);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }


/* ==========================================================
   LISTA DE PROMOÇÕES
   ========================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--color-card-bg); /* 💡 CORRIGIDO: Fundo CLARO para Ofertas */
    color: var(--color-text-dark); /* Texto escuro para contraste no fundo claro */
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 0, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* EFEITO PISCAR NA MENSAGEM DE OFERTA */
.promotion-period p:first-child {
    color: #F70A20 !important; /* Cor forte de alerta (Vermelho Neon) */
    font-weight: 800 !important; 
    
    animation: blink 1.2s infinite; 
    
    text-shadow: 0 0 5px rgba(247, 10, 32, 0.5);
}
.promotion-period p:last-child {
    color: var(--color-text-dark) !important; /* Texto escuro para ser visível no card claro */
}

.product-card:hover {
    box-shadow: 0 0 20px var(--color-secondary);
}

.product-card img {
    width: 100%;
    height: 180px; 
    object-fit: contain; 
    border-radius: 8px;
    margin-bottom: 15px;
}

.old-price-label {
    font-size: 0.9rem;
    color: #aaa;
}

.old-price {
    text-decoration: line-through;
}

.new-price-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-shadow: 0 0 3px var(--color-secondary);
}

.buy-button {
    background-color: var(--color-primary); 
    color: var(--color-text-light); /* Mantendo a cor clara para o botão (que é vibrante) */
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}

.buy-button:hover {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    transform: scale(1.05);
}

/* ==========================================================
   BOTÕES FLUTUANTES
   ========================================================== */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.whatsapp-btn, .back-to-top-btn {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.5rem;
}

.whatsapp-btn {
    background-color: #25d366; 
    color: white;
}

.back-to-top-btn {
    background-color: var(--color-secondary);
    color: white;
}

#backToTopBtn {
    display: none;
}

.whatsapp-btn:hover, .back-to-top-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--color-secondary);
}

/* ==========================================================
   RODAPÉ COMPLETO
   ========================================================== */
.main-footer {
    background-color: var(--color-dark);
    color: var(--color-text-light);
    padding: 40px 5%;
    border-top: 3px solid var(--color-primary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 20px;
    flex-wrap: wrap;
    align-items: center; 
}

.footer-section {
    flex-basis: 30%;
    min-width: 250px;
    margin-bottom: 20px;
}

/* ATUALIZAÇÃO: Estilo dos Títulos do Rodapé (Cor Branca + Ícones) */
.footer-section h3 {
    color: var(--color-text-light); /* Cor Branca */
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px; /* Espaço para o ícone */
}

/* Ícone de Localização e Contato */
.address-info h3::before {
    content: "\2709"; /* Envelope/Email ou similar para Contato/Local */
    color: var(--color-secondary);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Ícone de Links Úteis */
.links h3::before {
    content: "\1F517"; /* Ícone de Link/Corrente */
    color: var(--color-secondary);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}


/* ATUALIZAÇÃO: Estilo dos Links do Rodapé (Mais Profissional/Animado) */
.footer-section ul {
    list-style: none; 
    padding: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--color-text-light); /* Cor de texto mais clara e visível */
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 400;
    transition: color 0.3s, padding-left 0.3s;
    position: relative;
    display: inline-block;
}

/* Efeito Hover Animado */
.footer-section a:hover {
    color: var(--color-secondary); /* Usa a cor de destaque (Magenta Neon) */
    padding-left: 10px; /* Efeito de deslize (Slide-in) */
}

/* Linha decorativa no hover */
.footer-section a:hover::before {
    content: '>>'; /* Seta animada */
    color: var(--color-secondary);
    position: absolute;
    left: -15px;
    transition: left 0.3s;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #333;
}

/* ==========================================================
   RESPONSIVIDADE GERAL
   ========================================================== */
@media (max-width: 768px) {
    /* ATUALIZAÇÃO DO HEADER: Mantém horizontal, mas muito compactado */
    .header-content {
        flex-direction: row; 
        flex-wrap: nowrap; 
        overflow-x: hidden; 
        justify-content: space-between; 
    }
    
    .logo-img {
        height: 30px; 
    }
    
    .contact-info {
        display: flex;
        flex-direction: row; 
        align-items: center;
        margin: 0 5px;
        flex-grow: 1;
        justify-content: flex-end;
    }

    .contact-info h1 {
        font-size: 0.8rem !important;
        line-height: 1;
        margin: 0;
        white-space: nowrap; 
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 1; 
        max-width: 40%; 
        text-align: left !important;
    }
    
    .phone-number {
        font-size: 1rem !important;
        margin-top: 0 !important; 
        white-space: nowrap;
    }
    
    .phone-number img {
        width: 18px !important;
        height: 18px !important;
        margin-right: 4px !important;
    }
    
    .main-nav {
        display: none; 
    }
    
    /* ---------------------------------- */
    /* ATUALIZAÇÃO DO RODAPÉ (FOOTER) */
    /* ---------------------------------- */
    .footer-content {
        flex-direction: column;
        align-items: center; 
        text-align: center; 
    }
    
    .footer-section {
        min-width: 100%;
        text-align: center;
        margin-bottom: 30px; 
    }
    
    .footer-section.logo-footer {
        display: flex; 
        justify-content: center; 
        margin-bottom: 20px; 
    }
    
    /* Centraliza os títulos do rodapé no mobile */
    .footer-section h3 {
        padding-left: 0;
    }
    
    /* Remove os ícones nos títulos no mobile para evitar problemas de alinhamento */
    .address-info h3::before,
    .links h3::before {
        content: none; 
    }
    
    .footer-section a:hover {
        padding-left: 0;
    }
    
    .footer-section a:hover::before {
        content: none;
    }
    
    .slider-item {
        height: 400px; 
    }
    .slider-item img {
        height: 200px; 
        max-width: 100%;
    }
    .product-card img {
        height: 150px; 
    }
}