.hk-product-card {
    --hk-card-gap: 18px;
    --hk-text-gap: 8px;
    --hk-fade-duration: 450ms;
    --hk-hover-scale: 1;
    --hk-badge-width: 125px;
    --hk-badge-x: -25px;
    --hk-badge-y: -25px;
    --hk-badge-rotation: 0deg;

    display: flex;
    width: 100%;
    max-width: 460px;
    flex-direction: column;
    gap: var(--hk-card-gap);
    margin-inline: auto;
}

.hk-product-card *,
.hk-product-card *::before,
.hk-product-card *::after {
    box-sizing: border-box;
}


.hk-product-card__media-link {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.hk-product-card__title-link {
    color: inherit;
    text-decoration: none;
}

.hk-product-card__media-link:focus-visible,
.hk-product-card__title-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.hk-product-card__media {
    position: relative;
    width: 100%;
    overflow: visible;
    isolation: isolate;
}

.hk-product-card__image-stack {
    display: grid;
    width: 100%;
    overflow: hidden;
    border-radius: inherit;
}

.hk-product-card__image {
    grid-area: 1 / 1;
    width: 100%;
    min-width: 0;
    transition:
        opacity var(--hk-fade-duration) ease,
        transform calc(var(--hk-fade-duration) + 100ms) cubic-bezier(.22, 1, .36, 1);
}

.hk-product-card__image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.hk-product-card__image--default {
    position: relative;
    z-index: 1;
    opacity: 1;
}

.hk-product-card__image--hover {
    position: relative;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
}

.hk-product-card__badge {
    position: absolute;
    z-index: 4;
    top: var(--hk-badge-y);
    left: var(--hk-badge-x);
    display: grid;
    width: var(--hk-badge-width);
    max-width: 70%;
    transform: rotate(var(--hk-badge-rotation));
    transform-origin: center;
    pointer-events: none;
}

.hk-product-card__badge-image {
    grid-area: 1 / 1;
    width: 100%;
    transition:
        opacity var(--hk-fade-duration) ease,
        transform calc(var(--hk-fade-duration) + 100ms) cubic-bezier(.22, 1, .36, 1);
}

.hk-product-card__badge-image img {
    display: block;
    width: 100%;
    height: auto;
}

.hk-product-card__badge-image--default {
    opacity: 1;
}

.hk-product-card__badge-image--hover {
    opacity: 0;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .hk-product-card:hover .hk-product-card__image--default,
    .hk-product-card:focus-within .hk-product-card__image--default,
    .hk-product-card:hover .hk-product-card__badge-image--default,
    .hk-product-card:focus-within .hk-product-card__badge-image--default {
        opacity: 0;
    }

    .hk-product-card:hover .hk-product-card__image--hover,
    .hk-product-card:focus-within .hk-product-card__image--hover,
    .hk-product-card:hover .hk-product-card__badge-image--hover,
    .hk-product-card:focus-within .hk-product-card__badge-image--hover {
        opacity: 1;
    }

    .hk-product-card:hover .hk-product-card__image,
    .hk-product-card:focus-within .hk-product-card__image {
        transform: scale(var(--hk-hover-scale));
    }
}

.hk-product-card__content {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: inherit;
}

.hk-product-card__title,
.hk-product-card__subtitle,
.hk-product-card__meta {
    margin: 0;
}

.hk-product-card__subtitle,
.hk-product-card__meta {
    margin-top: var(--hk-text-gap);
}

.hk-product-card__title {
    font-size: clamp(26px, 2.2vw, 38px);
    font-weight: 600;
    line-height: 1.1;
}

.hk-product-card__subtitle {
    font-size: clamp(16px, 1.3vw, 22px);
    font-weight: 600;
    line-height: 1.25;
    text-transform: uppercase;
}

.hk-product-card__meta {
    font-size: 15px;
    line-height: 1.4;
    text-transform: uppercase;
}

.hk-product-card__button {
    display: inline-flex;
    min-width: 190px;
    align-items: center;
    justify-content: center;
    align-self: center;
    border: 1px solid currentColor;
    padding: 14px 42px;
    text-decoration: none;
    cursor: pointer;
    transition-property: color, background-color, border-color, box-shadow, transform;
    transition-duration: 300ms;
    transition-timing-function: ease;
    -webkit-tap-highlight-color: transparent;
}

.hk-product-card__button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .hk-product-card__image,
    .hk-product-card__badge-image,
    .hk-product-card__button {
        transition: none;
    }
}
