.product-slider-section,
.fluid-product-slider {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  -webkit-animation: product-slider-fade-in-left 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
          animation: product-slider-fade-in-left 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

/* Main carousel */
.main-slider,
.fluid-product-slider__main {
  flex: 1;
}

.main-slider .splide__slide,
.fluid-product-slider__main .splide__slide {
  height: 250px;
}

@media (min-width: 576px) {
  .main-slider .splide__slide,
  .fluid-product-slider__main .splide__slide {
    height: 550px;
  }
}

.main-slider .splide__pagination,
.fluid-product-slider__main .splide__pagination {
  position: relative;
  bottom: 0;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .main-slider .splide__pagination,
  .fluid-product-slider__main .splide__pagination {
    display: none;
  }
}

/* Thumbnail strip — hidden on mobile, visible on desktop */
.thumbnail-slider,
.fluid-product-slider__thumbs {
  display: none;
}

@media (min-width: 1024px) {
  .thumbnail-slider,
  .fluid-product-slider__thumbs {
    display: block;
  }
}

.thumbnail-slider .splide__list,
.fluid-product-slider__thumbs .splide__list {
  justify-content: center;
}

.thumbnail-slider .splide__arrow,
.fluid-product-slider__thumbs .splide__arrow {
  position: relative;
  inset: 0;
  margin: auto;
  text-align: center;
  transform: none;
}

.thumbnail-slider .splide__arrow svg,
.fluid-product-slider__thumbs .splide__arrow svg {
  position: relative;
}

.thumbnail-slider .splide__arrow--prev,
.fluid-product-slider__thumbs .splide__arrow--prev {
  margin-bottom: 8px;
}

.thumbnail-slider .splide__arrow--next,
.fluid-product-slider__thumbs .splide__arrow--next {
  margin-top: 8px;
}

.thumbnail-slider .splide__arrow--next svg,
.fluid-product-slider__thumbs .splide__arrow--next svg {
  transform: scaleY(-1);
  top: 1px;
  right: 0;
}

.thumbnail-slider .splide__slide,
.fluid-product-slider__thumbs .splide__slide {
  border-radius: 8px;
  padding: 2px;
  border: 1px solid var(--clr-gray-200) !important;
}

.thumbnail-slider .splide__slide.is-active,
.fluid-product-slider__thumbs .splide__slide.is-active {
  border-color: var(--clr-primary) !important;
}

.thumbnail-slider .splide__slide img,
.fluid-product-slider__thumbs .splide__slide img {
  border-radius: 8px;
}

/* Entrance animation */
@-webkit-keyframes product-slider-fade-in-left {
  from {
    opacity: 0;
    -webkit-transform: translateX(-50px);
            transform: translateX(-50px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

@keyframes product-slider-fade-in-left {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
