/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

:root {
    --primary-color: #e6431e; /* Laranja Principal */
    --secondary-color: #000000; /* Preto */
    --text-light: #ffffff; /* Branco */
    --text-dark: #333333;
    --font-primary: 'Bebas Neue', sans-serif;
    --font-body: Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    /* CORREÇÃO MENU FIXO: Empurra o conteúdo principal para baixo */
    padding-top: 100px; 
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--text-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header/Menu */
header {
    background-color: var(--secondary-color);
    padding: 15px 0;
    border-bottom: 2px solid var(--primary-color);
    /* PROPRIEDADES PARA FIXAR O HEADER */
    position: fixed; 
    top: 0;          
    width: 100%;     
    z-index: 1000;   
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    /* AJUSTE LOGO: Garantindo 70px de altura */
    height: 70px; 
    width: auto;
}

/* 1. OCULTA O ÍCONE HAMBÚRGUER POR PADRÃO (DESKTOP) */
.menu-toggle {
    display: none; 
}

/* Estilos do Menu Desktop (PADRÃO) */
#desktop-nav {
    display: block; /* Garante que o menu apareça no desktop */
}

#desktop-nav ul {
    list-style: none;
    display: flex;
    min-width: max-content; 
}

#desktop-nav ul li {
    margin-left: 25px;
    flex-shrink: 0; 
}

#desktop-nav ul li a {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--text-light);
}

/* --- MENU MOBILE (Gaveta) --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1500; 
    /* AJUSTE CRÍTICO: ESCONDE TOTALMENTE NO DESKTOP */
    display: none; 
    opacity: 0;
    padding: 60px 20px 20px;
    transition: opacity 0.3s ease-in-out;
}

.mobile-menu.open {
    /* AJUSTE CRÍTICO: A classe 'open' ativa a exibição no mobile */
    display: block; 
    opacity: 1;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column; /* Empilha os itens */
    align-items: center;
    padding: 0;
}

.mobile-menu ul li {
    margin: 20px 0;
}

.mobile-menu ul li a {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--text-light);
    text-transform: uppercase;
    display: block;
    padding: 10px 20px;
    transition: color 0.3s;
}

.mobile-menu ul li a:hover {
    color: var(--primary-color);
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

.close-menu-btn:hover {
    color: var(--primary-color);
}


/* --- Main Content e Produtos --- */
main {
    padding-bottom: 50px; 
}

h1, h2, h3 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 15px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
    color: var(--text-light);
}

/* --- CAROUSEL/BANNERS --- */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 250px; /* Altura mínima para mobile/fallback */
    background-color: #333; 
}

.slide {
    display: none;
    width: 100%;
    opacity: 0; 
    position: absolute; 
    top: 0;
    left: 0;
    transition: opacity 0.8s ease-in-out; 
}

.slide.active {
    display: block;
    opacity: 1; 
    position: relative; 
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Estilo dos indicadores (pontinhos) */
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.indicator.active {
    background-color: var(--primary-color); 
    transform: scale(1.2);
}

/* Mobile Banner Adjustment */
@media (max-width: 768px) {
    .slide img.desktop-banner {
        display: none;
    }
    .slide img.mobile-banner {
        display: block;
    }
}

/* Desktop Banner Adjustment */
@media (min-width: 769px) {
    .slide img.desktop-banner {
        display: block;
        width: 100%; /* Garante que a imagem preencha a largura */
        height: 450px; /* ALTURA CORRIGIDA: 450px para 1580x450px */
        object-fit: cover; /* Garante que preencha sem distorcer, cortando o excesso se necessário */
    }
    .slide img.mobile-banner {
        display: none;
    }
}

/* --- SEÇÃO DE PRODUTOS --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.product-card {
    background-color: #111;
    border: 1px solid #333;
    padding: 20px; 
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative; 
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(230, 67, 30, 0.3);
}

/* CONTÊINER DA IMAGEM: Agora com max-width ajustado para a proporção original */
.product-image-container {
    max-width: 280px; 
    height: 350px; 
    margin: 0 auto 20px auto; 
    display: flex; 
    justify-content: center;
    align-items: center;
    overflow: hidden; 
    cursor: pointer; 
    position: relative;
    border-radius: 4px; 
}

.product-image-container img {
    max-height: 100%; 
    max-width: 100%; 
    width: auto; 
    height: auto; 
    object-fit: contain; 
    border-radius: 4px;
    transition: transform 0.3s;
}

/* EFEITO HOVER: "Clique para ver mais" */
.product-image-container:hover .hover-overlay {
    opacity: 1;
}

.hover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px; /* Altura do rodapé de overlay */
    background: rgba(230, 67, 30, 0.9); /* Laranja da marca com transparência */
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Começa invisível */
    pointer-events: none; /* Permite o clique no container, não no overlay */
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.product-card h3 {
    font-size: 1.8rem;
    margin-top: 10px;
    color: var(--text-light);
}

.product-card p {
    color: #ccc;
    margin: 10px 0;
}

.price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-family: var(--font-primary);
    margin-bottom: 20px;
}

