:root {
  --accent-color: #ffe973; /* жёлтый */
}

.red-theme {
  --accent-color: #ff4c3f; /* красный */
}

body {
  background-color: #ffffff;
  margin: 0;
  font-family: "Inter", sans-serif;
}
.categories-and-text {
  display: flex;
  flex-wrap: wrap; /* перенос на мобильных */
  flex-direction: row;
  gap: 30px; /* отступ между колонками */
}

.shop-category {
  flex: 1;
  flex-direction: column;
  display: flex;
  flex-wrap: wrap;
  align-items: center; /* Изменил с flex-start на center */
  margin-top: 1.7%; /* Процент вместо фиксированных пикселей 25px */

  min-width: 300px; /* Минимальная ширина */
  box-sizing: border-box;
  padding: 30px;
  padding-left: 0px;
  padding-top: 0px;
  padding-bottom: 1.5%; /* Процент вместо фиксированных пикселей */
}
.category-info-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 1306px;
}

/* breadcrumbs всегда на всю строку */
.breadcrumbs {
  width: 100%;
}

.category-info-text a {
  text-decoration: none;
  color: #5f5f5f;
  font-weight: 600;
  font-size: clamp(12px, 1.5vw, 16px);
  margin-bottom: 10px;
  line-height: 1.4;
}

.category-main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* заголовок */
.category-main-row h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(18px, 2vw, 24px);
}

.products-controls-mobile {
  display: none;
}

/* controls справа */
.products-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.items-per-page {
  display: flex;
  gap: 5px;
  align-items: center;
}

.page-numbers {
  border: 1px solid #c7c7c7;
  border-radius: 6px;
  cursor: pointer;
  width: 57px;
  position: relative;
  user-select: none;
}

.page-number {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 8px 8px;
  font-size: 14px;
  color: #000000;
}

.arrow2 {
  transition: transform 0.3s ease;
  font-size: 11px;
}

.arrow2.down {
  transform: rotate(90deg);
}

.dropdown {
  margin-top: 3px;
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%; /* под выбранным числом */
  left: 0;
  width: 100%;
  border: 1px solid #c7c7c7;
  border-radius: 6px;
  background: #fff;
  z-index: 10;
}

.page-numbers.active .dropdown {
  display: flex;
}

.dropdown.open {
  display: block;
}

.sorting span {
  white-space: nowrap;
}

