.feral-product-carousel {
  --feral-carousel-card-width: min(72vw, 378px);
  --feral-carousel-side-width: min(52vw, 240px);
  --feral-carousel-gap: clamp(18px, 3vw, 32px);
  display: grid;
  gap: 9px;
  width: 100%;
  padding: 12px 0;
}

.feral-product-carousel__header {
  text-align: center;
}

.feral-product-carousel__title {
  margin: 0;
}

.feral-product-carousel__viewport {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.feral-product-carousel__track-wrap {
  overflow: hidden;
  padding: 18px 0;
}

.feral-product-carousel__track {
  position: relative;
  height: 580px;
}

.feral-product-carousel__slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--feral-carousel-card-width);
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 30px;
  background: transparent;
  box-shadow: none;
  transform: translate(-50%, -50%) scale(0.72);
  transform-origin: center;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 1.4s ease,
    opacity 1.4s ease,
    filter 1.4s ease,
    box-shadow 1.4s ease;
  filter: blur(2px);
}

.feral-product-carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1.3);
  filter: blur(0);
  z-index: 3;
}

.feral-product-carousel__slide.is-prev,
.feral-product-carousel__slide.is-next {
  opacity: 0.56;
  pointer-events: auto;
  z-index: 2;
}

.feral-product-carousel__slide.is-prev {
  transform: translate(calc(-50% - var(--feral-carousel-card-width) * 0.92), -50%) perspective(1200px) rotateY(18deg) scale(0.9);
}

.feral-product-carousel__slide.is-next {
  transform: translate(calc(-50% + var(--feral-carousel-card-width) * 0.92), -50%) perspective(1200px) rotateY(-18deg) scale(0.9);
}

.feral-product-carousel__slide.is-hidden-left,
.feral-product-carousel__slide.is-hidden-right {
  opacity: 0;
  z-index: 1;
}

.feral-product-carousel__slide.is-hidden-left {
  transform: translate(calc(-50% - var(--feral-carousel-card-width) * 1.2), -50%) scale(0.64);
}

.feral-product-carousel__slide.is-hidden-right {
  transform: translate(calc(-50% + var(--feral-carousel-card-width) * 1.2), -50%) scale(0.64);
}

.feral-product-carousel__image {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 1 / 1;
  background: rgba(6, 8, 16, 0.72);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.feral-product-carousel__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.feral-product-carousel__image::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -18px;
  height: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
  opacity: 0.18;
  filter: blur(10px);
  transform: scaleY(-1);
  pointer-events: none;
}

.feral-product-carousel__image::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(5, 7, 10, 0.1), rgba(5, 7, 10, 0.7));
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.feral-product-carousel__slide.is-active .feral-product-carousel__image,
.feral-product-carousel__slide.is-active .feral-product-carousel__image::before,
.feral-product-carousel__slide.is-active .feral-product-carousel__image::after {
  overflow: visible;
}

.feral-product-carousel__slide:hover .feral-product-carousel__image::before,
.feral-product-carousel__slide:focus-within .feral-product-carousel__image::before {
  opacity: 1;
}

.feral-product-carousel__body {
  display: grid;
  gap: 6px;
  text-align: center;
}

.feral-product-carousel__product-title {
  margin: 0;
  font-size: 0.98rem;
}

.feral-product-carousel__meta {
  display: flex;
  justify-content: center;
  align-items: center;
  justify-items: center;
  gap: 8px;
}

.feral-product-carousel__price {
  color: #fff;
  font-family: "Michroma", sans-serif;
  font-size: 0.86rem;
}

.feral-product-carousel__price ins {
  text-decoration: none;
}

.feral-product-carousel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inset: 0;
  min-height: 100%;
  padding: 24px;
  border: 0;
  border-radius: 30px;
  background: transparent;
  color: transparent;
  font-family: "Michroma", sans-serif;
  font-size: 0;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  box-shadow: none;
  transition: opacity 0.25s ease;
  position: absolute;
  top: 0;
  left: 0;
  text-align: center;
  opacity: 0;
  z-index: 3;
}

.feral-product-carousel__button::before {
  content: "select options";
  color: #fff;
  font-size: 1.2rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.feral-product-carousel__slide:hover .feral-product-carousel__button,
.feral-product-carousel__slide:focus-within .feral-product-carousel__button {
  opacity: 1;
}

.feral-product-carousel__arrow {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(5, 7, 10, 0.88), rgba(11, 28, 63, 0.72));
  color: var(--text-primary);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.feral-product-carousel__arrow:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
}

.feral-product-carousel__arrow:disabled {
  opacity: 0.45;
  cursor: default;
}

.feral-product-carousel__arrow span {
  font-size: 1.55rem;
  line-height: 1;
}

.feral-product-carousel__thumbs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.feral-product-carousel__thumb {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(10, 13, 22, 0.7);
  opacity: 0.4;
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.feral-product-carousel__thumb:hover,
.feral-product-carousel__thumb.is-active {
  opacity: 1;
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
}

.feral-product-carousel__thumb-image,
.feral-product-carousel__thumb-image img {
  display: block;
  width: 100%;
  height: 100%;
}

.feral-product-carousel__thumb-image img {
  object-fit: cover;
  border-radius: 13px;
}

@media (max-width: 920px) {
  .feral-product-carousel__viewport {
    grid-template-columns: 1fr;
  }

  .feral-product-carousel__track {
    height: 560px;
  }

  .feral-product-carousel__arrow {
    display: none;
  }

  .feral-product-carousel__slide.is-prev,
  .feral-product-carousel__slide.is-next {
    opacity: 0.4;
    pointer-events: auto;
  }

  .feral-product-carousel__slide.is-prev {
    transform: translate(calc(-50% - var(--feral-carousel-card-width) * 0.76), -50%) perspective(1200px) rotateY(16deg) scale(0.82);
  }

  .feral-product-carousel__slide.is-next {
    transform: translate(calc(-50% + var(--feral-carousel-card-width) * 0.76), -50%) perspective(1200px) rotateY(-16deg) scale(0.82);
  }
}

@media (max-width: 620px) {
  .feral-product-carousel {
    --feral-carousel-card-width: min(74vw, 278px);
  }

  .feral-product-carousel__track {
    height: 530px;
  }

  .feral-product-carousel__track-wrap {
    padding: 12px;
  }

  .feral-product-carousel__slide {
    width: var(--feral-carousel-card-width);
  }

  .feral-product-carousel__image {
    aspect-ratio: 0.78 / 1;
  }

  .feral-product-carousel__slide.is-active {
    transform: translate(-50%, -50%) scale(1.08);
  }

  .feral-product-carousel__slide.is-prev {
    transform: translate(calc(-50% - var(--feral-carousel-card-width) * 0.7), -50%) perspective(1200px) rotateY(14deg) scale(0.76);
  }

  .feral-product-carousel__slide.is-next {
    transform: translate(calc(-50% + var(--feral-carousel-card-width) * 0.7), -50%) perspective(1200px) rotateY(-14deg) scale(0.76);
  }
}
