﻿/* ===== PRODUCT GRID ===== */

.products-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* 2 columnas en tablet */
@media (min-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 3 columnas en desktop */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== CARD ===== */

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }

/* Imagen */

.product-image-wrapper {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f8f8;
}

    .product-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.product-card:hover img {
    transform: scale(1.05);
}

/* Contenido */

.product-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-button {
    margin-top: auto;
    padding: 0.7rem;
    border-radius: 6px;
    background: #111;
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

    .product-button:hover {
        background: #333;
    }

/* Empty state */

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: #666;
}