.whatsapp-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 5px;
    text-transform: uppercase;
    font-family: var(--font-primary);
    letter-spacing: 1px;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.whatsapp-button:hover {
    background-color: #ff5e38; 
    color: var(--text-light);
}

/* --- WHATSAPP FLUTUANTE --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366; 
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* --- PÁGINAS SECUNDÁRIAS --- */
.content-section {
    padding: 40px 0;
    text-align: center; 
}

.content-section h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
}

.content-section h3 {
    text-align: center; 
}

.content-section p, .content-section ul {
    color: #ccc;
    margin-bottom: 20px;
    max-width: 800px; 
    margin-left: auto;
    margin-right: auto;
    text-align: left; 
}

.content-section ul {
    list-style: disc;
    padding-left: 40px;
    text-align: left; 
}

.contact-info {
    text-align: center;
}

.contact-info p {
    font-size: 1.2rem;
    /* AJUSTE FINAL: Centraliza todo o texto dentro do bloco de informações de contato */
    text-align: center !important; 
}

/* Footer */
footer {
    background-color: #111;
    color: #888;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #333;
    padding-top: 40px; 
}

.footer-info {
    margin-top: 20px;
    padding: 0 15px;
}

.footer-info p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #ccc;
}
.footer-info a {
    color: var(--primary-color);
}

/* --- GALERIA MODAL (LIGHTBOX) --- */
.modal-gallery {
    display: none; 
    position: fixed;
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95); 
    animation: fadeIn 0.3s;
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 900px;
    max-height: 90vh; 
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
    font-family: Arial, sans-serif;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.nav-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: #ccc;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    user-select: none;
    -webkit-user-select: none;
    /* Botões quase invisíveis */
    opacity: 0.1;
}

.prev-btn {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.next-btn {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.nav-btn:hover {
    opacity: 1; /* Fica visível ao passar o mouse */
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--text-light);
}

@keyframes fadeIn {
    from {opacity: 0}
    to {opacity: 1}
}

/* --- RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 768px) {
    
    /* 1. OCULTA O MENU DESKTOP */
    #desktop-nav {
        display: none;
    }
    
    /* 2. EXIBE O BOTÃO HAMBÚRGUER */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--text-light); 
        font-size: 30px;
        cursor: pointer;
        padding: 0;
        line-height: 1;
    }
    
    /* 3. MENU MÓVEL - AJUSTE DE VISIBILIDADE E DISPLAY */
    .mobile-menu {
        display: none !important; 
    }
    .mobile-menu.open {
        display: block !important;
    }
    
    /* 4. ALINHAMENTO DO HEADER (MANTIDO) */
    .nav-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .logo img {
        height: 60px; 
    }

    /* 5. AJUSTE CRÍTICO FINAL: CENTRALIZAÇÃO DE TODO O TEXTO NO MOBILE */
    
    .content-section h1, .content-section h2, .content-section h3 {
        text-align: center !important; 
    }
    
    /* Força alinhamento central para TUDO o que for texto ou bloco de texto */
    .content-section * { 
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Remove marcadores de lista que atrapalham a centralização */
    .content-section ul {
        list-style: none !important; 
        padding-left: 0 !important;
    }

    /* Garante que o texto dentro da lista seja centralizado */
    .content-section ul li {
        text-align: center !important;
        padding-left: 10px; 
    }
    
    /* 6. AJUSTES DIVERSOS (mantidos) */
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
    
    .product-image-container {
        height: 250px; 
        max-width: 150px; 
    }

    .modal-content {
        width: 95%;
    }
    .close-btn {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    .nav-btn {
        margin-top: -25px;
        padding: 8px;
    }
}