:root {
    --primary-color: #217346;    /* Verde Excel Profissional */
    --accent-color: #1a5c38;     /* Verde Escuro */
    --footer-bg: #103820;
    --bg-color: #f8faf9;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Carrinho Lateral Profissional */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 25px;
    background: #2c3e50;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    background: rgba(255,255,255,0.2);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #fdfdfd;
}

/* Item do Carrinho Estilizado */
.cart-item {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
    align-items: center;
    border: 1px solid #f0f0f0;
    transition: 0.2s;
}

.cart-item:hover {
    border-color: #27ae60;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.cart-item img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 8px;
    background: #f9f9f9;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    color: #333;
    font-weight: 600;
}

.cart-item-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #27ae60;
    font-weight: 700;
}

.btn-remove {
    background: #fff5f5;
    color: #ff4d4d;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-remove:hover {
    background: #ff4d4d;
    color: #fff;
}

/* Rodapé do Carrinho */
.cart-footer {
    padding: 25px;
    border-top: 1px solid #eee;
    background: #fff;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.total-label {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
}

.total-price {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 800;
}

.btn-checkout {
    width: 100%;
    background: #27ae60;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-checkout:hover {
    background: #219150;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.2);
}

@media (max-width: 450px) {
    .cart-sidebar { width: 100%; right: -100%; }
}

.header-title { display: flex; align-items: center; gap: 12px; }
.header-title i { font-size: 1.2rem; }
.header-title h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }

/* --- HEADER --- */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 0.8rem;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-links a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    opacity: 0.9;
}

/* Main Nav */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

.logo-box {
    background: transparent; 
    width: auto;          
    height: 50px;      
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;      
}

.main-logo {
    height: 100%;        
    width: auto;           
    object-fit: contain;   
}

.logo-text {
    margin-left: 5px;
    font-weight: 700;
    font-size: 1.2rem;
    white-space: nowrap;     
}

.logo-text span { color: var(--primary-color); font-weight: 400; }

/* Busca */
.search-bar {
    flex: 1;
    display: flex;
    background: #f1f3f2;
    border-radius: 50px;
    padding: 5px 15px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.search-bar:focus-within {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(33, 115, 70, 0.1);
}

.search-bar input {
    border: none;
    background: transparent;
    padding: 10px;
    width: 100%;
    outline: none;
}

.search-bar button {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

/* Ícones */
.nav-icons { display: flex; gap: 25px; }

.nav-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.7rem;
    font-weight: 600;
}

.carousel-background-box {
    background-color: #f0f4f2; 
    padding: 80px 40px; /* Padding maior para respirar */
    border-radius: 40px; /* Bordas arredondadas no retângulo principal */
}

.carousel-wrapper {
    background-color: #ffffff; /* Ou use uma cor leve como #f0f4f2 */
    padding: 40px 60px; /* Padding maior nas laterais para as setas caberem */
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(33, 115, 70, 0.1); /* Borda verde bem sutil */
}

.nav-icon-item i { font-size: 1.4rem; color: var(--primary-color); margin-bottom: 2px; }

.icon-badge-wrapper { position: relative; }

#cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #e67e22;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Abas de Categorias */
.category-menu {
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #f5f5f5;
    width: 100%;
}

.category-menu li {
    display: block;           /* GARANTE QUE O LI NÃO QUEBRE A LINHA */
}

.category-menu ul {
    display: flex;            /* FORÇA OS ITENS A FICAREM LADO A LADO */
    justify-content: center;  /* CENTRALIZA O MENU */
    list-style: none;         /* REMOVE AS BOLINHAS DA LISTA */
    gap: 40px;                /* ESPAÇO ENTRE OS LINKS */
    padding: 18px 0;
    margin: 0;
}

.category-menu a {
    text-decoration: none;
    color: #444;
    font-size: 0.85rem;
    font-weight: 500;         /* PESO DE FONTE MAIS ELEGANTE */
    text-transform: uppercase;
    letter-spacing: 1.5px;    /* ESPAÇAMENTO DE MARCA PREMIUM */
    position: relative;
    transition: 0.3s ease;
}

.category-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -8px;
    left: 0;
    background-color: var(--primary-color);
    transition: 0.3s ease;
}

