:root {
    /* Paleta de Cores: Vibrantes e Apetitosas */
    --primary-color: #ff6b6b; /* Vermelho/Coral vibrante */
    --primary-hover: #fa5252;
    --secondary-color: #fcc419; /* Amarelo Mostarda para detalhes */
    --accent-color: #20c997; /* Verde Água para sucesso/novidade */
    
    --text-dark: #343a40;
    --text-light: #868e96;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden; /* Evita rolagem lateral no celular */
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container Responsivo */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: rgba(255, 255, 255, 0.95); /* Aumentei um pouco a opacidade */
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Adicionado wrap para permitir quebra de linha no celular */
    flex-wrap: wrap; 
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white !important; /* Força cor branca no texto */
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* Grid de Produtos Responsivo */
.products-grid {
    display: grid;
    /* Ajuste inteligente: cria colunas de no mínimo 260px */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

/* Card de Produto */
.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column; /* Garante altura igual */
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.product-image {
    height: 220px;
    width: 100%;
    object-fit: cover;
    background-color: #eee;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limita a 2 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    width: 100%;
}

.price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    flex-direction: column; /* Preço antigo em cima do novo */
    line-height: 1.2;
}

/* CORREÇÃO DO ERRO DO RISCO:
   Removi o text-decoration: line-through global dos spans.
   Agora isso é controlado pelo PHP inline ou classes específicas.
*/
.price span {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--text-light);
    margin-right: 0;
}

/* --- MEDIA QUERIES (RESPONSIVIDADE) --- */

@media (max-width: 768px) {
    /* Ajustes do Header no Celular */
    .nav-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav-links a {
        margin: 0; /* Remove margem lateral fixa */
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 8px 20px; /* Botões menores */
    }

    /* --- MEDIA QUERIES (RESPONSIVIDADE) --- */

@media (max-width: 768px) {
    /* Ajustes do Header no Celular */
    .nav-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav-links a {
        margin: 0;
        font-size: 0.95rem;
    }
    
    /* --- MUDANÇA PRINCIPAL AQUI --- */
    /* Grid de Produtos: 1 Coluna (Um abaixo do outro) */
    .products-grid {
        display: grid;
        grid-template-columns: 1fr; /* Força 1 coluna ocupando tudo */
        gap: 20px; /* Espaço entre um produto e outro */
        padding: 20px 0;
    }

    /* Ajuste da imagem para ficar bonita em tela cheia */
    .product-image {
        height: 200px; /* Volta a ser grande para destacar a foto */
        width: 100%;
        object-fit: cover;
    }

    /* Ajustes de fonte */
    .product-title {
        font-size: 1.2rem;
    }

    .card-content {
        padding: 15px;
    }
    
    /* Botão ocupa a largura disponível para facilitar o toque */
    .btn-primary {
        width: 100%; 
        padding: 10px;
        margin-top: 10px;
    }
    
    .price-row {
        flex-wrap: wrap; /* Permite que o preço fique em cima e botão embaixo se precisar */
        gap: 10px;
    }
}