.sp-product-slider {
  width: 100%;
  overflow: hidden;
  color: rgb(var(--color-text));
  background: rgb(var(--color-background));
}

.sp-product-slider__carousel,
.sp-product-slider__track {
  width: 100%;
}

.sp-product-slider__slide {
  position: relative;
  width: 100%;
  height: clamp(520px, 70vw, 900px);
  overflow: hidden;
  background: #d9d3c8;
}

.sp-product-slider__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-product-slider__placeholder,
.sp-product-slider__placeholder svg {
  width: 100%;
  height: 100%;
}

.sp-product-slider__placeholder svg {
  display: block;
}

.sp-product-slider__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgb(0 0 0 / var(--sp-slide-overlay-opacity, 20%));
}

.sp-product-slider__content {
  position: absolute;
  inset: 50% 12%;
  z-index: 1;
  width: 76%;
  color: #fff;
  text-align: center;
  transform: translateY(-50%);
}

.sp-product-slider__headline {
  margin: 0;
  font-size: clamp(28px, 4vw, 64px);
  line-height: 1.05;
}

.sp-product-slider__subheading {
  max-width: 720px;
  margin: 16px auto 0;
  font-size: clamp(14px, 1.4vw, 20px);
  line-height: 1.45;
}

.sp-product-slider__subheading > * {
  margin: 0;
}

.sp-product-slider__arrow {
  position: absolute;
  inset-block: 0;
  z-index: 2;
  display: grid;
  width: clamp(52px, 6vw, 96px);
  padding: 0;
  color: #fff;
  cursor: pointer;
  background: rgb(0 0 0 / 16%);
  border: 0;
  border-radius: 0;
  place-items: center;
  transition: background-color 160ms ease;
}

.sp-product-slider__arrow:hover {
  background: rgb(0 0 0 / 28%);
}

.sp-product-slider__arrow svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.sp-product-slider__arrow--previous {
  inset-inline-start: 0;
}

.sp-product-slider__arrow--next {
  inset-inline-end: 0;
}

.sp-product-slider__arrow:disabled {
  visibility: hidden;
}

.sp-product-slider__arrow:focus-visible {
  outline: 2px solid currentcolor;
  outline-offset: -5px;
}

@media (max-width: 959px) {
  .sp-product-slider__slide {
    height: min(120vw, 720px);
  }

  .sp-product-slider__content {
    inset-inline: 18%;
    width: 64%;
  }

  .sp-product-slider__arrow {
    width: 48px;
  }

  .sp-product-slider__arrow svg {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-product-slider__track {
    scroll-behavior: auto;
  }
}
