/* Product card secondary-image hover */
.t4-product-card__image,
.sm-product-card__image {
    position: relative;
    overflow: hidden;
}

.t4-product-card__primary-image,
.t4-product-card__hover-image,
.sm-product-card__primary-image,
.sm-product-card__hover-image {
    transition: opacity .28s ease, transform .35s ease;
}

.t4-product-card__hover-image,
.sm-product-card__hover-image {
    position: absolute;
    inset: 0;
    margin: auto;
    opacity: 0;
    pointer-events: none;
}

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

.sm-product-card__hover-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (hover: hover) and (pointer: fine) {
    .t4-product-card__image--hover:hover .t4-product-card__primary-image,
    .sm-product-card__image--hover:hover .sm-product-card__primary-image {
        opacity: 0;
    }

    .t4-product-card__image--hover:hover .t4-product-card__hover-image,
    .sm-product-card__image--hover:hover .sm-product-card__hover-image {
        opacity: 1;
        transform: scale(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    .t4-product-card__primary-image,
    .t4-product-card__hover-image,
    .sm-product-card__primary-image,
    .sm-product-card__hover-image {
        transition: none;
    }
}
