.productCard {
    list-style: none;
    border: solid 1px #232F3E;
    border-radius: 0.25rem;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.8);
    height: fit-content;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    width: 280px;  
    content-visibility: auto;
    contain-intrinsic-size: 380px;

    .productCardPromoBadgeContainer {
        position: absolute;
        left: 0;
        bottom: 0;
        transform: translate(0, 100%);
        z-index: 100;
        padding: 0.25rem;
        pointer-events: none;

        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;

        .productCardPromoBadge {
            display: inline-flex;
            padding: 0.25rem;
            align-items: center;
            gap: 0.5rem;
            background: var(--promo-badge-color, #e74c3c);
            border-radius: var(--radius);
            color: #fff;
            font-size: 0.7rem;
            box-shadow: var(--boxShadow);

            .productCardPromoBadgeIcon {
                width: 14px;
                height: 14px;
                filter: invert(100%);
            }
        }

        .productCardDiscountBadge {
            display: inline-flex;
            align-items: center;
            padding: var(--padding);
            border-radius: var(--radius);
            background: mediumseagreen;
            color: #fff;
            font-weight: 700;
            font-size: 0.7rem;
            line-height: 1;
            box-shadow: var(--boxShadow);
        }
    }

    .productCardItem {
        text-align: center;
        background-color: #232F3E;
        color: white;
        padding: 0.5rem;
        text-align: center;
        font-size: 0.8rem;
        position: relative;
        width: 100%;
        display: flex;
        align-items: center;
        height: 40px;
        justify-content: center;

        .favContainer {
            position: absolute;
            right: 0;
            bottom: 0;
            transform: translate(0, 100%);
            z-index: 100;
            padding: 0.25rem;

            button {
                border: none;
                background: none;
                cursor: pointer;

                .heartIcon {
                    width: 24px;
                }
            }
        }
    }

    .productCardMainContent {
        position: relative; 
        overflow: hidden;
        display: block;
        background-color: white; 

        /* ✅ centre l’image */
        display: flex;
        align-items: center;
        justify-content: center;

         /* ✅ zone image homogène */
        width: 100%;
        height: 260px;

        .productCardPriceContainer {
            color: white;
            position: absolute;
            bottom: 0;
            right: 0;
            padding: 0.5rem;
            font-size: 0.8rem;
            border-top-left-radius: 0.25rem;
            background-color: #232F3E;
            z-index: 1000;
        }

        .productFilter {
            position: absolute;
            z-index: 1;
            background-color: rgba(0, 0, 0, 0.2);
            top: 200%;
            bottom: 0;
            right: 0;
            left: 0;
            transition: 0.6s;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2rem;

            div {
                background-color: white;
                color: black;
                padding: 0.5rem;
                border-radius: 0.25rem;
                font-weight: bold;
                box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.4);
            }

            .linkIcon {
                width: 64px;
                filter: invert(100%);
            }
        }

        .productImg {
            display: block;
            object-fit: contain;
            width: 100%;
            height: 100%;

            transform: scale(1.02);
            transition: filter .25s ease, transform .25s ease;

            &.is-full-loaded {
                filter: blur(0);
                transform: none;
            }
        }

        &:hover {
            .productFilter {
                transition: 0.6s;
                top: 0;
                cursor: pointer;
            }
        }
    }

    .productQuickShow {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0 1rem;

        .productQuickShowBtn {
            text-transform: uppercase;
            transition: 0.3s;
            font-weight: bolder;
        }

        .loopIcon {
            width: 16px;
            filter: invert(100%);
        }
        
        &:hover {
            cursor: pointer;
            color: #004eb4;
            transition: 0.3s;

            .loopIcon {
                transform: scale(1.2);
            }
        }
    }
}