.za-product-card,
.za-product-card * {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.za-product-card__image {
    -webkit-user-drag: none;
}

.za-product-card__image--primary {
    position: relative;
    opacity: 1;
    transition: opacity 300ms ease-in-out;
}

.za-product-card__image--secondary {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1);
    transition:
        opacity 300ms ease-in-out,
        transform 500ms ease-in-out;
    pointer-events: none;
}

.za-product-card.is-showing-secondary .za-product-card__image--primary {
    opacity: 0;
}

.za-product-card.is-showing-secondary .za-product-card__image--secondary {
    opacity: 1;
    transform: scale(1.05);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .za-product-card--image-swap .za-product-card__media:hover
        .za-product-card__image--primary {
        opacity: 0;
    }

    .za-product-card--image-swap .za-product-card__media:hover
        .za-product-card__image--secondary {
        opacity: 1;
        transform: scale(1.05);
    }
}

@media (prefers-reduced-motion: reduce) {
    .za-product-card__image--primary,
    .za-product-card__image--secondary {
        transition: none;
    }

    .za-product-card.is-showing-secondary .za-product-card__image--secondary {
        transform: scale(1);
    }
}

html[data-product-card-selection-suppressed="true"],
html[data-product-card-selection-suppressed="true"] * {
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

.za-product-card--image-swap {
    isolation: isolate;
}

.za-product-card__touch-target {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: none;
    border: 0;
    background: transparent;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

@media (hover: none), (pointer: coarse), (any-pointer: coarse) {
    .za-product-card--image-swap .za-product-card__touch-target {
        display: block;
    }
}

[data-product-card-swap-disabled="true"] .za-product-card__touch-target {
    pointer-events: none;
}

.za-product-card__cart {
    z-index: 3;
}

.za-product-card--image-swap .za-product-card__media {
    z-index: 2;
}

.za-product-card--image-swap .za-product-card__body {
    z-index: 0;
}
