/* ============================================================
   Rennuce — PRODUCT CARD (product-card.css)
   The core repeating unit of every product listing:
   homepage grids, category pages, search results, related items.

   Load order: AFTER reset.css, typography.css, components.css
   Depends on:  variables.css (all --space-*, --color-*, etc.)

   Sections:
     1.  Design Tokens (local overrides)
     2.  Card Shell
     3.  Media — Image Container + Shimmer
     4.  Image & Hover Swap
     5.  Product Badges  (top-LEFT)
     6.  Overlay Actions (Wishlist + Quick View)
     7.  Add-to-Cart Icon Button  ← icon only, circle
     8.  Card Body
     9.  Category Label
    10.  Product Name
    11.  Rating
    12.  Price Block + Discount Tag (top-RIGHT)
    13.  Color Swatches
    14.  Sold-Out State
    15.  Featured Variant
    16.  List View Variant
    17.  Wishlist-Active & In-Cart States
    18.  Loading / Placeholder
    19.  Reduced Motion
    20.  Responsive Overrides
   ============================================================ */


@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400&display=swap');
/* =====================================================
   1. DESIGN TOKENS — LOCAL
===================================================== */

.product-card {
    --card-radius: 0px;
    --card-img-ratio: 3 / 4;
    --card-img-bg: var(--color-bg-secondary, #F5F5F5);
    --card-border: var(--color-border, #E5E5E5);

    /* ✦ UPDATED shadows */
    --card-shadow-base: 0 2px 12px rgba(0, 0, 0, 0.07),
        0 1px 3px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.13),
        0 8px 24px rgba(201, 169, 110, 0.12);

    --card-action-size: 38px;
    --card-body-px: var(--space-3, 0.75rem);
    --card-body-py: var(--space-3, 0.75rem);
    --card-transition: var(--duration-base, 200ms) var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));
}


/* =====================================================
   2. CARD SHELL
===================================================== */

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-bg-primary, #fff);
    border-radius: var(--card-radius);
    border: none;
    overflow: hidden;
    text-decoration: none;
    color: inherit;

    /* ✦ Base shadow always visible — card looks elevated */
    box-shadow: none;

    transition:
        box-shadow var(--card-transition),
        transform var(--duration-fast, 120ms) var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)),
        border-color var(--card-transition);
    cursor: pointer;
    will-change: transform, box-shadow;
}

.product-card:hover {
    /* ✦ Warm gold glow on hover */
    box-shadow: none;
    border-color: transparent;
    transform: translateY(-4px);
}

.product-card:focus-visible {
    outline: 2px solid var(--focus-ring-color, var(--color-brand-gold));
    outline-offset: 2px;
}

a.product-card,
.product-card>a.product-card__media-link {
    text-decoration: none;
    color: inherit;
}


/* =====================================================
   3. MEDIA — IMAGE CONTAINER + SHIMMER
===================================================== */

.product-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: var(--card-img-ratio);
    background-color: var(--card-img-bg);
    overflow: hidden;
    border-radius: var(--card-radius) var(--card-radius) 0 0;
    flex-shrink: 0;
}

/* ✦ Shimmer light sweep — triggers on card hover */
.product-card__media::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 10;
    background: linear-gradient(110deg,
            transparent 30%,
            rgba(255, 255, 255, 0.16) 50%,
            transparent 70%);
    transform: translateX(-120%);
    pointer-events: none;
    /* No transition in idle state — instant reset */
    transition: none;
}

