.coverflow-hero {
  --coverflow-hero: #26323d;
  --coverflow-hero-deep: #1d2730;
  height: min(620px, calc(100svh - 127px));
  min-height: 520px;
  padding: 0;
  color: #f7f7f3;
  background:
    radial-gradient(circle at 50% 43%, rgba(115, 139, 156, 0.24), transparent 43%),
    linear-gradient(145deg, var(--coverflow-hero), var(--coverflow-hero-deep));
  position: relative;
  overflow: hidden;
}

.coverflow-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.17;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.coverflow-hero .stage-shell {
  position: relative;
  z-index: 1;
  height: calc(100% - 64px);
  margin: 0;
  display: grid;
  grid-template-columns: 68px 1fr 68px;
  align-items: center;
}

.coverflow-stage {
  position: relative;
  height: 100%;
  overflow: hidden;
  perspective: 1300px;
  touch-action: pan-y;
}

.coverflow-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 9%;
  width: min(620px, 52vw);
  height: 56px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
  filter: blur(22px);
}

.coverflow-track {
  position: absolute;
  inset: 0;
}

.coverflow-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(420px, 46vw, 700px);
  aspect-ratio: 1.28 / 1;
  border: 0;
  border-radius: 3px;
  padding: 0;
  overflow: hidden;
  background: #e9e7e0;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.27);
  transform-origin: center;
  transition:
    transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
  cursor: pointer;
  will-change: transform;
}

.coverflow-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.coverflow-card[data-fit="contain"] img {
  object-fit: contain;
  padding: clamp(6px, 0.8vw, 12px);
  background: #f3f2ee;
}

.coverflow-card[data-origin="supplier-original"] img {
  object-fit: contain;
  padding: 0;
  background: #fff;
}

.coverflow-card.is-active {
  border-radius: 7px;
  cursor: default;
}

.coverflow-card:focus-visible,
.coverflow-hero .nav-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.coverflow-hero .nav-button {
  width: 46px;
  height: 46px;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 3;
}

@media (hover: hover) and (pointer: fine) {
  .coverflow-hero .nav-button:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: scale(1.04);
  }
}

.coverflow-hero .nav-button span {
  font-size: 21px;
  line-height: 1;
}

.coverflow-pagination {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.pagination-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(247, 247, 243, 0.28);
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .pagination-dot:hover {
    background: rgba(247, 247, 243, 0.62);
  }
}

.pagination-dot.is-active {
  background: rgba(247, 247, 243, 0.9);
  transform: scale(1.16);
}

.pagination-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.coverflow-rail {
  position: absolute;
  z-index: 4;
  right: clamp(24px, 4vw, 72px);
  bottom: 12px;
  left: clamp(24px, 4vw, 72px);
  min-height: 26px;
  padding-top: 10px;
  border-top: 1px solid rgba(247, 247, 243, 0.5);
  display: flex;
  justify-content: center;
  color: rgba(247, 247, 243, 0.92);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

@media (max-width: 720px) {
  .coverflow-hero {
    height: 470px;
    min-height: 470px;
  }

  .coverflow-hero .stage-shell {
    height: calc(100% - 64px);
    grid-template-columns: 44px 1fr 44px;
  }

  .coverflow-card {
    width: min(82vw, 322px);
    aspect-ratio: 0.8 / 1;
    border-radius: 3px;
  }

  .coverflow-card.is-active {
    border-radius: 5px;
  }

  .coverflow-card[data-fit="contain"] img {
    padding: 6px;
  }

  .coverflow-hero .nav-button {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.12);
  }

  .coverflow-pagination {
    bottom: 45px;
    gap: 6px;
  }

  .pagination-dot {
    width: 7px;
    height: 7px;
  }

  .coverflow-rail {
    right: 18px;
    bottom: 10px;
    left: 18px;
    min-height: 25px;
    padding-top: 9px;
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .coverflow-card,
  .coverflow-hero .nav-button,
  .pagination-dot {
    transition-duration: 1ms !important;
  }
}
