:root {
    --primary: #dc3545; /* Vermelho */
    --secondary: #0d6efd; /* Azul */
    --light: #f8f9fa; /* Branco */
    --dark: #212529;
}
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #fff; margin: 0; padding: 0; }

/* --- HERO BANNER (Mantido Grande) --- */
.hero, .hero-dynamic {
    width: 100%;
    height: 75vh;
    background-size: cover;
    background-position: center;
    background-color: var(--secondary);
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.hero::before, .hero-dynamic::before {
    content: ''; position: absolute; top:0; left:0; right:0; bottom:0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
    
}

/* --- MENU (Rodapé do Banner) --- */
.hero-nav {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.95);
    width: 90%;
    max-width: 1000px; /* Limita a largura do menu também */
    border-radius: 15px 15px 0 0;
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 30px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}
.nav-item { text-decoration: none; color: var(--secondary); font-weight: bold; display: flex; flex-direction: column; align-items: center; transition: 0.3s; font-size: 0.9rem; }
.nav-item i { font-size: 1.3rem; margin-bottom: 5px; color: var(--primary); }
.nav-item:hover { transform: translateY(-5px); color: var(--primary); }

/* --- CORPO DO SITE (Ajustado para ter margens) --- */
.container-fluid { 
    padding: 40px 20px;
    max-width: 1100px; /* AQUI ESTÁ O SEGREDO: Limita a largura total */
    margin: 0 auto;    /* Centraliza o bloco, criando as margens laterais */
}

/* --- GRID DE PRODUTOS --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 colunas */
    gap: 15px; /* Espaço menor entre produtos */
}
/* Responsividade do Grid */
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 450px) { .product-grid { grid-template-columns: 1fr; } }

/* --- CARD DO PRODUTO (Versão Compacta) --- */
.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); }

/* Caixa da Imagem MENOR */
.prod-img-box { 
    height: 160px; /* Altura reduzida (era 250px) */
    overflow: hidden; 
    position: relative; 
    cursor: pointer; 
}
.prod-img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.product-card:hover .prod-img-box img { transform: scale(1.1); }

/* Corpo do Card MENOR */
.card-body { padding: 10px; text-align: center; }

.card-body h3 {
    font-size: 0.95rem; /* Fonte do título menor */
    margin: 5px 0;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; /* Corta texto muito longo com ... */
    color: var(--dark);
}

.price-tag { 
    color: var(--primary); 
    font-size: 1.1rem; 
    font-weight: bold; 
    margin: 5px 0; 
}

.text-muted { font-size: 0.8rem; color: #6c757d; margin: 0; }

/* Botão Zap Compacto */
.btn-whatsapp {
    background: #25D366; color: white; border: none; 
    padding: 6px 15px; /* Botão mais fino */
    font-size: 0.9rem;
    border-radius: 50px; text-decoration: none; display: inline-block; width: 90%;
    margin-top: 5px;
}
.btn-whatsapp:hover { background: #128C7E; color: white; }

/* --- MODAIS E UTILITÁRIOS --- */
.modal-overlay { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.9); z-index: 1000; justify-content: center; align-items: center; }
.modal-content { max-width: 90%; max-height: 90%; position: relative; }
.modal-img { max-height: 80vh; max-width: 100%; border: 4px solid white; }
.close-modal { position: absolute; top: 20px; right: 20px; color: white; font-size: 30px; cursor: pointer; }

/* Painel Admin e Formulários */
.admin-panel { max-width: 800px; margin: 50px auto; padding: 20px; background: white; border-radius: 10px; box-shadow: 0 0 20px rgba(0,0,0,0.1); }
.form-group { margin-bottom: 15px; }
.form-control { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box; }
.btn-primary { background: var(--secondary); color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; text-decoration: none; display: inline-block;}
.btn-danger { background: var(--primary); color: white; border: none; padding: 5px 10px; border-radius: 5px; text-decoration: none; cursor: pointer; }