.product-card:hover .product-card__media::before {
    transform: translateX(220%);
    /* Runs once on hover-enter */
    transition: transform 0.70s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Clicking the image navigates to the product */
.product-card__media-link {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    text-decoration: none;
}


/* =====================================================
   4. IMAGE & HOVER SWAP
   ✦ Blur + scale crossfade for premium feel.
===================================================== */

.product-card__img,
.product-card__img--hover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;

    /* ✦ Added filter to transition for blur effect */
    transition:
        opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Primary image */
.product-card__img {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
    z-index: 1;
}

/* Hover image — hidden + slightly blurred initially */
.product-card__img--hover {
    opacity: 0;
    transform: scale(1.06);
    filter: blur(5px);
    z-index: 2;
}

/* ✦ On hover: primary fades out with blur, secondary sharpens in */
.product-card.has-hover-img:hover .product-card__img {
    opacity: 0;
    transform: scale(0.97);
    filter: blur(4px);
}

.product-card.has-hover-img:hover .product-card__img--hover {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
}

/* Subtle zoom when no hover image */
.product-card:not(.has-hover-img):hover .product-card__img {
    transform: scale(1.06);
}

/* Broken image fallback */
.product-card__media--fallback {
    background: linear-gradient(135deg, #F0EDEA 0%, #E8E4DF 100%);
}

.product-card__media--fallback .product-card__img {
    opacity: 0;
}

.product-card__media--fallback::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%23C9A96E' stroke-width='1' opacity='0.4'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E") center center / 40px no-repeat;
    z-index: 3;
    pointer-events: none;
}


/* =====================================================
   5. PRODUCT BADGES  ← TOP-LEFT corner
   New, Sale, Featured badges stack here.
   Discount % lives top-right (see Section 12).
===================================================== */

.product-card__badges {
    position: absolute;
    top: var(--space-3, 0.75rem);
    left: var(--space-3, 0.75rem);
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: var(--space-1-5, 0.375rem);
    pointer-events: none;
}

.product-card__badges .badge {
    font-size: 9px;
    padding: 0.25em 0.65em;
    border-radius: var(--radius-sm, 4px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: var(--weight-bold, 700);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    line-height: 1.4;
}

.product-card__badges .badge--new {
    background: var(--color-brand-black, #0A0A0A);
    color: var(--color-brand-white, #fff);
}

.product-card__badges .badge--sale {
    background: var(--color-brand-black, #0A0A0A);
    color: var(--color-brand-white, #fff);
}

.product-card__badges .badge--featured {
    background: var(--color-brand-gold, #C9A96E);
    color: var(--color-brand-black, #0A0A0A);
}

.product-card__badges .badge--sold {
    background: rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}


/* =====================================================
   6. OVERLAY ACTIONS — WISHLIST + QUICK VIEW
===================================================== */

.product-card__overlay-actions {
    position: absolute;
    top: var(--space-3, 0.75rem);
    right: var(--space-3, 0.75rem);
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: var(--space-2, 0.5rem);
    opacity: 0;
    transform: translateX(8px);
    transition:
        opacity var(--card-transition),
        transform var(--card-transition);
    pointer-events: none;
}

.product-card:hover .product-card__overlay-actions {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Staggered reveal */
.product-card:hover .product-card__overlay-actions .product-card__action-btn:nth-child(1) {
    transition-delay: 0ms;
}

.product-card:hover .product-card__overlay-actions .product-card__action-btn:nth-child(2) {
    transition-delay: 50ms;
}

/* ── Action Button ── */
.product-card__action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--card-action-size);
    height: var(--card-action-size);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-full, 9999px);
    color: var(--color-text-secondary, #525252);
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    transition:
        background var(--duration-fast, 120ms) var(--ease-in-out),
        color var(--duration-fast, 120ms) var(--ease-in-out),
        transform var(--duration-fast, 120ms) var(--ease-out),
        box-shadow var(--duration-fast, 120ms) var(--ease-in-out);
    flex-shrink: 0;
    padding: 0;
}

.product-card__action-btn svg {
    flex-shrink: 0;
    transition: transform var(--duration-fast, 120ms) var(--ease-out);
}

.product-card__action-btn:hover {
    background: var(--color-brand-black, #0A0A0A);
    border-color: var(--color-brand-black, #0A0A0A);
    color: var(--color-brand-white, #fff);
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.product-card__action-btn:hover svg {
    transform: scale(1.10);
}

.product-card__action-btn:active {
    transform: scale(0.95);
}

.product-card__action-btn:focus-visible {
    outline: 2px solid var(--color-brand-gold, #C9A96E);
    outline-offset: 2px;
}

/* ── Wishlist active ── */
.product-card__action-btn--wishlist.is-wishlisted {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #DC2626;
}

.product-card__action-btn--wishlist.is-wishlisted svg {
    fill: #DC2626;
}

.product-card__action-btn--wishlist.is-wishlisted:hover {
    background: #DC2626;
    border-color: #DC2626;
    color: #fff;
}

.product-card__action-btn--wishlist.is-wishlisted:hover svg {
    fill: #fff;
}


/* =====================================================
   7. ADD-TO-CART — ICON BUTTON  (✦ REDESIGNED)
   Clean floating circle with cart icon only.
   Rises from the bottom-center of the media on hover.
   No text — just the SVG icon for a minimal look.
===================================================== */

.product-card__atc-bar {
    position: absolute;
    bottom: var(--space-4, 1rem);
    left: 50%;
    right: auto;
    z-index: 5;

    /* Circle shape */
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full, 9999px);
    padding: 0;

    /* Dark glass background */
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--color-brand-white, #fff);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);

    /* ✦ Hide text — only icon shows */
    font-size: 0;
    letter-spacing: 0;
    gap: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    /* Hidden: shifted down */
    transform: translateX(-50%) translateY(18px);
    opacity: 0;
    transition:
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.28s ease-out,
        background 120ms ease-in-out,
        box-shadow 120ms ease-in-out;
    pointer-events: none;
}

.product-card__atc-bar svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: transform var(--duration-base, 200ms) var(--ease-out);
}

/* ✦ Reveal on hover */
.product-card:hover .product-card__atc-bar {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ✦ Hover: gold glow */
.product-card__atc-bar:hover {
    background: var(--color-brand-gold, #C9A96E);
    color: var(--color-brand-black, #0A0A0A);
    box-shadow: 0 6px 24px rgba(201, 169, 110, 0.45);
    transform: translateX(-50%) translateY(-2px) scale(1.10);
}

.product-card__atc-bar:hover svg {
    transform: scale(1.12);
}

.product-card__atc-bar:active {
    transform: translateX(-50%) translateY(0) scale(0.94);
}

.product-card__atc-bar:focus-visible {
    outline: 2px solid var(--color-brand-gold, #C9A96E);
    outline-offset: 3px;
}

/* Loading state */
.product-card__atc-bar.is-loading {
    pointer-events: none;
}

.product-card__atc-bar.is-loading svg {
    opacity: 0;
}

.product-card__atc-bar.is-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.30);
    border-top-color: #fff;
    border-radius: var(--radius-full, 9999px);
    animation: atc-spin 0.65s linear infinite;
}

@keyframes atc-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Confirmed: green */
.product-card__atc-bar.is-added {
    background: #16A34A;
    color: #fff;
    pointer-events: none;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Sold out */
.product-card--sold-out .product-card__atc-bar {
    background: rgba(0, 0, 0, 0.40);
    cursor: not-allowed;
    pointer-events: none;
}


/* =====================================================
   8. CARD BODY
===================================================== */

.product-card__body {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: var(--space-1-5, 0.375rem);
    padding: var(--card-body-py) 0;
    flex: 1;
    align-items: center;
}


/* =====================================================
   9. CATEGORY LABEL
===================================================== */

.product-card__category {
    display: none;
    text-align: center;
    font-family: var(--font-sans);
    font-size: var(--text-xs, 0.75rem);
    font-weight: var(--weight-medium, 500);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--color-text-muted, #A3A3A3);
    line-height: 1;
}


/* =====================================================
   10. PRODUCT NAME
===================================================== */

.product-card__name {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--text-xs, 0.75rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    color: var(--color-text-primary, #0A0A0A);
    line-height: 1.6;
    margin: 0 0 4px 0;
    transition: color var(--duration-fast, 120ms) var(--ease-in-out);
}

.product-card:hover .product-card__name {
    color: var(--color-brand-gold, #C9A96E);
}


/* =====================================================
   11. RATING
===================================================== */

.product-card__rating {
    display: flex;
    align-items: center;
    gap: var(--space-1-5, 0.375rem);
}

.product-card__rating-stars {
    display: flex;
    gap: 1px;
}

.product-card__rating-stars svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    color: var(--color-star, #F59E0B);
}

.product-card__rating-stars svg.empty {
    color: var(--color-star-empty, #E5E7EB);
}

.product-card__rating-score {
    font-size: var(--text-xs, 0.75rem);
    font-weight: var(--weight-regular, 400);
    color: var(--color-text-secondary, #525252);
    line-height: 1;
}

.product-card__rating-count {
    font-size: var(--text-xs, 0.75rem);
    color: var(--color-text-muted, #A3A3A3);
    line-height: 1;
}


/* =====================================================
   12. PRICE BLOCK
        + Discount Tag ← TOP-RIGHT corner of the card
===================================================== */

.product-card__price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: var(--space-0-5, 0.125rem);
}

.product-card__price-current {
    font-family: var(--font-sans);
    font-size: var(--text-base, 1rem);
    font-weight: var(--weight-regular, 400);
    color: var(--color-text-primary, #0A0A0A);
    line-height: 1.2;
    white-space: nowrap;
}

.product-card--on-sale .product-card__price-current {
    color: #0A0A0A;
}

.product-card__price-original {
    font-size: var(--text-sm, 0.875rem);
    font-weight: var(--weight-regular, 400);
    color: #585858;
    text-decoration: line-through;
    text-decoration-color: rgba(73, 73, 73, 0.65);
    line-height: 1.2;
    white-space: nowrap;
}

.product-card__price-save {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #E8543E;
    white-space: nowrap;
    line-height: 1.4;
    letter-spacing: 0.03em;
    margin-top: 2px;
}

/* ✦ Discount tag — pinned TOP-RIGHT of the card (opposite badges) */
.product-card__price-discount {
    position: absolute;
    top: var(--space-3, 0.75rem);
    right: var(--space-3, 0.75rem);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    padding: 0.3em 0.65em;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: var(--color-brand-black, #0A0A0A);
    border-radius: var(--radius-sm, 4px);
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    letter-spacing: 0.04em;
}

/* =====================================================
   13. COLOR SWATCHES
===================================================== */

.product-card__colors {
    display: flex;
    align-items: center;
    gap: var(--space-1, 0.25rem);
    flex-wrap: wrap;
    margin-top: var(--space-1, 0.25rem);
}

.product-card__color-dot {
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full, 9999px);
    border: 1.5px solid rgba(0, 0, 0, 0.10);
    cursor: pointer;
    transition:
        transform var(--duration-fast, 120ms) var(--ease-out),
        box-shadow var(--duration-fast, 120ms) var(--ease-in-out);
    flex-shrink: 0;
    position: relative;
}

.product-card__color-dot:hover {
    transform: scale(1.20);
    box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(0, 0, 0, 0.30);
}

.product-card__color-dot.is-active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--color-brand-black, #0A0A0A);
}

.product-card__colors-more {
    font-size: var(--text-xs, 0.75rem);
    color: var(--color-text-muted, #A3A3A3);
    line-height: 1;
    white-space: nowrap;
    margin-left: var(--space-0-5, 0.125rem);
}


/* =====================================================
   14. SOLD-OUT STATE
===================================================== */

.product-card--sold-out .product-card__media {
    filter: grayscale(18%);
}

.product-card--sold-out .product-card__img {
    opacity: 0.85;
}

.product-card--sold-out .product-card__price-current {
    color: var(--color-text-muted, #A3A3A3);
}

.product-card--sold-out:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.06));
}

.product-card__sold-overlay {
    position: absolute;
    bottom: var(--space-3, 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    background: rgba(255, 255, 255, 0.90);
    color: var(--color-text-primary, #0A0A0A);
    font-size: var(--text-xs, 0.75rem);
    font-weight: var(--weight-regular, 400);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.30em 0.80em;
    border-radius: var(--radius-full, 9999px);
    backdrop-filter: blur(4px);
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}


/* =====================================================
   15. FEATURED VARIANT
===================================================== */

.product-card--featured {
    border-color: rgba(201, 169, 110, 0.30);
}

.product-card--featured::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1.5px rgba(201, 169, 110, 0.25);
    pointer-events: none;
    z-index: 6;
}

.product-card--featured:hover {
    border-color: transparent;
    box-shadow: 0 16px 48px rgba(201, 169, 110, 0.18),
        0 8px 24px rgba(0, 0, 0, 0.10);
}

.product-card--featured .product-card__name {
    font-family: 'Inter', sans-serif;
    font-size: var(--text-xs, 0.75rem);
}


/* =====================================================
   16. LIST VIEW VARIANT
===================================================== */

.product-card--list {
    flex-direction: row;
    align-items: stretch;
    border-radius: var(--radius-lg, 10px);
}

.product-card--list .product-card__media {
    width: 200px;
    aspect-ratio: unset;
    flex-shrink: 0;
    border-radius: var(--radius-lg, 10px) 0 0 var(--radius-lg, 10px);
}

/* No shimmer on list view (horizontal sweep looks odd) */
.product-card--list .product-card__media::before {
    display: none;
}

.product-card--list .product-card__body {
    flex: 1;
    padding: var(--space-5, 1.25rem);
    gap: var(--space-2-5, 0.625rem);
    justify-content: center;
}

.product-card--list .product-card__name {
    -webkit-line-clamp: 3;
    font-size: var(--text-lg, 1.125rem);
}

/* ATC in list view: slim right-side strip with icon */
.product-card--list .product-card__atc-bar {
    position: static;
    width: 52px;
    height: auto;
    border-radius: 0 var(--radius-lg, 10px) var(--radius-lg, 10px) 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    align-self: stretch;
    flex-direction: column;
    padding: var(--space-5) var(--space-3);
    font-size: 0;
    letter-spacing: 0;
    gap: 0;
}

.product-card--list .product-card__atc-bar svg {
    width: 22px;
    height: 22px;
}

.product-card--list:hover .product-card__atc-bar {
    transform: none;
}

.product-card--list .product-card__atc-bar:hover {
    transform: none;
}

.product-card--list .product-card__overlay-actions {
    position: static;
    opacity: 1;
    transform: none;
    flex-direction: row;
    pointer-events: auto;
    margin-top: var(--space-3, 0.75rem);
}

/* Suppressed image swap on list */
.product-card--list:hover .product-card__img {
    transform: scale(1.04);
    opacity: 1;
    filter: blur(0);
}

.product-card--list:hover .product-card__img--hover {
    opacity: 0;
}


/* =====================================================
   17. WISHLIST-ACTIVE & IN-CART STATES
===================================================== */

@keyframes wishlist-pop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.30);
    }

    70% {
        transform: scale(0.90);
    }

    100% {
        transform: scale(1);
    }
}

.product-card__action-btn--wishlist.just-added svg {
    animation: wishlist-pop 0.35s var(--ease-out) forwards;
}

.product-card.is-in-cart {
    border-bottom: 2.5px solid var(--color-brand-gold, #C9A96E);
}

.product-card.is-in-cart .product-card__atc-bar {
    background: #16A34A;
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}


/* =====================================================
   18. LOADING / PLACEHOLDER
===================================================== */

.product-skeleton {
    border: 1px solid var(--color-border, #E5E5E5);
    border-radius: var(--card-radius, 12px);
}

.product-skeleton__img {
    aspect-ratio: 3 / 4;
    border-radius: var(--card-radius, 12px) var(--card-radius, 12px) 0 0;
}

.product-skeleton__body {
    padding: var(--space-3, 0.75rem);
    gap: var(--space-2-5, 0.625rem);
}

.product-skeleton__line {
    height: 11px;
    border-radius: var(--radius-sm, 4px);
}

.product-skeleton__line--sm {
    width: 55%;
    height: 10px;
}


/* =====================================================
   19. REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .product-card {
        transition: box-shadow var(--duration-base), border-color var(--duration-base);
        will-change: auto;
    }

    .product-card:hover {
        transform: none;
    }

    /* No shimmer */
    .product-card__media::before {
        display: none;
    }

    .product-card__img,
    .product-card__img--hover {
        transition: opacity var(--duration-base);
        filter: none !important;
    }

    .product-card.has-hover-img:hover .product-card__img {
        transform: none;
        filter: none;
    }

    .product-card:not(.has-hover-img):hover .product-card__img {
        transform: none;
    }

    .product-card__atc-bar {
        transition: opacity var(--duration-base), background var(--duration-fast);
    }

    .product-card__overlay-actions {
        transition: opacity var(--duration-base);
    }

    .product-card__color-dot:hover {
        transform: none;
    }

    .product-card__action-btn:hover {
        transform: none;
    }

    .product-card__action-btn--wishlist.just-added svg {
        animation: none;
    }

}


/* =====================================================
   20. RESPONSIVE OVERRIDES
===================================================== */

/* ── LG: ≤ 1024px ── */
@media (max-width: 1024px) {

    .product-card {
        --card-action-size: 34px;
    }

    .product-card__name {
        font-size: var(--text-xs, 0.75rem);
    }

    .product-card__price-current {
        font-size: var(--text-sm, 0.875rem);
    }

}

/* ── MD: ≤ 768px ── */
@media (max-width: 768px) {

    .product-card {
        --card-body-px: var(--space-2-5, 0.625rem);
        --card-body-py: var(--space-2-5, 0.625rem);
    }

    .product-card .product-card__overlay-actions {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }

    .product-card__body {
        gap: var(--space-1, 0.25rem);
    }

    .product-card__rating-count {
        display: block;
    }

    /* List view: stack vertically on mobile */
    .product-card--list {
        flex-direction: column;
    }

    .product-card--list .product-card__media {
        width: 100%;
        aspect-ratio: var(--card-img-ratio);
        border-radius: var(--card-radius, 12px) var(--card-radius, 12px) 0 0;
    }

    /* ATC back to floating circle on stacked mobile list card */
    .product-card--list .product-card__atc-bar {
        position: absolute;
        width: 46px;
        height: 46px;
        border-radius: var(--radius-full, 9999px);
        bottom: var(--space-4, 1rem);
        left: 50%;
        transform: translateX(-50%) translateY(0);
        opacity: 1;
        align-self: auto;
        flex-direction: row;
        padding: 0;
        border-radius: 0 0 var(--card-radius, 12px) var(--card-radius, 12px);
        width: 100%;
        height: auto;
        padding: var(--space-3) var(--space-4);
        border-radius: 0 0 var(--card-radius, 12px) var(--card-radius, 12px);
        transform: none;
    }

    .product-card--list .product-card__atc-bar:hover {
        transform: none;
    }

    .product-card--list .product-card__overlay-actions {
        position: absolute;
        top: var(--space-3, 0.75rem);
        right: var(--space-3, 0.75rem);
        flex-direction: column;
        margin-top: 0;
    }

}

/* ── SM: ≤ 640px ── */
@media (max-width: 640px) {

    .product-card {
        --card-radius: 0px;
        --card-action-size: 32px;
    }

    /* Slightly smaller circle on small phones */
    .product-card__atc-bar {
        width: 44px;
        height: 44px;
    }

    .product-card__atc-bar svg {
        width: 18px;
        height: 18px;
    }

    .product-card__name {
        font-size: var(--text-xs, 0.75rem);
    }

    /* Hide swatches on small screens */
    .product-card__colors {
        display: none;
    }

    .product-card__badges .badge {
        font-size: 8px;
        padding: 0.20em 0.55em;
    }

    .product-card__rating {
        justify-content: center;
    }

    .product-card__price {
        flex-direction: column;
        align-items: center;
        gap: 3px;
    }

    .product-card__price-original {
        order: 1;
        font-size: var(--text-xs, 0.75rem);
    }

    .product-card__price-current {
        order: 2;
        font-size: var(--text-sm, 0.875rem);
    }

    .product-card__price-save {
        display: block;
        order: 3;
    }

}

/* ── XS: ≤ 480px ── */
@media (max-width: 480px) {

    .product-card {
        --card-body-px: var(--space-2, 0.5rem);
        --card-body-py: var(--space-2, 0.5rem);
    }

    /* Keep only wishlist button on very small screens */
    .product-card__overlay-actions .product-card__action-btn:not(.product-card__action-btn--wishlist) {
        display: none;
    }

    /* Keep discount tag visible on XS */
    .product-card__price-discount {
        display: inline-flex;
    }

}