/* filepath: website_sale_aplicoop/static/src/css/sections/products-grid.css */

/**
 * Products grid section styles
 */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.product-card-wrapper {
    display: flex;
    flex-direction: column;
}

.product-search-highlight {
    border: 2px solid #007bff;
    padding: 10px;
}

/* Pantallas muy grandes: 1600px+ (6 columnas) */
@media screen and (min-width: 1600px) {
    .products-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1.2rem;
    }
}

/* Pantallas grandes: 1400px-1599px (5 columnas) */
@media screen and (min-width: 1400px) and (max-width: 1599px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.15rem;
    }
}

/* Pantallas medianas: 1200px-1399px (4 columnas) */
@media screen and (min-width: 1200px) and (max-width: 1399px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.1rem;
    }
}

/* Pantallas tablet grandes: 992px-1199px (3 columnas) */
@media screen and (min-width: 992px) and (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

/* Pantallas tablet: 768px-991px (3 columnas en tablet grande, 2 en tablet pequeña) */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.95rem;
    }
}

/* Pantallas móvil grande: 576px-767px (2 columnas) */
@media screen and (min-width: 576px) and (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

/* Pantallas móvil pequeño: 1 columna */
@media (max-width: 575px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}
