/*!
 * Noemi Slider Pro — Frontend styles
 * Fashion-first, minimal, RTL-ready.
 */

/* ============================================================
   CSS RESET (scoped)
   ============================================================ */
.nsp-slider,
.nsp-slider *,
.nsp-slider *::before,
.nsp-slider *::after {
    box-sizing: border-box;
}

/* ============================================================
   SLIDER ROOT
   ============================================================ */
.nsp-slider {
    /* Ratios derived from W × H set in the builder. Frontend stays fluid. */
    --nsp-ratio:   16 / 9;   /* desktop */
    --nsp-ratio-t: 4 / 3;    /* tablet */
    --nsp-ratio-m: 9 / 16;   /* mobile */

    /* Optional explicit height overrides (legacy — px / vh / %) */
    --nsp-h:   auto;
    --nsp-h-t: auto;
    --nsp-h-m: auto;

    /* Optional explicit max-width (legacy — defaults to fluid 100%) */
    --nsp-max-w:   100%;
    --nsp-max-w-t: 100%;
    --nsp-max-w-m: 100%;

    --nsp-anim-dur:   600ms;
    --nsp-anim-delay: 0ms;

    position: relative;
    width: 100%;
    max-width: var(--nsp-max-w);
    aspect-ratio: var(--nsp-ratio);
    height: var(--nsp-h);        /* if set to a value, overrides aspect-ratio */
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    background: #0d0d0d;
    font-family: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
    color: #fff;
    isolation: isolate;
    outline: none;
}

@media (max-width: 1024px) {
    .nsp-slider {
        aspect-ratio: var(--nsp-ratio-t);
        height: var(--nsp-h-t);
        max-width: var(--nsp-max-w-t);
    }
}
@media (max-width: 640px) {
    .nsp-slider {
        aspect-ratio: var(--nsp-ratio-m);
        height: var(--nsp-h-m);
        max-width: var(--nsp-max-w-m);
    }
}

/* Direction is explicit so the slider never inherits the document direction
   (e.g. an LTR slider embedded on a Hebrew <html dir="rtl"> site). The dir
   attribute is also set in markup; this is the styling backstop. */
.nsp-slider {
    direction: ltr;
}
.nsp-slider.nsp-rtl {
    direction: rtl;
    font-family: 'Heebo', 'Poppins', system-ui, sans-serif;
}

/* ============================================================
   VIEWPORT + TRACK
   ============================================================ */
