/* gamma_carousel.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* Тело карусели */
.carousel_body {
  background: #ffffff;
  padding: 10px 0;
}


/* Внутренний wrapper */
.carousel-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;

  height: 320px;
  /* чуть больше активного слайда */
  overflow: hidden;
  /* Keep hidden for clean design */
  padding: 0 60px;
  /* Add padding to prevent arrows from covering slides */

  border-radius: 24px;
  /* чтобы соответствовать invisible-box */
}

/* Слайды */
.slider {
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.5s ease;

  width: max-content;
  min-width: 100%;
  /* Ensure slider can accommodate all slides */
  padding: 0 40px;
  box-sizing: border-box;

  border-radius: 24px;
  /* обрезка по скруглению */
  overflow: visible;
  /* Allow slides to be visible during transitions */
}

.slide {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 16px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: all 0.5s ease;
  background: transparent;
}

.slide.active {
  width: 200px;
  height: 300px;
  object-fit: contain;
  opacity: 1;
  z-index: 10;
  background: transparent;
}

/* Стрелки */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 48px;
  height: 48px;

  background: #8CB890;
  color: #fff;

  border: none;
  border-radius: 50%;
  font-size: 28px;
  font-family: 'Isadora', sans-serif;

  cursor: pointer;
  z-index: 5;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow:hover {
  background: #7aa67d;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.arrow.prev {
  left: 20px;
}

.arrow.next {
  right: 20px;
}

/* Адаптив */
@media (max-width: 900px) {
  .slide {
    width: 160px;
    height: 240px;
    object-fit: contain;
  }

  .slide.active {
    width: 340px;
    height: 510px;
    object-fit: contain;
  }
}

/* Коробочка вокруг слайдера */
.carousel-box {
  max-width: 800px;
  margin: 20px auto;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, #fffaf0 0%, #fff5e6 100%);
  /* Теплый, приятный фон */
  overflow: hidden;
  /* Keep hidden for clean design */
}

.sticker-pack-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 30px;
}

.sticker-pack-btn {
  padding: 12px 28px;
  border-radius: 14px;
  background: #8CB890;
  color: #fff;
  text-decoration: none;
  font-family: 'Isadora', sans-serif;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(140, 184, 144, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sticker-pack-btn:hover {
  background: #7aa67d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(140, 184, 144, 0.4);
  color: #fff;
}

.sticker-pack-btn i {
  font-size: 1.2rem;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .carousel-box {
    max-width: 100%;
    margin: 16px auto;
    padding: 12px;
    border-radius: 12px;
  }

  .carousel-wrapper {
    height: 280px;
    border-radius: 16px;
    padding: 0 50px;
    /* Add padding for mobile */
    overflow: hidden;
  }

  .slider {
    gap: 12px;
    padding: 0 30px;
  }

  .slide {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: contain;
  }

  .slide.active {
    width: 200px;
    height: 250px;
    object-fit: contain;
  }

  .arrow {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .arrow.prev {
    left: 10px;
  }

  .arrow.next {
    right: 10px;
  }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
  .carousel-box {
    padding: 8px;
    margin: 12px auto;
  }

  .carousel-wrapper {
    height: 240px;
    border-radius: 12px;
    padding: 0 40px;
    /* Add padding for small mobile */
    overflow: hidden;
  }

  .slider {
    gap: 8px;
    padding: 0 20px;
  }

  .slide {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: contain;
  }

  .slide.active {
    width: 160px;
    height: 200px;
    object-fit: contain;
  }

  .arrow {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .arrow.prev {
    left: 5px;
  }

  .arrow.next {
    right: 5px;
  }
}