/* Soft UI Premium — converted from kad_soft_ui_premium.html
   Visual source of truth. Legacy .mc-* visual rules must not restyle this card. */
:root {
    /* Surfaces stay neutral; brand accents come from admin base/secondary color.
       Hex can safely fall back via var(); RGB lists are injected directly (commas break var fallbacks). */
    --soft-bg: #FCFAF5;
    --soft-card: #ffffff;
    --soft-text: #2d3748;
    --soft-muted: #718096;
    --soft-accent: var(--ms-brand, var(--brand-live));
    --soft-accent-hover: var(--brand-live-hover);
    --soft-green: var(--ms-brand-2, var(--brand-2-live));
    --soft-danger: #ff5e5e;
    --soft-star: #fbbf24;
    --soft-dark-card: #151C2C;
    --soft-shadow: 10px 10px 30px rgba(0,0,0,.04), -10px -10px 30px rgba(255,255,255,1);
    --soft-shadow-dark: 15px 15px 35px rgba(0,0,0,.6), -8px -8px 25px rgba(255,255,255,.02);
    --mc-brand: var(--brand-live);
    --mc-brand-2: var(--brand-2-live);
    --mc-brand-rgb: var(--brand-live-rgb);
    --mc-brand-2-rgb: var(--brand-2-live-rgb);
    --soft-btn-shadow: 0 10px 20px -5px rgba(var(--brand-live-rgb), .40);
}

.mc-grid {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.5rem;
}
.mc-grid > .mc-col {
    display: flex;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    padding-left: calc(var(--bs-gutter-x) * .5);
    padding-right: calc(var(--bs-gutter-x) * .5);
    align-items: flex-start !important;
}
/* Default product grid widths (homepage + non-browse). Browse overrides via browse-taste.css */
@media (min-width: 576px) {
    .mc-grid:not(.mc-list) > .mc-col { flex: 0 0 50%; max-width: 50%; width: 50%; }
}
@media (min-width: 992px) {
    .mc-grid:not(.mc-list) > .mc-col { flex: 0 0 33.3333%; max-width: 33.3333%; width: 33.3333%; }
}
@media (min-width: 1200px) {
    .mc-grid:not(.mc-list) > .mc-col { flex: 0 0 25%; max-width: 25%; width: 25%; }
}
.mc-grid:not(.mc-list) > .mc-col {
    margin-bottom: 0;
}
/* Prevent stretchy tall cards when row heights differ */
.mc-grid:not(.mc-list) > .mc-col > .soft-card {
    height: auto !important;
    max-height: none !important;
    align-self: flex-start !important;
    width: 100% !important;
}

/* r7 soft-card dark surfaces */
html.dark, body.dark {
    --soft-bg: #0f1419;
    --soft-card: var(--soft-dark-card, #151C2C);
    --soft-text: #e8edf5;
    --soft-muted: #94a3b8;
    --soft-shadow: var(--soft-shadow-dark);
}
html.dark .soft-card,
body.dark .soft-card {
    background: var(--soft-card) !important;
    color: var(--soft-text) !important;
    box-shadow: var(--soft-shadow-dark) !important;
    border-color: rgba(255,255,255,.06) !important;
}
html.dark .soft-card:hover,
body.dark .soft-card:hover {
    box-shadow: 0 25px 40px -10px rgba(0,0,0,.55) !important;
}

/* ===== GRID CARD (reference vertical card) ===== */
.soft-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 12px 12px 24px !important;
    overflow: hidden !important;
    border: 1px solid transparent !important;
    border-radius: 28px !important;
    background: var(--soft-card) !important;
    color: var(--soft-text) !important;
    box-shadow: var(--soft-shadow) !important;
    font-family: 'Nunito', system-ui, sans-serif !important;
    transition: transform .4s cubic-bezier(.175,.885,.32,1.275), box-shadow .4s ease, border-color .3s ease !important;
}
.soft-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 25px 40px -10px rgba(0,0,0,.08) !important;
}
.soft-card:focus-within {
    border-color: rgba(var(--mc-brand-rgb), .28) !important;
}
.soft-card:hover, .soft-card:has(.soft-card__stretched:hover) { cursor: pointer !important; }

