/*
 * Image on the left, index of collections on the right.
 * Ratio and object-fit come from the props through CSS variables (see index.tsx).
 * Breakpoints: tablet = 1024px 1024px, mobile = 768px 768px.
 */
.cc_5eyhtjn9_xK8oTLfGe9 .collection-showcase {
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

.cc_5eyhtjn9_xK8oTLfGe9 .collection-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 80px;
  align-items: center;
}

.cc_5eyhtjn9_xK8oTLfGe9 .collection-showcase-frame {
  position: relative;
  width: 100%;
}

/* Media column: all images are stacked, only the active one is visible. */
.cc_5eyhtjn9_xK8oTLfGe9 .collection-showcase-media {
  position: relative;
  width: 100%;
  aspect-ratio: var(--collection-showcase-ratio, 4 / 5);
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--ta-radius-2xl);
  background-color: var(--ta-color-bg-soft);
}

.cc_5eyhtjn9_xK8oTLfGe9 .collection-showcase-media-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 600ms ease,
    transform 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.cc_5eyhtjn9_xK8oTLfGe9 .collection-showcase-media-layer.is-active {
  opacity: 1;
  transform: scale(1);
}

.cc_5eyhtjn9_xK8oTLfGe9 .collection-showcase-media-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--collection-showcase-object-fit, cover);
  user-select: none;
  -webkit-user-drag: none;
}

/*
 * Badge: a dark disc that overlaps the bottom-right corner of the image. The active collection
 * name runs around its edge on a circle and slowly spins; an arrow sits in the middle.
 */
.cc_5eyhtjn9_xK8oTLfGe9 .collection-showcase-badge {
  position: absolute;
  right: -44px;
  bottom: 48px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background-color: var(--ta-color-text-strong);
  color: #fff;
  pointer-events: none;
  box-shadow: 0 0 0 8px #fff;
}

.cc_5eyhtjn9_xK8oTLfGe9 .collection-showcase-badge-ring {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  animation: cc_5eyhtjn9_xK8oTLfGe9_collection-showcase-spin 22s linear infinite;
}

.cc_5eyhtjn9_xK8oTLfGe9 .collection-showcase-badge-text {
  fill: currentColor;
  font-size: 14px;
  font-weight: 600;
}

.cc_5eyhtjn9_xK8oTLfGe9 .collection-showcase-badge-arrow {
  position: relative;
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes cc_5eyhtjn9_xK8oTLfGe9_collection-showcase-spin {
  to {
    transform: rotate(360deg);
  }
}

.cc_5eyhtjn9_xK8oTLfGe9 .collection-showcase-content {
  display: flex;
  flex-direction: column;
  gap: var(--ta-space-lg);
  min-width: 0;
}

.cc_5eyhtjn9_xK8oTLfGe9 .collection-showcase-eyebrow {
  margin: 0;
  color: var(--ta-color-text-primary);
}

.cc_5eyhtjn9_xK8oTLfGe9 .collection-showcase-list {
  display: block;
  width: 100%;
}

/* Rows rise in one after another when the section scrolls into view. */
.cc_5eyhtjn9_xK8oTLfGe9 .collection-showcase:not(.is-visible) .collection-showcase-item {
  opacity: 0;
}

.cc_5eyhtjn9_xK8oTLfGe9 .collection-showcase.is-visible .collection-showcase-item {
  animation: cc_5eyhtjn9_xK8oTLfGe9_collection-showcase-rise 700ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: calc(var(--collection-index, 0) * 90ms);
}

@keyframes cc_5eyhtjn9_xK8oTLfGe9_collection-showcase-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .cc_5eyhtjn9_xK8oTLfGe9 .collection-showcase-grid {
    gap: 56px;
  }
}

@media (max-width: 768px) {
  .cc_5eyhtjn9_xK8oTLfGe9 .collection-showcase-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .cc_5eyhtjn9_xK8oTLfGe9 .collection-showcase-media {
    border-radius: var(--ta-radius-xl);
  }

  .cc_5eyhtjn9_xK8oTLfGe9 .collection-showcase-badge {
    right: 12px;
    bottom: -28px;
    width: 116px;
    height: 116px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .cc_5eyhtjn9_xK8oTLfGe9 .collection-showcase-media-layer {
    transform: none;
    transition: none;
  }

  .cc_5eyhtjn9_xK8oTLfGe9 .collection-showcase-badge-ring {
    animation: none;
  }

  .cc_5eyhtjn9_xK8oTLfGe9 .collection-showcase:not(.is-visible) .collection-showcase-item, .cc_5eyhtjn9_xK8oTLfGe9 .collection-showcase.is-visible .collection-showcase-item {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