.category-menu a:hover::after, 
.category-menu a.active::after {
    width: 100%;
}

.category-menu a:hover, .category-menu a.active { color: var(--primary-color); }

@media (max-width: 768px) {
    .category-menu ul {
        gap: 15px;
        flex-wrap: wrap;      /* PERMITE QUEBRA SE O CELULAR FOR MUITO PEQUENO */
        padding: 10px;
    }
    .category-menu a {
        font-size: 0.7rem;
    }
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 550px; 
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    overflow: hidden;
    padding: 0 10%; 
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    animation: fadeBanner 10s infinite;
}

/* Imagem 1: Começa visível e some na metade do tempo */
.img-1 {
    background-image: url('./img/banner1.jpeg');
    animation: fade1 10s infinite;
}

/* Imagem 2: Começa invisível e aparece na metade do tempo */
.img-2 {
    background-image: url('./img/banner2.jpeg');
    animation: fade2 10s infinite;
}

/* Animação para a Imagem 1 */
@keyframes fade1 {
    0%, 45% { opacity: 1; }  /* Fica visível por quase 5s */
    50%, 95% { opacity: 0; } /* Some para a outra aparecer */
    100% { opacity: 1; }     /* Volta a aparecer */
}

/* Animação para a Imagem 2 */
@keyframes fade2 {
    0%, 45% { opacity: 0; }  /* Fica invisível enquanto a 1 aparece */
    50%, 95% { opacity: 1; } /* Fica visível por quase 5s */
    100% { opacity: 0; }     /* Some para a 1 voltar */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5); /* Sombra suave nas letras */
}

.hero-badge {
    background: var(--primary-color);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.hero h1 {
    font-size: 4.2rem; 
    letter-spacing: -1px;
    margin-bottom: 25px;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 40px;
    border-left: 3px solid var(--primary-color); /* Um detalhe visual na lateral */
    padding-left: 20px;
}

.btn-primary-large {
    background-color: #217346; /* Verde Excel do seu tema */
    color: white;
    border: 2px solid #217346;
    padding: 15px 40px;
    border-radius: 50px; /* Bordas arredondadas para ar moderno */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary-large:hover {
    background-color: #1a5c38;
    border-color: #1a5c38;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(33, 115, 70, 0.3);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: white;
    color: #217346;
}

.swiper-container-wrapper {
    position: relative;
    padding: 0 60px; /* Espaço para as setas fora do swiper */
}

/* --- PRODUTOS & CONTAINER --- */
.container {
    overflow: visible; 
}

@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 30px 20px;
    }
    .swiper-button-next, 
    .swiper-button-prev {
        display: none; /* Em celulares, o scroll por toque costuma ser melhor */
    }
}

.header-premium {
    text-align: center;
    padding: 30px 20px; /* Mais espaço para respirar */
}

.header-premium h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.graobanner {
    position: relative;
    left: -100px;
}

