.fh-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: clamp(6px, .65vw, 10px);
    border: 1px solid #eadce3;
    border-radius: 14px;
    background: #fbf8f3;
    color: #302335;
    text-align: start;
    font-family: system-ui, sans-serif;
}

.fh-product-card__media {
    position: relative;
    aspect-ratio: 1;
    border-radius: 9px;
    background: #f4e7ee;
}

.fh-product-card__image-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.fh-product-card__image-link img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: inherit;
    object-fit: cover;
}

.fh-product-card__image-link .fh-product-card__alternate {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) and (min-width: 701px) {
    .fh-product-card__image-link:hover .fh-product-card__alternate {
        opacity: 1;
    }
}

@media (hover: none), (max-width: 700px) {
    .fh-product-card__image-link .fh-product-card__alternate {
        display: none;
    }
}

.wvs-archive-product-wrapper:has(.variable-item.selected) .fh-product-card__image-link .fh-product-card__alternate {
    display: none;
}

.fh-product-card .fh-product-card__sale,
.woocommerce .badge-container > .fh-numeric-sale .badge-inner.on-sale {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 25px;
    padding: 4px 10px !important;
    border: 1px solid #e60023 !important;
    border-radius: 30px !important;
    background: #e60023 !important;
    color: #fff !important;
    font: 700 clamp(10px, 1vw, 12px)/1.25 system-ui, sans-serif !important;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
}

.fh-product-card .fh-product-card__sale {
    position: absolute;
    inset: 8px auto auto 8px;
    margin: 0;
    pointer-events: none;
}

/* Flatsome emits the classic badge hook before the active provider's markup. */
.product-small > .col-inner:has(> .fh-product-card) > .badge-container > .fh-numeric-sale,
.wgm-native-card .wgm-native-card__sale-label {
    display: none !important;
}

.product-small > .col-inner:has(> .fh-product-card__sale, > .fh-product-card .fh-product-card__sale) > .badge-container {
    right: 12px !important;
    left: auto !important;
}

.badge-container > .badge.fh-numeric-sale {
    width: auto;
    height: auto;
    margin: 0;
}

.badge-container > .fh-numeric-sale .badge-inner > .onsale {
    display: inline;
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: none !important;
    color: #fff !important;
    font: inherit;
}

.fh-product-card__stock {
    position: absolute;
    inset: auto auto 8px 8px;
    padding: 4px 8px;
    border-radius: 5px;
    background: #302335;
    color: #fff;
    font-size: 11px;
    line-height: 1.3;
    pointer-events: none;
}

.fh-product-card__details {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 12px clamp(4px, .6vw, 9px) 3px;
}

.fh-product-card .fh-product-card__title {
    margin: 0;
    color: #302335;
    font: 600 clamp(15px, 1.35vw, 20px)/1.24 Georgia, "Times New Roman", serif;
    overflow-wrap: anywhere;
}

.fh-product-card__title a {
    color: inherit;
}

.fh-product-card__title a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fh-product-card .fh-product-card__description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #625465;
    font-size: clamp(12px, 1.05vw, 14px);
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.fh-product-card .fh-product-card__price,
.fh-product-card .fh-product-card__price .amount {
    color: #302335;
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
}

.fh-product-card .fh-product-card__price del,
.fh-product-card .fh-product-card__price del .amount {
    color: #625465;
    opacity: 1;
}

.fh-product-card .fh-product-card__price ins,
.fh-product-card .fh-product-card__price ins .amount,
.fh-product-card .fh-product-card__price--discounted > .amount {
    color: #e60023;
    text-decoration: none;
}

.fh-product-card__rating .star-rating {
    margin-block: 2px;
    color: #6c3159;
}

.fh-product-card__actions {
    display: grid;
    gap: 5px;
    margin-top: auto;
    padding-top: 6px;
}

.fh-product-card .fh-product-card__actions > :is(.button, .quick-view, .added_to_cart) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0;
    padding: 7px 8px;
    border: 1px solid #302335;
    border-radius: 6px;
    background: #302335;
    color: #fff;
    font: 650 13px/1.3 system-ui, sans-serif;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    text-transform: none;
}

.fh-product-card .fh-product-card__actions > .quick-view {
    border-color: #c3aabc;
    background: transparent;
    color: #6c3159;
}

.fh-product-card .fh-product-card__actions > :is(.button, .quick-view, .added_to_cart):hover {
    border-color: #6c3159;
    background: #6c3159;
    color: #fff;
}

.fh-product-card :is(a, button):focus-visible {
    outline: 2px solid #6c3159;
    outline-offset: 2px;
}

@media (max-width: 700px) {
    .fh-product-card__details {
        gap: 5px;
        padding-top: 9px;
    }
}
