/* БАЗА SWIPER */
.swiper {
  width: 100%;
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.swiper-slide {
  user-select: none;
  -webkit-user-select: none;
  box-sizing: border-box;
}

/* 👉 ВАЖНО: разрешаем горизонтальный drag */
.main-swiper,
.thumbs-swiper {
  touch-action: pan-y pinch-zoom;
}

/* Картинки НЕ должны блокировать drag */
.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ОБЩИЙ КОНТЕЙНЕР */
.product-slider {
  max-width: 100%;
  margin: 0 auto;
}

/* ============================= */
/* ГЛАВНЫЙ СЛАЙДЕР */
/* ============================= */

.main-swiper {
  height: 500px;
  margin-bottom: 20px;
}

.main-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
 
  border-radius: 10px;
  overflow: hidden;
}

.main-swiper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Видео */
.video-slide iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================= */
/* THUMBS */
/* ============================= */

.thumbs-swiper {
  padding-top: 10px;
}

/* ❗ Убираем !important — Swiper сам считает ширину */
.thumbs-swiper .swiper-slide {
  height: 120px;
  cursor: pointer;
}

.thumbs-swiper .swiper-slide-thumb-active {
  opacity: 1;
  border:3px solid red;
}

/* Контейнер превью */
.thumb-item {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid #D9D9D9;
  box-sizing: border-box;
}

/* Подсветка активного thumb */
.swiper-slide-thumb-active .thumb-item {
  border-color: #D92727;
  box-shadow: 0 4px 12px rgba(217,39,39,.3);
}

/* ============================= */
/* НАВИГАЦИЯ */
/* ============================= */

.swiper-button-next,
.swiper-button-prev {
  color: #D92727;
}

.swiper-pagination-bullet-active {
  background: #D92727;
}

/* ============================= */
/* СТРЕЛКИ*/
/* ============================= */

.swiper-button-next,
.swiper-button-prev {
  width: 44px;
  height: 44px;
 
 
    color: transparent !important;
  font-size: 0 !important;
  text-indent: -9999px !important;
 
}

.swiper-button-prev {
  background-image: url('/ico/arrow/ar_left.svg') !important;
  left: 10px;
}

.swiper-button-next {
  background-image: url('/ico/arrow/ar_right.svg') !important;
  right: 10px;
}

 
 
 .thumbs-swiper .swiper-wrapper {
  display: flex;
  align-items: flex-start; /* или просто убрать align-items */
}
 
 .swiper-wrapper {
  display:flex;
  align-items:stretch;
}

.swiper-wrapper {
  width: 100% !important;
}

 
.swiper-pagination {
  display: none !important;
}


 

@media (max-width: 480px) {
	
	
	 #group > div:first-child {
  height: auto !important;
  min-height: 300px;
  display: flex;
  flex-direction: column;
 
}

 
.main-swiper {
  height: 100%;  
  flex: 1;
  margin-bottom: 20px;
}

.main-swiper .swiper-wrapper,
.main-swiper .swiper-slide {
  height: 100%;
}
	
	.thumbs-swiper{
		display:none;
	}
	
	
  #group > div:first-child {
    min-height: 250px;   
  }
  
  .thumbs-swiper {
    display: none;
  }
}