/**
 * PrestaShop Products - Estilos
 */

.ps-products-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    margin: 30px 0;
}

.ps-product-item {
    flex: 1 1 calc(25% - 15px);
    max-width: calc(25% - 15px);
    min-width: 200px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 15px;
    background: #fff;
}

.ps-product-item:hover {
    transform: translateY(-3px);
}

.ps-product-item:hover .ps-product-name {
    color: #c20058;
}

/* Imagen del producto */
.ps-product-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.ps-product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.ps-product-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #999;
    font-size: 14px;
}

/* Info del producto */
.ps-product-info {
    width: 100%;
}

.ps-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.ps-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #c20058;
}

/* Responsive - Ajustes según cantidad de productos */
.ps-products-count-1 .ps-product-item {
    flex: 0 1 300px;
    max-width: 300px;
}

.ps-products-count-2 .ps-product-item {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
}

.ps-products-count-3 .ps-product-item {
    flex: 1 1 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
}

/* Tablet */
@media (max-width: 992px) {
    .ps-product-item {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
    
    .ps-products-count-3 .ps-product-item,
    .ps-products-count-4 .ps-product-item {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .ps-products-container {
        gap: 15px;
    }
    
    .ps-product-item,
    .ps-products-count-1 .ps-product-item,
    .ps-products-count-2 .ps-product-item,
    .ps-products-count-3 .ps-product-item,
    .ps-products-count-4 .ps-product-item {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
    }
    
    .ps-product-image {
        height: 180px;
    }
    
    .ps-product-name {
        font-size: 13px;
        min-height: auto;
    }
    
    .ps-product-price {
        font-size: 16px;
    }
}
