/**
 * CORRECTION FINALE IMAGES PRODUITS - SOLUTION ROBUSTE
 * Fonctionne AVEC ou SANS l'API
 */

/* CONTENEURS : Empêcher débordement */
.modern-product-card .modern-card-image,
.product-card .product-image,
.deal-card .deal-image,
.horizontal-product-card .product-image,
.modern-card-image,
.product-image,
.deal-image {
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    position: relative !important;
}

/* IMAGES : Forcer remplissage maximum */
.modern-product-card .modern-card-image img,
.product-card .product-image img,
.deal-card .deal-image img,
.horizontal-product-card .product-image img {
    /* Remplir complètement */
    width: 100% !important;
    height: 100% !important;
    
    /* COVER pour remplir sans espace blanc */
    object-fit: cover !important;
    object-position: center !important;
    
    /* Pas de padding */
    padding: 0 !important;
    
    /* Animation */
    transition: transform 0.4s ease !important;
}

/* EFFET HOVER : Léger zoom */
.modern-product-card:hover .modern-card-image img,
.product-card:hover .product-image img,
.deal-card:hover .deal-image img,
.horizontal-product-card:hover .product-image img {
    transform: scale(1.02) !important;
}

/* WATERMARK : Géré par l'API (pas de double watermark) */
/* Le watermark est appliqué directement sur l'image par l'API */

/* RESPONSIVE : Mobile */
@media (max-width: 768px) {
    .modern-product-card .modern-card-image img,
    .product-card .product-image img,
    .deal-card .deal-image img {
        padding: 2px !important;
    }
}

/* CORRECTION : Lightning Deals */
.deal-card .deal-image {
    height: 140px !important;
}

.deal-card .deal-image img {
    max-height: 136px !important;
}

/* CORRECTION : Horizontal Cards */
.horizontal-product-card .product-image {
    min-height: 120px !important;
}