/* Whole-card click target — sits above static content, below interactive
   elements (wish/play/dots z5+, title/category/cta raised to z2) */
.soft-card__stretched {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    border-radius: inherit !important;
    background: transparent !important;
    outline: none !important;
}
.soft-card__title a, .soft-card__cat a { position: relative; z-index: 2; }
.soft-card__cta { position: relative; z-index: 2; }

/* Media — always a true 1:1 square, at every width.
   A fixed height here would beat aspect-ratio and silently produce a
   rectangle (221x280 on tablet, 294x280 on desktop), so height stays auto. */
.soft-card__media {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    max-height: none !important;
    margin: 0 0 20px !important;
    overflow: hidden !important;
    border-radius: 22px !important;
    background: #edf0f2 !important;
    flex: 0 0 auto !important;
}
/* Blurred fill layer — sits behind the product image and is only revealed
   when the source art does not fill the 1:1 box nicely (non-square, or too
   small to upscale cleanly). JS adds .has-fill to .soft-card__media. */
.soft-card__media-fill {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    opacity: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    filter: blur(26px) saturate(1.25) brightness(.96) !important;
    transform: scale(1.18) !important;
    transition: opacity .3s ease !important;
    pointer-events: none !important;
}
.soft-card__media.has-fill .soft-card__media-fill {
    opacity: 1 !important;
}
.soft-card__media.has-fill {
    background: #eee !important;
}
.soft-card__media-link {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    display: block !important;
}
/* Product art is shown whole inside the 1:1 box — never cropped, never blurred. */
.soft-card__media img {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center !important;
    image-rendering: auto !important;
    transition: transform .5s ease !important;
}
.soft-card:hover .soft-card__media img {
    transform: scale(1.04) !important;
}
/* When the fill is showing, the art gets a touch of breathing room so the
   blur reads as a frame rather than as part of the image. */
.soft-card__media.has-fill img {
    padding: 6px !important;
}
.soft-card:hover .soft-card__media.has-fill img {
    transform: scale(1.02) !important;
}
.soft-card__media-shade {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    pointer-events: none !important;
    background: linear-gradient(to top, rgba(0,0,0,.5), transparent) !important;
}


/* Gallery slider + dots (reference Soft UI) */
.soft-card__slider {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    transition: transform .35s ease !important;
    will-change: transform;
}
.soft-card__slide {
    position: relative !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
/* Per-slide blurred fill — same rule as the single-image card: the art is
   contained and stays sharp; the blur only shows when the art can't fill. */
.soft-card__slide-fill {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    opacity: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    filter: blur(26px) saturate(1.25) brightness(.96) !important;
    transform: scale(1.18) !important;
    pointer-events: none !important;
}
.soft-card__slide.has-fill .soft-card__slide-fill {
    opacity: 1 !important;
}
.soft-card__slide a {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}
.soft-card__slide img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center !important;
    image-rendering: auto !important;
}
.soft-card__slide.has-fill img {
    padding: 6px !important;
}
.soft-card__dots {
    position: absolute !important;
    left: 50% !important;
    bottom: 16px !important;
    z-index: 6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transform: translateX(-50%) !important;
}
.soft-card__dot-btn {
    width: 8px !important;
    height: 8px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.4) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,.18) !important;
    cursor: pointer !important;
    transform: scale(.75) !important;
    transition: background .3s ease, transform .3s ease !important;
}
.soft-card__dot-btn.is-active {
    background: #fff !important;
    transform: scale(1) !important;
}
.soft-card__dot-btn:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: 2px !important;
}
.mc-list .soft-card__dots {
    bottom: 10px !important;
    gap: 6px !important;
}
.mc-list .soft-card__dot-btn {
    width: 6px !important;
    height: 6px !important;
}
@media (max-width: 575.98px) {
    .soft-card__dots { bottom: 10px !important; gap: 6px !important; }
    .soft-card__dot-btn { width: 6px !important; height: 6px !important; }
    .mc-list .soft-card__dots { bottom: 6px !important; }
}

