.cc_xcxanevt_multi_tab_product_slider .multi-tab-product-slider {
  width: 100%;
  /* Compact vertical rhythm (Represent-like): the slider starts almost right
     after the previous section — a small fixed top, a slightly larger bottom
     so consecutive sliders don't touch. Top stays tight on desktop too. */
  padding-top: var(--space-md);
  /* ~30% more compact bottom spacing (top unchanged): 40px → 28px. */
  padding-bottom: calc(var(--space-lg) * 0.7);
}

@media (min-width: 1024px) {
  .cc_xcxanevt_multi_tab_product_slider .multi-tab-product-slider {
    /* ~30% more compact bottom spacing on desktop: 64px → 44.8px. */
    padding-bottom: calc(var(--space-xl) * 0.7);
  }
}

.cc_xcxanevt_multi_tab_product_slider .multi-tab-product-slider-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 80px);
}

/* Desktop/large-tablet only (≥1024px): the container stops being capped at a
   fixed max-width — on wide monitors that left large empty gutters with the
   product row stranded in a small centered block. Instead it fills the
   viewport down to a fluid safe gutter, same idea as the card sizing below.
   <1024px (tablet 768-1023 and mobile) is completely untouched — this block
   only takes effect at 1024px+, verified byte-identical below that width.
   Kept in sync with MultiTabProductSliderFinalV2/styles.css and
   MultiTabProductSliderFinal/styles.css (same duplication-across-bundles
   constraint as ProductSliderTrack/styles.css's own NOTE). */
@media (min-width: 1024px) {
  .cc_xcxanevt_multi_tab_product_slider .multi-tab-product-slider-inner {
    max-width: none;
    padding: 0 clamp(24px, 3vw, 56px);
  }
}

.cc_xcxanevt_multi_tab_product_slider .mtps-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  /* Very tight gap between the small label and the product row (~12px mobile). */
  margin-bottom: 0.75rem;
}

.cc_xcxanevt_multi_tab_product_slider .mtps-header.has-tabs {
  align-items: flex-start;
}

@media (min-width: 768px) {
  .cc_xcxanevt_multi_tab_product_slider .mtps-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    /* ~16px desktop. */
    margin-bottom: 1rem;
  }
}

.cc_xcxanevt_multi_tab_product_slider .mtps-title {
  font-family: var(--font-label);
  /* Small, quiet section label (Represent "Restocked" scale): ~12px, medium
     weight, natural case, minimal tracking — NOT a display heading. */
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.2;
  color: var(--slider-text-color, var(--color-text-primary));
  margin: 0;
  text-wrap: balance;
}

.cc_xcxanevt_multi_tab_product_slider .mtps-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: 400;
}

.cc_xcxanevt_multi_tab_product_slider .mtps-tab-item {
  display: inline-flex;
  align-items: center;
}

.cc_xcxanevt_multi_tab_product_slider .mtps-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 6px 0;
  cursor: pointer;
  font: inherit;
  color: var(--slider-tab-inactive, var(--color-text-muted));
}

.cc_xcxanevt_multi_tab_product_slider .mtps-tab.is-active {
  color: var(--slider-tab-active, var(--color-text-primary));
  font-weight: 500;
}

.cc_xcxanevt_multi_tab_product_slider .mtps-tab-bullet {
  font-size: var(--text-small);
  line-height: 1;
}

.cc_xcxanevt_multi_tab_product_slider .mtps-tab-sep {
  margin: 0 12px;
  color: var(--slider-tab-inactive, var(--color-text-muted));
}

.cc_xcxanevt_multi_tab_product_slider .mtps-track-area {
  position: relative;
  width: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .cc_xcxanevt_multi_tab_product_slider .mtps-tab {
    transition: color 200ms ease;
  }

  .cc_xcxanevt_multi_tab_product_slider .mtps-tab:hover {
    color: var(--slider-tab-active, var(--color-text-primary));
  }
}

/* ===== Slider track (sub-component) ===== */

.cc_xcxanevt_multi_tab_product_slider .product-slider-track-wrapper {
  position: relative;
  width: 100%;
}

