/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Encabezado */
header {
    background: #004d25;
    color: white;
    padding: 20px;
}

/* Categorías */
.categories {
    margin: 20px 0;
}

button {
    background: #004d25;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background: #00391a;
}

/* Productos */
.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.product {
    background: white;
    margin: 10px;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 200px;
}
.product img {
    width: 100%; /* Ajusta la imagen al ancho del contenedor */
    max-width: 250px; /* Máximo ancho permitido */
    height: auto; /* Mantiene la proporción */
    object-fit: contain; /* Asegura que la imagen no se recorte */
    border-radius: 5px;
    display: block;
    margin: 0 auto; /* Centra la imagen dentro del contenedor */
}

/* Carrito */
.cart {
    margin-top: 20px;
    padding: 20px;
}
/* Ajustes generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Estilos para los productos */
.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.product {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 250px;
    text-align: center;
}

.product img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

/* Hacer la tienda responsiva */
@media (max-width: 768px) {
    .product-list {
        flex-direction: column;
        align-items: center;
    }
    
    .product {
        width: 90%;
        max-width: 300px;
    }
}