/* Badge */
.soft-card__badge {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    z-index: 5 !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    background: var(--soft-danger) !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: .06em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    box-shadow: 0 8px 18px rgba(255,94,94,.28) !important;
}

/* Heart */
.soft-card__wish {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    z-index: 5 !important;
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.9) !important;
    color: #a0aec0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.12) !important;
    backdrop-filter: blur(8px);
    cursor: pointer !important;
    transition: transform .3s cubic-bezier(.175,.885,.32,1.275), color .3s ease !important;
}
.soft-card__wish:hover,
.soft-card__wish.is-saved {
    color: var(--soft-danger) !important;
    transform: scale(1.15) !important;
}
.soft-card__wish i {
    font-size: 15px !important;
    line-height: 1 !important;
}

/* Play */
.soft-card__play {
    position: absolute !important;
    right: 16px !important;
    bottom: 16px !important;
    z-index: 5 !important;
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.9) !important;
    color: var(--soft-accent) !important;
    box-shadow: 0 8px 18px rgba(0,0,0,.16) !important;
    cursor: pointer !important;
    transition: transform .2s ease, background .2s ease !important;
}
.soft-card__play:hover {
    transform: scale(1.1) !important;
    background: #fff !important;
}
.soft-card__play i {
    font-size: 12px !important;
    margin-left: 1px !important;
}
.soft-card__play span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
}

/* Body */
.soft-card__body {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    gap: 8px !important;
    min-width: 0 !important;
    padding: 0 12px !important;
    background: transparent !important;
}
/* Grid cards: clean hierarchy — title + rating + price (hide tag/date noise) */
.mc-grid:not(.mc-list) .soft-card__tags {
    display: none !important;
}
.mc-grid:not(.mc-list) .soft-card__title {
    font-size: 15px !important;
    letter-spacing: -.01em !important;
}
.mc-grid:not(.mc-list) .soft-card__rating {
    gap: 6px !important;
}
.mc-grid:not(.mc-list) .soft-card__price-meta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    margin: 0 0 2px !important;
}
.mc-grid:not(.mc-list) .soft-card__price-col {
    gap: 2px !important;
}
.mc-grid:not(.mc-list) .soft-card__old {
    font-size: 12px !important;
}
.mc-grid:not(.mc-list) .soft-card__off {
    font-size: 11px !important;
    padding: 2px 6px !important;
}
.mc-grid:not(.mc-list) .soft-card__price {
    font-size: 18px !important;
}
.soft-card__heading {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    min-width: 0 !important;
}
.soft-card__cat {
    color: var(--soft-green) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .04em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}