.btn-checkout {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-checkout:hover {
    background: var(--accent-color);
    box-shadow: 0 8px 20px rgba(33, 115, 70, 0.3);
}

.header-premium .divider {
    width: 50px;
    height: 3px;
    background-color: #2E7D32; /* O verde da sua marca */
    margin: 0 auto 20px;
}

.header-premium p {
    font-size: 16px;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

/* Reaproveitando seus estilos de Product Card com melhorias */
.product-card img {
    width: 100%;
    height: 220px;          /* Altura fixa para manter o alinhamento */
    object-fit: contain;    /* GARANTE QUE O PRODUTO APAREÇA INTEIRO */
    background-color: #fff;
    padding: 15px;          /* Margem interna para o produto não tocar nas bordas */
    border-radius: 12px;
    display: block;
    margin: 0 auto 15px;    /* Centraliza e dá espaço para o texto abaixo */
}

.product-card:hover {
    transform: translateY(-15px) !important;
    box-shadow: 0 20px 40px rgba(33, 115, 70, 0.12) !important;
}

.developer-signature {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.4; /* Deixa a logo do dev bem discreta */
    transition: 0.3s;
}

.developer-row {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.developer-signature span {
    font-size: 0.65rem;
    letter-spacing: 2px;
}

.developer-signature:hover {
    opacity: 1;
}

.dev-logo {
    height: 90px; /* Tamanho elegante para a logo */
    width: auto;
}

.dev-logo:hover {
    transform: scale(1.1); /* Efeito de zoom ao passar o mouse */
    opacity: 1;
}

@media (max-width: 768px) {
    .developer-signature {
        align-items: center; /* Centraliza no celular */
    }
}

/* --- CARRINHO SIDEBAR --- */
.cart-sidebar {
    position: fixed;
    right: -100%; /* Garante que comece totalmente fora da tela */
    top: 0;
    width: 380px;
    height: 100%;
    background: #fff;
    z-index: 2001;
    transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}

/* Garante que todos os slides tenham a mesma altura */
.swiper-slide {
    height: auto;
    display: flex;
}

/* Container do Swiper com espaço para a paginação */
.mySwiper {
    position: relative;
    padding: 0 20px 50px 20px !important; /* Espaço lateral para setas e inferior para bolinhas */
}

/* Estilização e posicionamento das bolinhas */
.swiper-pagination {
    bottom: 0px !important; /* Ajusta a posição vertical */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* Customização das bolinhas para parecerem mais modernas */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc; /* Cor das bolinhas inativas */
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important; /* Verde do seu tema */
    width: 25px; /* Efeito de pílula na bolinha ativa */
    border-radius: 5px;
}

.swiper-button-next, 
.swiper-button-prev {
    background-color: #ffffff; /* Fundo branco para contraste */
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%; /* Botão circular */
    color: var(--primary-color) !important; /* Cor verde do seu tema */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Sombra suave */
    transition: all 0.3s ease;
    z-index: 10;
    
    /* Centralização vertical precisa */
    top: 40% !important; 
    margin-top: 0 !important;
}

.swiper-button-prev {
    left: 10px !important;
}

.swiper-button-next {
    right: 10px !important;
}

.swiper-button-next:after, 
.swiper-button-prev:after {
    font-size: 1.2rem !important;
    font-weight: bold;
}



.swiper-button-next:hover, 
.swiper-button-prev:hover {
    background-color: var(--primary-color); /* Inverte a cor no hover */
    color: #ffffff !important;
    transform: scale(1.1); /* Aumenta levemente */
}

/* --- MODAL (POP-UP) --- */
.modal {
    display: none; 
    position: fixed;
    z-index: 99999; /* Aumentado para garantir prioridade */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8); /* Fundo um pouco mais escuro */
    align-items: center; /* Centraliza verticalmente */
    justify-content: center; /* Centraliza horizontalmente */
}

.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 550px;
    position: relative;
    color: #333;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    text-align: left;
    margin: 0; /* Removido o margin auto do método antigo */
}

.remove-btn {
    color: #ff5252;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
}

.close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover { background: rgba(255,255,255,0.4); transform: rotate(90deg); }

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

.product-card {
    background: #eee;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    width: 100%; /* Ocupa toda a largura do slide */
    transition: 0.3s ease;
    height: 100%;
}

/* Container Principal */
.double-banners-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.banners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Base do Card com Efeito de Profundidade */
.b-card {
    height: 320px;
    border-radius: 40px; /* Bordas bem arredondadas estilo DaFoods */
    position: relative;
    padding: 45px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

/* Efeito de Escala ao passar o mouse */
.b-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* Gradientes Vibrantes */
.b-purple { background: linear-gradient(135deg, #4b1d4b 0%, #8e44ad 100%); }
.b-green { background: linear-gradient(135deg, #7bb31a 0%, #a2d149 100%); }

/* Elemento de fundo (Círculo abstrato) para dar "vida" */
.bg-shape {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
    transition: 0.6s;
}

.b-card:hover .bg-shape { transform: scale(1.5); }

/* Badge estilizada */
.b-badge {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.b-text { z-index: 3; flex: 1.2; }
.b-text h2 { font-size: 3.2rem; font-weight: 900; line-height: 1; margin: 10px 0; }

/* Botão Link */
.b-btn-link {
    background: none;
    border: none;
    color: white;
    font-weight: 700;
    padding: 0;
    margin-top: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.b-btn-link i { transition: 0.3s; }
.b-card:hover .b-btn-link i { transform: translateX(5px); }

/* Ajuste da Imagem para flutuar */
.b-img { flex: 1; z-index: 3; display: flex; justify-content: center; }
.b-img img {
    max-height: 240px;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.25));
    animation: float 4s ease-in-out infinite; /* Efeito de flutuação */
}

.b-card:hover .b-img {
    transform: scale(1.1) rotate(5deg);
}

/* Animação de Flutuação */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Mobile */
@media (max-width: 900px) {
    .banners-grid { grid-template-columns: 1fr; }
    .b-card { height: 280px; padding: 30px; }
}

/* PADRONIZAÇÃO DA IMAGEM */
.product-card img {
    width: 100%;
    height: 200px; /* Altura fixa para todas */
    object-fit: contain; /* Corta a imagem sem distorcer para preencher o espaço */
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #f9f9f9; /* Fundo caso a imagem demore a carregar */
}

/* PADRONIZAÇÃO DO TEXTO */
.product-card h3 {
    font-size: 1rem;
    color: #333;
    margin: 10px 0;
    color: var(--text-dark);
    height: 2.4em; /* Reserva espaço para até 2 linhas de texto */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    height: 50px;
}

.price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: auto; /* Empurra o preço e o botão para o rodapé do card */
    margin-bottom: 12px;
    padding-top: 15px;
}

/* Ajuste nos botões para não ficarem colados */
.btn-add {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
}

.btn-add-modern {
    background-color: #f0f7f2; /* Fundo verde muito claro */
    color: #217346;
    border: 1px solid #217346;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-add-modern:hover {
    background-color: #217346;
    color: white;
}

.btn-add-modern i {
    font-size: 1.1rem;
}

.cart-sidebar.active {
    right: 0;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fafafa;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    background: #f9f9f9;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    background: #f1f1f1;
    border-radius: 20px;
    padding: 2px 8px;
    width: fit-content;
    margin: 5px 0;
}

.cart-item-controls button {
    background: none;
    border: none;
    color: #2e7d32; /* Verde da sua marca */
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 8px;
    transition: transform 0.2s;
}

.cart-item-controls button:hover {
    transform: scale(1.2);
}

.cart-item-controls span {
    font-size: 14px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    color: #333;
}

.delete-btn {
    background: #fff5f5; /* Fundo avermelhado bem sutil */
    color: #e53935;     /* Vermelho elegante */
    border: none;
    border-radius: 8px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto; /* Joga para a direita */
}

.delete-btn:hover {
    background: #e53935;
    color: white;
}

.cart-item-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 2px 8px;
    gap: 10px;
}

.cart-quantity-controls button {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: #2e7d32; /* Seu verde principal */
    font-size: 16px;
}

.cart-quantity-controls span {
    font-size: 14px;
    min-width: 20px;
    text-align: center;
}

.cart-header {
    padding: 25px;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer {
    background-color: #103820; /* Verde escuro profundo */
    color: #ffffff;
    padding: 60px 0 20px;
    font-family: 'Poppins', sans-serif;
}

.footer-nav-links {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.footer-nav-links a {
    color: rgba(255, 255, 255, 0.6); /* Branco suave para não distrair */
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.footer-nav-links a:hover {
    color: #ffffff;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Garante que não quebre em telas menores */
    gap: 20px;
}

/* Bloco da Esquerda: Logo e Nome */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-box {
    background: #217346;
    color: white;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.5rem;
}

.footer-info h3 {
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.footer-info p {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Bloco Central: Copyright */
.footer-center {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* =========================================
   SISTEMA DE PROMOÇÕES (PARA INDEX E PROMO)
   ========================================= */

:root {
    --promo-red: #e74c3c;
    --dark-green: #1b4d3e;
}

/* Badge de Desconto no Canto do Card */
.badge-promo {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--promo-red);
    color: white;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Container de Preço para Alinhamento Vertical */
.price-container {
    margin: 15px 0;
    min-height: 65px; /* Altura fixa para manter botões alinhados */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Preço Antigo (Riscado) */
.old-price {
    text-decoration: line-through;
    color: #a0a0a0;
    font-size: 0.85rem;
    margin-bottom: 2px;
    display: block;
}

/* Preço Atual em Destaque */
.price {
    color: var(--promo-red);
    font-weight: 800;
    font-size: 1.4rem;
    margin: 0;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Container de Variações */
.variations-container {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.variant-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s;
    font-weight: bold;
}

.variant-btn.active {
    border-color: #27ae60;
    background: #27ae60;
    color: white;
}

/* Tabela Nutricional Estilizada */
.nutrition-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 5px solid #27ae60;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.fly-item {
    position: fixed;
    z-index: 9999;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.42, 0, 0.58, 1); /* Curva de movimento suave */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

:root {
    --primary: #27ae60;
    --dark: #2d3436;
    --light-bg: #f9f9f9;
}

.product-page { max-width: 1200px; margin: 40px auto; padding: 20px; }
.container-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; }

/* Imagem */
.image-wrapper { 
    background: var(--light-bg); 
    border-radius: 20px; 
    padding: 40px; 
    text-align: center;
    border: 1px solid #eee;
}
.image-wrapper img { max-width: 100%; transition: transform 0.3s; }
.image-wrapper img:hover { transform: scale(1.05); }

/* Preços */
.price-section { display: flex; align-items: center; gap: 20px; margin: 20px 0; }
.price-main .value { font-size: 2.5rem; font-weight: 800; color: var(--dark); }
.total-badge { background: #e8f5e9; color: var(--primary); padding: 8px 15px; border-radius: 50px; font-weight: 600; }

/* Botões de Opção (Peso/Sabor) */
.options-flex, .options-grid { display: flex; gap: 10px; margin-top: 8px; }
.opt-btn { 
    border: 2px solid #ddd; padding: 10px 20px; border-radius: 8px; 
    cursor: pointer; background: white; font-weight: 600; transition: 0.2s;
}
.opt-btn.active { border-color: var(--primary); color: var(--primary); background: #f0fff4; }

/* Botão de Compra */
.buy-box { display: flex; gap: 15px; margin-top: 30px; }
.qty-selector { display: flex; border: 2px solid #eee; border-radius: 10px; overflow: hidden; }
.qty-selector button { width: 45px; border: none; background: #f4f4f4; cursor: pointer; }
.qty-selector input { width: 50px; text-align: center; border: none; font-weight: bold; }

.btn-purchase { 
    flex: 1; background: var(--primary); color: white; border: none; 
    border-radius: 10px; font-weight: 700; letter-spacing: 1px; cursor: pointer;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

/* GAVETA DO CARRINHO - DESIGN PROFISSIONAL */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%; /* Escondido totalmente */
    width: 380px;
    max-width: 90%;
    height: 100vh;
    background: #fff;
    z-index: 3000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0; /* Desliza para dentro */
}

.cart-sidebar-header {
    padding: 20px;
    background: #27ae60;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-sidebar-header h3 { margin: 0; font-size: 1.2rem; }

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

#cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    z-index: 2999;
}

#cart-overlay.active { display: block; }

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.cart-sidebar-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.cart-sidebar {
    right: -100%; /* Escondido */
    transition: 0.3s;
}
.cart-sidebar.active {
    right: 0; /* Visível */
}
.cart-overlay.active {
    display: block;
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}
.btn-purchase:hover { background: #219150; transform: translateY(-2px); }

/* Tabela */
.nutrition-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.nutrition-table td { padding: 12px; border-bottom: 1px solid #eee; }
.nutrition-table tr:nth-child(odd) { background: #fafafa; }

.nutrition-item {
    font-size: 0.9rem;
    color: #555;
    padding: 5px;
    border-bottom: 1px solid #eee;
}

.footer-center-content {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
}

/* Bloco da Direita: Links e Social */
.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

/* --- VITRINE PREMIUM (SWIPER) --- */

.carousel-background-box {
    background: #ffffff;
    padding: 80px 0; /* Espaçamento maior = Luxo */
    margin: 20px auto;
    max-width: 1400px;
}

/* Cabeçalho da Seção */
.header-premium {
    text-align: center;
    margin-bottom: 60px;
}

.header-premium h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.header-premium .divider {
    width: 40px;
    height: 3px;
    background: #c29958; /* Dourado sóbrio */
    margin: 0 auto 20px;
    border-radius: 2px;
}

.header-premium p {
    color: #717171;
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* Estrutura do Card */
.product-card {
    background: #fff;
    border-radius: 16px;
    padding: 12px; /* Padding interno menor para destacar a imagem */
    border: 1px solid #f2f2f2;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Sombra Orgânica no Hover */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: #e0e0e0;
}

/* Área da Imagem */
.product-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Mantém quadrado perfeito */
    border-radius: 12px;
    overflow: hidden;
    background: #fdfdfd;
    margin-bottom: 20px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.product-card:hover .product-img img {
    transform: scale(1.08);
}

/* Informações do Produto */
.product-info {
    padding: 0 8px 12px;
}

.category-tag {
    font-size: 0.65rem;
    color: #c29958;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: block;
    margin-bottom: 8px;
}

.product-info h3 {
    font-size: 1.15rem;
    color: #1a1a1a;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limita a 2 linhas para manter o grid perfeito */
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.2em;
}

.product-info .price {
    font-size: 1.35rem;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
}

.product-info .price::before {
    content: 'R$';
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 4px;
}

/* Botão Minimalista */
.btn-add {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-add:hover {
    background: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-add i {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Controles do Swiper (Setas externas e limpas) */
.swiper-container-wrapper {
    position: relative;
    padding: 0 50px; /* Dá espaço para as setas nas laterais */
}

.swiper-button-next, 
.swiper-button-prev {
    width: 48px !important;
    height: 48px !important;
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 50% !important;
    color: #1a1a1a !important;
    transition: all 0.3s ease !important;
}

.swiper-button-next:after, 
.swiper-button-prev:after {
    font-size: 16px !important;
    font-weight: 900 !important;
}

.swiper-button-next:hover, 
.swiper-button-prev:hover {
    background: #1a1a1a !important;
    color: #fff !important;
    border-color: #1a1a1a !important;
}

/* Paginação (Pontinhos) */
.swiper-pagination {
    bottom: -40px !important;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ddd;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #1a1a1a !important;
    width: 24px; /* Efeito pill no ativo */
    border-radius: 4px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #4ade80; /* Verde limão suave no hover */
}

.footer-social {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-social i {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: 0.3s;
}

.footer-social i:hover {
    color: #217346; /* Verde principal no hover */
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

/* Ajuste Responsivo para Celulares */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand {
        flex-direction: column;
    }
    
    .footer-links {
        align-items: center;
    }
}

.cart-footer { padding: 20px; background: #f9f9f9; border-top: 1px solid #eee; }

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .main-nav { grid-template-columns: 1fr; flex-direction: column; gap: 15px; }
    .search-bar { order: 3; width: 100%; }
    .hero h1 { font-size: 2.5rem; }
    .category-menu { display: none; } /* Esconde categorias no mobile para simplificar */
}