/* Editorial image locked to the left, product strip running off the right
 * edge of the viewport — vertical spacing comes from the section props as
 * inline styles, so this file only owns layout. */
.cc_fSfPJ4rhnD_w8JrFkRH6n .rp-showcase {
  width: 100%;
  font-family: var(--rp-font);
}

.cc_fSfPJ4rhnD_w8JrFkRH6n .rp-showcase__inner {
  display: flex;
  flex-direction: column;
  gap: var(--rp-rail-gap);
  width: 100%;
  /* Full-bleed on both sides, like the other Represent strips — the image
   * starts at the viewport edge and the last card runs off the right. */
  padding-inline: 0;
}

/* ── Editorial panel ───────────────────────────────────── */

.cc_fSfPJ4rhnD_w8JrFkRH6n .rp-showcase__editorial {
  position: relative;
  display: block;
  overflow: hidden;
  /* Mobile stacks the image above the strip, so it needs its own height */
  aspect-ratio: var(--rp-showcase-editorial-ar, 3 / 4);
  color: inherit;
  text-decoration: none;
}

.cc_fSfPJ4rhnD_w8JrFkRH6n .rp-showcase__editorial-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.cc_fSfPJ4rhnD_w8JrFkRH6n .rp-showcase__editorial:hover .rp-showcase__editorial-img {
  transform: scale(1.03);
}

.cc_fSfPJ4rhnD_w8JrFkRH6n .rp-showcase__editorial-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.cc_fSfPJ4rhnD_w8JrFkRH6n .rp-showcase__eyebrow {
  font-size: var(--rp-text-xs);
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.06em;
}

.cc_fSfPJ4rhnD_w8JrFkRH6n .rp-showcase__editorial-title {
  font-size: var(--rp-text-md);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

/* ── Auto-scrolling product strip ──────────────────────── */

.cc_fSfPJ4rhnD_w8JrFkRH6n .rp-showcase__track {
  display: flex;
  gap: var(--rp-rail-gap);
  overflow-x: auto;
  /* Explicit, because a non-visible overflow-x forces overflow-y to
     compute as auto — which makes this a vertical scroll container too and
     Chrome latches the wheel to it, freezing the page scroll under the
     cursor. */
  overflow-y: hidden;
  /* `proximity`, not `mandatory` — mandatory snapping fights the animated
   * autoplay scroll and stutters mid-step. */
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}

.cc_fSfPJ4rhnD_w8JrFkRH6n .rp-showcase__track::-webkit-scrollbar {
  display: none;
}

.cc_fSfPJ4rhnD_w8JrFkRH6n .rp-showcase__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  /* Two cards plus a sliver on mobile, matching the other Represent strips */
  width: calc(100% / 2.09);
}

.cc_fSfPJ4rhnD_w8JrFkRH6n .rp-showcase__empty {
  margin: 0;
  padding: 32px 0;
  font-size: var(--rp-text-sm);
  color: var(--rp-muted);
}

@media (min-width: 768px) {
  .cc_fSfPJ4rhnD_w8JrFkRH6n .rp-showcase__item {
    width: calc((100% - 2 * var(--rp-rail-gap)) / 3);
  }
}

@media (min-width: 1024px) {
  /* Side by side: the image column holds its share, the strip takes the rest
     and overflows past the right edge of the screen. */
  .cc_fSfPJ4rhnD_w8JrFkRH6n .rp-showcase__inner {
    flex-direction: row;
    align-items: stretch;
    gap: var(--rp-rail-gap);
  }

  .cc_fSfPJ4rhnD_w8JrFkRH6n .rp-showcase__editorial {
    flex: 0 0 var(--rp-showcase-editorial, 30%);
    /* Height now comes from the row (the product cards), not a fixed ratio */
    aspect-ratio: auto;
  }

  .cc_fSfPJ4rhnD_w8JrFkRH6n .rp-showcase__track {
    flex: 1 1 auto;
    min-width: 0;
  }

  .cc_fSfPJ4rhnD_w8JrFkRH6n .rp-showcase__item {
    width: calc(
      (100% - (var(--rp-per-view, 3) - 1) * var(--rp-rail-gap)) /
        var(--rp-per-view, 3)
    );
  }

  .cc_fSfPJ4rhnD_w8JrFkRH6n .rp-showcase__editorial-caption {
    left: 24px;
    bottom: 24px;
  }

  .cc_fSfPJ4rhnD_w8JrFkRH6n .rp-showcase__editorial-title {
    font-size: var(--rp-text-lg);
  }
}
