/* ==========================================================================
   1. RESET E VARIÁVEIS (AFETA TUDO)
   ========================================================================== */
:root {
    --primary: #00df5e;
    --primary-glow: rgba(0, 223, 94, 0.4);
    --bg-dark: #050505;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Space Grotesk', sans-serif; }
body { background: var(--bg-dark); color: white; overflow-x: hidden; min-height: 100vh; }

#bg-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.container { max-width: 1200px; margin: 0 auto; width: 90%; position: relative; z-index: 1; }

/* ==========================================================================
   2. HEADER E NAVEGAÇÃO
   ========================================================================== */
header { width: 100%; position: fixed; top: 0; background: rgba(5,5,5,0.8); backdrop-filter: blur(15px); z-index: 1000; border-bottom: 1px solid var(--glass-border); }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo { font-size: 1.5rem; font-weight: 700; text-decoration: none; color: white; }
.logo span { color: var(--primary); text-shadow: 0 0 10px var(--primary-glow); }
.nav-links { display: flex; list-style: none; gap: 25px; align-items: center; }
.nav-links a { text-decoration: none; color: #ccc; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.menu-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.menu-toggle .bar { width: 28px; height: 3px; background: var(--primary); }

/* ==========================================================================
   3. INDEX / HERO (CORREÇÃO DA IMAGEM 1)
   ========================================================================== */
.hero-section { min-height: 100vh; display: flex; align-items: center; padding-top: 100px; }
.hero-container { display: flex; justify-content: space-between; align-items: center; gap: 50px; width: 100%; }
.hero-text { flex: 1; }
.hero-logo-body { width: 280px; margin-bottom: 25px; filter: drop-shadow(0 0 15px var(--primary-glow)); }
.tagline { display: inline-block; color: var(--primary); border: 1px solid var(--primary); padding: 6px 16px; border-radius: 50px; font-size: 0.75rem; text-transform: uppercase; margin-bottom: 20px; }
h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; }
h1 span { color: var(--primary); }
.hero-text p { color: #888; font-size: 1.1rem; margin-bottom: 40px; max-width: 480px; }

.btn-primary { background: var(--primary); color: black; padding: 15px 30px; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-secondary { background: var(--glass); color: white; padding: 15px 30px; border: 1px solid var(--glass-border); border-radius: 10px; cursor: pointer; text-decoration: none; display: inline-block; margin-left: 10px; }

/* Carrossel da Index */
.carousel-container { width: 100%; max-width: 500px; height: 600px; border-radius: 30px; overflow: hidden; position: relative; border: 1px solid var(--glass-border); }
.carousel-track { display: flex; height: 100%; transition: transform 0.6s ease-in-out; }
.carousel-card { min-width: 100%; height: 100%; }
.carousel-card img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   4. LOJA (CORREÇÃO DA IMAGEM 2 - GRADE ALINHADA)
   ========================================================================== */
.loja-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    margin-top: 50px; 
    padding-bottom: 100px;
}

.produto-card { 
    background: var(--glass); 
    border: 1px solid var(--glass-border); 
    border-radius: 15px; 
    padding: 15px; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    transition: 0.3s; 
}

.produto-img { width: 100%; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.produto-img img { width: 100%; height: 100%; object-fit: cover; }

.produto-nome { 
    font-size: 1rem; color: white; margin-bottom: 10px; 
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; 
    overflow: hidden; min-height: 2.6em; line-height: 1.3em; 
}

.produto-info-footer { margin-top: auto; display: flex; flex-direction: column; }
.produto-preco { font-size: 1.3rem; color: var(--primary); font-weight: 700; margin-bottom: 12px; }
.btn-comprar { background: var(--primary); color: black; text-align: center; padding: 10px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 0.85rem; }

/* ==========================================================================
   5. CONTATO (FORMULÁRIO E MAPA)
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.info-item { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; background: var(--glass); padding: 20px; border-radius: 15px; border: 1px solid var(--glass-border); }

.contact-form-card { background: var(--glass); backdrop-filter: blur(15px); padding: 30px; border-radius: 25px; border: 1px solid var(--glass-border); width: 100%; box-sizing: border-box; }
.form-group { width: 100%; margin-bottom: 20px; display: flex; flex-direction: column; align-items: flex-start; }
.form-group label { color: var(--primary); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); border-radius: 10px; color: white; box-sizing: border-box; }

.btn-enviar { width: 100%; background: var(--primary); color: black; padding: 15px; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; }

.map-section { margin-top: 60px; border-radius: 30px; overflow: hidden; height: 450px; filter: grayscale(1) invert(0.9) hue-rotate(130deg) brightness(0.7); border: 1px solid var(--glass-border); }
.map-section iframe { width: 100%; height: 100%; border: none; }

/* ==========================================================================
   6. RESPONSIVIDADE E FOOTER
   ========================================================================= */
.main-footer { padding: 60px 0 30px; border-top: 1px solid var(--glass-border); margin-top: 50px; text-align: center; }

@media (max-width: 900px) {
    .menu-toggle { display: flex; }
    .nav-links { position: fixed; right: -100%; top: 0; height: 100vh; width: 70%; background: #0a0a0a; flex-direction: column; justify-content: center; transition: 0.5s; z-index: 1001; }
    .nav-links.active { right: 0; }
    .hero-container, .contact-grid { flex-direction: column; text-align: center; }
    .hero-text { display: flex; flex-direction: column; align-items: center; }
    .carousel-container { max-width: 100%; height: 400px; margin-top: 30px; }
    .loja-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .loja-grid { grid-template-columns: 1fr; }
    h1 { font-size: 2.2rem; }
}

/* ==========================================================================
   7. FIX BOTÃO WHATSAPP (CORREÇÃO DE TAMANHO E POSIÇÃO)
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 3000; /* Garante que fique em cima de tudo */
    text-decoration: none;
}

.whatsapp-icon {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
    position: relative;
}

/* Força a imagem do ícone a ter um tamanho pequeno */
.whatsapp-icon img {
    width: 35px !important;
    height: 35px !important;
}

/* Efeito de pulso (opcional, mas fica bonito) */
.whatsapp-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    animation: pulse-whats 2s infinite;
    z-index: -1;
}

@keyframes pulse-whats {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}

.whatsapp-icon:hover {
    transform: scale(1.1);
}

/* Ajuste para celular */
@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-icon {
        width: 50px;
        height: 50px;
    }
    .whatsapp-icon img {
        width: 28px !important;
        height: 28px !important;
    }
}

/* ==========================================================================
   8. FOOTER MELHORADO (REDES SOCIAIS)
   ========================================================================== */
.main-footer {
    background: rgba(5, 5, 5, 0.95);
    padding: 60px 0 30px;
    border-top: 1px solid var(--glass-border);
    margin-top: 80px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.icon-box {
    width: 45px;
    height: 45px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.3s;
}

/* Efeito de brilho neon ao passar o mouse */
.icon-box:hover {
    color: black;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 25px;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    color: #555;
    font-size: 0.8rem;
}

/* Ajuste para Celular */
@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-col.social {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}