.nsp-viewport {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.nsp-track {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ============================================================
   SLIDE
   ============================================================ */
.nsp-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 800ms cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.nsp-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

/* Transition variants */
.nsp-slide[data-transition="slide"]      { transition: transform 800ms cubic-bezier(0.4, 0, 0.2, 1), opacity 800ms; }
.nsp-slide[data-transition="zoom"]       { transition: transform 1200ms cubic-bezier(0.4, 0, 0.2, 1), opacity 800ms; }
.nsp-slide[data-transition="crossfade"]  { transition: opacity 1400ms ease; }

/* Background media */
.nsp-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* "Show entire photo" mode: sharp photo uncropped, blurred copy fills behind */
.nsp-slide-bg--contain {
    object-fit: contain;
    z-index: 1;
}
.nsp-slide-bg--blur {
    object-fit: cover;
    filter: blur(26px) saturate(1.15) brightness(0.92);
    transform: scale(1.12);
    z-index: 0;
}

.nsp-slide[data-transition="zoom"].is-active .nsp-slide-bg {
    animation: nspKenBurns 12s ease-out forwards;
}

@keyframes nspKenBurns {
    from { transform: scale(1); }
    to   { transform: scale(1.12); }
}

.nsp-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.nsp-slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* ============================================================
   LAYERS
   ============================================================ */
.nsp-layer {
    position: absolute;
    top:  var(--nsp-layer-y, 50%);
    left: var(--nsp-layer-x, 50%);
    max-width: calc(100% - 48px);
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Anchors (transform-origin) */
/* Parallax offsets default to 0 and are driven by JS (data-parallax layers) */
.nsp-layer { --nsp-par-x: 0px; --nsp-par-y: 0px; }
.nsp-layer[data-parallax] { transition: transform .18s ease-out; will-change: transform; }

.nsp-anchor--center       { transform: translate(calc(-50% + var(--nsp-par-x)), calc(-50% + var(--nsp-par-y))); }
.nsp-anchor--top_left     { transform: translate(var(--nsp-par-x), var(--nsp-par-y)); }
.nsp-anchor--top_right    { transform: translate(calc(-100% + var(--nsp-par-x)), var(--nsp-par-y)); }
.nsp-anchor--bottom_left  { transform: translate(var(--nsp-par-x), calc(-100% + var(--nsp-par-y))); }
.nsp-anchor--bottom_right { transform: translate(calc(-100% + var(--nsp-par-x)), calc(-100% + var(--nsp-par-y))); }

/* Per-device visibility (JS also enforces this for cache/optimizer resilience) */
@media (min-width: 1025px) { .nsp-hide-desktop { display: none !important; } }
@media (min-width: 641px) and (max-width: 1024px) { .nsp-hide-tablet { display: none !important; } }
@media (max-width: 640px) { .nsp-hide-mobile { display: none !important; } }

/* Iframe (YouTube/Vimeo) background: centered; JS sizes it to cover the slide */
.nsp-slide-bg--iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: 0;
}

/* Typography base */
/* Force inner text nodes to take the layer's own color/family instead of the
   theme's heading rules (e.g. Ecomus sets a dark color on h2/h3, which would
   otherwise override the inherited white). Scoped + !important on color only. */
.nsp-slider .nsp-layer h1,
.nsp-slider .nsp-layer h2,
.nsp-slider .nsp-layer h3,
.nsp-slider .nsp-layer h4,
.nsp-slider .nsp-layer p,
.nsp-slider .nsp-layer .nsp-text-inner,
.nsp-slider .nsp-layer .nsp-char,
.nsp-slider .nsp-layer .nsp-word {
    color: inherit !important;
    font-family: inherit;
    margin: 0;
}

.nsp-layer--heading h2 {
    margin: 0;
    font-family: 'Playfair Display', 'Poppins', serif;
    font-size: clamp(2rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.02em;
}
.nsp-rtl .nsp-layer--heading h2 {
    font-family: 'Heebo', 'Poppins', serif;
    font-weight: 800;
    letter-spacing: 0;
}

.nsp-layer--subheading h3 {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nsp-layer--text {
    font-size: clamp(0.95rem, 1.4vw, 1.125rem);
    line-height: 1.6;
    max-width: 480px;
}

/* Button */
.nsp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: #111;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 0;
    cursor: pointer;
    transition: all 300ms ease;
    white-space: nowrap;
}
.nsp-btn:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-2px);
}
.nsp-rtl .nsp-btn { letter-spacing: 0.05em; }

/* Shapes */
.nsp-shape { display: inline-block; width: 60px; height: 1px; background: currentColor; }
.nsp-shape--line-v { width: 1px; height: 60px; }
.nsp-shape--circle { width: 12px; height: 12px; background: currentColor; border-radius: 50%; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.nsp-layer.nsp-animate-in {
    animation-duration: var(--nsp-anim-dur);
    animation-delay:    var(--nsp-anim-delay);
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: both;
}

.nsp-layer.nsp-animate-in[data-entry="fade"]        { animation-name: nspFade; }
.nsp-layer.nsp-animate-in[data-entry="slide-up"]    { animation-name: nspSlideUp; }
.nsp-layer.nsp-animate-in[data-entry="slide-down"]  { animation-name: nspSlideDown; }
.nsp-layer.nsp-animate-in[data-entry="slide-left"]  { animation-name: nspSlideLeft; }
.nsp-layer.nsp-animate-in[data-entry="slide-right"] { animation-name: nspSlideRight; }
.nsp-layer.nsp-animate-in[data-entry="zoom-in"]     { animation-name: nspZoomIn; }
.nsp-layer.nsp-animate-in[data-entry="zoom-out"]    { animation-name: nspZoomOut; }
.nsp-layer.nsp-animate-in[data-entry="none"]        { animation: none; opacity: 1; }

/* RTL-aware directional flip */
.nsp-rtl .nsp-layer.nsp-animate-in[data-entry="slide-left"]  { animation-name: nspSlideRight; }
.nsp-rtl .nsp-layer.nsp-animate-in[data-entry="slide-right"] { animation-name: nspSlideLeft; }

@keyframes nspFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes nspSlideUp {
    from { opacity: 0; transform: translateY(40px) translate(var(--tx, -50%), var(--ty, -50%)); }
    to   { opacity: 1; transform: translateY(0)    translate(var(--tx, -50%), var(--ty, -50%)); }
}
@keyframes nspSlideDown {
    from { opacity: 0; transform: translateY(-40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes nspSlideLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes nspSlideRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes nspZoomIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes nspZoomOut {
    from { opacity: 0; transform: scale(1.2); }
    to   { opacity: 1; transform: scale(1); }
}

/* Anchor-aware animations override the translate so they stack */
.nsp-anchor--center.nsp-animate-in[data-entry="slide-up"]    { animation-name: nspSlideUpCenter; }
.nsp-anchor--center.nsp-animate-in[data-entry="slide-down"]  { animation-name: nspSlideDownCenter; }
.nsp-anchor--center.nsp-animate-in[data-entry="slide-left"]  { animation-name: nspSlideLeftCenter; }
.nsp-anchor--center.nsp-animate-in[data-entry="slide-right"] { animation-name: nspSlideRightCenter; }
.nsp-anchor--center.nsp-animate-in[data-entry="zoom-in"]     { animation-name: nspZoomInCenter; }
.nsp-anchor--center.nsp-animate-in[data-entry="zoom-out"]    { animation-name: nspZoomOutCenter; }
.nsp-anchor--center.nsp-animate-in[data-entry="fade"]        { animation-name: nspFadeCenter; }

@keyframes nspFadeCenter        { from { opacity: 0; transform: translate(-50%, -50%); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes nspSlideUpCenter     { from { opacity: 0; transform: translate(-50%, calc(-50% + 40px)); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes nspSlideDownCenter   { from { opacity: 0; transform: translate(-50%, calc(-50% - 40px)); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes nspSlideLeftCenter   { from { opacity: 0; transform: translate(calc(-50% - 60px), -50%); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes nspSlideRightCenter  { from { opacity: 0; transform: translate(calc(-50% + 60px), -50%); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes nspZoomInCenter      { from { opacity: 0; transform: translate(-50%, -50%) scale(0.85); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes nspZoomOutCenter     { from { opacity: 0; transform: translate(-50%, -50%) scale(1.2); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* Reduced motion */
.nsp-reduced-motion .nsp-layer,
.nsp-reduced-motion .nsp-slide-bg {
    animation: none !important;
    transition: opacity 200ms linear !important;
}
.nsp-reduced-motion .nsp-layer { opacity: 1 !important; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nsp-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(8px);
    transition: all 200ms ease;
}
.nsp-arrow:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    border-color: #fff;
}
.nsp-arrow-prev { left: 24px; }
.nsp-arrow-next { right: 24px; }

.nsp-rtl .nsp-arrow-prev { left: auto; right: 24px; }
.nsp-rtl .nsp-arrow-next { right: auto; left: 24px; }
.nsp-rtl .nsp-arrow svg  { transform: scaleX(-1); }

@media (max-width: 640px) {
    .nsp-arrow { width: 36px; height: 36px; }
    .nsp-arrow-prev { left: 12px; }
    .nsp-arrow-next { right: 12px; }
    .nsp-rtl .nsp-arrow-prev { right: 12px; left: auto; }
    .nsp-rtl .nsp-arrow-next { left: 12px; right: auto; }
}

/* Dots */
.nsp-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.nsp-dot {
    width: 28px;
    height: 2px;
    background: rgba(255, 255, 255, 0.35);
    border: 0;
    padding: 8px 0;
    background-clip: content-box;
    cursor: pointer;
    transition: background 250ms ease;
}
.nsp-dot.is-active,
.nsp-dot:hover {
    background-color: #fff;
    background-clip: content-box;
}

/* Progress bar */
.nsp-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 10;
}
.nsp-progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left center;
}
.nsp-rtl .nsp-progress-bar { transform-origin: right center; }

/* ============================================================
   HOTSPOTS
   ============================================================ */
.nsp-hotspots {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.nsp-hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
    color: #fff;
}

.nsp-hotspot-marker {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 32px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 200ms ease;
}

.nsp-hotspot-marker::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.95);
    opacity: 0.5;
    animation: nspHotspotPulse 2s ease-in-out infinite;
}

@keyframes nspHotspotPulse {
    0%, 100% { transform: scale(1);   opacity: 0.6; }
    50%      { transform: scale(1.4); opacity: 0; }
}

/* Hotspot styles */
.nsp-hotspot--plus .nsp-hotspot-marker::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 32px;
}
.nsp-hotspot--dot .nsp-hotspot-marker {
    width: 14px;
    height: 14px;
    margin: 9px;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(255,255,255,.4), 0 4px 12px rgba(0,0,0,.3);
}
.nsp-hotspot--dot .nsp-hotspot-marker::before { inset: -10px; }

.nsp-hotspot:hover .nsp-hotspot-marker { transform: scale(1.15); }

/* Tooltip */
.nsp-hotspot-tooltip {
    position: absolute;
    left: 50%;
    top: -8px;
    transform: translate(-50%, -100%);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    padding: 8px;
    background: #fff;
    color: #111;
    text-align: left;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
    white-space: nowrap;
    z-index: 5;
}
.nsp-rtl .nsp-hotspot-tooltip { text-align: right; }

.nsp-tooltip--bottom .nsp-hotspot-tooltip { top: auto; bottom: -8px; transform: translate(-50%, 100%); }

.nsp-hotspot:hover .nsp-hotspot-tooltip,
.nsp-hotspot:focus .nsp-hotspot-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -110%);
}
.nsp-tooltip--bottom.nsp-hotspot:hover .nsp-hotspot-tooltip {
    transform: translate(-50%, 110%);
}

.nsp-hotspot-tooltip img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    flex-shrink: 0;
}

.nsp-hotspot-tooltip-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.nsp-hotspot-name {
    font-size: 0.8rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nsp-hotspot-price {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ============================================================
   PRODUCT DRAWER
   ============================================================ */
.nsp-product-drawer {
    position: fixed;
    inset: 0;
    z-index: 999999;
    visibility: hidden;
    pointer-events: none;
}

.nsp-product-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.nsp-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 300ms ease;
}
.nsp-product-drawer.is-open .nsp-drawer-overlay { opacity: 1; }

.nsp-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(440px, 92vw);
    height: 100%;
    background: #fff;
    color: #111;
    padding: 56px 32px 32px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
    font-family: 'Poppins', system-ui, sans-serif;
}
.nsp-rtl .nsp-drawer-panel {
    right: auto;
    left: 0;
    transform: translateX(-100%);
}
.nsp-product-drawer.is-open .nsp-drawer-panel { transform: translateX(0); }

.nsp-drawer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    cursor: pointer;
    color: #111;
}
.nsp-rtl .nsp-drawer-close { right: auto; left: 16px; }

.nsp-drawer-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    margin-bottom: 20px;
}

.nsp-drawer-title {
    font-family: 'Playfair Display', 'Poppins', serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0 0 8px;
    line-height: 1.2;
}
.nsp-rtl .nsp-drawer-title { font-family: 'Heebo', 'Poppins', serif; }

.nsp-drawer-price {
    font-size: 1.125rem;
    margin-bottom: 24px;
    color: #333;
}

.nsp-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nsp-drawer-actions .nsp-btn-primary,
.nsp-drawer-actions .nsp-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #111;
    transition: all 200ms ease;
}
.nsp-drawer-actions .nsp-btn-primary { background: #111; color: #fff; }
.nsp-drawer-actions .nsp-btn-primary:hover { background: transparent; color: #111; }
.nsp-drawer-actions .nsp-btn-ghost { background: transparent; color: #111; }
.nsp-drawer-actions .nsp-btn-ghost:hover { background: #111; color: #fff; }

.nsp-drawer-actions .nsp-add-to-cart.is-loading { opacity: 0.5; pointer-events: none; }

.nsp-drawer-message { margin-top: 16px; font-size: 0.875rem; min-height: 1.2em; }
.nsp-drawer-message.is-success { color: #0a7d40; }
.nsp-drawer-message.is-error   { color: #c83232; }

.nsp-drawer-loader {
    width: 28px;
    height: 28px;
    margin: 64px auto;
    border: 2px solid rgba(0,0,0,0.1);
    border-top-color: #111;
    border-radius: 50%;
    animation: nspSpin 700ms linear infinite;
}
@keyframes nspSpin { to { transform: rotate(360deg); } }

body.nsp-drawer-open { overflow: hidden; }

/* ============================================================
   DESIGN POLISH — buttons (hover/focus), links
   ============================================================ */
.nsp-layer--button .nsp-btn,
.nsp-layer--button a {
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
    will-change: transform;
}
.nsp-layer--button .nsp-btn:hover,
.nsp-layer--button a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.nsp-layer--button .nsp-btn:focus-visible,
.nsp-layer--button a:focus-visible,
.nsp-product__btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* ============================================================
   WOOCOMMERCE PRODUCT LAYER
   ============================================================ */
.nsp-layer--product { width: 24%; min-width: 180px; max-width: 360px; }
.nsp-product {
    position: relative;
    background: #fff;
    color: #1a1a1a;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
    font-family: 'Inter', 'Poppins', system-ui, sans-serif;
    text-align: start;
    direction: inherit;
}
.nsp-product__media { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #f3f1ee; }
.nsp-product__media img, .nsp-product__img {
    width: 100% !important; height: 100% !important; object-fit: cover; display: block;
    transition: transform .5s ease;
}
.nsp-product:hover .nsp-product__media img { transform: scale(1.04); }
.nsp-product__badge {
    position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
    background: #d6336c; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; padding: 5px 9px; border-radius: 999px;
}
.nsp-product__badge--out { background: #6b7280; }
.nsp-product__body { padding: 14px 16px 16px; }
.nsp-product__name {
    display: block; color: inherit !important; text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.3;
    margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nsp-product__price { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: inherit !important; }
.nsp-product__price del { opacity: .5; font-weight: 400; margin-inline-end: 6px; }
.nsp-product__price ins { text-decoration: none; color: #d6336c; }
.nsp-product__btn {
    display: block; text-align: center; background: #1a1a1a; color: #fff !important; text-decoration: none;
    font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    padding: 12px 14px; border-radius: 10px;
    transition: background-color .18s ease, transform .18s ease;
}
.nsp-product__btn:hover { background: #d6336c; transform: translateY(-1px); }
.nsp-product__btn.added { background: #16a34a; }
.nsp-product__btn.loading { opacity: .7; pointer-events: none; }
/* Product text ignores the layer's white slide color (card is light) */
.nsp-layer--product { color: #1a1a1a !important; }
@media (max-width: 640px) {
    .nsp-layer--product { width: 46%; min-width: 150px; }
    .nsp-product__body { padding: 10px 12px 12px; }
    .nsp-product__name { font-size: 13px; }
    .nsp-product__price { font-size: 14px; margin-bottom: 8px; }
    .nsp-product__btn { padding: 10px; font-size: 11px; }
}
