.hero-carousel {
  min-width: 0;
  z-index: 1;
}

.hero-carousel::before {
  content: none;
}

.hero-carousel-track {
  position: relative;
}

.hero-carousel:not([data-carousel-ready]) .hero-carousel-slide:not(:first-child) {
  display: none;
}

.hero-carousel[data-carousel-ready] .hero-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hero-carousel-track::-webkit-scrollbar {
  display: none;
}

.hero-carousel-slide {
  min-width: 0;
  scroll-snap-align: start;
}

.hero-carousel-product {
  display: block;
  border-radius: 16px;
  color: var(--ink);
}

.hero-carousel-product img {
  width: 100%;
  height: auto;
  max-height: 286px;
  aspect-ratio: 16 / 10;
  object-fit: contain;
}

.hero-carousel-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px 14px;
}

.hero-carousel-caption strong,
.hero-carousel-summary {
  display: block;
  line-height: 1.35;
}

.hero-carousel-caption strong {
  font-size: 1.1rem;
}

.hero-carousel-summary {
  margin-top: 3px;
  color: var(--muted);
  font-size: .9rem;
}

.hero-carousel-product:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-carousel-link-arrow {
  display: grid;
  flex: 0 0 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--blue);
  font-size: 1.2rem;
}

.hero-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.hero-carousel-controls[hidden] {
  display: none;
}

.hero-carousel-selection,
.hero-carousel-dots {
  display: flex;
  align-items: center;
}

.hero-carousel-selection {
  gap: 4px;
}

.hero-carousel-controls button {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.hero-carousel-controls button:hover {
  background: var(--soft);
}

.hero-carousel-controls .hero-carousel-arrow {
  width: 44px;
  color: var(--blue);
  font-size: 1.5rem;
  line-height: 1;
}

.hero-carousel-controls .hero-carousel-dot {
  width: 26px;
}

.hero-carousel-dot::before {
  width: 8px;
  height: 8px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  content: "";
}

.hero-carousel-dot[aria-current="true"]::before {
  width: 18px;
  border-color: var(--blue);
  border-radius: 8px;
  background: var(--blue);
}

.hero-carousel-controls .hero-carousel-rotation {
  min-width: 64px;
  padding: 0 7px;
  color: var(--blue);
  font-size: .85rem;
  font-weight: 700;
}

.hero-carousel button:focus-visible,
.hero-carousel-product:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.hero-carousel-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