.sorting {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sort-select {
  border: 1px solid #c7c7c7;
  border-radius: 6px;
  padding: 8px 5px;
  min-width: 200px;
  cursor: pointer;
  user-select: none;
  background: #fff;
}

/*

.sorting {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-select {
  appearance: none; /* убираем стандартную стрелку 
  -webkit-appearance: none;

  padding: 6px 32px 6px 12px;
  font-size: 14px;
  border: 1px solid #b9b9b9;
  border-radius: 6px;
  background-color: #fff;

  cursor: pointer;
}
/* Стрелка через CSS, как <span>&#9654;</span> 
.sorting::after {
  content: "\25BE"; /* ▼ (unicode стрелка вниз) 
  font-size: 14px;
  color: #555;

  position: absolute;
  right: 10px;
  pointer-events: none; /* чтобы стрелка не мешала нажатию 
}


.sorting {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-select {
  appearance: none; /* убираем дефолтную стрелку 
  -webkit-appearance: none;

  padding: 6px 32px 6px 12px;
  font-size: 14px;
  border: 1px solid #b9b9b9;
  border-radius: 6px;
  background-color: #fff;

  background-image: url('images/arrow-down.svg'); /* твоя стрелка 
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.sort-select:focus {
  border-color: #666;
}

/* Чтобы select был на одной линии 
.products-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2%; /* оставь как в фигме 
}
 */

.product-category-container {
  width: 100%;
  margin-top: 1%;
  display: flex;
  flex-direction: column;
  align-items: center; /* Центрируем содержимое */
}

/* СПРОСИТЬ HOVER НУЖЕН ТОЛЬКО ТУТ ИЛИ ВЕЗДЕ
.category-product-card {
  border-right: 1px solid #b9b9b9;
  border-bottom: 1px solid #b9b9b9;
  padding: 20px;
  position: relative;
  height: 443px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.category-product-card:hover {
  background-color: #ffffff01; /* #FFFFFF с прозрачностью 1% 
  box-shadow: 0 0 23px #0000003d,
    /* тень: X:0 Y:0 Blur:23 Spread:0 Color:#0000003D (24%)  inset 0 0 0 1px
      #ffffff03; /* внутренняя граница если нужно 
} */

/*.category-product-card h3 {
  font-size: 19px;
  margin: 10px 0;
  font-weight: 400;
  line-height: 129%;
  min-height: 48px; /* чтобы у всех карточек под заголовком была одинаковая высота 
  overflow: hidden; /* если текст длиннее — обрезаем 
  text-overflow: ellipsis;
}

.category-product-card:nth-child(4n) {
  border-right: none;
}

/* Убираем нижнюю границу у последних 4-х карточек 
.category-product-card:nth-last-child(-n + 4) {
  border-bottom: none;
}

.category-product-image1,
.category-product-image2 {
  width: 100%;
  max-width: 179px;
  height: 250px;
  object-fit: contain;
}

.category-product-image2 {
  max-width: 193px;
}

.category-product-heart,
.category-product-heart2 {
  position: absolute;
  top: -20px;
  right: 0px;
  width: 23px;
  height: 23px;
  cursor: pointer;
  z-index: 2;
}

.category-product-heart2 {
  top: 3px;
} */

/* Чекбоксы фильтров */

.category-checkbox-container {
  margin-top: 2.76vw; /* 53px / 1920px = 0.0276 = 2.76vw */
}

.category-checkbox-container h3 {
  font-weight: 500;
  font-size: clamp(18px, 2vw, 24px);
  margin-bottom: 6%;
}

.form-check {
  margin-top: 6.5%;
  margin-bottom: 5%;
}

.form-check-input {
  border: 1px solid #a3a3a3;
  border-radius: 3px;
  outline: none !important;
}

.form-check-input:checked {
  background-color: var(
    --accent-color
  ) !important; /* для краснои теми будет краснии */
  border-color: var(--accent-color) !important;
}

.form-check-input:focus {
  box-shadow: none !important;
  border-color: #a3a3a3 !important;
}

.form-check-input:checked:focus {
  border-color: var(--accent-color) !important;
}

.show-all-container {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 10px); /* адаптивный gap */
  margin-top: 10px;
  padding: 8px 0;
  cursor: pointer;
  margin-left: clamp(20px, 1.5vw, 25px); /* адаптивный отступ */
  width: fit-content; /* занимает только нужную ширину */
}

.show-all-arrow {
  color: #373737;
  font-size: clamp(10px, 1vw, 11px); /* адаптивный размер стрелки */
  transition: transform 0.3s ease;
  position: relative;
  top: 1px; /* используем top вместо transform */
}

.show-all-container.active .show-all-arrow {
  transform: rotate(90deg);
}

.price-filter-container {
  margin-top: 10px;
  padding-top: 10px;
  width: 85%;
}

.price-filter-container h5 {
  margin-bottom: 15px;
  font-weight: bold;
  color: #333;
}

/* Стили для ползунка (адаптированные) */
.slider-container {
  position: relative;
  height: 93px;
  width: 100%;
}

.slider-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  transform: translateY(-50%);
  background-color: var(--accent-color);
}

.slider-range {
  position: absolute;
  top: 50%;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 3px;
  transform: translateY(-50%);
}

.slider-input {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  width: 100%;
  height: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
  pointer-events: none;
  z-index: 2;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 31px;
  width: 31px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  pointer-events: all;
}

.slider-input::-moz-range-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  pointer-events: all;
}

.values-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  margin-top: 20px;
  font-weight: 500;
  font-size: 18px;
}

.value-display {
  padding: 5px;
  background: #f8f9fa;
  border: 1px solid #a3a3a3;
  border-radius: 3px;
  width: 100%;
  max-width: 96px;
  min-width: 70px;
  text-align: left;
}

.separator {
  margin: 0 6px;
  font-weight: bold;
  color: #626262;
}

.ok-button {
  padding: 5px 18px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 3px;
  font-weight: 500;
  cursor: pointer;
  margin-left: 16px;
  font-size: 18px;
}

/* Пагинация */

.pagination-container {
  display: flex;
  justify-content: center;
  margin: 40px 0;
  padding: 0 20px;
  width: 100%;
  max-width: 1306px; /* Такая же максимальная ширина как у контента */
}

.pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pagination a {
  text-decoration: none;
  color: black;
}

.pagination a,
.pagination span {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-size: 26px;
  transition: all 0.3s ease;
}

