/* 
 * CSS - Majois E-commerce 
 * Hito 11: CATALOGO INDEPENDIENTE
 */

.products-section {
    padding: 30px 0 30px 0;
}

.section-title {
    text-align: center;
    color: var(--color-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

/* Estilo Quirúrgico de la Tarjeta */
.product-card {
    background-color: var(--color-surface); /* Blanco puro */
    border-radius: 4px; /* Bordes apenas redondeados */
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Sombra muy suave */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08); /* Sombra dinámica hover */
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin-bottom: 25px;
}

.product-title {
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px; /* Garantiza simetría de 2 líneas entre tarjetas */
    line-height: 1.4;
}

.product-price {
    font-size: 1.15rem;
    color: var(--color-text);
    font-weight: 700;
    margin-bottom: 30px;
}

.btn-add-cart {
    background-color: var(--color-primary);
    color: var(--color-surface);
    border: none;
    padding: 14px 0;
    width: 100%; /* Total del ancho interior */
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 2px;
    margin-top: auto;
}

.btn-add-cart:hover {
    background-color: #00456b;
}

/* ========================================================================= */
/*                              ANIMACIONES UX                               */
/* ========================================================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ========================================================================= */
/*                              MEDIA QUERIES CATÁLOGO                       */
/* ========================================================================= */

@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .products-grid { grid-template-columns: 1fr; }
    
    .product-card {
        padding: 25px 10px;
    }
}
