/* ==========================================================================
   1. CONFIGURAÇÕES GERAIS E VARIÁVEIS
   ========================================================================== */
:root {
    --primary: #2e7d32;     /* Verde institucional */
    --accent: #d4a017;      /* Dourado para destaques */
    --dark: #1a1a1a;        /* Cinza quase preto para textos fortes */
    --text: #444444;        /* Cinza para leitura */
    --light-bg: #f8f9fa;    /* Fundo de seções */
    --white: #ffffff;
    --border-color: #ebebeb;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==========================================================================
   2. HEADER & NAVEGAÇÃO
   ========================================================================== */
.top-announcement {
    background: var(--primary);
    color: white;
    padding: 8px 0;
    font-size: 11px;
    font-weight: 700;
    overflow: hidden;
}

.marquee {
    display: flex;
    animation: marquee 40s linear infinite;
    width: max-content;
}

/* Hero Premium Section */
.hero-premium {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 8%;
    background: url('./img2/Banner inicio.png') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: #fff;
}

.hero-subtitle {
    display: block;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent); /* Aquele tom dourado/madeira */
    margin-bottom: 15px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-title span {
    color: #fff;
    font-style: italic;
}

.hero-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 400;
}

/* Botões do Banner */
.hero-actions {
    display: flex;
    gap: 20px;
}

.btn-hero-primary {
    background: var(--primary);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.3);
}

.btn-hero-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(46, 125, 50, 0.4);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    border: 2px solid rgba(255,255,255,0.5);
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}



@media (max-width: 768px) {
    .hero-premium {
        justify-content: center;
        text-align: center;
    }
    .hero-actions {
        flex-direction: column;
    }
}

.btn-details:hover {
    background-color: #f8f8f8;
    border-color: var(--primary); /* ou a cor de destaque que você usa */
    color: var(--primary) !important;
}

/* Garante que o card tenha espaço para os dois botões */
.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.marquee span { padding-right: 100px; }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.main-header {
    padding: 10px 5%;
    background: var(--white);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    gap: 20px;
}

.header-cart {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    cursor: pointer;
    position: relative;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
}

.header-cart:hover { background: #f0f7f0; }

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-wrapper img { height: 55px; width: auto; }

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

/* Carrinho Lateral Premium */
.cart-sidebar {
    width: 400px;
    background: #fff;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    z-index: 9999 !important;
    display: flex;
    flex-direction: column;
}

.cart-item-row {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}

.cart-item-row:hover { background: #fafafa; }

/* Controles de Quantidade Estilizados */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f8f8;
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid #eee;
}

.qty-controls button {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--primary);
    font-weight: bold;
    transition: transform 0.2s;
}

.qty-controls button:hover { transform: scale(1.2); }

/* Badge de Atacado */
.price-wholesale {
    background: #e8f5e9;
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
}

/* Botão de Finalizar Compra */
.checkout-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    width: 100%;
    padding: 18px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    transition: 0.3s;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

/* Seletores Visuais */
.selector-wrapper { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }

.chip {
    padding: 10px 20px;
    border: 2px solid var(--border);
    border-radius: 8px; /* Quadrado para sabores */
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    background: #fff;
}

.chip.circle { border-radius: 50px; } /* Círculo para pesos */

.chip.active {
    border-color: var(--primary);
    background: var(--bg-soft);
    color: var(--primary);
}

/* Esconder o select original mas mantê-lo para a lógica */
#select-sabor, #select-peso { display: none; }

/* Melhoria no Logo */
.brand-name { font-size: 28px; letter-spacing: -1px; }
.brand-info small { 
    color: var(--primary); 
    font-weight: 700; 
    letter-spacing: 3px; 
    margin-left: 2px;
}

.search-wrapper {
    flex: 1;
    max-width: 500px;
    display: flex;
    background: var(--light-bg);
    border-radius: 50px;
    padding: 5px;
    border: 1px solid #eee;
}

.search-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 20px;
    outline: none;
}

.search-wrapper button {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    white-space: nowrap;
}

.user-login {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.logo-area {
    display: flex;
    align-items: center;
    min-width: 250px; 
}

.navigation {
    background: var(--white);
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: center;
    width: 100%;
}

.nav-links {
    display: flex; 
    flex-direction: row;
    margin: 0;
    padding: 0;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a {
    padding: 15px 20px;
    display: block;
    color: var(--dark);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.nav-links > li > a:hover { color: var(--primary); }

/* ==========================================================================
   3. HERO & FEATURES
   ========================================================================== */
.hero-slider { 
    height: 350px;
    width: 100%; 
    position: relative; 
    overflow: hidden;
}

.hero-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; color: white; max-width: 700px; }

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem; /* Tamanho mais equilibrado */
    margin: 10px 0;
    line-height: 1.2;
}

.features-bar {
    max-width: 1200px;
    margin: -60px auto 60px;
    background: var(--white);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 10;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.info-blocks {
    padding: 40px 5%;
    background: #fff;
}

.info-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--bg-soft);
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.cart-item-row img {
    width: 60px;
    height: 60px;
    object-fit: cover; /* Garante que a imagem não distorça */
    background: #fdfdfd;
}

.qty-controls button:hover {
    color: var(--primary);
}

.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }

