/* ===== PRODUCT CAROUSEL ===== */

/* Внешний: только горизонтальный clip соседних слайдов */
.product-carousel-wrap {
  position: relative;
  margin-bottom: 30px;
  overflow: hidden;
}

/* Внутренний: padding-top даёт место для поднятой фотки */
.product-carousel-inner {
  overflow: visible;
  padding-top: 22px;
}

/* Swiper не обрезает — иначе клипает поднятое фото */
.product-carousel-wrap .swiper-container {
  overflow: visible !important;
}

/* Swiper-wrapper тоже */
.product-carousel-wrap .swiper-wrapper {
  overflow: visible;
}

.product-carousel-wrap h3 {
  margin-bottom: 30px;
}

/* Swiper arrows */
.product-carousel-wrap .swiper-button-prev,
.product-carousel-wrap .swiper-button-next {
  position: absolute !important;
  top: 50% !important;
  margin-top: 10px !important;
  width: 36px !important;
  height: 36px !important;
  background-color: #fff !important;
  background-image: none !important;
  border: 1px solid #ddd;
  border-radius: 2px;
  z-index: 10 !important;
  transition: background-color 0.2s, border-color 0.2s;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.product-carousel-wrap .swiper-button-prev:hover,
.product-carousel-wrap .swiper-button-next:hover {
  background-color: #f5f5f5 !important;
  border-color: #2e608b;
}

.product-carousel-wrap .swiper-button-prev {
  left: 6px !important;
  right: auto !important;
}

.product-carousel-wrap .swiper-button-next {
  right: 6px !important;
  left: auto !important;
}

/* Custom arrow icons */
.product-carousel-wrap .swiper-button-prev::after,
.product-carousel-wrap .swiper-button-next::after {
  font-family: 'FontAwesome';
  font-size: 14px;
  color: #555;
}

.product-carousel-wrap .swiper-button-prev::after {
  content: '\f053';
}

.product-carousel-wrap .swiper-button-next::after {
  content: '\f054';
}

/* Each slide */
.product-carousel-wrap .swiper-slide {
  height: auto;
  padding-top: 22px;
}

/* Карточка: прозрачный фон — белый только у caption и buttons */
.product-carousel-wrap .product-thumb {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: none;
  overflow: visible;
  position: relative;
}

/* Фотка: transform уходит вверх на 22px (в зону padding-top слайда),
   margin-bottom компенсирует сдвиг чтобы caption не уезжал */
.product-carousel-wrap .product-thumb .image {
  position: relative;
  z-index: 2;
  transform: translateY(-40px);
  margin-bottom: -22px;
  overflow: hidden;
}

/* Белая карточка — только caption + button-group */
.product-carousel-wrap .product-thumb .caption {
  flex: 1;
  background: #fff;
  box-shadow: -1px 0 0 #fff, 1px 0 0 #fff;
  padding-top: 12px;
}

.product-carousel-wrap .product-thumb .caption>p:not(.price) {
  display: none;
}

.product-carousel-wrap .product-thumb .button-group {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 10px 12px 14px;
}

.product-carousel-wrap .btn-details {
  display: block;
  width: 100%;
  padding: 9px 0;
  background: #2e608b;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s;
  letter-spacing: 0.3px;
}

.product-carousel-wrap .btn-details:hover {
  background: #245070;
  color: #fff;
  text-decoration: none;
}


@media (max-width: 767px) {
  .product-carousel-wrap .swiper-button-prev {
    left: 4px;
  }

  .product-carousel-wrap .swiper-button-next {
    right: 4px;
  }
}