/**
 * HoezoSchattig Product Card Styles
 *
 * Theme-independent styles for product cards.
 * Uses .hs-card__ prefix (BEM) so nothing clashes with
 * GeneratePress or any future theme.
 *
 * @version 1.0.0
 */


/* ── Card container ───────────────────────────────────── */

.hs-card {
    list-style: none;
}

.hs-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hs-card__link:hover,
.hs-card__link:focus-visible {
    border-color: rgba(247, 193, 217, 0.6);
    box-shadow: 0 0 0 1px rgba(247, 193, 217, 0.3);
}


/* ── Image area ───────────────────────────────────────── */

.hs-card__image {
    position: relative;
    aspect-ratio: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hs-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
}


/* ── Badges ───────────────────────────────────────────── */

.hs-card__badge {
    position: absolute;
    z-index: 2;
    font-family: Quicksand, sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    line-height: 1.4;
}

.hs-card__badge--sale {
    top: 8px;
    right: 8px;
    background: #FBEAF0;
    color: #993556;
}

.hs-card__badge--oos {
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
}

.hs-card__badge--bestseller {
    top: 8px;
    left: 8px;
    background: var(--bright-pink, #FA69A8);
    color: #fff;
}


/* ── Out of stock ─────────────────────────────────────── */

.hs-card--oos .hs-card__image {
    opacity: 0.5;
}

.hs-card--oos .hs-card__badge--oos {
    opacity: 1;
}

.hs-card--oos .hs-card__price {
    opacity: 0.4;
}


/* ── Card body ────────────────────────────────────────── */

.hs-card__body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 12px 14px;
    min-height: 105px;
    flex: 1;
}

.hs-card__body-top {
    flex: 1;
}


/* ── Title ────────────────────────────────────────────── */

.hs-card__title {
    font-family: Quicksand, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--dark, #575760);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.hs-card__link:hover .hs-card__title {
    color: var(--bright-pink, #FA69A8);
}


/* ── Rating (stars) ───────────────────────────────────── */

.hs-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
}

.hs-card__rating .hs-stars svg {
    width: 14px;
    height: 14px;
}

.hs-card__rating-count {
    font-family: Quicksand, sans-serif;
    font-size: 12px;
    color: #999;
}


/* ── Price ─────────────────────────────────────────────── */

.hs-card__price {
    margin-top: auto;
    padding-top: 6px;
    font-family: Quicksand, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--bright-blue, #4FC6F0);
    line-height: 1.3;
}

.hs-card__price del {
    font-size: 13px;
    font-weight: 500;
    color: #aaa;
    margin-right: 5px;
}

.hs-card__price ins {
    text-decoration: none;
    color: var(--bright-blue, #4FC6F0);
}

.hs-card__link:hover .hs-card__price,
.hs-card__link:hover .hs-card__price ins {
    color: var(--bright-pink, #FA69A8);
}


/* ── Override WooCommerce / GeneratePress defaults ────── */

.woocommerce ul.products li.product.hs-card {
    text-align: left;
}

.woocommerce ul.products li.product.hs-card a img,
.woocommerce ul.products li.product.hs-card .hs-card__img {
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product.hs-card h3 {
    font-family: Quicksand, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--dark, #575760) !important;
}

.woocommerce ul.products li.product.hs-card .price {
    font-size: 16px !important;
    color: var(--bright-blue, #4FC6F0) !important;
}

/* Hide default WooCommerce sale flash -- we have our own badge */
.woocommerce ul.products li.product.hs-card span.onsale {
    display: none !important;
}

/* Hide old soldout span if still rendered by another hook */
.woocommerce ul.products li.product.hs-card .soldout {
    display: none !important;
}

/* GeneratePress image wrapper -- neutralize */
.woocommerce ul.products li.product.hs-card .wc-product-image,
.woocommerce ul.products li.product.hs-card .inside-wc-product-image {
    margin: 0;
    padding: 0;
}


/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 768px) {
    .hs-card__body {
        min-height: 100px;
        padding: 8px 10px 12px;
    }

    .hs-card__title {
        font-size: 13px;
        -webkit-line-clamp: 3;
        min-height: 4.2em;
    }

    .hs-card__price {
        font-size: 15px;
    }

    .hs-card__rating .hs-stars svg {
        width: 12px;
        height: 12px;
    }
}
