/* Product Carousel Styles */
.carousel {
  position: relative;
  width: 100%;
  max-width: 972px;
  height: 378px;
  margin: 0 auto;
  overflow: hidden;
  background: #005678 url(/img/flash/bg.png) no-repeat center center;
  background-size: cover;
}

.carousel__viewport {
  overflow: hidden;
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel__container {
  display: flex;
  height: 100%;
  align-items: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 33.33%;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.3);
  opacity: 0.4;
  filter: blur(2px);
  cursor: pointer;
}

.carousel__slide--active {
  transform: scale(1);
  opacity: 1;
  filter: blur(0);
  z-index: 2;
}

.carousel__slide--prev,
.carousel__slide--next {
  transform: scale(0.33);
  opacity: 0.6;
  filter: blur(0);
  z-index: 1;
}

.carousel__slide--far {
  transform: scale(0.25);
  opacity: 0.3;
  filter: blur(3px);
}

.carousel__image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.carousel__slide--active .carousel__image {
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2));
}

.carousel__slide:hover .carousel__image {
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1024px) {
  .carousel {
    width: 100%;
    height: 320px;
  }

  .carousel__slide {
    flex: 0 0 40%;
  }
}

@media (max-width: 768px) {
  .carousel {
    height: 280px;
  }

  .carousel__slide {
    flex: 0 0 60%;
  }
}

@media (max-width: 480px) {
  .carousel {
    height: 220px;
  }

  .carousel__slide {
    flex: 0 0 80%;
  }
}
