/* ═══════════════════════════════════════════════════════════════════
   GLOBAL PRODUCT CARDS — one design site-wide
   Clean image · wishlist top-right · category/name/price in body
   ═══════════════════════════════════════════════════════════════════ */

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    background: #fff;
    border-radius: 6px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ─── Image: clean, no badges ─── */
.product-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 8px;
    background: var(--cream, #f5ede0);
    margin-bottom: 0;
}

.product-image-primary,
.product-image-hover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.45s ease, transform 0.55s ease;
}

.product-image-hover {
    opacity: 0;
    transform: scale(1.04);
}

.product-card:hover .product-image-primary {
    opacity: 0;
}

.product-card:hover .product-image-hover {
    opacity: 1;
    transform: scale(1);
}

.product-card:not(:has(.product-image-hover)):hover .product-image-primary {
    opacity: 1;
    transform: scale(1.04);
}

.product-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-grey, #bbb);
    font-size: 36px;
    background: linear-gradient(135deg, var(--cream, #fbf8f2), var(--gold-light, #e8dcc8));
}

.product-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(154, 123, 79, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    color: var(--charcoal, #2a2a2a);
    transition: all 0.25s ease;
    z-index: 3;
    padding: 0;
}

.product-wishlist:hover,
.product-wishlist.is-active,
.product-wishlist.in-wishlist {
    background: #fff;
    color: var(--danger, #c0392b);
    border-color: rgba(192, 57, 43, 0.25);
    transform: scale(1.08);
}

/* ─── Body ─── */
.product-card-body {
    padding: 14px 14px 6px;
    flex: 1;
}

.product-card-category {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--gold, #9a7b4f);
    font-weight: 500;
    margin-bottom: 6px;
}

.product-card-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.product-label {
    display: inline-block;
    font-family: 'Jost', sans-serif;
    font-size: 9px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
}

.product-label-new {
    background: var(--ink, #0d0d0d);
    color: #fff;
}

.product-label-bestseller {
    background: var(--gold, #9a7b4f);
    color: #fff;
}

.product-label-mto {
    background: #f5f0e8;
    color: var(--gold, #9a7b4f);
    border: 1px solid rgba(154, 123, 79, 0.35);
}

.product-name {
    display: block;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.35;
    color: var(--ink, #0d0d0d);
    text-decoration: none;
    margin: 0 0 8px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.product-name:hover,
.product-card:hover .product-name {
    color: var(--gold, #9a7b4f);
}

.product-prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.product-price-sale {
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink, #0d0d0d);
}

.product-price-mrp {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--danger, #c0392b);
    text-decoration: line-through;
    text-decoration-color: var(--danger, #c0392b);
}

.product-price-off {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--danger, #c0392b);
    letter-spacing: 0.3px;
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    color: var(--gold-pale, #d4af7a);
    font-size: 11px;
}

.product-card-rating span {
    color: #888;
    font-size: 11px;
}

/* ─── Add to bag / in-cart quantity ─── */
.product-card-cart {
    padding: 0 10px 10px;
    margin-top: 4px;
}

.product-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 0;
    padding: 12px 14px;
    background: var(--ink, #0d0d0d);
    color: #fff;
    border: 1px solid var(--ink, #0d0d0d);
    border-radius: 4px;
    font-family: 'Jost', sans-serif;
    font-size: 10.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.product-add-btn:hover {
    background: var(--gold, #9a7b4f);
    border-color: var(--gold, #9a7b4f);
}

.product-add-btn.added {
    background: var(--success, #0e5e2a);
    border-color: var(--success, #0e5e2a);
}

.product-add-btn i {
    font-size: 14px;
}

.product-card-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--ink, #0d0d0d);
    border-radius: 4px;
    overflow: hidden;
    min-height: 44px;
}

.product-card-qty[hidden],
.product-add-btn[hidden] {
    display: none !important;
}

.product-qty-btn {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.product-qty-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.product-qty-val {
    flex: 1;
    text-align: center;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

/* ─── Horizontal scroll rows ─── */
.product-card-scroll {
    flex: 0 0 280px;
    width: 280px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.scroll-container > .product-card {
    flex-shrink: 0;
}

/* ─── Shop grid column sizing ─── */
.products-grid[data-cols="2"] .product-name { font-size: 17px; }
.products-grid[data-cols="2"] .product-price-sale { font-size: 17px; }
.products-grid[data-cols="2"] .product-add-btn { padding: 13px; font-size: 11px; }

.products-grid[data-cols="4"] .product-name { font-size: 14px; }
.products-grid[data-cols="4"] .product-price-sale { font-size: 14px; }
.products-grid[data-cols="4"] .product-price-mrp { font-size: 11px; }
.products-grid[data-cols="4"] .product-add-btn { padding: 10px; font-size: 10px; letter-spacing: 1.5px; }
.products-grid[data-cols="4"] .product-card-category { font-size: 9px; }

/* Hide legacy on-image flags if any old markup remains */
.product-card-image .product-flags,
.product-card-image .product-flag,
.product-card-image .pcard-badges {
    display: none !important;
}

@media (max-width: 768px) {
    .product-card-image {
        aspect-ratio: 3 / 4;
        border-radius: 8px;
    }

    .product-wishlist {
        width: 34px;
        height: 34px;
        font-size: 13px;
        top: 10px;
        right: 10px;
    }

    .product-card-body {
        padding: 12px 12px 4px;
    }

    .product-card-cart {
        padding: 0 8px 8px;
    }

    .product-name {
        font-size: 13px;
    }

    .product-price-sale {
        font-size: 13px;
    }

    .product-price-mrp {
        font-size: 11px;
    }

    .product-add-btn {
        padding: 10px 12px;
        font-size: 9.5px;
        letter-spacing: 1.6px;
    }

    .product-card-scroll {
        flex: 0 0 calc(72vw - 8px);
        width: calc(72vw - 8px);
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .product-name { font-size: 12px; }
    .product-price-sale { font-size: 12px; }
    .product-add-btn {
        padding: 9px 10px;
        font-size: 9px;
    }
}
