/* =====================================================================
   COMPONENT: PRODUCT CARD
   ===================================================================== */
   
   
   

.kanha-product-card {
    background: var(--hok-color-white);
    border: var(--hok-border-light);
    border-radius: var(--hok-radius-lg);
    overflow: hidden;
    transition: all var(--hok-duration-normal) var(--hok-ease);
    position: relative;
}
.kanha-product-card:hover {
    box-shadow: var(--hok-shadow-sm);
    border-color: var(--hok-color-border);
    transform: translateY(-3px);
}
.kanha-product-card-media {
    position: relative;
    aspect-ratio: var(--hok-product-image-ratio);
    background: var(--hok-product-image-bg);
    overflow: hidden;
}
.kanha-product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--hok-duration-slow) var(--hok-ease);
}
.kanha-product-card:hover .kanha-product-card-media img {
    transform: scale(1.05);
}
.kanha-product-card-badge {
    /*position: absolute;*/
    /*top: var(--hok-space-3);*/
    /*left: var(--hok-space-3);*/
    /*padding: 3px 10px;*/
    /*font-size: var(--hok-font-size-10);*/
    /*font-weight: var(--hok-font-weight-bold);*/
    /*letter-spacing: var(--hok-letter-spacing-wide);*/
    /*text-transform: uppercase;*/
    /*border-radius: var(--hok-radius-xs);*/
    /*color: var(--hok-color-white);*/
    /*z-index: 2;*/
     background: var(--hok-color-gold);
}
.kanha-product-card-badge.kanha-badge-new        { background: var(--hok-color-badge-new); }
.kanha-product-card-badge.kanha-badge-bestseller { background: var(--hok-color-badge-bestseller); }
.kanha-product-card-badge.kanha-badge-limited    { background: var(--hok-color-badge-limited); }

.kanha-product-card-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: var(--hok-space-2);
    padding: var(--hok-space-3);
    background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
    transform: translateY(100%);
    transition: transform var(--hok-duration-normal) var(--hok-ease);
}
.kanha-product-card:hover .kanha-product-card-actions {
    transform: translateY(0);
}
.kanha-product-card-action-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--hok-space-1);
    padding: 6px 12px;
    background: var(--hok-color-white);
    color: var(--hok-color-text);
    font-size: var(--hok-font-size-11);
    font-weight: var(--hok-font-weight-medium);
    border: none;
    border-radius: var(--hok-radius-xs);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--hok-duration-fast) var(--hok-ease);
}
.kanha-product-card-action-btn:hover {
    background: var(--hok-color-gold);
    color: var(--hok-color-white);
}
.kanha-product-card-action-btn .kanha-ic {
    width: 14px;
    height: 14px;
}

.kanha-product-card-wish {
    position: absolute;
    top: var(--hok-space-3);
    right: var(--hok-space-3);
    width: 32px;
    height: 32px;
    background: var(--hok-color-white);
    border: none;
    border-radius: var(--hok-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: var(--hok-shadow-xs);
    transition: all var(--hok-duration-fast) var(--hok-ease);
    opacity: 0;
}
.kanha-product-card:hover .kanha-product-card-wish { opacity: 1; }
.kanha-product-card-wish:hover {
    background: var(--hok-color-danger-bg);
}
.kanha-product-card-wish .kanha-ic {
    width: 16px;
    height: 16px;
    color: var(--hok-color-text-light);
}
.kanha-product-card-wish:hover .kanha-ic {
    color: var(--hok-color-danger);
}

.kanha-product-card-body {
    padding: var(--hok-space-4);
}
.kanha-product-card-name {
    font-family: var(--hok-font-display);
    font-size: var(--hok-font-size-15);
    font-weight: var(--hok-font-weight-semibold);
    color: var(--hok-color-ink);
    margin-bottom: var(--hok-space-1);
    line-height: var(--hok-line-height-normal);
}
.kanha-product-card-name a {
    color: inherit;
    text-decoration: none;
    transition: color var(--hok-duration-fast) var(--hok-ease);
}
.kanha-product-card-name a:hover {
    color: var(--hok-color-gold);
}
.kanha-product-card-price {
    font-size: var(--hok-font-size-15);
    font-weight: var(--hok-font-weight-semibold);
    color: var(--hok-color-gold-dark);
    margin-bottom: var(--hok-space-1);
}
.kanha-product-card-price .kanha-old-price {
    color: var(--hok-color-text-light);
    font-weight: var(--hok-font-weight-regular);
    font-size: var(--hok-font-size-13);
    margin-left: var(--hok-space-2);
}
.kanha-product-card-rating {
    display: flex;
    align-items: center;
    gap: var(--hok-space-1);
    font-size: var(--hok-font-size-11);
    color: var(--hok-color-text-light);
}

.kanha-product-card-stars {
    --rating: 0;
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: var(--hok-font-size-12);
    letter-spacing: 1px;
    background: linear-gradient(
        90deg,
        var(--hok-color-gold) calc(var(--rating) / 5 * 100%),
        var(--hok-color-border-light) calc(var(--rating) / 5 * 100%)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.kanha-product-card-stars::before {
    content: "★★★★★";
}