/*
Theme Name: Maha Mushrooms Retail
Author: Voce
Description: Versão 7.0 - FINAL OTIMIZADA (Clean Header + Slide Menu)
*/

/* --- 1. VARIÁVEIS DA MARCA --- */
:root {
    --primary-purple: #381149;
    --accent-orange: #DF7D22;
    --deep-teal: #205C58;
    --bg-beige: #efe6d5;
    --pure-white: #FFFFFF;
    --text-color: #381149;
}

/* --- 2. GERAL --- */
body {
    background-color: var(--bg-beige);
    color: var(--text-color);
    font-family: 'Libre Baskerville', serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden; /* Evita rolagem lateral indesejada */
}

h1, h2, h3, h4, h5 {
    font-family: 'Alice', serif;
    font-weight: 400;
    color: var(--primary-purple);
    margin: 0;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { display: block; width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; }

/* --- 3. HEADER (Versão Desktop Padrão) --- */
.site-header {
    background-color: var(--pure-white);
    padding: 15px 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-top: 4px solid var(--accent-orange); 
}
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img { height: 70px; width: auto; }

.main-nav a { 
    margin: 0 15px; 
    font-family: 'Alice', serif;
    font-size: 1rem; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    color: var(--primary-purple);
}
.main-nav a:hover { color: var(--accent-orange); }

.header-icons { display: flex; gap: 20px; align-items: center; }
.icon-link { font-size: 1.2rem; color: var(--primary-purple); }

/* Ícone do Menu Mobile (Escondido no Desktop) */
.mobile-menu-icon { display: none; }


/* --- 4. HERO BANNER --- */
.hero-retail {
    height: 75vh; 
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 100px;
}
.hero-box {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 60px;
    max-width: 600px;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-left: 5px solid var(--accent-orange);
}
.hero-box h2 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; }
.hero-box p { font-size: 1.2rem; margin-bottom: 30px; color: #555; }

/* --- 5. FAIXA DE BENEFÍCIOS --- */
.features-strip {
    background-color: var(--deep-teal);
    color: var(--pure-white);
    padding: 25px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1); 
}
.features-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-around; flex-wrap: wrap;
    font-family: 'Alice', serif;
}
.feature-item { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.feature-icon { font-size: 1.5rem; color: var(--accent-orange); }

/* --- 6. CATEGORIAS --- */
.categories-section {
    padding: 100px 0;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    border-bottom: 1px solid rgba(223, 125, 34, 0.2); 
    overflow: hidden;
}
.section-title { font-size: 3rem; margin-bottom: 60px; color: var(--primary-purple); }

.categories-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 30px;
    padding: 20px 40px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.categories-list::-webkit-scrollbar { display: none; }

@media (min-width: 1600px) {
    .categories-list { justify-content: center; }
}

.cat-item {
    text-align: center;
    flex: 0 0 auto;
    width: 170px;
    cursor: pointer;
    transition: transform 0.3s;
}
.cat-item:hover { transform: translateY(-10px); }

.cat-img {
    width: 150px; height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-orange);
    padding: 4px;
    background: white;
    margin: 0 auto 20px auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.cat-name { 
    font-family: 'Alice', serif; font-weight: bold; color: var(--primary-purple); font-size: 1rem; line-height: 1.2;
}

/* --- 7. BEST SELLERS --- */
.retail-grid-section {
    padding: 100px 50px;
    background-color: var(--pure-white); 
}
.retail-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    max-width: 1400px; margin: 0 auto 50px auto;
    border-bottom: 2px solid #eee; padding-bottom: 15px;
}
.retail-header h3 { font-size: 2.5rem; margin: 0; }

.retail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px; margin: 0 auto;
}
.retail-card {
    background: var(--pure-white);
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    position: relative;
}
.retail-card:hover { 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
    border-color: var(--accent-orange); 
    transform: translateY(-5px); 
}

