/* Общие стили контейнера */
.ptse-scene2-slider-wrapper {

}

/* Шапка слайдера (Название слева, кнопки справа) */
.ptse-scene2-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom:5px;	
}

.ptse-scene2-slider-title {
  font-size: 19px;
  margin: 0;
  color: #333;
  font-weight: 700;
  line-height: 24px;  
}

/* Квадратные кнопки */
.ptse-scene2-slider-controls {
  display: flex;
  gap: 10px;
}

.ptse-scene2-slider-nav-btn {
  width: 30px;
  height: 30px;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 0; /* Квадратная форма */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #1178bd;
  transition: background 0.2s;
}

/* Трек слайдера */
.ptse-scene2-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  /* Скрываем скроллбар */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.ptse-scene2-slider::-webkit-scrollbar {
  display: none;
}

/* Ссылка - карточка товара */
.ptse-scene2-slider-item {
  display: flex;
  flex-direction: column;
  height: 280px;
  min-width: 230px;
  width: fit-content; /* Позволяет растягиваться под широкое изображение */
  padding:10px;
  flex-shrink: 0; /* Чтобы карточки не сжимались flex'ом */
  border: 1px solid #e0e0e0;
  text-decoration: none;
  color: #333;
  position: relative;
  box-sizing: border-box;
  background: #fff;
  transition: box-shadow 0.2s;
}

/*.slide-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}*/

/* Блок с изображением */
.ptse-scene2-slider-item-image-wrapper {
  height: 150px;
  min-width: 240px; /* Гарантирует, что блок не сожмется меньше минимума */
  display: flex;
  justify-content: center; /* Центрируем, если картинка меньше 250px */
}

.ptse-scene2-slider-item-image-wrapper img {
  height: 100%;
  width: auto;
  display: block;
}

/* ВАЖНО: Хак `width: 0; min-width: 100%;` 
  Не дает длинному тексту растягивать ширину карточки. 
  Ширина карточки зависит ТОЛЬКО от изображения.
*/
.ptse-scene2-slider-item-text-content-wrapper {
  width: 0;
  min-width: 100%;
  flex-grow: 1; /* Занимает оставшиеся 250px высоты */
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding-top:10px;
}

/* Текст в две строки */
.ptse-scene2-slider-item-title {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Ограничение в 2 строки */
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  margin-bottom: 5px;
  height: 38px; 
  font-size: 14px;
  color:#1178bd;
}

/* Блок с надписями (центрирование по вертикали, прилипание к левому краю) */
.ptse-scene2-slider-item-price-block {
  flex-grow: 1; /* Растягивается на оставшееся свободное место */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Вертикальное центрирование содержимого */
  align-items: flex-start; /* Прилипание к левому краю */
  gap: 5px; /* Расстояние между надписями */
  padding-right: 35px; /* Чтобы текст не налез на корзину */
  font-size: 16px;
  font-weight: 600;
 }

/* Стили самих надписей */
.ptse-scene2-slider-item-full-price {
	color: rgb(210, 7, 7);
    line-height: 20px;
}

.ptse-scene2-slider-item-discounted-price {
	color: rgb(81, 81, 81);
    font-size: 12px;
    font-weight: 400;
    text-decoration: line-through;
}

/* Иконка корзины в правом нижнем углу */
.ptse-scene2-slider-item-basket-icon {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 28px;
  height: 28px;
  color: rgb(58, 135, 0); /* Цвет корзины */
  transition: color 0.2s, border-color 0.2s;
  padding: 6px; /* Отступ внутри рамки */
  border: 2px solid rgb(58, 135, 0); 
  border-radius: 10px; /* Делает рамку идеально круглой */
}