/* ==========================================================================
   PRODUCTS-BUNDLE.CSS - Объединённый файл для страницы категории
   
   Содержит:
   - buttons.css (1.30 KiB)
   - products.css (5.12 KiB)
   - load-more.css (0.95 KiB)
   
   Итого: ~7.4 KiB | Загрузка: ProductsView
   Вместо 4 HTTP-запросов → 1 запрос
   ========================================================================== */

/* ========================================================================== */
/* BUTTONS.CSS - Кнопки (минималистичный стиль) */
/* ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: #000;
  color: #fff;
}

.btn-primary:hover {
  background: #333;
}

.btn-outline {
  background: transparent;
  color: #000;
  border: 1px solid #000;
}

.btn-outline:hover {
  background: #000;
  color: #fff;
}

.btn-white {
  background: #fff;
  color: #000;
}

.btn-white:hover {
  background: #f5f5f5;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 767px) {
  .btn {
    padding: 12px 24px;
    font-size: 13px;
  }
}

/* ========================================================================== */
/* PRODUCTS.CSS - Сторінка каталогу товарів (минималистичный стиль) */
/* ========================================================================== */

/* ========== SUBCATEGORIES SECTION ========== */
.subcategories-section {
  padding: 30px 0;
  background: #fff;
}

.subcategory-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.subcategory-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.subcategory-image {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 50%;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
  background: #f5f5f5;
}

.subcategory-link:hover .subcategory-image {
  transform: scale(1.05);
}

.subcategory-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subcategory-name {
  font-size: 13px;
  font-weight: 500;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.subcategory-link:hover .subcategory-name {
  color: #666;
}

.subcategory-name span {
  display: block;
}

/* Нативный скролл для подкатегорий (без Swiper) */
.subcategories-scroll-wrapper {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
  padding-bottom: 10px;
}

.subcategories-scroll-wrapper::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

.subcategories-scroll-wrapper .subcategory-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 140px;
}

@media (min-width: 768px) {
  .subcategories-scroll-wrapper .subcategory-item {
    width: 160px;
  }

  .subcategories-scroll-wrapper {
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .subcategories-scroll-wrapper .subcategory-item {
    width: 180px;
  }

  .subcategories-scroll-wrapper {
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
    scroll-snap-type: none;
  }
}

/* ========== CONTAINER ========== */
.flat-spacing {
  padding: 80px 0 60px;
}

.flat-spacing-products {
  padding: 0 0 60px;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%;
}

/* ========== CATEGORY HEADER ========== */
.cat_name {
  font-size: 28px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000;
  margin: 0 0 30px 0;
}

/* ========== SHOP CONTROL (Заголовок + Фильтр + Сортировка) ========== */
.tf-shop-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 20px;
}