.card-badge {
    position: absolute; top: 10px; left: 10px;
    background-color: var(--accent-orange); color: white;
    padding: 3px 10px; font-size: 0.7rem; font-family: sans-serif; font-weight: bold; border-radius: 20px;
    z-index: 2;
}
.retail-img-wrap { height: 280px; overflow: hidden; background-color: #f9f9f9; }
.retail-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.retail-card:hover .retail-img-wrap img { transform: scale(1.05); }

.card-info { padding: 25px 20px; text-align: center; }
.card-cat { font-size: 0.7rem; color: #999; text-transform: uppercase; margin-bottom: 8px; font-family: sans-serif; letter-spacing: 1px; }
.card-title { font-size: 1.2rem; margin-bottom: 8px; color: var(--primary-purple); }
.card-price { color: var(--accent-orange); font-weight: bold; font-size: 1.2rem; display: block; margin-bottom: 15px; font-family: sans-serif; }

.btn-add {
    width: 100%; padding: 12px;
    background-color: var(--pure-white);
    border: 1px solid var(--primary-purple);
    color: var(--primary-purple);
    text-transform: uppercase; font-size: 0.75rem; font-weight: bold; letter-spacing: 1px;
    transition: 0.2s;
}
.retail-card:hover .btn-add { background-color: var(--primary-purple); color: var(--pure-white); }


/* --- 8. SEÇÕES EXTRAS --- */
.promo-banner {
    background-color: var(--primary-purple);
    color: var(--pure-white);
    padding: 100px 20px;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    border-top: 5px solid var(--accent-orange);
    border-bottom: 5px solid var(--accent-orange);
}
.promo-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.promo-title { font-size: 3.5rem; color: var(--pure-white); margin-bottom: 15px; }
.promo-text { font-size: 1.3rem; margin-bottom: 35px; }

.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background-color: var(--bg-beige);
    border-bottom: 1px solid rgba(56, 17, 73, 0.1);
}
.about-image img { height: 650px; width: 100%; object-fit: cover; }
.about-text { padding: 100px 80px; }
.subtitle-about {
    color: var(--accent-orange);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-family: sans-serif;
    letter-spacing: 3px;
    font-weight: bold;
    display: block;
    margin-bottom: 20px;
}
.about-text h3 { font-size: 3.5rem; margin-bottom: 30px; line-height: 1.2; }
.about-text p { color: #554a5e; margin-bottom: 30px; font-size: 1.15rem; }

/* Botões */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-orange);
    color: var(--pure-white);
    padding: 15px 40px;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 4px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-family: sans-serif;
}
.btn-primary:hover { background-color: var(--pure-white); color: var(--primary-purple); }

.btn-line {
    display: inline-block;
    border-bottom: 2px solid var(--accent-orange);
    color: var(--primary-purple);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding-bottom: 5px;
    letter-spacing: 1px;
}

/* Rodapé */
.site-footer {
    background-color: var(--deep-teal);
    color: var(--bg-beige);
    padding: 80px 50px 30px 50px;
}
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; }
.footer-col h4 { color: var(--bg-beige); margin-bottom: 20px; font-size: 1.4rem; font-family: 'Alice', serif; }
.footer-col p, .footer-links a { color: rgba(239, 230, 213, 0.8); line-height: 1.8; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 50px; padding-top: 20px; text-align: center; color: rgba(255,255,255,0.5); }


/* =================================================================
   ÁREA MOBILE - TABLETS E CELULARES (Abaixo de 991px)
   ================================================================= */

