.product-carousel {
  --carousel-accent: #45d8b2;
  --carousel-ink: #102431;
  --carousel-muted: #516572;
  --carousel-navy: #071b2a;
  --carousel-duration: 6500ms;
  position: relative;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
  border: 1px solid rgba(117, 144, 156, 0.62);
  border-radius: clamp(18px, 2.5vw, 28px);
  background: #fff;
  box-shadow: 0 28px 72px rgba(7, 27, 42, 0.16);
}

.product-carousel *,
.product-carousel *::before,
.product-carousel *::after {
  box-sizing: border-box;
}

.product-carousel-stage {
  min-height: 0;
  background: #e6eef2;
}

.product-carousel-slide {
  min-width: 0;
  margin: 0;
  grid-template-columns: minmax(0, 1.62fr) minmax(260px, 0.72fr);
  background: #fff;
}

.product-carousel-slide.is-active {
  display: grid;
  animation: product-carousel-arrive 460ms ease both;
}

.product-carousel-media {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  color: inherit;
  background: #dce7ec;
  text-decoration: none;
}

.product-carousel-media:focus-visible,
.product-carousel button:focus-visible {
  outline: 4px solid #facc15;
  outline-offset: -5px;
}

.product-carousel-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
  transition: transform 360ms ease;
}

.product-carousel-media:hover img {
  transform: scale(1.012);
}

.product-carousel-open {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 27, 42, 0.86);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(7, 27, 42, 0.2);
}

.product-carousel-caption {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(1.5rem, 3.2vw, 3rem);
  color: var(--carousel-muted);
  background:
    radial-gradient(circle at 100% 0%, rgba(69, 216, 178, 0.16), transparent 13rem),
    #fff;
}

.product-carousel-caption strong {
  color: var(--carousel-ink);
  font: 700 clamp(1.3rem, 2.2vw, 2rem)/1.2 Sora, Aptos, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.product-carousel-count {
  color: #6b7f8a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.product-carousel-kicker {
  color: #08745f;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-carousel-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  color: #fff;
  background: var(--carousel-navy);
}

.product-carousel-arrows {
  display: flex;
  gap: 8px;
}

.product-carousel button {
  font: inherit;
}

.product-carousel-control,
.product-carousel-pause {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.product-carousel-control {
  font-size: 1.2rem;
}

.product-carousel-control:hover,
.product-carousel-pause:hover {
  border-color: var(--carousel-accent);
  background: rgba(69, 216, 178, 0.16);
  transform: translateY(-1px);
}

.product-carousel-dots {
  display: flex;
  min-width: 0;
  justify-content: center;
  gap: 8px;
}

.product-carousel-dot {
  width: min(48px, 9vw);
  height: 34px;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  cursor: pointer;
}

.product-carousel-dot::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: background 180ms ease, transform 180ms ease;
}

.product-carousel-dot span {
  font-size: 0.72rem;
  font-weight: 800;
}

.product-carousel-dot.is-active {
  color: #fff;
}

.product-carousel-dot.is-active::after {
  background: var(--carousel-accent);
  transform: scaleY(1.35);
}

.product-carousel-pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  font-size: 0.78rem;
  font-weight: 800;
}

.product-carousel-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.product-carousel-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--carousel-accent);
  transform: scaleX(0);
  transform-origin: left;
}

.product-carousel.is-running .product-carousel-progress > span {
  animation: product-carousel-progress var(--carousel-duration) linear both;
}

.product-carousel-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.product-carousel-chapter {
  padding: clamp(5rem, 9vw, 8rem) 0;
  color: #102431;
  background:
    radial-gradient(circle at 92% 6%, rgba(11, 122, 104, 0.12), transparent 25rem),
    linear-gradient(180deg, #f8fbfd 0%, #eaf2f5 100%);
}

.product-carousel-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.product-carousel-intro {
  max-width: 800px;
}

.product-carousel-intro .product-carousel-eyebrow {
  margin: 0 0 14px;
  color: #08745f;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-carousel-intro h2 {
  max-width: 18ch;
  margin: 0;
  color: #102431;
  font: 750 clamp(2.3rem, 5vw, 4.8rem)/0.98 Sora, Aptos, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.045em;
}

.product-carousel-intro p:last-child {
  max-width: 720px;
  margin: 22px 0 0;
  color: #4b606d;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.product-carousel-note {
  max-width: 78ch;
  margin: 22px 0 0;
  color: #4b606d;
  font-size: 0.92rem;
}

@keyframes product-carousel-arrive {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes product-carousel-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 820px) {
  .product-carousel-slide.is-active {
    grid-template-columns: 1fr;
  }

  .product-carousel-media {
    aspect-ratio: 16 / 10;
  }

  .product-carousel-caption {
    min-height: 230px;
  }
}

@media (max-width: 620px) {
  .product-carousel-toolbar {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .product-carousel-dots {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: stretch;
  }

  .product-carousel-dot {
    width: 100%;
  }

  .product-carousel-pause {
    justify-self: end;
  }

  .product-carousel-open {
    right: 10px;
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-carousel-slide.is-active,
  .product-carousel.is-running .product-carousel-progress > span {
    animation: none;
  }

  .product-carousel-media img,
  .product-carousel button {
    transition: none;
  }
}
