.astra-shop-thumbnail-wrap a.woocommerce-LoopProduct-link {
    position: relative;
    display: block;
    overflow: hidden;
}

/* Both images animate */
.astra-shop-thumbnail-wrap a.woocommerce-LoopProduct-link img {
    display: block;
    width: 100%;
    height: auto;

    transition:
        opacity .35s ease,
        transform .35s ease;
}

/* Hover image */
.sphi-hover-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;
    transform: scale(1.05);

    pointer-events: none;
}

/* Fade out original image slightly */
.astra-shop-thumbnail-wrap:hover
a.woocommerce-LoopProduct-link
img:not(.sphi-hover-image) {

    opacity: 0;
    transform: scale(1.05);
}

/* Fade in hover image */
.astra-shop-thumbnail-wrap:hover
.sphi-hover-image {

    opacity: 1;
    transform: scale(1.12);
}