.hb-product-card {
    --hb-card-radius: 14px;
    --hb-card-title: var(--hb-serif, Georgia, serif);
    --hb-card-action-bg: #f4ecee;
    --hb-card-action-ink: var(--hb-berry, #742945);
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dbe3d8;
    border-radius: var(--hb-card-radius);
    background: var(--hb-linen, #fff9ef);
    color: var(--hb-ink, #18372f);
    box-shadow: 0 10px 26px rgba(24, 55, 47, 0.09);
    font-family: var(--hb-type, system-ui, sans-serif);
    text-align: center;
}

.hb-product-card--square { --hb-card-radius: 2px; }
.hb-product-card--clean { --hb-card-title: var(--hb-type, system-ui, sans-serif); }
.hb-product-card--filled {
    --hb-card-action-bg: var(--hb-berry, #742945);
    --hb-card-action-ink: #fff;
}

.hb-product-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--hb-sage, #e4eee0);
}

.hb-product-card__media-link {
    display: block;
    width: 100%;
    height: 100%;
}

.hb-product-card .hb-product-card__primary,
.hb-product-card .hb-product-card__alternate {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hb-product-card__alternate {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hb-product-card__labels {
    position: absolute;
    z-index: 1;
    inset: auto 9px 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    pointer-events: none;
}

.hb-product-card__discount,
.hb-product-card__stock {
    max-width: 100%;
    padding: 4px 12px;
    border-radius: 30px;
    background: #e60023;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    pointer-events: none;
}

.hb-product-card__stock { background: var(--hb-ink, #18372f); }

.hb-product-card .hb-product-card__quick {
    position: absolute;
    z-index: 2;
    inset: 8px 8px auto auto;
    display: grid;
    align-items: center;
    min-height: 44px;
    max-width: calc(100% - 16px);
    padding: 4px 10px;
    border: 1px solid var(--hb-ink, #18372f);
    border-radius: 9px;
    background: var(--hb-linen, #fff9ef);
    color: var(--hb-ink, #18372f);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
}

.hb-product-card .hb-product-card__quick:hover,
.hb-product-card .hb-product-card__quick:focus-visible {
    background: var(--hb-ink, #18372f);
    color: #fff;
    text-decoration: none;
}

.hb-product-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 24px 19px 20px;
}

.hb-product-card .hb-product-card__title {
    margin: 0;
    color: var(--hb-ink, #18372f);
    font: 400 20px / 1.14 var(--hb-card-title);
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.hb-product-card__title a { color: inherit; }
.hb-product-card__title a:hover,
.hb-product-card__title a:focus-visible { text-decoration: underline; }

.hb-product-card__price {
    color: var(--hb-ink, #18372f);
    font-size: 16px;
    line-height: 1.4;
}

.hb-product-card__price del,
.hb-product-card__price ins { display: block; }

.hb-product-card__price del {
    color: #525d54;
    font-size: 14px;
}

.hb-product-card__price del .amount { color: inherit; font-size: inherit; }
.hb-product-card__price ins { text-decoration: none; }
.hb-product-card__price ins,
.hb-product-card__price ins .amount { color: #b21232; }

.hb-product-card__rating { display: flex; justify-content: center; }

.hb-product-card__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}

.hb-product-card .hb-product-card__actions .button {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 7px 9px;
    border: 1px solid var(--hb-berry, #742945);
    border-radius: 12px;
    background: var(--hb-card-action-bg);
    color: var(--hb-card-action-ink);
    font: 650 14px / 1.15 var(--hb-type, system-ui, sans-serif);
    letter-spacing: 0;
    overflow-wrap: anywhere;
    text-transform: none;
}

.hb-product-card .hb-product-card__actions .button:hover,
.hb-product-card .hb-product-card__actions .button:focus-visible {
    border-color: var(--hb-ink, #18372f);
    background: var(--hb-ink, #18372f);
    color: #fff;
}

.hb-product-card .hb-product-card__media-link:focus-visible,
.hb-product-card .hb-product-card__quick:focus-visible {
    outline: 2px solid var(--hb-berry, #742945);
    outline-offset: -3px;
}

.hb-product-card--display .hb-product-card__body { padding-bottom: 25px; }

@media (min-width: 990px) and (hover: hover) and (pointer: fine) {
    .hb-product-card__media-link:hover .hb-product-card__alternate {
        opacity: 1;
        transform: scale(1.03);
    }

    .hb-product-card:hover .hb-product-card__title a { text-decoration: underline; }
    .hb-product-card .hb-product-card__quick { opacity: 0; pointer-events: none; }
    .hb-product-card:hover .hb-product-card__quick,
    .hb-product-card:focus-within .hb-product-card__quick { opacity: 1; pointer-events: auto; }
}

@media (max-width: 600px) {
    .hb-product-card__body { padding: 19px 12px 15px; }
    .hb-product-card .hb-product-card__title { font-size: 17px; }
    .hb-product-card__price { font-size: 15px; }
    .hb-product-card .hb-product-card__actions .button { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .hb-product-card__alternate { transition: none; }
}