.soft-card__cat a {
    color: inherit !important;
    text-decoration: none !important;
}
.soft-card__cat a:hover {
    color: var(--soft-accent-hover) !important;
}
.soft-card__title {
    margin: 0 !important;
    overflow: hidden !important;
    color: #344054 !important;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    line-height: 1.45 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}
.soft-card__title a {
    color: inherit !important;
    text-decoration: none !important;
}
.soft-card__title a:hover {
    color: var(--soft-accent) !important;
}

/* Tags + date row */
.soft-card__tags {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 4px !important;
}
.soft-card__tag {
    display: inline-flex !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}
.soft-card__date {
    margin-left: auto !important;
    color: #9ca3af !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}
.soft-card__date i {
    margin-right: 4px !important;
}

/* Rating row */
.soft-card__rating {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    color: var(--soft-muted) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}
.soft-card__stars {
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    color: var(--soft-star, #fbbf24) !important;
}
/* Unrated cards show five outlined stars — grey, never the amber fill, so an
   empty rating never reads as a good one. */
.soft-card__stars--empty {
    color: #d1d5db !important;
}
.soft-card__stars--empty i {
    color: #d1d5db !important;
}
.soft-card__stars i {
    font-size: 10px !important;
}
.soft-card__score {
    color: var(--soft-text) !important;
    font-weight: 800 !important;
}
.soft-card__dot {
    width: 4px !important;
    height: 4px !important;
    border-radius: 50% !important;
    background: #d1d5db !important;
    display: inline-block !important;
}
.soft-card__sales {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.soft-card__sales i {
    color: var(--soft-green) !important;
    font-size: 10px !important;
}
.soft-card__noreview {
    color: #9ca3af !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

/* Footer: price + CTA — reference layout */
.soft-card__footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-top: auto !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(243,244,246,.9) !important;
    flex-wrap: nowrap !important;
}
.soft-card__price-col {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    flex-shrink: 1 !important;
    overflow: hidden !important;
}
.soft-card__price-col .soft-card__price {
    max-width: 100% !important;
}
.soft-card__price-meta {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    row-gap: 2px !important;
    gap: 8px !important;
    margin-bottom: 2px !important;
}
.soft-card__old {
    color: #9ca3af !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: line-through !important;
    white-space: nowrap !important;
}
.soft-card__off {
    display: inline-flex !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    background: rgba(255,94,94,.1) !important;
    color: var(--soft-danger) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: .04em !important;
    white-space: nowrap !important;
}
.soft-card__price {
    color: var(--soft-accent) !important;
    font-size: 26px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
    filter: drop-shadow(0 1px 1px rgba(var(--mc-brand-rgb), .18));
}
.soft-card__price.is-free {
    color: var(--soft-green) !important;
}

/* Reference HTML: ONE amber pill only (Add to cart) — no Buy Now */
.soft-card__cta {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
    margin-left: 8px !important;
}
.soft-card__btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-width: 130px !important;
    min-height: 48px !important;
    padding: 12px 20px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--soft-accent) !important;
    color: #fff !important;
    box-shadow: var(--soft-btn-shadow) !important;
    font-family: 'Nunito', system-ui, sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: background .3s ease, transform .15s ease, box-shadow .3s ease !important;
}
.soft-card__btn:hover {
    background: var(--soft-accent-hover) !important;
    color: #fff !important;
    box-shadow: 0 13px 24px -6px rgba(var(--mc-brand-rgb), .48) !important;
}
.soft-card__btn:active {
    transform: scale(.95) !important;
}
.soft-card__btn:disabled {
    opacity: .75 !important;
    cursor: wait !important;
}
/* Neutralize ANY leftover legacy visual hooks on this card */
.soft-card.mc-card,
.soft-card .mc-media,
.soft-card .mc-body,
.soft-card .mc-title,
.soft-card .mc-price,
.soft-card .mc-buy,
.soft-card .mc-footer {
    /* keep class names for JS/grid only — visuals owned by .soft-card* */
}

/* ===== LIST VIEW (reference horizontal card) ===== */
.mc-list .soft-card {
    flex-direction: row !important;
    align-items: stretch !important;
    max-width: none !important;
    padding: 12px !important;
    border-radius: 26px !important;
    gap: 20px !important;
}
.mc-list .soft-card__media {
    width: 240px !important;
    height: 240px !important;
    min-width: 240px !important;
    min-height: 240px !important;
    flex: 0 0 240px !important;
    margin: 0 !important;
    border-radius: 20px !important;
}
.mc-list .soft-card__body {
    justify-content: space-between !important;
    padding: 12px 16px 8px 0 !important;
}
.mc-list .soft-card__title {
    -webkit-line-clamp: 1 !important;
    line-clamp: 1 !important;
}
.mc-list .soft-card__price {
    font-size: 26px !important;
}

@media (max-width: 991.98px) {
    .mc-list .soft-card__media {
        width: 180px !important;
        height: 180px !important;
        min-width: 180px !important;
        min-height: 180px !important;
        flex-basis: 180px !important;
    }
}

/* Mobile only (phone) — desktop Soft UI unchanged.
   Grid: price on top, full-width Add to cart below; shorter card. */
@media (max-width: 767.98px) {
    /* ===== GRID cards (2-col browse) ===== */
    .mc-grid:not(.mc-list) > .mc-col > .soft-card,
    .mc-grid:not(.mc-list) .soft-card {
        display: flex !important;
        flex-direction: column !important;
        padding: 8px 8px 10px !important;
        border-radius: 15px !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        align-self: stretch !important;
    }
    .mc-grid:not(.mc-list) .soft-card:hover {
        transform: translateY(-3px) !important;
    }
    .mc-grid:not(.mc-list) .soft-card__media {
        height: auto !important;
        min-height: 0 !important;
        /* No max-height: it fought aspect-ratio and produced a 178x132 box.
           The media must stay a true 1:1 square at every width. */
        max-height: none !important;
        aspect-ratio: 1 / 1 !important;
        margin: 0 0 8px !important;
        border-radius: 13px !important;
    }
    .mc-grid:not(.mc-list) .soft-card__badge {
        top: 8px !important;
        left: 8px !important;
        padding: 3px 7px !important;
        font-size: 8px !important;
    }
    .mc-grid:not(.mc-list) .soft-card__wish {
        top: 8px !important;
        right: 8px !important;
        width: 28px !important;
        height: 28px !important;
    }
    .mc-grid:not(.mc-list) .soft-card__wish i { font-size: 11px !important; }
    .mc-grid:not(.mc-list) .soft-card__play {
        width: 28px !important;
        height: 28px !important;
        right: 8px !important;
        bottom: 8px !important;
    }
    .mc-grid:not(.mc-list) .soft-card__play i { font-size: 9px !important; }
    .mc-grid:not(.mc-list) .soft-card__dots {
        bottom: 6px !important;
        gap: 5px !important;
    }
    .mc-grid:not(.mc-list) .soft-card__dot-btn {
        width: 5px !important;
        height: 5px !important;
    }
    .mc-grid:not(.mc-list) .soft-card__body {
        display: flex !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        gap: 6px !important;
        padding: 0 2px !important;
    }
    .mc-grid:not(.mc-list) .soft-card__footer {
        margin-top: auto !important;
    }
    .mc-grid:not(.mc-list) .soft-card__heading { gap: 2px !important; }
    .mc-grid:not(.mc-list) .soft-card__cat {
        font-size: 9px !important;
        letter-spacing: .03em !important;
    }
    .mc-grid:not(.mc-list) .soft-card__title {
        font-size: 13px !important;
        line-height: 1.25 !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        min-height: 0 !important;
    }
    /* Hide noisy meta on mobile grid — rating + sold only */
    .mc-grid:not(.mc-list) .soft-card__tags {
        display: none !important;
    }
    .mc-grid:not(.mc-list) .soft-card__date {
        display: none !important;
    }
    .mc-grid:not(.mc-list) .soft-card__rating {
        gap: 4px !important;
        font-size: 10px !important;
        flex-wrap: wrap !important;
    }
    .mc-grid:not(.mc-list) .soft-card__stars i { font-size: 8px !important; }
    .mc-grid:not(.mc-list) .soft-card__sales i { font-size: 9px !important; }

    /* Price + sold stay compact; cart CTA is one uniform full-width row. */
    .mc-grid:not(.mc-list) .soft-card__footer {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 4px !important;
        padding-top: 8px !important;
        border-top: 1px solid rgba(243,244,246,.9) !important;
        flex-wrap: nowrap !important;
    }
    .mc-grid:not(.mc-list) .soft-card__rating {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        min-width: 0 !important;
    }
    .mc-grid:not(.mc-list) .soft-card__stars,
    .mc-grid:not(.mc-list) .soft-card__sales {
        min-width: 0 !important;
        white-space: nowrap !important;
    }
    .mc-grid:not(.mc-list) .soft-card__price-col {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        min-width: 0 !important;
        overflow: visible !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
        min-height: 0 !important;
    }
    .mc-grid:not(.mc-list) .soft-card__price-meta {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin: 0 !important;
        flex-wrap: nowrap !important;
        order: 0 !important;
    }
    .mc-grid:not(.mc-list) .soft-card__old {
        order: 0 !important;
        font-size: 10px !important;
        line-height: 1 !important;
        text-decoration: line-through !important;
    }
    .mc-grid:not(.mc-list) .soft-card__off {
        order: 0 !important;
        font-size: 9px !important;
        padding: 1px 5px !important;
        line-height: 1.2 !important;
    }
    .mc-grid:not(.mc-list) .soft-card__price {
        order: 0 !important;
        font-size: 15px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        overflow: visible !important;
        max-width: 100% !important;
        filter: none !important;
    }
    .mc-grid:not(.mc-list) .soft-card__cta {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        flex: 0 0 auto !important;
    }
    .mc-grid:not(.mc-list) .soft-card__btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 100% !important;
        min-height: 36px !important;
        height: 36px !important;
        padding: 8px 10px !important;
        font-size: 11px !important;
        gap: 6px !important;
        flex: 0 0 100% !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .mc-grid:not(.mc-list) .soft-card__btn i {
        font-size: 11px !important;
        flex: 0 0 auto !important;
    }
    .mc-grid:not(.mc-list) .soft-card__btn span,
    .mc-grid:not(.mc-list) .soft-card__btn .cart-text {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        min-width: 0 !important;
    }

    /* ===== LIST view mobile (horizontal) — keep side layout, just tighter ===== */
    .mc-list .soft-card {
        padding: 8px !important;
        border-radius: 16px !important;
        gap: 10px !important;
    }
    .mc-list .soft-card__media {
        width: 115px !important;
        height: 115px !important;
        min-width: 115px !important;
        min-height: 115px !important;
        max-height: 115px !important;
        flex-basis: 115px !important;
        aspect-ratio: auto !important;
        border-radius: 12px !important;
        margin: 0 !important;
    }
    .mc-list .soft-card__body {
        padding: 4px 4px 2px 0 !important;
        gap: 6px !important;
    }
    .mc-list .soft-card__cat { font-size: 8px !important; }
    .mc-list .soft-card__title {
        font-size: 13px !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }
    .mc-list .soft-card__footer {
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }
    .mc-list .soft-card__price { font-size: 15px !important; }
    .mc-list .soft-card__cta { margin-left: 0 !important; }
    .mc-list .soft-card__btn {
        min-width: 96px !important;
        width: auto !important;
        min-height: 32px !important;
        padding: 6px 12px !important;
        font-size: 10px !important;
        gap: 4px !important;
    }
    .mc-list .soft-card__badge {
        top: 6px !important;
        left: 6px !important;
        padding: 2px 6px !important;
        font-size: 7px !important;
    }
    .mc-list .soft-card__wish,
    .mc-list .soft-card__play {
        width: 24px !important;
        height: 24px !important;
    }
    .mc-list .soft-card__wish {
        top: 6px !important;
        right: 6px !important;
    }
    .mc-list .soft-card__play {
        bottom: 6px !important;
        right: 6px !important;
    }
    .mc-list .soft-card__wish i { font-size: 10px !important; }
    .mc-list .soft-card__play i { font-size: 8px !important; }
}


/* Video modal */
.mc-video-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(8px);
}
.mc-video-modal[hidden] { display: none !important; }
.mc-video-modal__dialog {
    position: relative;
    width: min(90vw, 42rem);
    overflow: hidden;
    border-radius: 16px;
    background: #0B0F19;
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 25px 50px rgba(0,0,0,.45);
}
.mc-video-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    background: rgba(0,0,0,.4);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.mc-video-modal__body {
    aspect-ratio: 16/9;
    background: #05070a;
}
.mc-video-modal__body iframe,
.mc-video-modal__body video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.mc-empty {
    padding: 40px 24px;
    background: #fff;
    border: 1px dashed #e5e7eb;
    border-radius: 18px;
    color: var(--soft-muted);
    font-family: 'Nunito', system-ui, sans-serif;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

/* Tablet grid cards (768px–991.98px): two-up grid with a narrower column than desktop.
   The row footer keeps price and CTA side by side, so the CTA's desktop min-width
   starves the price and clips it — let the CTA shrink and hold the price column. */
@media (min-width: 768px) and (max-width: 991.98px) {
    .mc-grid:not(.mc-list) .soft-card__footer {
        flex-wrap: wrap !important;
        row-gap: 8px !important;
        gap: 10px !important;
    }
    .mc-grid:not(.mc-list) .soft-card__price-col {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: visible !important;
    }
    .mc-grid:not(.mc-list) .soft-card__cta {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        margin-left: 0 !important;
    }
    .mc-grid:not(.mc-list) .soft-card__btn {
        min-width: 0 !important;
        padding: 10px 14px !important;
        font-size: 12.5px !important;
    }
    .mc-grid:not(.mc-list) .soft-card__price {
        font-size: 14.5px !important;
        letter-spacing: -.01em !important;
    }
    .mc-grid:not(.mc-list) .soft-card__btn span {
        display: inline !important;
    }
}

/* Desktop grid cards (≥992px): the Add-to-cart pill must never starve or clip
   the price. The button shrinks to its content and the footer wraps (CTA drops
   under the price) whenever a long price leaves no room — nothing is ever
   covered (store decision 2026-10-14). */
@media (min-width: 992px) {
    /* Desktop: "Add to cart" sits beside the price on one row — never wrapped below. */
    .mc-grid:not(.mc-list) .soft-card__footer {
        flex-wrap: nowrap !important;
        row-gap: 0 !important;
        gap: 10px !important;
        align-items: center !important;
    }
    .mc-grid:not(.mc-list) .soft-card__price-col {
        overflow: visible !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    .mc-grid:not(.mc-list) .soft-card__cta {
        flex: 0 0 auto !important;
        margin-left: auto !important;
    }
    .mc-grid:not(.mc-list) .soft-card__btn {
        min-width: 0 !important;
        min-height: 42px !important;
        padding: 10px 16px !important;
        font-size: 12.5px !important;
        white-space: nowrap !important;
    }
    .mc-grid:not(.mc-list) .soft-card__btn span {
        display: inline !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .soft-card,
    .soft-card__media img,
    .soft-card__wish,
    .soft-card__play,
    .soft-card__btn {
        transition: none !important;
    }
    .soft-card:hover { transform: none !important; }
    .soft-card:hover .soft-card__media img { transform: none !important; }
}
/* ════════════════════════════════════════════════════════════════════
   MOBILE POLISH (2026-10-22) — keterbacaan & tap target ikut standard
   iOS HIG / Material (min 44px). Hanya kesan ≤576px, tanpa mengubah
   identiti soft-card desktop.
   ════════════════════════════════════════════════════════════════════ */
@media (max-width:575.98px){
  /* Tap target butang wish/play pada kad media: 28px → 40px */
  .mc-grid:not(.mc-list) .soft-card__wish,
  .mc-grid:not(.mc-list) .soft-card__play{
    width:40px !important;height:40px !important;top:10px !important;right:10px !important;
  }
  .mc-grid:not(.mc-list) .soft-card__play{top:auto !important;right:10px !important;bottom:10px !important}
  .mc-grid:not(.mc-list) .soft-card__wish i{font-size:14px !important}
  .mc-grid:not(.mc-list) .soft-card__play i{font-size:12px !important}

  /* Meta teks kecil dibesarkan supaya boleh dibaca (8-9px → 10.5-11px) */
  .mc-grid:not(.mc-list) .soft-card__stars i{font-size:10px !important}
  .mc-grid:not(.mc-list) .soft-card__sales i{font-size:10.5px !important}
  .mc-grid:not(.mc-list) .soft-card__score{font-size:11px !important}
  .mc-grid:not(.mc-list) .soft-card__date{font-size:10.5px !important}
  .mc-list .soft-card__cat{font-size:10.5px !important}

  /* Harga: kekal besar; meta harga jangan terlalu halus */
  .soft-card__price-meta{font-size:11px !important}

  /* CTA kad: sentuh selesa */
  .soft-card__cta .btn{min-height:42px !important;font-size:13.5px !important}
}

/* ════════════════════════════════════════════════════════════════════
   DESKTOP POLISH (2026-10-22) — kedalaman & nafas untuk skrin besar.
   Hanya berkuat kuasa ≥992px; identiti soft-card dikekalkan.
   ════════════════════════════════════════════════════════════════════ */
@media (min-width:992px){
  /* Nafas antara seksyen produk — dulu 13px (sempit, kad bertindan
     dengan kepala seksyen), kini 34px macam ritme landing premium */
  .ms-gsec{padding:34px 0}
  .ms-gsec:first-of-type{padding-top:18px}

  /* Kad: judul lebih wib (grid 4 kolum padat), body lebih lapang */
  .mc-grid:not(.mc-list) .soft-card__title{font-size:15.5px !important;line-height:1.4 !important}
  .mc-grid:not(.mc-list) .soft-card__body{gap:10px !important}

  /* Hover kad: angkat lebih jelas + border brand halus (felt, bukan flat) */
  .soft-card:hover{transform:translateY(-10px) !important;box-shadow:0 30px 48px -14px rgba(0,0,0,.10),0 4px 12px rgba(0,0,0,.04) !important;border-color:rgba(var(--mc-brand-rgb,33,204,135),.22) !important}
  .soft-card__media img{transition:transform .5s cubic-bezier(.22,.9,.3,1) !important}
  .soft-card:hover .soft-card__media img{transform:scale(1.045) !important}

  /* Judul media query kecil → 11.5px supaya terbaca di 4-kolum */
  .mc-grid:not(.mc-list) .soft-card__rating,
  .mc-grid:not(.mc-list) .soft-card__sales{font-size:11.5px !important}

  /* CTA kad: tinggi selesa + ikon meluncur bila hover */
  .soft-card__cta .btn{min-height:44px !important;font-weight:700 !important;transition:box-shadow .25s ease,transform .25s ease !important}
  .soft-card:hover .soft-card__cta .btn{box-shadow:0 10px 20px -8px rgba(var(--mc-brand-rgb,33,204,135),.45) !important}
}

/* ── 2) Grid utama 3-kolum di desktop (diluluskan boss 2026-10-22):
      kad lebih besar, kurang sesak berbanding 4-kolum. Browse page
      kekal override sendiri (browse-taste.css). ── */
@media (min-width:1200px){
  body:not(.ms-browse-page) .mc-grid:not(.mc-list) > .mc-col{flex:0 0 25% !important;max-width:25% !important;width:25% !important}
}
@media (min-width:1200px){
  .mc-grid:not(.mc-list) .soft-card__title{font-size:15px !important}
  .mc-grid:not(.mc-list) .soft-card__body{padding:6px 8px 4px !important}
}


/* ═══ B) Kad produk sesuai SEMUA skrin (2026-10-22) ═══
   <480px  : 1 kolom (kad kaya, teks boleh dibaca)
   480-991 : 2 kolom padat
   >=992   : 3 kolom
   Homepage >=1200: 3 kolom (override sedia ada di atas) */
@media (max-width:479.98px){
  .mc-grid:not(.mc-list) > .mc-col{flex:0 0 100%;max-width:100%;width:100%}
  .mc-grid:not(.mc-list){--bs-gutter-x:.9rem}
}
@media (min-width:480px) and (max-width:991.98px){
  .mc-grid:not(.mc-list) > .mc-col{flex:0 0 50%;max-width:50%;width:50%}
}
@media (min-width:992px) and (max-width:1199.98px){
  .mc-grid:not(.mc-list) > .mc-col{flex:0 0 33.3333%;max-width:33.3333%;width:33.3333%}
}

/* ── Fix 2026-10-22: "Related Products" slider pecah ──
   Rule grid 4-kolum (!important) turut terkena .mc-col dalam slide
   produk berkaitan → kad jadi 25% lebar. Pulihkan 100% untuk slide
   (spesifik lebih tinggi, kekal !important). */
body:not(.ms-browse-page) .ms-pd__slidecard .row.mc-grid > .mc-col,
.ms-pd__slidecard .mc-col{flex:0 0 100% !important;max-width:100% !important;width:100% !important}