.info-card i { font-size: 2.5rem; color: var(--primary); }

.info-card h4 { margin: 0; color: var(--primary-dark); font-size: 1.1rem; }

.info-card p { margin: 5px 0 0; font-size: 0.9rem; color: #666; }

@media (max-width: 992px) { .info-container { grid-template-columns: 1fr; } }

.has-dropdown { position: relative; }

.dropdown-menu {
    display: none; 
    position: absolute;
    background: white;
    top: 100%;
    left: 0;
    min-width: 200px;
    box-shadow: var(--shadow);
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    display: block; 
}

.dropdown-menu li a:hover {
    background: #f9f9f9;
    color: var(--primary);
}

.dropdown-menu li a {
    padding: 10px 20px;
    color: var(--text);
    display: block;
    font-size: 14px;
    text-transform: none; 
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    border-right: 1px solid #eee;
}

.feature-item:last-child { border: none; }
.feature-item i { font-size: 2rem; color: var(--primary); }

/* ==========================================================================
   4. SEÇÃO DE PRODUTOS
   ========================================================================== */
.content-wrapper {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 5%;
}

.section-header { margin-bottom: 40px; }

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 10px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: transparent;
}

.product-image {
    position: relative;
    padding-top: 100%; 
    background: #fdfdfd;
}

.product-image img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 20px;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 15px;
    height: 45px;
    overflow: hidden;
}

.price-box { margin-bottom: 20px; }

.price-old {
    display: block;
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.price-current {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.cart-wrapper { position: relative; font-size: 22px; }

.badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    border: 2px solid white;
}

.add-to-cart-btn {
    appearance: none; 
    -webkit-appearance: none;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #1b5e20;
}

.productSwiper { padding: 20px 5px 70px 5px !important; }

.swiper-button-next, .swiper-button-prev {
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: var(--primary) !important;
}

/* ==========================================================================
   6. CARRINHO LATERAL (NOVO ACOPLADO)
   ========================================================================== */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
}



.cart-sidebar {
    position: fixed;
    top: 0; right: -400px;
    width: 350px; height: 100%;
    background: white;
    z-index: 2001;
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.cart-sidebar.active { 
    right: 0; 
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#close-cart { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--dark); }

.cart-items { flex: 1; padding: 20px; overflow-y: auto; }

.cart-footer { padding: 20px; border-top: 1px solid #eee; }

.total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--dark);
}

.checkout-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

/* Ajuste das Setas do Carrossel (image_da6adc.jpg) */
.productSwiper {
    padding: 20px 45px 60px !important;
    position: relative;
}

.swiper-button-next, .swiper-button-prev {
    background-color: #ffffff !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    color: #1b4332 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    top: 40% !important;
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 16px !important;
    font-weight: bold !important;
}

/* Layout do Preço igual à imagem (image_da5f3b.jpg) */
.price-box-restored {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
}

.price-retail-text {
    font-size: 11px;
    color: #888;
}

.wholesale-green-box {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
}

.wholesale-green-box strong {
    font-size: 17px;
    display: block;
}



.wholesale-label-small {
    font-size: 9px;
    color: #999;
}

/* Painel Lateral da Sacola */
.cart-sidebar {
    position: fixed;
    right: -100%;
    top: 0;
    width: 380px;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0 !important;
}

/* Cabeçalho do Carrinho */
.cart-header {
    padding: 25px;
    background: #1b5e20;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
}

#close-cart {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

#close-cart:hover {
    background: rgba(255,255,255,0.4);
    transform: rotate(90deg);
}

