/* ======================== */
/* ESTRUTURA E ORGANIZAÇÃO (GRID) */
/* ======================== */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.product-grid-container {
    max-width: 1200px; /* Limita a largura da área de produtos */
    margin: 20px auto; /* Centraliza no meio da página */
    padding: 0 15px;
    /* Configuração da Grelha (Grid) */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 3 ou 4 colunas em telas maiores, ajustável */
    gap: 25px; /* Espaço entre os cartões */
}

.page-title {
    grid-column: 1 / -1; /* O título ocupa toda a largura da grelha */
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 2.5em;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
}

/* ======================== */
/* ESTILO DO CARD (PRODUTO) */
/* ======================== */

.product-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    
    /* Propriedades para o efeito hover */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* === EFEITO HOVER NO CARD === */
.product-card:hover {
    /* 1. Eleva o card (move ligeiramente para cima) */
    transform: translateY(-5px); 
    /* 2. Aumenta a intensidade da sombra (efeito "pop-out") */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
    cursor: pointer; /* Muda o cursor para indicar que é clicável */
}
/* ============================= */

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.product-details {
    padding: 15px;
    text-align: center;
}

.product-title {
    font-size: 1.5em;
    color: #0056b3;
    margin-top: 5px;
    margin-bottom: 10px;
}

.product-description {
    color: #555;
    font-size: 0.9em;
    line-height: 1.4;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.8em;
    color: #28a745;
    font-weight: bold;
    margin-bottom: 15px;
}

.add-to-cart-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    width: 100%;
}

.add-to-cart-btn:hover {
    background-color: #0056b3;
}

/* ======================== */
/* ESTILO DO CABEÇALHO (Opcional, mas recomendado) */
/* ======================== */

.minimal-header {
    background-color: #333;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.header-logo {
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.header-nav li {
    margin-left: 20px;
}

.header-nav a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.header-nav a:hover {
    color: #007bff; /* Efeito hover nos links */
}