/* --- Banner de la Categoría --- */
.category-banner {
    display: flex;
    height: 350px;
    background-color: #3f1e1f; /* Un color de fondo oscuro */
    color: #f1eeea;
}

.category-info {
    flex: 1; /* Ocupa la mitad del espacio */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
}

.category-info h1 {
    font-family: Lora, serif;
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-size: 36px;
}

.category-info p {
    font-size: 16px;
    max-width: 500px;
}

.category-image {
    flex: 1; /* Ocupa la otra mitad */
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra el espacio sin deformarse */
}

/* --- Grid de Productos --- */
.product-section {
    padding: 2rem 5%; /* Padding a los lados */
}

.product-grid {
    display: grid;
    /* Crea columnas automáticas. Cada una de mínimo 280px */
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem; /* Espacio entre productos */
}

/* Hacemos que sea responsive para pantallas más pequeñas */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en tablets */
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en móviles grandes */
    }
}

.product-card {
    border: none;
    border-radius: 0;
    overflow: visible;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column  ;
    gap: 0.75rem;
}

.product-card:hover .product-card-image {
    /* Opcional: añade una sombra sutil a la imagen en hover */
    box-shadow: 0 4px 10px -2px rgb(0 0 0 / 0.1);
}

.product-card-image {
    width: 100%;
    padding-top: 100%; /* Crea un contenedor cuadrado (aspect-ratio 1:1) */
    background-size: cover;
    background-position: center;
    border: 1px solid #f0f0f0; /* Borde sutil solo en la imagen */
    border-radius: 0; /* ¡Bordes rectangulares! */
    transition: box-shadow 0.3s ease;
}

.product-card-info {
    padding: 0;
}

.product-name {
    font-weight: bold;
    font-size: 14px;
    color: #3c3737;
}

.product-price {
    font-size: 14px;
    color: #3c3737;
    margin-top: 0.25rem; /* 4px */
}

.no-products {
    grid-column: 1 / -1; /* Ocupa todas las columnas */
    text-align: center;
    padding: 4rem;
    color: #3c3737;
}