/* Itens do Carrinho */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item-row {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.cart-item-row img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info p {
    margin: 0 0 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.cart-item-price {
    color: #2e7d32;
    font-weight: 700;
    font-size: 1rem;
}

/* Controles de Quantidade no Carrinho */
.cart-qty-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.cart-qty-btn:hover {
    border-color: #2e7d32;
    color: #2e7d32;
}

/* Rodapé do Carrinho */
.cart-footer {
    padding: 25px;
    background: #fcfcfc;
    border-top: 1px solid #eee;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.total-row span:last-child {
    font-weight: 800;
    color: #1b5e20;
}

.checkout-btn {
    width: 100%;
    padding: 18px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
}

/* Estilo dos Modais */
.custom-modal {
    display: none; 
    position: fixed; 
    z-index: 20000; /* Acima do carrinho */
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    right: 20px; top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

.modal-body { line-height: 1.6; color: #444; }

.checkout-btn:hover {
    background: #1b5e20;
    transform: translateY(-2px);
}

/* Efeito de hover no card inteiro */
.product-card {
    transition: transform 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
}

/* FOOTER PREMIUM */
.site-footer {
    background: #232323;
    color: #e0e0e0;
    padding: 60px 0 0;
    margin-top: 80px;
    font-family: 'Montserrat', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding: 0 5% 40px;
}

.footer-logo { height: 60px; filter: brightness(1.2); }
.brand-text { color: #fff; margin-top: 10px; display: block; }
.footer-desc { font-size: 14px; line-height: 1.6; margin-top: 15px; color: #aaa; }

.footer-col h4 {
    color: var(--accent); /* Cor dourada Andremar */
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
}

.footer-links, .footer-info { list-style: none; padding: 0; }
.footer-links li, .footer-info li { margin-bottom: 12px; font-size: 14px; }
.footer-links a { color: #e0e0e0; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* FAIXA INFERIOR */
.footer-bottom {
    background: #1a1a1a;
    padding: 0px 0%;
    border-top: 1px solid #333;
}

.bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.bottom-container p { font-size: 12px; color: #777; }

.developer-credits {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 600px;
    font-size: 12px;
    color: #999;
}

.dev-logo {
    height: 100px;
    filter: grayscale(1) opacity(0.7);
    transition: 0.3s;
}

@media (max-width: 798px){
    .developer-credits {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: 0px;
        font-size: 12px;
        color: #999;
        }

        .dev-logo {
            height: 100px;
            filter: grayscale(1) opacity(0.7);
            transition: 0.3s;
        }

        .footer-bottom {
            background: #1a1a1a;
            padding: 30px 0%;
            border-top: 1px solid #333;
        }
}

.dev-logo:hover { filter: grayscale(0) opacity(1); }

/* ESTILO DOS MODAIS (POP-UPS) */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    color: #333;
    position: relative;
    max-height: 70vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    right: 20px; top: 15px;
    font-size: 28px; cursor: pointer;
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 768px) {
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .bottom-container { justify-content: center; }
}

/* ==========================================================================
   5. RESPONSIVIDADE (AJUSTADA PARA MOBILE)
   ========================================================================== */

/* Ajustes para Tablets e Telas Médias */
@media (max-width: 992px) {
    .header-container { flex-wrap: wrap; }
    .search-wrapper { order: 3; max-width: 100%; margin-top: 10px; } /* Busca vai para baixo se necessário */
    .features-bar { grid-template-columns: 1fr; margin: 20px 5%; }
    .feature-item { border-right: none; border-bottom: 1px solid #eee; padding: 20px 0; }
    .info-container { grid-template-columns: 1fr; }
}

/* Ajustes para Celulares (iPhone/Android) */
@media (max-width: 768px) {
    /* Header: Mantém tudo, mas reduz tamanhos para caber */
    .header-container { padding: 10px; gap: 10px; }
    .brand-wrapper img { height: 40px; }
    .brand-name { font-size: 18px; }
    .logo-area { min-width: auto; }
    .header-actions { gap: 10px; }
    .user-login { font-size: 12px; }

    /* Busca Mobile */
    .search-wrapper { display: flex; max-width: 100%; margin-bottom: 5px; }

    /* Navegação: Transforma em lista vertical rolável horizontalmente */
    /* Isso impede que os links cubram a logo */
    .navigation { overflow-x: auto; justify-content: flex-start; }
    .nav-links > li > a { padding: 10px 15px; font-size: 12px; white-space: nowrap; }

    /* Banner: Ajusta textos e imagem de fundo */
    .hero-premium {
        height: 60vh;
        min-height: 400px;
        padding: 0 5%;
        justify-content: center;
        text-align: center;
        background-position: center;
    }

    .hero-title { font-size: 28px; line-height: 1.2; }
    .hero-description { font-size: 14px; margin-bottom: 20px; }
    
    .hero-actions { 
        flex-direction: column; 
        width: 100%; 
        gap: 10px; 
    }

    .btn-hero-primary, .btn-hero-secondary { 
        width: 100%; 
        padding: 15px; 
        text-align: center;
    }

    /* Carrinho lateral ocupa a tela toda no celular */
    .cart-sidebar { width: 100%; right: -100%; }
    
    /* Remove o recuo negativo dos diferenciais para não cortar no mobile */
    .features-bar { margin: 20px 5%; padding: 15px; }
}

.checkout-btn:hover { background: var(--dark); }

/* ==========================================================================
   5. RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 992px) {
    .features-bar { grid-template-columns: 1fr; margin: 20px 5%; }
    .feature-item { border-right: none; border-bottom: 1px solid #eee; padding: 20px 0; }
    .hero-content h1 { font-size: 2.5rem; }
    .search-wrapper { display: none; }
    .cart-sidebar { width: 100%; right: -100%; } /* Ocupa tela toda no mobile */
}