/*
 * Ganjeh Kala — reusable product card component.
 * Shared by shop/archive, wishlist and any loop using woocommerce/content-product.php.
 */

.gk-product-card {
    /* Public override contract: widgets can set --gk-card-* on their own wrapper. */
    --gk-pc-primary: var(--gk-card-primary, var(--gk-archive-primary, var(--gk-primary, #3b82f6)));
    --gk-pc-primary-soft: var(--gk-card-primary-soft, var(--gk-archive-primary-2, color-mix(in srgb, var(--gk-pc-primary) 10%, #fff)));
    --gk-pc-text: var(--gk-card-text, var(--gk-archive-text, var(--gk-text, #111827)));
    --gk-pc-muted: var(--gk-card-muted, var(--gk-archive-muted, var(--gk-text-muted, #6b7280)));
    --gk-pc-border: var(--gk-card-border-color, var(--gk-archive-border, var(--gk-border-color, #e5e7eb)));
    --gk-pc-card: var(--gk-card-background, var(--gk-archive-card, var(--gk-surface, #fff)));
    --gk-pc-soft: var(--gk-card-soft-background, var(--gk-archive-soft, var(--gk-surface-soft, var(--gk-surface, #fff))));
    --gk-pc-success: var(--gk-card-success, var(--gk-archive-success, #168447));
    --gk-pc-warning: var(--gk-card-warning, var(--gk-archive-warning, #b76505));
    --gk-pc-danger: var(--gk-card-danger, var(--gk-archive-danger, #d6364f));
    --gk-pc-card-padding: var(--gk-card-padding, 12px);
    --gk-pc-card-radius: var(--gk-card-radius, 22px);
    --gk-pc-border-width: var(--gk-card-border-width, 1px);
    --gk-pc-border-style: var(--gk-card-border-style, solid);
    --gk-pc-card-shadow: var(--gk-card-shadow, 0 8px 22px rgba(15, 23, 42, .04));
    --gk-pc-hover-lift: var(--gk-card-hover-lift, -3px);
    --gk-pc-hover-border: var(--gk-card-hover-border-color, rgba(37, 99, 235, .22));
    --gk-pc-hover-shadow: var(--gk-card-hover-shadow, 0 18px 40px rgba(15, 23, 42, .09));
    --gk-pc-image-ratio: var(--gk-card-image-ratio, 1 / 1);
    --gk-pc-image-fit: var(--gk-card-image-fit, cover);
    --gk-pc-image-position: var(--gk-card-image-position, center center);
    --gk-pc-image-bg: var(--gk-card-image-background, transparent);
    --gk-pc-title-lines: var(--gk-card-title-lines, 2);
    --gk-pc-title-color: var(--gk-card-title-color, var(--gk-pc-text));
    --gk-pc-title-hover: var(--gk-card-title-hover-color, var(--gk-pc-primary));
    --gk-pc-price-color: var(--gk-card-price-color, var(--gk-pc-text));
    --gk-pc-regular-price-color: var(--gk-card-regular-price-color, #a3aab8);
    --gk-pc-discount-bg: var(--gk-card-discount-background, var(--gk-pc-danger));
    --gk-pc-discount-color: var(--gk-card-discount-color, #fff);
    --gk-pc-discount-radius: var(--gk-card-discount-radius, 999px);
    --gk-pc-rating-color: var(--gk-card-rating-color, var(--gk-pc-warning));
    --gk-pc-rating-empty-color: var(--gk-card-rating-empty-color, var(--gk-pc-muted));
    --gk-pc-brand-bg: var(--gk-card-brand-background, var(--gk-pc-soft));
    --gk-pc-brand-color: var(--gk-card-brand-color, var(--gk-pc-muted));
    --gk-pc-title-gap: var(--gk-card-title-gap, 10px);
    --gk-pc-image-gap: var(--gk-card-image-gap, 10px);
    --gk-pc-color-size: var(--gk-card-color-size, 15px);
    --gk-pc-colors-gap: var(--gk-card-colors-gap, 4px);
    --gk-pc-color-border-width: var(--gk-card-color-border-width, 2px);
    --gk-pc-color-border-color: var(--gk-card-color-border-color, #fff);
    --gk-pc-color-ring-color: var(--gk-card-color-ring-color, var(--gk-pc-border));
    --gk-pc-badges-top: var(--gk-card-badges-top, 10px);
    --gk-pc-badges-inline: var(--gk-card-badges-inline, 10px);
    --gk-pc-badges-gap: var(--gk-card-badges-gap, 5px);
    --gk-pc-badge-min-height: var(--gk-card-badge-min-height, 24px);
    --gk-pc-badge-padding-x: var(--gk-card-badge-padding-x, 8px);
    --gk-pc-meta-gap: var(--gk-card-meta-gap, 8px);
    --gk-pc-meta-min-height: var(--gk-card-meta-min-height, 24px);
    --gk-pc-brand-radius: var(--gk-card-brand-radius, 999px);
    --gk-pc-brand-padding-x: var(--gk-card-brand-padding-x, 8px);
    --gk-pc-info-gap: var(--gk-card-info-gap, 8px);
    --gk-pc-info-min-height: var(--gk-card-info-min-height, 26px);
    --gk-pc-info-margin-bottom: var(--gk-card-info-margin-bottom, 10px);
    --gk-pc-label-min-height: var(--gk-card-label-min-height, 22px);
    --gk-pc-label-padding-y: var(--gk-card-label-padding-y, 3px);
    --gk-pc-label-padding-x: var(--gk-card-label-padding-x, 7px);
    --gk-pc-label-radius: var(--gk-card-label-radius, 6px);
    --gk-pc-footer-gap: var(--gk-card-footer-gap, 8px);
    --gk-pc-footer-min-height: var(--gk-card-footer-min-height, 42px);
    --gk-pc-price-align: var(--gk-card-price-align, start);
    --gk-pc-unavailable-color: var(--gk-card-unavailable-color, var(--gk-pc-danger));
    --gk-pc-unavailable-badge-bg: var(--gk-card-unavailable-badge-background, #1f2937);
    --gk-pc-unavailable-badge-color: var(--gk-card-unavailable-badge-color, #fff);
    --gk-pc-transition-duration: var(--gk-card-transition-duration, 180ms);
    --gk-pc-title-font-size: var(--gk-card-title-font-size, 13.5px);
    --gk-pc-title-font-weight: var(--gk-card-title-font-weight, 600);
    --gk-pc-title-line-height: var(--gk-card-title-line-height, 1.8);
    --gk-pc-brand-font-size: var(--gk-card-brand-font-size, 11px);
    --gk-pc-brand-font-weight: var(--gk-card-brand-font-weight, 500);
    --gk-pc-label-font-size: var(--gk-card-label-font-size, 11px);
    --gk-pc-label-font-weight: var(--gk-card-label-font-weight, 600);
    --gk-pc-price-label-font-size: var(--gk-card-price-label-font-size, 10.5px);
    --gk-pc-regular-price-font-size: var(--gk-card-regular-price-font-size, 10.5px);
    --gk-pc-regular-price-font-weight: var(--gk-card-regular-price-font-weight, 400);
    --gk-pc-price-font-size: var(--gk-card-price-font-size, 14px);
    --gk-pc-price-amount-font-size: var(--gk-card-price-amount-font-size, 15px);
    --gk-pc-price-font-weight: var(--gk-card-price-font-weight, 700);
    --gk-pc-discount-font-size: var(--gk-card-discount-font-size, 11px);
    --gk-pc-discount-font-weight: var(--gk-card-discount-font-weight, 700);
    --gk-pc-rating-font-size: var(--gk-card-rating-font-size, 11px);
    --gk-pc-rating-font-weight: var(--gk-card-rating-font-weight, 600);
    --gk-pc-unavailable-font-size: var(--gk-card-unavailable-font-size, 12px);
    --gk-pc-unavailable-font-weight: var(--gk-card-unavailable-font-weight, 600);
    min-width: 0;
}

/* Never allow browser :visited colors to leak into reusable product cards. */
.gk-product-card a,
.gk-product-card a:link,
.gk-product-card a:visited {
    color: inherit;
    text-decoration: none;
}

.gk-product-card__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: var(--gk-pc-card-padding);
    border: var(--gk-pc-border-width) var(--gk-pc-border-style) var(--gk-pc-border);
    border-radius: var(--gk-pc-card-radius);
    background: var(--gk-pc-card);
    box-shadow: var(--gk-pc-card-shadow);
    overflow: hidden;
    transition: transform var(--gk-pc-transition-duration) var(--gk-ease-standard, ease), box-shadow var(--gk-pc-transition-duration) var(--gk-ease-standard, ease), border-color var(--gk-pc-transition-duration) var(--gk-ease-standard, ease), background-color var(--gk-pc-transition-duration) var(--gk-ease-standard, ease);
}

.gk-product-card__inner:hover {
    transform: translateY(var(--gk-pc-hover-lift));
    border-color: var(--gk-pc-hover-border);
    background: var(--gk-card-hover-background, var(--gk-pc-card));
    box-shadow: var(--gk-pc-hover-shadow);
}


/* Shared hover kill-switch. Widgets can disable every product-card hover style
 * without forking the card renderer or changing the archive defaults. */
.gk-product-card__inner--hover-disabled,
.gk-product-card__inner--hover-disabled:hover,
.gk-product-card__inner--hover-disabled:focus-within,
.gk-card-hover-disabled .gk-product-card__inner,
.gk-card-hover-disabled .gk-product-card__inner:hover,
.gk-card-hover-disabled .gk-product-card__inner:focus-within {
    transform: none !important;
    border-color: var(--gk-pc-border) !important;
    background: var(--gk-pc-card) !important;
    box-shadow: var(--gk-pc-card-shadow) !important;
}

.gk-product-card__inner--hover-disabled .gk-product-card__image--main,
.gk-card-hover-disabled .gk-product-card__image--main {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.gk-product-card__inner--hover-disabled .gk-product-card__image--hover,
.gk-card-hover-disabled .gk-product-card__image--hover {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: none !important;
}

.gk-product-card__inner--hover-disabled .gk-product-card__title a:hover,
.gk-product-card__inner--hover-disabled .gk-product-card__title a:focus-visible,
.gk-card-hover-disabled .gk-product-card__title a:hover,
.gk-card-hover-disabled .gk-product-card__title a:focus-visible {
    color: var(--gk-pc-title-color) !important;
}

.gk-product-card__badges {
    position: absolute;
    z-index: 5;
    top: var(--gk-pc-badges-top);
    right: var(--gk-pc-badges-inline);
    left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gk-pc-badges-gap);
    pointer-events: none;
}

.gk-product-card__discount,
.gk-product-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--gk-pc-badge-min-height);
    padding: 3px var(--gk-pc-badge-padding-x);
    border-radius: 999px;
    color: #fff;
    font-size: var(--gk-pc-discount-font-size);
    font-weight: var(--gk-pc-discount-font-weight);
    line-height: 1;
    box-shadow: 0 8px 18px rgba(239, 64, 86, .22);
}

.gk-product-card__discount {
    border-radius: var(--gk-pc-discount-radius);
    background: var(--gk-pc-discount-bg);
    color: var(--gk-pc-discount-color);
}

.gk-product-card__badge {
    margin-inline-start: 0;
}

.gk-product-card__badge--sale {
    background: var(--gk-pc-danger);
}

.gk-product-card__badge--dark {
    background: var(--gk-pc-unavailable-badge-bg);
    color: var(--gk-pc-unavailable-badge-color);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .18);
}

.gk-product-card__thumb {
    position: relative;
    display: block;
    height: auto !important;
    aspect-ratio: var(--gk-pc-image-ratio);
    margin-top: calc(var(--gk-pc-card-padding) * -1);
    margin-inline: calc(var(--gk-pc-card-padding) * -1);
    margin-bottom: var(--gk-pc-image-gap);
    border-radius: var(--gk-card-image-radius, 0);
    background: var(--gk-pc-image-bg) !important;
    overflow: hidden;
    isolation: isolate;
}

.gk-product-card__thumb::before,
.gk-product-card__image-wrap::before,
.gk-product-card__image-wrap::after {
    content: none !important;
    display: none !important;
}

.gk-product-card__image-wrap {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    padding: 0 !important;
    border-radius: inherit;
    overflow: hidden;
    background: transparent !important;
}

.gk-product-card__image,
.gk-product-card__thumb img {
    position: absolute !important;
    inset: 0 !important;
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    max-width: none !important;
    max-height: none !important;
    object-fit: var(--gk-pc-image-fit) !important;
    object-position: var(--gk-pc-image-position) !important;
    border-radius: inherit !important;
    background: var(--gk-pc-image-bg) !important;
    transform-origin: center center;
    backface-visibility: hidden;
    transition: opacity .22s ease;
}

.gk-product-card__image--main {
    z-index: 1;
    opacity: 1 !important;
    transform: none !important;
}

.gk-product-card__image--hover {
    z-index: 2;
    opacity: 0 !important;
    transform: none !important;
    pointer-events: none;
}

.gk-product-card__inner:not(.gk-product-card__inner--has-hover):hover .gk-product-card__image--main,
.gk-product-card__inner:not(.gk-product-card__inner--has-hover):focus-within .gk-product-card__image--main {
    opacity: 1 !important;
    transform: none !important;
}

.gk-product-card__inner.gk-product-card__inner--has-hover.gk-product-card__inner--hover-ready:hover .gk-product-card__image--main,
.gk-product-card__inner.gk-product-card__inner--has-hover.gk-product-card__inner--hover-ready:focus-within .gk-product-card__image--main {
    opacity: 0 !important;
    transform: none !important;
}

.gk-product-card__inner.gk-product-card__inner--has-hover.gk-product-card__inner--hover-ready:hover .gk-product-card__image--hover,
.gk-product-card__inner.gk-product-card__inner--has-hover.gk-product-card__inner--hover-ready:focus-within .gk-product-card__image--hover {
    opacity: 1 !important;
    transform: none !important;
}

/* Do not hide the primary image before the secondary image has actually loaded. */
.gk-product-card__inner.gk-product-card__inner--has-hover:not(.gk-product-card__inner--hover-ready):hover .gk-product-card__image--main,
.gk-product-card__inner.gk-product-card__inner--has-hover:not(.gk-product-card__inner--hover-ready):focus-within .gk-product-card__image--main {
    opacity: 1 !important;
}

@media (hover: none), (pointer: coarse) {
    .gk-product-card__image--main {
        opacity: 1 !important;
        transform: none !important;
    }

    .gk-product-card__image--hover {
        display: none !important;
    }
}

.gk-product-card__meta:empty,
.gk-product-card__info:empty {
    display: none;
}

.gk-product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gk-pc-meta-gap);
    min-height: var(--gk-pc-meta-min-height);
    margin-bottom: 7px;
}

.gk-product-card__brand {
    display: inline-flex;
    align-items: center;
    max-width: 60%;
    min-height: 24px;
    padding: 3px var(--gk-pc-brand-padding-x);
    border-radius: var(--gk-pc-brand-radius);
    background: var(--gk-pc-brand-bg);
    color: var(--gk-pc-brand-color);
    font-size: var(--gk-pc-brand-font-size);
    font-weight: var(--gk-pc-brand-font-weight);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gk-product-card__colors {
    display: inline-flex;
    align-items: center;
    gap: var(--gk-pc-colors-gap);
    margin-inline-start: auto;
}

.gk-product-card .gk-product-label {
    min-height: var(--gk-pc-label-min-height);
    padding: var(--gk-pc-label-padding-y) var(--gk-pc-label-padding-x);
    border-radius: var(--gk-pc-label-radius);
    font-size: var(--gk-pc-label-font-size);
    font-weight: var(--gk-pc-label-font-weight);
}

.gk-product-card__color {
    display: inline-flex;
    width: var(--gk-pc-color-size);
    height: var(--gk-pc-color-size);
    border: var(--gk-pc-color-border-width) solid var(--gk-pc-color-border-color);
    border-radius: 999px;
    background: var(--gk-color);
    box-shadow: 0 0 0 1px var(--gk-pc-color-ring-color);
}

.gk-product-card__title {
    min-height: calc(1.8em * var(--gk-pc-title-lines));
    margin: 0 0 var(--gk-pc-title-gap);
    color: var(--gk-pc-title-color);
    font-size: var(--gk-pc-title-font-size);
    font-weight: var(--gk-pc-title-font-weight);
    line-height: var(--gk-pc-title-line-height);
}

.gk-product-card__title a {
    display: -webkit-box;
    color: var(--gk-pc-title-color);
    text-decoration: none;
    overflow: hidden;
    -webkit-line-clamp: var(--gk-pc-title-lines);
    -webkit-box-orient: vertical;
}

.gk-product-card__title a:link,
.gk-product-card__title a:visited {
    color: var(--gk-pc-title-color) !important;
}

.gk-product-card__title a:hover,
.gk-product-card__title a:focus-visible {
    color: var(--gk-pc-title-hover) !important;
}

.gk-product-card__info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--gk-pc-info-gap);
    min-width: 0;
    min-height: var(--gk-pc-info-min-height);
    margin-top: auto;
    margin-bottom: var(--gk-pc-info-margin-bottom);
    overflow: hidden;
}

.gk-product-card__delivery,
.gk-product-card__stock,
.gk-product-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--gk-pc-muted);
    font-size: 11.5px;
    font-weight: 500;
}

.gk-product-card__delivery {
    color: var(--gk-pc-success);
}

.gk-product-card__stock.is-out {
    color: var(--gk-pc-unavailable-color);
}

.gk-product-card__rating {
    flex: 0 0 auto;
    margin-inline-start: auto;
    color: var(--gk-pc-warning);
}

.gk-product-card__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    gap: var(--gk-pc-footer-gap);
    min-height: var(--gk-pc-footer-min-height);
    padding-top: 3px;
    border-top: 0;
}

.gk-product-card__footer.has-rating {
    grid-template-columns: minmax(0, 1fr) auto;
}

.gk-product-card__price {
    display: grid;
    grid-template-rows: 14px 24px;
    align-content: end;
    gap: 1px;
    min-width: 0;
}

.gk-product-card__price-top {
    min-width: 0;
    height: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
}

.gk-product-card__price-top.is-empty {
    visibility: hidden;
}

.gk-product-card__price-label {
    flex: 0 0 auto;
    color: var(--gk-pc-muted);
    font-size: var(--gk-pc-price-label-font-size);
    line-height: 14px;
    font-weight: 500;
}

.gk-product-card__price-regular {
    min-width: 0;
    color: var(--gk-pc-regular-price-color);
    font-size: var(--gk-pc-regular-price-font-size);
    line-height: 14px;
    font-weight: var(--gk-pc-regular-price-font-weight);
    text-decoration-thickness: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gk-product-card__price-regular .amount {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.gk-product-card__price-value {
    min-width: 0;
    min-height: 24px;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--gk-pc-price-color);
    font-size: var(--gk-pc-price-font-size);
    line-height: 24px;
    font-weight: var(--gk-pc-price-font-weight);
    text-align: var(--gk-pc-price-align);
    unicode-bidi: plaintext;
}

.gk-product-card__price-value .amount {
    color: var(--gk-pc-price-color);
    font-size: var(--gk-pc-price-amount-font-size);
    font-weight: var(--gk-pc-price-font-weight);
}

.gk-product-card__price-value del {
    display: none;
}

.gk-product-card__price-value ins {
    text-decoration: none;
}

.gk-product-card__unavailable {
    align-self: end;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    color: var(--gk-pc-unavailable-color);
    font-size: var(--gk-pc-unavailable-font-size);
    font-weight: var(--gk-pc-unavailable-font-weight);
}

.gk-product-card__footer-rating {
    align-self: end;
    min-width: 34px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    color: var(--gk-pc-rating-color);
    font-size: var(--gk-pc-rating-font-size);
    line-height: 1;
    font-weight: var(--gk-pc-rating-font-weight);
    white-space: nowrap;
}

.gk-product-card__footer-rating svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    fill: currentColor;
    stroke: none;
}

.gk-product-card__footer-rating.is-empty {
    color: var(--gk-pc-rating-empty-color);
    opacity: .65;
}

.gk-product-card__footer-rating.is-empty svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linejoin: round;
}

/* Component-level responsive behavior shared by archive, wishlist and loops. */
@media (max-width: 991px) {
    .gk-product-card {
        --gk-pc-card-padding: var(--gk-card-padding-tablet, var(--gk-card-padding, 10px));
    }

    .gk-product-card__inner {
        border-radius: var(--gk-card-radius-tablet, var(--gk-card-radius, 18px));
    }


    .gk-product-card__title {
        min-height: calc(1.8em * var(--gk-pc-title-lines));
        font-size: var(--gk-card-title-font-size-tablet, var(--gk-pc-title-font-size));
    }

    .gk-product-card__footer {
        min-height: 40px;
    }
}

@media (max-width: 640px) {
    .gk-product-card__thumb {
        margin-bottom: var(--gk-card-image-gap-mobile, var(--gk-card-image-gap, 8px));
    }

    .gk-product-card__meta {
        min-height: 22px;
        margin-bottom: 5px;
    }

    .gk-product-card__brand {
        max-width: 100%;
        font-size: var(--gk-card-brand-font-size-mobile, 10px);
    }

    .gk-product-card__colors {
        display: var(--gk-card-colors-mobile-display, none);
    }

    .gk-product-card__info {
        margin-bottom: 8px;
    }

    .gk-product-card__delivery,
    .gk-product-card__stock,
    .gk-product-card__rating {
        font-size: 10.5px;
    }

    .gk-product-card__price-label,
    .gk-product-card__price-regular {
        font-size: var(--gk-card-secondary-price-font-size-mobile, 9.5px);
    }

    .gk-product-card__price-value,
    .gk-product-card__price-value .amount {
        font-size: var(--gk-card-price-font-size-mobile, 12.5px);
    }

    .gk-product-card__footer-rating {
        min-width: 30px;
        font-size: var(--gk-card-rating-font-size-mobile, 10px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gk-product-card__inner,
    .gk-product-card__image {
        transition: none !important;
    }
}


/* Compact archive price: keep amount + currency as one visual unit in RTL. */
.gk-product-card__price-value .woocommerce-Price-amount,
.gk-product-card__price-regular .woocommerce-Price-amount {
    white-space: nowrap;
}

.gk-product-card__price-value .woocommerce-Price-currencySymbol,
.gk-product-card__price-regular .woocommerce-Price-currencySymbol {
    font-size: .78em;
    font-weight: 500;
}


/* 1.9.214 — touch/mobile cards must not jump on synthetic hover. */
@media (max-width: 767px), (hover: none), (pointer: coarse) {
    .gk-product-card__inner,
    .gk-product-card__inner:hover,
    .gk-product-card__inner:focus-within {
        transform: none !important;
    }

    .gk-product-card__inner:hover,
    .gk-product-card__inner:focus-within {
        border-color: var(--gk-pc-border) !important;
        background: var(--gk-pc-card) !important;
        box-shadow: var(--gk-pc-card-shadow);
    }

    /* A touch is a navigation gesture, not a real hover. Keep the primary image
       visible so iOS/Android synthetic :hover can never leave a white frame. */
    .gk-product-card__image--main {
        opacity: 1 !important;
    }

    .gk-product-card__image--hover {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}


/* 1.9.215 — real mobile card behavior.
 * Small screens must never lift the card, but a touch/synthetic hover may still
 * preview the second image once that image is actually decoded and ready. */
@media (max-width: 991px) {
    .gk-product-card__inner,
    .gk-product-card__inner:hover,
    .gk-product-card__inner:focus-within {
        transform: none !important;
        transition-property: box-shadow, border-color !important;
    }

    .gk-product-card__inner:hover,
    .gk-product-card__inner:focus-within {
        border-color: var(--gk-pc-border) !important;
        background: var(--gk-pc-card) !important;
        box-shadow: var(--gk-pc-card-shadow);
    }

    .gk-product-card__inner--has-hover .gk-product-card__image--hover {
        display: block !important;
        visibility: visible !important;
    }

    .gk-product-card__inner--has-hover.gk-product-card__inner--hover-ready:hover .gk-product-card__image--main,
    .gk-product-card__inner--has-hover.gk-product-card__inner--hover-ready:focus-within .gk-product-card__image--main,
    .gk-product-card__inner--has-hover.gk-product-card__inner--hover-ready.is-touch-preview .gk-product-card__image--main {
        opacity: 0 !important;
    }

    .gk-product-card__inner--has-hover.gk-product-card__inner--hover-ready:hover .gk-product-card__image--hover,
    .gk-product-card__inner--has-hover.gk-product-card__inner--hover-ready:focus-within .gk-product-card__image--hover,
    .gk-product-card__inner--has-hover.gk-product-card__inner--hover-ready.is-touch-preview .gk-product-card__image--hover {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .gk-product-card__inner--has-hover:not(.gk-product-card__inner--hover-ready) .gk-product-card__image--main {
        opacity: 1 !important;
    }
    .gk-product-card__inner--has-hover:not(.gk-product-card__inner--hover-ready) .gk-product-card__image--hover {
        opacity: 0 !important;
    }
}

/* Widget-scoped card image radius may override the global theme image radius. */
.gk-product-card__thumb,
.gk-product-card__image-wrap,
.gk-product-card__thumb img,
.gk-product-card__image {
    border-radius: var(--gk-card-image-radius, var(--gk-image-radius, 0px)) !important;
}


/* Product-card rails: browser-native link/image dragging must never compete with Swiper. */
.swiper .gk-product-card a,
.swiper .gk-product-card img {
    -webkit-user-drag: none;
    user-drag: none;
}

.swiper .gk-product-card {
    -webkit-user-select: none;
    user-select: none;
}

/* Product Card Core: allow a widget to disable only the lift while keeping other hover styles. */
@media (hover: hover) and (pointer: fine) {
    .gk-product-card__inner--no-lift:hover,
    .gk-product-card__inner--no-lift:focus-within {
        transform: none;
    }
}
