/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #f9f9f9;
    --text-dark: #333;
    --primary-color: #1a202c;
    --success-color: #2d5a27;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- GRID DE PRODUTOS RESPONSIVO --- */
#produtos-container {
    display: grid;
    /* No mobile: 2 colunas para caber mais produtos na tela */
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px;
    padding: 20px 0;
}

/* --- CARD DO PRODUTO --- */
.produto-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.produto-img-container img {
    width: 100%;
    height: 180px; /* Altura fixa para manter o padrão */
    object-fit: cover;
}

.produto-info {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.produto-info h3 {
    font-size: 0.9rem; /* Fonte menor para não quebrar no mobile */
    margin-bottom: 8px;
    min-height: 2.4em; /* Reserva espaço para 2 linhas de texto */
}

.produto-preco {
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* --- SELETORES E BOTÕES --- */
.select-personalizado {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.85rem;
}

.btn-comprar {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

/* --- RESPONSIVIDADE (TABLETS E DESKTOP) --- */
@media (max-width: 480px) {
    #produtos-container {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas em celulares pequenos */
        gap: 10px;
        padding: 10px;
    }
    
    .produto-img-container img {
        height: 150px; /* Imagem menor no celular */
    }
}

@media (min-width: 768px) {
    #produtos-container {
        grid-template-columns: repeat(3, 1fr); /* 3 colunas em tablets */
    }
    
    .container {
        padding: 0 10px;
    }
}

@media (min-width: 1024px) {
    #produtos-container {
        grid-template-columns: repeat(4, 1fr); /* 4 colunas em monitores */
    }
}