/* Контейнер фильтра */
.tf-control-filter {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tf-btn-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tf-btn-filter:hover {
  background: #f5f5f5;
  border-color: #000;
}

.tf-btn-filter .icon {
  width: 16px;
  height: 16px;
}

/* Счетчик активных фильтров */
#fil_count-box {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #000;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

/* Контейнер сортировки */
.tf-control-sorting {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tf-control-sorting .text-caption-1 {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* Dropdown сортировки */
.tf-dropdown-sort {
  position: relative;
  cursor: pointer;
}

.tf-dropdown-sort .btn-select {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 25px;
  min-width: 150px;
  transition: all 0.3s ease;
}

.tf-dropdown-sort .btn-select:hover {
  border-color: #000;
}

.tf-dropdown-sort .text-sort-value {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  flex: 1;
}

.tf-dropdown-sort .icon-arrow-down {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

.tf-dropdown-sort.show .icon-arrow-down {
  transform: rotate(180deg);
}

/* Dropdown меню */
.tf-dropdown-sort .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  padding: 8px 0;
  z-index: 1000;
  display: none;
}

.tf-dropdown-sort.show .dropdown-menu {
  display: block;
}

.tf-dropdown-sort .select-item {
  padding: 0;
  transition: background 0.2s ease;
}

.tf-dropdown-sort .select-item:hover {
  background: #f5f5f5;
}

.tf-dropdown-sort .select-item a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tf-dropdown-sort .select-item.active a {
  font-weight: 600;
  color: #000;
}

/* ========== SUBCATEGORY IMAGES ========== */
.sub-category-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ========== SELECTED FEATURES (Активные фильтры) ========== */
.selected_futures {
  margin-bottom: 30px;
  width: 100%;
  box-sizing: border-box;
}

/* Убираем margin-bottom если блок пустой или содержит только пустой div */
.selected_futures:empty,
.selected_futures:has(.selected_style:empty) {
  margin-bottom: 0;
}

.selected_futures .selected_style {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.selected_futures .facet-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #000;
  margin: 0 0 12px 0;
}

.selected_futures .facet-selected-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.selected_futures .facet-selected-item {
  display: inline-block;
}

.selected_futures .color-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  font-size: 13px;
  color: #000;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.selected_futures .color-item:hover {
  background: #fff;
  border-color: #000;
}

.selected_futures .color-item .color {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.selected_futures .color-item span:not(.color) {
  font-weight: 400;
}

.selected_futures .color-item>span:last-of-type {
  display: none;
}

.selected_futures .remove-icon {
  width: 14px;
  height: 14px;
  margin-left: 4px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.selected_futures .color-item:hover .remove-icon {
  opacity: 1;
}

/* Выбранный диапазон цены */
.selected_futures .facet-selected-reset {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 12px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #000;
  cursor: pointer;
  transition: all 0.2s ease;
}

.selected_futures .facet-selected-reset:hover {
  background: #fff;
  border-color: #000;
}

.selected_futures .facet-selected-reset .remove-icon {
  opacity: 0.6;
}

.selected_futures .facet-selected-reset:hover .remove-icon {
  opacity: 1;
}

/* ========== PRODUCTS GRID ========== */
.wrapper-shop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 10px;
  /* Минимальные отступы между товарами */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.tf-grid-layout {
  display: grid;
}

/* По умолчанию 2 колонки */
.tf-col-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Средние экраны (tablet) - 3 колонки */
@media (min-width: 768px) {
  .md-col-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Большие экраны (desktop) - 4 колонки */
@media (min-width: 1200px) {
  .lg-col-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========== CARD PRODUCT ========== */
.card-product {
  display: flex;
  flex-direction: column;
  background: #fff;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

/* Скрываем форму выбора варианта в списке товаров */
.preview_form {
  display: none;
}

/* Wrapper */
.card-product-wrapper {
  position: relative;
  margin-bottom: 8px;
  background: #f9f9f9;
  width: 100%;
  /* ФИКС: Единая высота для всех карточек (Aspect Ratio) */
  aspect-ratio: 3/4;
}

.card-product-wrapper:hover {
  cursor: pointer;
}

/* Изображение товара */
.product-img {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background-color: #f7f7f7;
}

/* Skeleton loader через псевдоэлемент */
.product-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f5f5f5;
  background-image: linear-gradient(90deg, #f5f5f5 0px, #e8e8e8 40px, #f5f5f5 80px);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.product-img img,
.product-img video {
  width: 100%;
  transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
}

/* Скрываем прелоадер когда изображение загружено (через :has) */
.product-img:has(img[src]:not([src='']))::before {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-img:has(video[src]:not([src='']))::before {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-img.image-loaded,
.product-img:has(img.loaded),
.product-img:has(video.loaded) {
  background: transparent;
  animation: none;
}

.card-product:hover .product-img img,
.card-product:hover .product-img video {
  transform: scale(1.05);
}

/* Sale бейдж -  Style (квадрат с закруглением) */
.on-sale-wrap {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  pointer-events: none;
  display: block;
}

.on-sale-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  font-size: 20px;
  font-weight: 600;
  background: rgb(239 204 249 / 40%);
  /* Белый полупрозрачный  */
  color: #000;
  border-bottom-right-radius: 50%;
  /* Закругление только в правом нижнем углу */
  overflow: hidden;
  transition: all 0.3s ease;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Wishlist кнопка -  Style (правый верхний угол) */
.list-product-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20;
  /* Выше бейджа */
}

.list-product-btn .box-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  /* Без фона по умолчанию */
  border: none;
}

.list-product-btn .box-icon:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.list-product-btn .box-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #000;
  stroke-width: 1.5;
  transition: all 0.3s ease;
}

.list-product-btn .box-icon:hover svg {
  stroke: #e74c3c;
  fill: rgba(231, 76, 60, 0.1);
}

.list-product-btn .box-icon.selected svg {
  fill: #e74c3c;
  stroke: #e74c3c;
}

/* Промо изображение */
.promo_img {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: 80px;
  max-height: 80px;
  z-index: 1;
}

/* ========== CARD INFO ========== */
.card-product-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* Уменьшено расстояние между элементами */
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Название товара - минималистичный стиль */
.card-product-info .title {
  font-size: 13px;
  /* Увеличено для лучшей читаемости */
  font-weight: 400;
  line-height: 1.3;
  /* Уменьшен межстрочный интервал */
  color: #000;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 2px;
  /* Уменьшен отступ снизу */
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
  /* Улучшение читаемости */
}

.card-product-info .title:hover {
  color: #666;
}

/* Описание товара */
.card-product-info .product-description {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  color: #999;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Цена - горизонтальное расположение (как на скрине) */
.card-product-info .price {
  display: flex;
  flex-direction: row;
  /* Цена и варианты в один ряд */
  align-items: center;
  gap: 6px;
  /* Уменьшено расстояние между ценой и цветами */
  margin: 0;
  /* Убран margin для компактности */
  flex-wrap: wrap;
  justify-content: space-between;
}

.card-product-info .current-price {
  font-size: 15px;
  /* Оптимальный размер для читаемости */
  font-weight: 600;
  color: #000;
  /* По умолчанию чёрная */
  line-height: 1.2;
  letter-spacing: 0.02em;
  /* Улучшение читаемости */
}

/* Красная цена ТОЛЬКО если есть скидка (старая цена) */
.card-product-info .old-price~.current-price {
  color: #e74c3c;
  /* Красный цвет при наличии скидки */
}

.card-product-info .old-price {
  font-size: 13px;
  font-weight: 400;
  color: #999;
  text-decoration: line-through;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

/* Список размеров - текстовый вариант */
.list-size-product {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.list-size-item {
  display: inline;
}

.list-size-item .size-value {
  font-size: 13px;
  font-weight: 400;
  color: #666;
}

.list-size-item:not(:last-child) .size-value::after {
  content: ' ';
  margin-right: 4px;
}

/* Список цветов - минималистичный стиль */
.list-color-product {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Цвета внутри блока price - убираем лишние отступы */
.card-product-info .price .list-color-product {
  margin: 0;
  padding: 0;
}

.list-color-item {
  position: relative;
}

.list-color-item .swatch-value {
  display: block;
  width: 11px;
  /* Ещё мельче кружочки, чтобы не вылазили */
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Белая рамка для светлых цветов */
.list-color-item .swatch-value[style*='ffffff'],
.list-color-item .swatch-value[style*='fff'],
.list-color-item .swatch-value[style*='f5f5f5'] {
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.list-color-item .swatch-value:hover {
  transform: scale(1.15);
}

.list-color-item.active .swatch-value {
  border: 2px solid #000;
  transform: scale(1.1);
}

/* Счетчик дополнительных цветов */
.list-color-item .color-more {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 500;
  color: #999;
  min-width: 11px;
  /* Под размер кружочков */
  height: 11px;
}

/* ========== BROWSED PRODUCTS ========== */
.filters_heading {
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000;
  margin: 60px 0 30px;
  padding-top: 60px;
  border-top: 1px solid #e0e0e0;
}

/* ========== RECOMMENDED PRODUCTS ========== */
.shop-sale-text {
  margin: 40px 0 20px;
}

.shop-sale-text .icon-checkCircle {
  width: 20px;
  height: 20px;
  fill: #27ae60;
  align-content: center;
  color: green;
  font-size: 18px;
  font-weight: 900;
}

.shop-sale-text.rec_cat .icon-checkCircle {
  fill: #f7c545;
}

.shop-sale-text .text-caption {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  margin: 0;
}

/* ========== PAGINATION ========== */
.fn_pagination {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.wg-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  flex-wrap: wrap;
}

.wg-pagination li {
  margin: 0;
}

.wg-pagination .pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #e3e3e3;
  background: #fff;
  color: #1b1b1b;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.wg-pagination .pagination-item i {
  font-size: 16px;
}

.wg-pagination li.active .pagination-item,
.wg-pagination .pagination-item:hover {
  background: #111;
  border-color: #111;
  color: #fff;
}

.wg-pagination li.active .pagination-item {
  cursor: default;
  pointer-events: none;
}

.wg-pagination .pagination-item[data-language='pagination_all'] {
  min-width: 120px;
  height: 44px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.wg-pagination .pagination-item:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1199px) {
  .wrapper-shop {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 10px;
    /* Минимальные отступы */
    width: 100%;
  }
}

@media (max-width: 991px) {
  .flat-spacing {
    padding: 0;
  }

  .cat_name {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .tf-shop-control {
    margin-bottom: 25px;
  }

  .wrapper-shop {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 8px;
    /* Минимальные отступы для планшетов */
    width: 100%;
  }

  .tf-control-sorting .text-caption-1 {
    display: none;
  }
}

@media (max-width: 767px) {

  /* Убираем padding у container на мобильных */
  .container {
    padding: 0;
  }

  .cat_name {
    font-size: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .tf-shop-control {
    margin: 20px 0 0;
    padding: 0 10px;
  }

  .wrapper-shop {
    gap: 10px 4px;
    /* Минимальные отступы для мобильных */
    width: 100%;
  }

  /* Padding для элементов */
  .selected_futures,
  .fn_pagination,
  .filters_heading,
  .shop-sale-text {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Selected features на мобильных */
  .selected_futures {
    margin-bottom: 10px;
  }

  .selected_futures .facet-title {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .selected_futures .color-item {
    font-size: 12px;
    padding: 6px 10px 6px 6px;
  }

  .selected_futures .color-item .color {
    width: 18px;
    height: 18px;
  }

  .selected_futures .remove-icon {
    width: 12px;
    height: 12px;
  }

  .selected_futures .facet-selected-reset {
    font-size: 12px;
    padding: 6px 10px;
  }

  .card-product-info {
    gap: 1px;
    /* Ещё меньше расстояние для мобильных */
    padding: 0 10px;
  }

  .card-product-info .title {
    font-size: 11px;
    /* Уменьшенное название для мобильных */
    line-height: 1.3;
    margin-bottom: 5px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .card-product-info .product-description {
    font-size: 12px;
  }

  .card-product-info .price {
    gap: 4px;
    /* Уменьшено для мобильных */
    margin: 0;
  }

  .card-product-info .current-price {
    font-size: 14px;
    /* Уменьшенная цена для мобильных */
    font-weight: 600;
    color: #000;
    /* По умолчанию чёрная */
  }

  /* Красная цена ТОЛЬКО при наличии скидки */
  .card-product-info .old-price~.current-price {
    color: #e74c3c;
  }

  .card-product-info .old-price {
    font-size: 12px;
  }

  .on-sale-item {
    width: 50px;
    height: 50px;
    font-size: 14px;
  }

  .list-product-btn {
    top: 6px;
    right: 6px;
  }

  .list-product-btn .box-icon {
    width: 28px;
    height: 28px;
  }

  .list-product-btn .box-icon svg {
    width: 18px;
    height: 18px;
  }

  .list-color-item .swatch-value {
    width: 10px;
    /* Ещё мельче кружочки для мобильных */
    height: 10px;
  }

  .list-color-item .color-more {
    min-width: 10px;
    height: 10px;
    font-size: 8px;
  }

  .list-size-product {
    font-size: 11px;
  }

  .list-size-item .size-value {
    font-size: 11px;
  }

  .filters_heading {
    font-size: 18px;
    margin: 40px 0 20px;
    padding-top: 40px;
  }

  .fn_pagination {
    margin-top: 40px;
  }

  .wg-pagination {
    gap: 8px;
  }

  .wg-pagination .pagination-item {
    min-width: 36px;
    height: 36px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .wg-pagination .pagination-item[data-language='pagination_all'] {
    min-width: 100px;
    height: 36px;
  }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-product {
  animation: fadeIn 0.4s ease forwards;
}

.card-product:nth-child(1) {
  animation-delay: 0.05s;
}

.card-product:nth-child(2) {
  animation-delay: 0.1s;
}

.card-product:nth-child(3) {
  animation-delay: 0.15s;
}

.card-product:nth-child(4) {
  animation-delay: 0.2s;
}

/* ========== ОПИСАНИЕ КАТЕГОРИИ ========== */
.opis {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.cat_name {
  font-weight: 600;
  font-size: 28px;
  text-transform: uppercase;
  color: #000;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}

.opis h2 {
  font-weight: 600;
  font-size: 22px;
  color: #000;
  margin: 48px 0 20px;
}

.opis h3 {
  font-weight: 500;
  font-size: 18px;
  color: #000;
  margin: 32px 0 16px;
}

.opis p {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin: 0 0 20px;
}

.opis a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.opis a:hover {
  color: #666;
}

.opis strong {
  font-weight: 600;
  color: #000;
}

/* ========== RESPONSIVE: Subcategories ========== */
@media (max-width: 767px) {
  .opis {
    margin: 40px auto;
    padding: 0 15px;
  }

  .cat_name {
    font-size: 22px;
  }

  .opis h2 {
    font-size: 18px;
    margin: 32px 0 16px;
  }

  .opis h3 {
    font-size: 16px;
  }

  .opis p {
    font-size: 14px;
  }

  .subcategories-section {
    padding: 20px 0;
  }

  .subcategory-image {
    margin-bottom: 8px;
  }

  .subcategory-name {
    font-size: 11px;
    letter-spacing: 0.3px;
  }
}

/* ========================================================================== */
/* LOAD-MORE.CSS - Кнопка "Показати ще товари" */
/* ========================================================================== */

/* Кнопка "Показати ще товари" */
.load-more-wrapper {
  text-align: center;
  margin: 40px 0;
}

.load-more-btn {
  padding: 15px 50px;
  background: #fff;
  border: 1px solid #000;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.load-more-btn:hover {
  background: #000;
  color: #fff;
}

.load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.load-more-btn:disabled:hover {
  background: #fff;
  color: #000;
}

/* Счётчик просмотренных товаров */
#viewed-products-count {
  text-align: center;
  margin: 20px 0;
  font-size: 13px;
  color: #666;
}

/* Buttons on Category Page - styled like .btn-banner */
.tf-btn-filter,
.tf-dropdown-sort .btn-select {
  background-color: transparent !important;
  border: 1px solid var(--c-black) !important;
  color: var(--c-black) !important;
  transition: all 0.3s ease !important;
  padding: 0 15px !important;
  border-radius: 0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.tf-btn-filter:hover,
.tf-dropdown-sort .btn-select:hover {
  color: var(--c-white) !important;
}

.tf-btn-filter .icon,
.tf-dropdown-sort .icon {
  transition: all 0.3s ease;
}

.tf-btn-filter:hover .icon,
.tf-dropdown-sort .btn-select:hover .icon {
  filter: invert(1);
}