.cc_xcxanevt_multi_tab_product_slider .product-slider-track {
  display: flex;
  flex-wrap: nowrap;
  /* Each card keeps its natural (compact) height instead of stretching to the
     tallest card — so a taller sibling can never leave empty space below a
     shorter card's price. Combined with the single-line name, all cards are
     already uniform, so this only guards against future height differences. */
  align-items: flex-start;
  gap: var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.cc_xcxanevt_multi_tab_product_slider .product-slider-track::-webkit-scrollbar {
  display: none;
}

.cc_xcxanevt_multi_tab_product_slider .product-slider-track > .product-card {
  scroll-snap-align: start;
  /* Mobile: show exactly TWO cards per view (one gap between them). */
  flex: 0 0 calc((100% - var(--space-sm)) / 2);
}

@media (min-width: 768px) {
  .cc_xcxanevt_multi_tab_product_slider .product-slider-track > .product-card {
    flex: 0 0 calc((100% - var(--space-sm) * 1.5) / 2.5);
  }
}

@media (min-width: 1024px) {
  /* Fluid, bounded card footprint instead of a fixed 100%/productsPerView
     split. The old formula stretched exactly N cards to fill whatever
     (narrow, max-width:1400px-capped) space was left, so widening the
     viewport just inflated the same N cards. clamp() decouples card size
     from container width: it floors at 300px (never shrinks below a legible
     footprint — narrowing the browser reduces the VISIBLE count via
     horizontal scroll instead), tracks ~24% of viewport width in between,
     and ceilings at 330px (~10-15% bigger than the old ~276-302px desktop
     card, verified) so wide monitors reveal MORE cards rather than a few
     oversized ones. productsPerView still seeds the initial layout via
     --products-per-view (arrow-scroll step, tablet formula below) but no
     longer dictates desktop card width directly. Verified empirically
     (isolated harness, real breakpoints): 1024px→~3 visible, 1280px→~4,
     1440px→~4-5, 1728px→~5, 1920px→~5-6. Kept in sync with
     MultiTabProductSliderFinalV2/styles.css and
     MultiTabProductSliderFinal/styles.css. */
  .cc_xcxanevt_multi_tab_product_slider .product-slider-track > .product-card {
    flex: 0 0 clamp(300px, 24vw, 330px);
  }
}

/* Mobile (<768px): minimal chevron-only affordance — no circle/background/
   border/ring, just a small glyph with a slight shadow for legibility over any
   image. Hit area stays a real 2.5rem/40px for touch accessibility even though
   nothing but the glyph is visible. Desktop/tablet restore the original
   circle button completely unchanged via the min-width:768px override below. */
.cc_xcxanevt_multi_tab_product_slider .product-slider-arrow {
  position: absolute;
  top: var(--arrow-top, 50%);
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  border-radius: 0;
  color: #000075;
  cursor: pointer;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.cc_xcxanevt_multi_tab_product_slider .product-slider-arrow svg {
  width: 1rem;
  height: 1rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.cc_xcxanevt_multi_tab_product_slider .product-slider-arrow[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

.cc_xcxanevt_multi_tab_product_slider .product-slider-arrow--prev {
  left: 0.2rem;
}

.cc_xcxanevt_multi_tab_product_slider .product-slider-arrow--next {
  right: 0.2rem;
}

@media (min-width: 768px) {
  .cc_xcxanevt_multi_tab_product_slider .product-slider-arrow {
    width: 40px;
    height: 40px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--slider-accent, var(--color-accent));
  }

  .cc_xcxanevt_multi_tab_product_slider .product-slider-arrow svg {
    width: 20px;
    height: 20px;
    filter: none;
  }

  .cc_xcxanevt_multi_tab_product_slider .product-slider-arrow--prev {
    left: -20px;
  }

  .cc_xcxanevt_multi_tab_product_slider .product-slider-arrow--next {
    right: -20px;
  }

  .cc_xcxanevt_multi_tab_product_slider .product-slider-arrow:hover {
    background-color: var(--slider-accent, var(--color-accent));
    border-color: var(--slider-accent, var(--color-accent));
    color: var(--color-surface);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cc_xcxanevt_multi_tab_product_slider .product-slider-arrow {
    transition: background-color 200ms ease, border-color 200ms ease,
      color 200ms ease, opacity 200ms ease;
  }
}

/* ===== Product card (sub-component) ===== */

.cc_xcxanevt_multi_tab_product_slider .product-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
  /* Deterministic card width on ALL engines. Without this, the flex item's
     automatic minimum size (min-width:auto) is floored by the child image's
     intrinsic width on WebKit/iOS Safari — so some mobile cards inflate past
     their `flex: 0 0 <basis>` and render at random sizes as lazy images decode.
     min-width:0 pins every card to its flex-basis regardless of image intrinsic
     or load timing. (Blink already honours width:100%/overflow:hidden, which is
     why the bug is mobile/WebKit-only.) Kept in sync with ProductCard/styles.css. */
  min-width: 0;
}

.cc_xcxanevt_multi_tab_product_slider .product-card-media {
  position: relative;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  background-color: var(--color-surface-alt);
  /* Geometry stays image-independent: width follows the card, height comes from
     aspect-ratio (reserved before load → no reflow), and min-width:0 stops the
     image intrinsic from widening the box on WebKit. */
  min-width: 0;
}

.cc_xcxanevt_multi_tab_product_slider .product-card.is-portrait .product-card-media {
  aspect-ratio: 4 / 5;
}

.cc_xcxanevt_multi_tab_product_slider .product-card.is-square .product-card-media {
  aspect-ratio: 1 / 1;
}

.cc_xcxanevt_multi_tab_product_slider .product-card-image {
  width: 100%;
  height: 100%;
  /* Match the Live Ozy reference: product images are shown whole (contain),
     centred in the 4:5 area, never enlarged/cropped to fill. For the uniform
     4:5 catalogue this is pixel-identical to `cover` (image ratio == box ratio),
     so normal cards are unaffected; any future non-4:5 image is shown whole with
     surface-alt letterboxing instead of being zoomed. Slider cards only — the
     listing (.pl-card-image) and PDP gallery keep their own behaviour.
     Kept in sync with sub-components/ProductCard/styles.css. */
  object-fit: contain;
  object-position: center;
  display: block;
}

.cc_xcxanevt_multi_tab_product_slider .product-card-image--empty {
  background: linear-gradient(135deg, var(--color-surface-alt), var(--color-border));
}

.cc_xcxanevt_multi_tab_product_slider .product-card.has-hover-image .product-card-image--primary, .cc_xcxanevt_multi_tab_product_slider .product-card-image--hover {
  position: absolute;
  top: 0;
  left: 0;
}

.cc_xcxanevt_multi_tab_product_slider .product-card-image--hover {
  opacity: 0;
  transition: opacity 220ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

@media (hover: hover) {
  .cc_xcxanevt_multi_tab_product_slider .product-card.has-hover-image:hover .product-card-image--hover {
    opacity: 1;
  }
}

.cc_xcxanevt_multi_tab_product_slider .product-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 2px;
}

/* Colour swatch row — mirrors the listing card (.pl-card-swatch*) 1:1 so slider
   and listing look identical: 12px circles, soft-grey 1px ring so white swatches
   stay visible, real ikas colour data only, "X Renk" count after. */
.cc_xcxanevt_multi_tab_product_slider .product-card-swatches {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  overflow: hidden;
  min-width: 0;
  margin-bottom: 2px;
}

.cc_xcxanevt_multi_tab_product_slider .product-card-swatch {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  background-color: var(--color-surface-alt);
  background-size: cover;
  background-position: center;
  border: 1px solid #8f8f8f;
  box-shadow: none;
}

.cc_xcxanevt_multi_tab_product_slider .product-card-swatch-count {
  flex: 0 0 auto;
  margin-left: 3px;
  font-family: var(--font-label);
  font-size: var(--text-label);
  line-height: 1;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.cc_xcxanevt_multi_tab_product_slider .product-card-name {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 400;
  line-height: 1.4;
  color: var(--slider-text-color, var(--color-text-primary));
  /* Slider cards: product name is ONE line, ellipsised — never wraps to a
     second line, so every card in a row stays the same height (rating/price
     never pushed down). Listing cards are unaffected (this is slider CSS). */
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  margin-bottom: 4px;
}

.cc_xcxanevt_multi_tab_product_slider .product-card-price-row {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.cc_xcxanevt_multi_tab_product_slider .product-card-body .rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  color: inherit;
}

.cc_xcxanevt_multi_tab_product_slider .product-card-body .rating-stars {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.cc_xcxanevt_multi_tab_product_slider .product-card-body .rating-star {
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
  color: var(--color-border);
}

.cc_xcxanevt_multi_tab_product_slider .product-card-body .rating-star-bg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.cc_xcxanevt_multi_tab_product_slider .product-card-body .rating-star-fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  color: #f5b301;
  pointer-events: none;
}

.cc_xcxanevt_multi_tab_product_slider .product-card-body .rating-star-fg {
  display: block;
  height: 100%;
  width: 1em;
  fill: currentColor;
}

.cc_xcxanevt_multi_tab_product_slider .product-card-body .rating-count {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--slider-text-color, var(--color-text-muted));
  white-space: nowrap;
}

.cc_xcxanevt_multi_tab_product_slider .product-card-body .rating--sm {
  font-size: 13px;
}

.cc_xcxanevt_multi_tab_product_slider .product-card-price {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1.4;
  color: var(--slider-text-color, var(--color-text-primary));
  font-variant-numeric: tabular-nums;
}

.cc_xcxanevt_multi_tab_product_slider .product-card-price--original {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text-muted);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

/* Product-slider price/discount sizes. The card renders the shared <ProductPrice>
   (.product-price-*, size="sm" → global sizes). Scoped to .product-card so ONLY
   slider cards shrink — listing (.pl-card), PDP (.pdp-price-block), search and
   cart keep their own sizes; global.css is untouched. Colours/weights/order/
   line-through unchanged. Applies to every MultiTabProductSlider (homepage +
   PDP recommendation). */
.cc_xcxanevt_multi_tab_product_slider .product-card .product-price--sm .product-price-final {
  font-size: 13px;
}
.cc_xcxanevt_multi_tab_product_slider .product-card .product-price--sm .product-price-original {
  font-size: 10px;
}
.cc_xcxanevt_multi_tab_product_slider .product-card .product-price-discount {
  font-size: 9px;
  padding: 2.4px 6.4px;
}

/* ===== Badges (sale / sold-out / savings) ===== */

.cc_xcxanevt_multi_tab_product_slider .product-card-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 4px 10px;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
  z-index: 1;
  border-radius: 0;
  pointer-events: none;
}

.cc_xcxanevt_multi_tab_product_slider .product-card-badge--sale {
  /* Default to the shared discount red; the editor's saleBadgeColor /
     saleBadgeTextColor props still override via --slider-sale-*. */
  background: var(--slider-sale-bg, var(--discount-badge-bg, #d81f2a));
  color: var(--slider-sale-fg, var(--discount-badge-text, #ffffff));
}

.cc_xcxanevt_multi_tab_product_slider .product-card-badge--sold-out {
  background: var(--slider-soldout-bg, var(--color-error));
  color: var(--slider-soldout-fg, #ffffff);
}

.cc_xcxanevt_multi_tab_product_slider .product-card-savings {
  position: absolute;
  bottom: var(--space-sm);
  left: var(--space-sm);
  padding: 4px 10px;
  background: var(--slider-savings-bg, var(--color-accent-light));
  color: var(--slider-savings-fg, var(--color-text-primary));
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
  border-radius: 0;
  z-index: 1;
  pointer-events: none;
}

/* Sold-out cards: dim the image, hide hover zoom */
.cc_xcxanevt_multi_tab_product_slider .product-card:has(.product-card-badge--sold-out) .product-card-image--primary, .cc_xcxanevt_multi_tab_product_slider .product-card:has(.product-card-badge--sold-out) .product-card-image--empty {
  opacity: 0.55;
  filter: grayscale(0.2);
}

.cc_xcxanevt_multi_tab_product_slider .product-card:has(.product-card-badge--sold-out) .product-card-image--hover {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .cc_xcxanevt_multi_tab_product_slider .product-card-image {
    transition: transform 400ms ease-out, opacity 200ms ease;
  }

  .cc_xcxanevt_multi_tab_product_slider .product-card:hover .product-card-image {
    transform: scale(1.04);
  }

  .cc_xcxanevt_multi_tab_product_slider .product-card:has(.product-card-badge--sold-out):hover .product-card-image {
    transform: none;
  }
}

/* NOTE: the old ".mtps--compact-text" price bottom-pinning (margin-top:auto)
   was for the two-line-name era, to line prices up across 1- and 2-line names.
   Product names are now single-line + ellipsis, so every card body is the same
   height and no pinning is needed — the rule is removed so price always follows
   the rating with a natural compact gap (no big rating→price gap). The
   compactCardText prop stays on placements but no longer changes layout. */
