.woocommerce ul.products li.product .cim-shop-image-swap {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.woocommerce ul.products li.product .cim-shop-image-swap > img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}
.woocommerce ul.products li.product .cim-shop-image-swap > img.cim-shop-gallery-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
    .woocommerce ul.products li.product .cim-shop-image-swap:hover > img.cim-shop-gallery-image {
        opacity: 1;
    }
}
@media (prefers-reduced-motion: reduce) {
    .woocommerce ul.products li.product .cim-shop-image-swap > img.cim-shop-gallery-image {
        transition: none;
    }
}

/* Keep the mobile catalog in normal document flow below its category links. */
@media (max-width: 767px) {
    .woocommerce .elementor-location-archive .elementor-element-shop-catalog-content {
        display: block;
    }
    .woocommerce .elementor-location-archive .elementor-element-shop-categories {
        margin-bottom: 18px;
    }
    .woocommerce .elementor-location-archive .elementor-widget-woocommerce-products > .elementor-widget-container {
        height: auto;
    }
}