.pagination .active {
  background: var(--accent-color); /* Желтый цвет как в вашем акцентном */
  color: #000000; /* Черный текст для контраста */
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
  border-radius: 50%;
}

.pagination button {
  background: #ffffff;
  color: #565656;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
  font-size: 45px; /* Увеличенные стрелки */
}

/* если нужно добавлью
.pagination button:hover:not(:disabled),
.pagination span:hover:not(.dots) {
  background: #e0e0e0;
}*/

/* Overlay для затемнения фона 
.category-list-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 998;
  cursor: pointer;
}

.category-list-overlay.active {
  display: block;
}

/* Затемняем всю страницу кроме .category-list 
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 997;
  display: none;
}

body.category-menu-open::after {
  display: block;
}

/* Светлый фон для category-list при открытии
.category-list {
  position: relative;
  z-index: 999;
  transition: background-color 0.3s ease;
}

body.category-menu-open .category-list {
  background: #ffffff; /* или любой другой светлый цвет 
  border-radius: 7px; /* если нужно скругление 
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); /* тень для выделения 
  height: 900px;
} */
/* Продукти */

/* ========== МОБИЛЬНОЕ МЕНЮ ФИЛЬТРОВ ========== */

/* Оверлей (затемнение фона) */
.mobile-filters-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-filters-overlay.active {
  display: block;
  opacity: 1;
}

/* Сайдбар с фильтрами */
.mobile-filters-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 85%;
  height: 100%;
  background: white;
  z-index: 1101;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-filters-overlay.active .mobile-filters-sidebar {
  transform: translateX(0);
}

/* Заголовок */
.mobile-filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 15px;
  border-bottom: 1px solid #e0e0e0;
  background: white;
  flex-shrink: 0;
}

.mobile-filters-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.mobile-filters-close {
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-filters-close svg {
  width: 24px;
  height: 24px;
}

/* Контент фильтров */
.mobile-filters-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 15px;
  padding-bottom: 100px;
}

/* Стили для фильтров внутри мобильного меню */
.mobile-filters-content .category-checkbox-container {
  margin-top: 0;
  padding: 0;
}

.mobile-filters-content .category-checkbox-container h3 {
  display: none;
}

.mobile-filters-content .category-checkbox-container h5 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 10px 0;
  color: #333;
}

.mobile-filters-content .form-check {
  margin: 12px 0;
}

.mobile-filters-content .form-check-label {
  font-size: 14px;
  color: #555;
}

.mobile-filters-content .price-filter-container {
  width: 100%;
  margin-top: 20px;
}

.mobile-filters-content .show-all-container {
  margin-left: 0;
  margin-top: 15px;
}

/* Футер с кнопками */
.mobile-filters-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 15px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.reset-filters-btn {
  flex: 1;
  padding: 12px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 3;
}

.reset-filters-btn:active {
  background: #e9ecef;
}

.apply-filters-btn {
  flex: 1;
  padding: 12px;
  background: var(--accent-color);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 3;
}

.apply-filters-btn:active {
  opacity: 0.9;
}

/* ========== БАЗОВЫЕ СТИЛИ ДЛЯ МОБИЛЬНЫХ ========== */

/* Основная кнопка фильтров - скрыта по умолчанию */
.mobile-filters-toggle {
  display: none;
}

/* Контейнер мобильных контролов */
.products-controls-mobile {
  display: none;
}

/* Стили для мобильной сортировки */
.products-controls-mobile .sorting {
  position: relative;
}

.products-controls-mobile .sorting-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: white;
  border: 1px solid #c4c4c4;
  border-radius: 5px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  white-space: nowrap;
  min-width: 90px;
  text-align: center;
}

/* Убираем все стрелки и лишнее */
.products-controls-mobile .sorting-toggle .arrow2,
.products-controls-mobile .sorting-toggle .sorting-label,
.products-controls-mobile .sorting-toggle .sorting-selected {
  display: none !important;
}

.products-controls-mobile .sorting-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #c4c4c4;
  border-radius: 5px;
  margin-top: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

.products-controls-mobile .sorting-dropdown.show {
  display: block;
}

.products-controls-mobile .sorting-option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.products-controls-mobile .sorting-option:last-child {
  border-bottom: none;
}

.products-controls-mobile .sorting-option:hover {
  background: #f8f8f8;
}

