/* Estilos Gerais */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 60px 20px;
    background-color: #007bff;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
}

header p {
    font-size: 1.2rem;
}

/* Container de Produtos */
.products-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px; /* Limita a largura máxima para telas grandes */
}

/* Boxes de Produtos */
.product-box {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    flex: 1 1 300px; /* Flexbox para responsividade */
    transition: transform 0.3s ease-in-out;
}

.product-box:hover {
    transform: translateY(-5px); /* Efeito de elevação ao passar o mouse */
}

.product-box img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-box h2 {
    font-size: 1.5rem;
    color: #007bff;
    margin: 10px 0;
}

.product-box p {
    font-size: 1rem;
    color: #666;
}

/* --- Botões de Compra --- */
.buy-button {
    display: inline-block;
    background-color: #28a745; /* Cor verde para chamar a atenção */
    color: white;
    padding: 12px 25px;
    margin-top: 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.buy-button:hover {
    background-color: #218838; /* Escurece o botão ao passar o mouse */
}

/* Responsividade com Media Queries */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .products-container {
        flex-direction: column; /* Coloca os boxes em coluna em telas menores */
        align-items: center;
    }

    .product-box {
        width: 90%; /* Ocupa a maior parte da tela em dispositivos móveis */
        margin-bottom: 20px;
    }
}