@media (max-width: 991px) {
    
    /* --- 1. CABEÇALHO CLEAN (Faixa Fina Branca) --- */
    .site-header {
        height: 60px; /* Altura fixa fina */
        padding: 0 15px; /* Quase sem preenchimento vertical */
        display: flex;
        align-items: center; 
        border-top: none; /* Remove a borda grossa no celular */
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .header-container {
        width: 100%;
        display: flex;
        flex-direction: row !important; /* Força linha horizontal */
        justify-content: space-between; 
        align-items: center;
        flex-wrap: nowrap; /* Não deixa quebrar */
        gap: 10px;
    }

    /* Logo Pequena */
    .logo img {
        height: 40px; 
        width: auto;
        object-fit: contain;
    }

    /* Agrupamento da Direita (Ícones + Menu) */
    .header-icons {
        display: flex;
        align-items: center;
        gap: 15px;
        margin: 0;
    }
    .icon-link { font-size: 1.1rem; }

    /* --- 2. BOTÃO HAMBÚRGUER (Agora Visível) --- */
    .mobile-menu-icon {
        display: block;
        cursor: pointer;
        z-index: 2000;
        margin-left: 15px; /* Separa dos outros ícones */
    }
    
    .mobile-menu-icon div {
        width: 24px;
        height: 2px; /* Linhas finas elegantes */
        background-color: var(--primary-purple);
        margin: 5px 0;
        transition: 0.3s;
    }

    /* --- 3. MENU GAVETA (Slide-in) --- */
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 75%;
        height: 100vh;
        background-color: var(--primary-purple);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        transform: translateX(100%); /* Escondido */
        transition: transform 0.4s ease-in-out;
        z-index: 1500;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }

    .main-nav a {
        color: white;
        font-size: 1.4rem;
        border-bottom: 1px solid transparent;
        margin: 0;
    }

    .main-nav a:hover {
        color: var(--accent-orange);
        border-color: var(--accent-orange);
    }

    /* CLASSE ATIVA (JavasSript) */
    .main-nav.active { transform: translateX(0); }

    /* Animação do X */
    .mobile-menu-icon.active .line1 { transform: rotate(-45deg) translate(-5px, 5px); background-color: var(--accent-orange); }
    .mobile-menu-icon.active .line2 { opacity: 0; }
    .mobile-menu-icon.active .line3 { transform: rotate(45deg) translate(-5px, -5px); background-color: var(--accent-orange); }
}


/* =================================================================
   ÁREA MOBILE PEQUENO - SÓ CELULARES (Abaixo de 768px)
   ================================================================= */

@media (max-width: 768px) {

    /* --- Hero Banner Ajustado --- */
    .hero-retail {
        height: auto;
        min-height: 500px;
        padding: 40px 20px;
        align-items: flex-end;
        background-position: center bottom;
    }
    .hero-box {
        padding: 30px 20px;
        width: 100%;
        text-align: center;
        border-left: none;
        border-top: 4px solid var(--accent-orange);
    }
    .hero-box h2 { font-size: 2.2rem; }

    /* --- Grid 2 Colunas (Vendas) --- */
    .retail-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 Colunas */
        gap: 15px;
    }
    .retail-grid-section { padding: 40px 15px; }
    .retail-img-wrap { height: 180px; }
    .card-info { padding: 15px 10px; }
    .card-title { font-size: 0.95rem; height: 2.4em; overflow: hidden; }
    .btn-add { padding: 8px; font-size: 0.7rem; }

    /* --- Benefícios e Categorias --- */
    .features-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .feature-item { flex-direction: column; justify-content: center; text-align: center; }
    .categories-section { padding: 40px 0; }
    .cat-img { width: 100px; height: 100px; }
    .cat-item { width: 120px; }

    /* --- Rodapé e Extras --- */
    .about-split { display: flex; flex-direction: column-reverse; }
    .about-text { padding: 40px 25px; text-align: center; }
    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
}

/* --- ESTILOS DAS PÁGINAS INTERNAS (Páginas Genéricas) --- */
.generic-page-container {
    padding: 150px 50px 80px 50px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 60vh;
}
.page-title {
    font-size: 3rem;
    color: var(--primary-purple);
    margin-bottom: 40px;
    text-align: center;
}
.page-content { line-height: 1.8; color: #554a5e; }

/* Ajuste Mobile das Páginas Internas */
@media (max-width: 768px) {
    .generic-page-container { padding: 40px 20px; }
    .page-title { font-size: 2rem; }
}