.products-controls-mobile .sorting-option.active {
  background: #f0f0f0;
  font-weight: 500;
}

.products .product-card:nth-child(5n) {
  border-right: 1px solid #b9b9b9;
}

/* ========== АДАПТАЦИЯ ДЛЯ РАЗНЫХ ЭКРАНОВ ========== */

/* ДЕСКТОП (выше 1200px) - показываем обычные фильтры */
@media (min-width: 1201px) {
  /* Показываем обычные фильтры в aside */
  .filter-sidebar {
    display: none;
  }

  /* Показываем десктопные контролы */
  .products-controls {
    display: flex !important;
  }

  /* Скрываем мобильную кнопку фильтров */
  .products-controls-mobile .mobile-filters-toggle {
    display: none !important;
  }

  /* Скрываем мобильные контролы */
  .products-controls-mobile {
    display: none !important;
  }

  /* Скрываем мобильное меню */
  .mobile-filters-overlay {
    display: none !important;
  }
}

/* ПЛАНШЕТЫ И МОБИЛЬНЫЕ (до 1200px) - показываем кнопку фильтров */
@media (max-width: 1200px) {
  /* Показываем мобильную кнопку фильтров */
  .products-controls-mobile .mobile-filters-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    background-color: var(--accent-color);
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    min-width: 82px;
    height: 36px;
    color: #000000;
  }

  /* Показываем контейнер мобильных контролов */
  .products-controls-mobile {
    display: flex !important;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }

  /* Скрываем обычный aside с фильтрами */
  .filter-sidebar {
    display: none !important;
  }

  /* Скрываем десктопные контролы */
  .products-controls {
    display: none !important;
  }
}

@media (max-width: 768px) {
  /* Категории и основной контент */
  .categories-and-text {
    flex-direction: column;
    padding: 10px !important;
  }

  /* Скрываем сайдбар с категориями по умолчанию */
  .category-list {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    height: 100vh;
    background: white;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  }

  .category-list.active {
    display: block;
  }

  /* Основной контент магазина */
  .shop-category {
    width: 100%;
    padding: 10px;
  }

  /* Информация о категории */
  .category-info-text {
    align-items: start;
  }

  .left-section-info p {
    font-size: 12px;
    margin-bottom: 5px;
  }

  .left-section-info h1 {
    font-size: 18px;
  }

  .products-controls {
    font-size: 10px;
    flex-direction: row;
    width: 100%;
  }

  .items-per-page,
  .sorting {
    justify-content: space-between;
  }

  .sorting span {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    border: 1px solid #c4c4c4;
    border-radius: 5px;
    cursor: pointer;
    width: 77px;
    position: relative;
    user-select: none;
    padding: 8px;
  }

  .sort-select {
    display: none;
    width: 60%;
  }

  /* .old-price {
    font-size: 18px;
  }
  .sale-price {
    font-size: 22px;
  } */

  /* Пагинация */
  .pagination-container {
    margin: 20px 0;
  }

  /* Описание категории */
  .category-description {
    font-size: 14px;
    line-height: 1.4;
  }

  .category-description p {
    margin-bottom: 15px;
  }

  /* Оверлей для мобильного меню */
  .category-list-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
  }

  .category-list-overlay.active {
    display: block;
  }

  /* Кнопка фильтров для мобильных */
  .products-controls-mobile .mobile-filters-toggle {
    padding: 8px 12px;
    font-size: 13px;
    min-width: 75px;
    height: 34px;
  }
  .products-controls-mobile .sorting-option {
    font-size: 12px;
  }
}

/* ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 480px) */
@media (max-width: 480px) {
  .products-controls {
    display: none;
  }

  .products-controls-mobile {
    display: flex !important;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 16px;
  }

  .page-numbers {
    border: 1px solid #c4c4c4;
    border-radius: 5px;
    cursor: pointer;
    width: 32px;
    position: relative;
    user-select: none;
  }

  .page-number {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 7px;
    font-size: 12px;
  }

  .sorting span {
    font-size: 12px;
  }

  .shop-category {
    margin-top: 1.7%;
    margin-bottom: 0;
    padding: 10px;
  }

  .category-description {
    display: none;
  }

  .product-category-container2 {
    display: none;
  }

  .pagination-container {
    margin-top: 30px;
  }

  .pagination {
    flex-wrap: nowrap;
  }

  .pagination button,
  .pagination span {
    width: 33px;
    height: 33px;
    border-radius: 50%;
    font-size: 14px;
    transition: all 0.3s ease;
  }

  .pagination span.active {
    background: var(--accent-color);
    color: #000000;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
    width: 33px;
    height: 33px;
    border-radius: 50%;
  }

  .pagination button {
    background: #ffffff;
    color: #565656;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
    font-size: 20px;
  }

  .catalog-button {
    font-size: 12px;
    padding: 6px 10px;
  }

  /* Мобильное меню фильтров на маленьких экранах */
  .products-controls-mobile .mobile-filters-toggle {
    padding: 8px 10px;
    font-size: 12px;
    min-width: 70px;
    height: 32px;
  }

  .mobile-filters-sidebar {
    width: 100%;
  }

  .mobile-filters-header {
    padding: 15px;
  }

  .mobile-filters-content {
    padding: 15px;
    padding-bottom: 20%;
  }

  .mobile-filters-footer {
    padding: 10px;
  }

  .reset-filters-btn,
  .apply-filters-btn {
    padding: 14px;
    font-size: 16px;
  }

  .arrow2 {
    display: none;
  }
}

/* ПЛАНШЕТНАЯ ВЕРСИЯ (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .category-list {
    width: 250px;
  }

  .shop-category {
    width: calc(100% - 270px);
  }
}

@media (max-width: 1200px) {
  /* Скрываем обычный sidebar с фильтрами */
  .filter-sidebar {
    display: none !important;
  }

  /* Скрываем контейнер с категориями и фильтрами */
  .category-and-filters-container {
    display: none !important;
  }

  /* Показываем мобильную кнопку фильтров */
  .mobile-filters-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    background-color: var(--accent-color);
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    min-width: 82px;
    height: 36px;
  }

  /* Показываем контейнер мобильных контролов */
  .products-controls-mobile {
    display: flex !important;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 16px;
  }

  /* Скрываем десктопные контролы */
  .products-controls {
    display: none !important;
  }

  /* Основной контент занимает всю ширину */
  .shop-category {
    width: 100%;
  }
}

/* Десктоп: скрываем мобильное меню */
@media (min-width: 1200px) {
  .products-controls-mobile {
    display: none !important;
  }
}

/* Мобильные: скрываем десктопное меню */
@media (max-width: 1200px) {
  .products-controls {
    display: none !important;
  }

  .products-controls-mobile {
    display: flex !important;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 16px;
  }

  /* Можно сделать ширину кнопок одинаковой */
  .products-controls-mobile .page-numbers > .page-number {
    justify-content: center;
  }

  .products-controls-mobile .sorting-toggle {
    min-width: 90px;
  }
}

.image-container {
  padding-top: 0px;
}

@media (max-width: 768px) {
  .product-list-container,
  .sale-product-list-container {
    padding-right: 0px !important;
  }
}

/* фикс по бордерам */

@media (min-width: 1600px) {
  .product-category-container .products {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-category-container .product-card:nth-child(4n) {
    border-right: none;
  }
}
@media (max-width: 1500px) and (min-width: 769px) {
  .product-category-container .products {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-category-container .product-card:nth-child(3n) {
    border-right: none !important;
  }
}
@media (max-width: 768px) {
  .product-category-container .products {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-category-container .product-card:nth-child(2n) {
    border-right: none !important;
  }
  .product-card:nth-child(3n) {
    border-right: 1px solid #b9b9b9 !important;
  }
}

@media (max-width: 1600px) {
  .product-image {
    height: 220px;
  }
}

@media (max-width: 1440px) {
  .products .product-card:nth-child(4n) {
    border-right: 1px solid #b9b9b9;
  }
}

@media (max-width: 768px) {
  .products .product-card:nth-child(4n) {
    border-right: 1px solid #b9b9b9 !important;
  }
  .products .product-card:nth-child(2n) {
    border-right: none !important;
  }
  /* убираем бордер у последней строки */
  /* body[data-page="category"] .product-card:nth-last-child(-n + 2) {
    border-bottom: none !important;
  } */
}

@media (max-width: 1920px) and (min-width: 1600px) {
  .product-category-container .product-card:nth-child(4n) {
    border-right: none !important;
  }
}

@media (max-width: 390px) {
  .old-price {
    font-size: 14px;
  }
  .sale-price {
    font-size: 18px;
  }
  .price {
    font-size: 17px;
  }
  .icons {
    gap: 5px;
  }
}
