.product-hero h1 {
  font-size: clamp(38px, 4.15vw, 58px);
}

.theme-carousel:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 4px;
}

.theme-carousel__viewport {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.theme-slide[hidden] {
  display: none;
}

.theme-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 1.5 / 1;
  object-fit: cover;
}

.product-window .theme-carousel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 9px 13px;
}

.theme-carousel__footer > span:first-child {
  min-width: 0;
  line-height: 1.45;
}

.theme-carousel__footer strong {
  color: var(--navy);
}

.theme-carousel__controls,
.theme-carousel__dots {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.theme-carousel__button,
.theme-carousel__dot {
  display: inline-grid;
  place-items: center;
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}

.theme-carousel__button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
}

.theme-carousel__button:hover {
  border-color: #a9b9cf;
  background: var(--soft);
}

.theme-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 99px;
  background: #cbd5e1;
  transition: width 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.theme-carousel__dot[aria-current="true"] {
  width: 22px;
  border-color: var(--brand);
  background: var(--brand);
}

.theme-carousel__button:focus-visible,
.theme-carousel__dot:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .product-hero h1 {
    font-size: 34px;
  }

  .product-window .theme-carousel__footer {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .theme-carousel__controls {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-carousel__dot {
    transition: none;
  }
}
