
.cc_xcxanevt_cOKcxGKPlt .product-card, .cc_xcxanevt_OFzwOoJ2lA .product-card, .cc_xcxanevt_OgXMjk5rgA .product-card, .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.) */
  min-width: 0;
}

.cc_xcxanevt_cOKcxGKPlt .product-card-media, .cc_xcxanevt_OFzwOoJ2lA .product-card-media, .cc_xcxanevt_OgXMjk5rgA .product-card-media, .cc_xcxanevt_multi_tab_product_slider .product-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  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_cOKcxGKPlt .product-card.is-portrait .product-card-media, .cc_xcxanevt_OFzwOoJ2lA .product-card.is-portrait .product-card-media, .cc_xcxanevt_OgXMjk5rgA .product-card.is-portrait .product-card-media, .cc_xcxanevt_multi_tab_product_slider .product-card.is-portrait .product-card-media {
  aspect-ratio: 4 / 5;
}

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

.cc_xcxanevt_cOKcxGKPlt .product-card-image, .cc_xcxanevt_OFzwOoJ2lA .product-card-image, .cc_xcxanevt_OgXMjk5rgA .product-card-image, .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. */
  object-fit: contain;
  object-position: center;
  display: block;
}

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

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

.cc_xcxanevt_cOKcxGKPlt .product-card-image--hover, .cc_xcxanevt_OFzwOoJ2lA .product-card-image--hover, .cc_xcxanevt_OgXMjk5rgA .product-card-image--hover, .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_cOKcxGKPlt .product-card.has-hover-image:hover .product-card-image--hover, .cc_xcxanevt_OFzwOoJ2lA .product-card.has-hover-image:hover .product-card-image--hover, .cc_xcxanevt_OgXMjk5rgA .product-card.has-hover-image:hover .product-card-image--hover, .cc_xcxanevt_multi_tab_product_slider .product-card.has-hover-image:hover .product-card-image--hover {
    opacity: 1;
  }
}

.cc_xcxanevt_cOKcxGKPlt .product-card-body, .cc_xcxanevt_OFzwOoJ2lA .product-card-body, .cc_xcxanevt_OgXMjk5rgA .product-card-body, .cc_xcxanevt_multi_tab_product_slider .product-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 2px;
  min-width: 0;
  /* No flex:1 / margin-top:auto price bottom-pinning: the name is single-line so
     every body is the same height — price follows the rating with a natural
     compact gap. Kept in sync with components/MultiTabProductSlider/styles.css. */
}

/* Colour swatch row — mirrors the listing card (.pl-card-swatch*) 1:1. Kept in
   sync with the inlined copy in components/MultiTabProductSlider/styles.css. */
.cc_xcxanevt_cOKcxGKPlt .product-card-swatches, .cc_xcxanevt_OFzwOoJ2lA .product-card-swatches, .cc_xcxanevt_OgXMjk5rgA .product-card-swatches, .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_cOKcxGKPlt .product-card-swatch, .cc_xcxanevt_OFzwOoJ2lA .product-card-swatch, .cc_xcxanevt_OgXMjk5rgA .product-card-swatch, .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_cOKcxGKPlt .product-card-swatch-count, .cc_xcxanevt_OFzwOoJ2lA .product-card-swatch-count, .cc_xcxanevt_OgXMjk5rgA .product-card-swatch-count, .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_cOKcxGKPlt .product-card-name, .cc_xcxanevt_OFzwOoJ2lA .product-card-name, .cc_xcxanevt_OgXMjk5rgA .product-card-name, .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. Kept in
     sync with the inlined copy in components/MultiTabProductSlider/styles.css. */
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  margin-bottom: 4px;
}

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

@media (prefers-reduced-motion: no-preference) {
  .cc_xcxanevt_cOKcxGKPlt .product-card-image, .cc_xcxanevt_OFzwOoJ2lA .product-card-image, .cc_xcxanevt_OgXMjk5rgA .product-card-image, .cc_xcxanevt_multi_tab_product_slider .product-card-image {
    transition: transform 240ms ease-out;
  }

  .cc_xcxanevt_cOKcxGKPlt .product-card:hover .product-card-image--primary, .cc_xcxanevt_OFzwOoJ2lA .product-card:hover .product-card-image--primary, .cc_xcxanevt_OgXMjk5rgA .product-card:hover .product-card-image--primary, .cc_xcxanevt_multi_tab_product_slider .product-card:hover .product-card-image--primary {
    transform: scale(1.03);
  }
}

/* Desktop/tablet: keep the 2-line clamp but WITHOUT the fixed reservation, so a
   one-line name does not leave an empty second line. Names longer than two lines
   clamp to two (full name stays in title=). */
@media (min-width: 768px) {
  .cc_xcxanevt_cOKcxGKPlt .product-card-name, .cc_xcxanevt_OFzwOoJ2lA .product-card-name, .cc_xcxanevt_OgXMjk5rgA .product-card-name, .cc_xcxanevt_multi_tab_product_slider .product-card-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
  }
}
