/* Мобильная панель фильтров: только ≤900px (см. @media ниже) */
.catalog-mobile-filter-bar {
  display: none;
}

.catalog-filter-backdrop {
  display: none;
}

/* Каталог: вёрстка страницы */
.catalog-page-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  min-height: calc(100vh - 280px);
  padding: 8px 20px 48px;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
  background-color: transparent;
}

.catalog-page__content {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  align-items: flex-start;
  gap: 40px;
  position: relative;
  flex: 0 0 auto;
  border: none;
  box-shadow: none;
  background: transparent;
}

.catalog-page__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.catalog-page__heading {
  margin: 0;
  position: relative;
  width: fit-content;
  font-family: "Bebas Neue-Bold", Helvetica;
  font-weight: 500;
  color: var(--neutral-200);
  font-size: 48px;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Активный поисковый запрос: одна линия, текст и кнопка сброса выровнены по центру по вертикали */
.catalog-active-search {
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.catalog-active-search__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 130, 0, 0.42);
  background: rgba(255, 130, 0, 0.09);
  box-sizing: border-box;
}

.catalog-active-search__line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 0.4em;
  row-gap: 4px;
  margin: 0;
  padding: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.catalog-active-search__label {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  font-family: "Manrope-SemiBold", Helvetica, system-ui, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: rgba(26, 26, 26, 0.55);
}

.catalog-active-search__label::after {
  content: ':';
  font-weight: 500;
}

.catalog-active-search__query {
  margin: 0;
  padding: 0;
  min-width: 0;
  flex: 1 1 12rem;
  font-family: "Manrope-Bold", Helvetica, system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--neutral-200);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.catalog-active-search__clear {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(26, 26, 26, 0.07);
  color: var(--neutral-200);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.catalog-active-search__clear:hover {
  background: rgba(26, 26, 26, 0.12);
}

.catalog-active-search__clear:focus-visible {
  outline: 2px solid var(--colors-100);
  outline-offset: 2px;
}

.catalog-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.catalog-layout__sidebar {
  display: flex;
  flex-direction: column;
  width: 322px;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  position: relative;
}

.catalog-filter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  background-color: var(--neutral-100);
  border-radius: 16px;
  border: 1px solid var(--neutralgray);
}

.catalog-page-screen .catalog-filter {
  padding: 20px 22px 22px;
  box-sizing: border-box;
}

.catalog-filter__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.catalog-page-screen .catalog-filter .catalog-filter__stack {
  gap: 16px;
  width: 100%;
  align-items: stretch;
}

.catalog-filter__heading {
  position: relative;
  width: fit-content;
  margin-top: -1px;
  font-family: "Manrope-Bold", Helvetica;
  font-weight: 500;
  color: var(--neutral-200);
  font-size: 18px;
  letter-spacing: 0.18px;
  line-height: 23.4px;
  white-space: nowrap;
}

.catalog-filter__divider {
  height: 1px;
  object-fit: cover;
  position: relative;
  align-self: stretch;
  width: 100%;
}

.catalog-filter__options {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.catalog-filter__row {
  gap: 12px;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.catalog-filter__row:focus-visible {
  outline: 2px solid var(--colors-100);
  outline-offset: 2px;
  border-radius: 6px;
}

.catalog-filter__tick {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  aspect-ratio: 1;
  box-sizing: border-box;
}

.catalog-filter__tick--unchecked {
  background-color: var(--gray-0210);
  border: 1px solid #c2c2c2;
}

.catalog-filter__tick--checked {
  background-color: var(--colors-500);
  background-image: url(/images/catalog/check.svg);
  background-size: 100% 100%;
  border: none;
}

.catalog-filter__option-label {
  position: relative;
  width: fit-content;
  margin-top: -1px;
  font-family: "Manrope-SemiBold", Helvetica;
  font-weight: 500;
  color: var(--neutral-200);
  font-size: 14px;
  letter-spacing: 0.28px;
  line-height: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.catalog-filter__option-count {
  margin-top: -1px;
  opacity: 0.5;
  font-family: "Manrope-SemiBold", Helvetica;
  font-weight: 500;
  color: var(--neutral-200);
  font-size: 14px;
  letter-spacing: 0.28px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  position: relative;
  width: fit-content;
  line-height: normal;
}

.catalog-filter__message {
  position: relative;
  width: fit-content;
  margin-top: -1px;
  font-family: "Manrope-SemiBold", Helvetica;
  font-weight: 500;
  color: var(--neutral-200);
  font-size: 14px;
  letter-spacing: 0.28px;
  line-height: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

/* Шапка шторки фильтра (мобилка): заголовок + ×; на десктопе скрыто */
.catalog-filter__sheet-top,
.catalog-filter__sheet-rule {
  display: none;
}

.catalog-filter__sheet-title {
  margin: 0;
  font-family: "Manrope-Bold", Helvetica, system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--neutral-200);
  line-height: 1.2;
}

.catalog-filter__sheet-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(26, 26, 26, 0.06);
  color: var(--neutral-200);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.catalog-filter__sheet-close:focus-visible {
  outline: 2px solid var(--colors-100);
  outline-offset: 2px;
}

.catalog-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.catalog-price-field__label {
  position: relative;
  width: fit-content;
  opacity: 0.5;
  font-family: "Manrope-Bold", Helvetica;
  font-weight: 500;
  color: var(--neutral-200);
  font-size: 14px;
  letter-spacing: 0;
  line-height: normal;
}

.catalog-price-field {
  height: 48px;
  gap: 12px;
  padding: 8px 16px;
  flex: 1;
  flex-grow: 1;
  background-color: #f5f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  position: relative;
  box-sizing: border-box;
}

.catalog-filter__chevron-wrap {
  position: relative;
  width: 20px;
  height: 20px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.catalog-filter__head .catalog-filter__chevron-img {
  position: static;
  width: 20px;
  height: 20px;
  top: auto;
  left: auto;
  object-fit: contain;
  display: block;
}

.catalog-main-wrapper {
  width: 100%;
}

/* Сворачивание блоков фильтров */
.catalog-filter__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: inherit;
  box-sizing: border-box;
}

.catalog-filter__head:focus-visible {
  outline: 2px solid var(--colors-100);
  outline-offset: 3px;
  border-radius: 8px;
}

.catalog-filter__head .catalog-filter__chevron-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.catalog-filter__chevron {
  transition: transform 0.2s ease;
  display: block;
}

.catalog-filter--collapsed .catalog-filter__chevron {
  transform: rotate(-90deg);
}

.catalog-filter--collapsed .catalog-filter__panel {
  display: none;
}

.catalog-filter__panel {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  width: 100%;
  gap: 0;
}

.catalog-page-screen .catalog-filter__panel > .catalog-filter__divider {
  margin: 0 0 10px;
  display: block;
  align-self: stretch;
}

/* Сортировка */
.catalog-sort__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Обёртка без своего фона — серый только у кнопки, ширина по содержимому */
.catalog-sort-wrap {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0;
  margin-left: 12px;
  overflow: visible;
  background: transparent;
  height: auto;
}

/* Ширина задаётся в JS по самому длинному варианту — не прыгает при смене */
.catalog-sort__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 52px;
  padding: 10px 42px 10px 22px;
  margin: 0;
  border: none;
  border-radius: 10px;
  background-color: #f5f5f5;
  font: inherit;
  font-family: "Manrope-Bold", Helvetica, system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--neutral-200);
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.catalog-sort__trigger:focus-visible {
  outline: 2px solid var(--colors-100);
  outline-offset: 2px;
}

.catalog-sort__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.catalog-sort-wrap--open .catalog-sort__chevron {
  transform: translateY(-50%) rotate(180deg);
}

/* Стрелка справа, текст по центру кнопки */
.catalog-sort__chevron {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.catalog-sort__chevron-img {
  position: static;
  width: 13px;
  height: 9px;
  object-fit: contain;
  display: block;
}

.catalog-sort__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  margin: 0;
  list-style: none;
  background: var(--neutral-100);
  border: 1px solid rgba(26, 26, 26, 0.1);
  border-radius: 12px;
  box-shadow:
    0 4px 6px -2px rgba(26, 26, 26, 0.06),
    0 12px 28px -8px rgba(26, 26, 26, 0.14);
  box-sizing: border-box;
  min-width: 100%;
  width: max-content;
  max-width: min(calc(100vw - 24px), 24rem);
  max-height: min(280px, 70vh);
  overflow-y: auto;
}

.catalog-sort__menu[hidden] {
  display: none !important;
}

.catalog-sort__option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-family: "Manrope-Bold", Helvetica, system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--neutral-200);
  text-align: center;
  cursor: pointer;
  line-height: 1.35;
  transition: background 0.12s ease;
}

.catalog-sort__option:hover {
  background: var(--neutralgray);
}

.catalog-sort__option:focus-visible {
  outline: 2px solid var(--colors-100);
  outline-offset: 0;
}

.catalog-sort__option[aria-selected="true"] {
  background: rgba(255, 233, 0, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 130, 0, 0.25);
}

/* Поля цены */
.catalog-price-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: "Manrope-Bold", Helvetica, system-ui, sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--neutral-200);
  opacity: 0.88;
  outline: none;
  padding: 0;
  min-width: 0;
  box-sizing: border-box;
}

.catalog-price-input:focus {
  opacity: 1;
}

.catalog-price-input::placeholder {
  color: rgba(26, 26, 26, 0.35);
}

/* Интерактивный диапазон цен */
.catalog-range-slider {
  position: relative;
  width: 100%;
  height: 32px;
  margin: 4px 0 12px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.catalog-range-slider__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: var(--neutralgray);
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
}

.catalog-range-slider__fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 2px;
  background: var(--colors-500);
  pointer-events: none;
  z-index: 1;
  min-width: 0;
  left: 0;
  width: 100%;
}

.catalog-range-slider__input {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  height: 32px;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  z-index: 2;
}

.catalog-range-slider__input--max {
  z-index: 3;
}

.catalog-range-slider__input::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
  border: none;
}

.catalog-range-slider__input::-moz-range-track {
  height: 4px;
  background: transparent;
  border: none;
}

.catalog-range-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--neutral-100);
  border: 2px solid var(--colors-500);
  cursor: grab;
  pointer-events: auto;
  box-sizing: border-box;
}

.catalog-range-slider__input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--neutral-100);
  border: 2px solid var(--colors-500);
  cursor: grab;
  pointer-events: auto;
  box-sizing: border-box;
}

.catalog-range-slider__input:active::-webkit-slider-thumb {
  cursor: grabbing;
}

.catalog-range-slider__input:active::-moz-range-thumb {
  cursor: grabbing;
}

/* Сетка каталога: фильтры слева, товары справа */
.catalog-page-screen .catalog-layout__main {
  flex: 1;
  min-width: 0;
  align-self: stretch;
}

.catalog-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  align-items: stretch;
  justify-items: stretch;
}

.catalog-products__loading,
.catalog-products__empty,
.catalog-products__error {
  grid-column: 1 / -1;
  font-family: "Manrope-SemiBold", Helvetica, sans-serif;
  font-size: 15px;
  color: var(--not-quite-black, #1a1a1a);
  opacity: 0.65;
  padding: 24px 8px;
}

.catalog-product-card {
  display: flex;
  flex-direction: column;
  background: var(--neutral-100);
  border: 1px solid var(--neutralgray);
  border-radius: 16px;
  padding: 16px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  align-self: stretch;
}

.catalog-product-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #f2f2f2;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.catalog-product-card__media-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.catalog-product-card__media-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-product-card__favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 10px rgba(26, 26, 26, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-200);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.catalog-product-card__favorite:hover {
  transform: scale(1.06);
  background: #fff;
}

.catalog-product-card__favorite:focus-visible {
  outline: 2px solid var(--colors-100);
  outline-offset: 2px;
}

.catalog-product-card__favorite-icon {
  font-size: 20px;
  line-height: 1;
  display: block;
  font-family: "Manrope-Bold", Helvetica, sans-serif;
}

.catalog-product-card__favorite--active {
  color: #c62828;
}

.catalog-product-card__title-link {
  text-decoration: none;
  color: inherit;
  display: block;
  flex-shrink: 0;
  overflow: hidden;
  max-height: calc(1.35em * 3);
  min-height: calc(1.35em * 3);
  font-size: 16px;
  line-height: 1.35;
  box-sizing: border-box;
}

.catalog-product-card__title-link:hover .catalog-product-card__name {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.catalog-product-card__title-link:focus-visible {
  outline: 2px solid var(--colors-100);
  outline-offset: 3px;
  border-radius: 6px;
}

.catalog-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-product-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
  max-width: calc(100% - 20px);
}

.catalog-product-card__badge {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 8px;
  font-family: "Manrope-Bold", Helvetica, sans-serif;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  box-sizing: border-box;
}

.catalog-product-card__badge--new {
  background: #ffe900;
}

.catalog-product-card__badge--hit {
  background: #c4e400;
}

.catalog-product-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
}

.catalog-product-card__label {
  font-family: "Manrope-SemiBold", Helvetica, sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.catalog-product-card__sku {
  font-family: "Manrope-SemiBold", Helvetica, sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(26, 26, 26, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-product-card__name {
  font-family: "Manrope-Bold", Helvetica, sans-serif;
  font-weight: 500;
  font-size: inherit;
  line-height: inherit;
  color: var(--neutral-200);
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-height: 0;
  max-height: 100%;
}

.catalog-product-card__grow {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.catalog-product-card__retail {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px 12px;
  background: rgba(26, 26, 26, 0.06);
  border: 1px solid var(--neutralgray);
  border-radius: 10px;
  box-sizing: border-box;
}

.catalog-product-card__retail .catalog-product-card__label {
  flex-shrink: 0;
  font-weight: 500 !important;
  color: #1a1a1a;
}

.catalog-product-card__price {
  font-family: "Manrope-Bold", Helvetica, sans-serif;
  font-weight: 500;
  font-size: 17px;
  color: #ff8200;
}

.catalog-product-card__wholesale-hint {
  font-family: "Manrope-SemiBold", Helvetica, sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(26, 26, 26, 0.5);
  margin: 0;
  flex-shrink: 0;
  padding: 8px 10px;
  background: rgba(26, 26, 26, 0.06);
  border: 1px solid var(--neutralgray);
  border-radius: 8px;
  box-sizing: border-box;
}

.catalog-product-card__wholesale-admin {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px 12px;
  background: rgba(26, 26, 26, 0.06);
  border: 1px solid var(--neutralgray);
  border-radius: 10px;
  box-sizing: border-box;
}

.catalog-product-card__wholesale-line,
.catalog-product-card__moq-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: 0;
  font-family: "Manrope-SemiBold", Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.45;
}

.catalog-product-card__wholesale-admin .catalog-product-card__label {
  flex-shrink: 0;
  font-weight: 500 !important;
  color: #1a1a1a;
}

/* Размер опта/MOQ на карточке (админ): меняй font-size здесь и ниже у __moq-val */
.catalog-product-card__wholesale-val {
  font-family: "Manrope-Bold", Helvetica, sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #ff8200;
}

.catalog-product-card__moq-val {
  font-family: "Manrope-Bold", Helvetica, sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #ff8200;
  word-break: break-word;
}

.catalog-product-card__auth-link {
  color: #1a1a1a;
  font-weight: 500 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.catalog-product-card__auth-link:hover {
  color: #000;
}

.catalog-product-card__auth-link:focus-visible {
  outline: 2px solid var(--colors-100);
  outline-offset: 2px;
  border-radius: 2px;
}

.catalog-product-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding-top: 16px;
}

.catalog-product-card__qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--neutralgray);
  border-radius: 10px;
  overflow: hidden;
  background: var(--neutral-100);
}

.catalog-product-card__qty button {
  width: 36px;
  height: 40px;
  border: none;
  background: #f5f5f5;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--neutral-200);
  font-family: "Manrope-Bold", Helvetica, sans-serif;
  padding: 0;
  box-sizing: border-box;
}

.catalog-product-card__qty button:hover {
  background: #ebebeb;
}

.catalog-product-card__qty button:focus-visible {
  outline: 2px solid var(--colors-100);
  outline-offset: 2px;
  z-index: 1;
}

.catalog-product-card__qty-val {
  min-width: 36px;
  text-align: center;
  font-family: "Manrope-Bold", Helvetica, sans-serif;
  font-size: 15px;
  color: var(--neutral-200);
  padding: 0 6px;
  box-sizing: border-box;
}

.catalog-product-card__cart {
  flex: 1;
  min-width: 120px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: var(--colors-500);
  color: var(--neutral-100);
  font-family: "Manrope-Bold", Helvetica, sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  padding: 0 14px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.catalog-product-card__cart-text {
  flex: 0 0 auto;
  text-align: center;
}

.catalog-product-card__cart-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.catalog-product-card__cart:hover {
  filter: brightness(1.05);
}

.catalog-product-card__cart:focus-visible {
  outline: 2px solid var(--colors-100);
  outline-offset: 3px;
}

@media (max-width: 1200px) {
  .catalog-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .catalog-page-screen .catalog-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-page-screen .catalog-layout__sidebar {
    width: 100%;
    max-width: 100%;
  }

  .catalog-page-screen .catalog-page__heading {
    font-size: 36px;
    white-space: normal;
  }

  .catalog-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .catalog-product-card__qty {
    display: none !important;
  }

  /* Мобильный каталог: панель фильтров, сетка 2×N, компактные карточки */
  .catalog-page-screen {
    padding: 8px 12px 40px;
  }

  .catalog-page-screen .catalog-page__content {
    gap: 16px;
  }

  .catalog-page-screen .catalog-page__title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .catalog-page-screen .catalog-page__heading {
    font-size: 28px;
    line-height: 1.05;
    width: 100%;
  }

  .catalog-active-search__inner {
    min-height: 0;
    padding: 12px 10px 12px 14px;
    gap: 10px;
  }

  .catalog-active-search__label,
  .catalog-active-search__query {
    font-size: 14px;
    line-height: 1.45;
  }

  .catalog-active-search__clear {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .catalog-mobile-filter-bar {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    overflow: visible;
    padding: 4px 0 8px;
    box-sizing: border-box;
    position: relative;
    z-index: 10035;
  }

  .catalog-mobile-filter-bar__chips {
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-sizing: border-box;
  }

  .catalog-mobile-filter-bar__chips::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .catalog-mf-btn--all {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: 1px solid var(--neutralgray);
    border-radius: 10px;
    background: var(--neutral-100);
    color: var(--neutral-200);
    cursor: pointer;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
  }

  .catalog-mf-btn--all:focus-visible {
    outline: 2px solid var(--colors-100);
    outline-offset: 2px;
  }

  .catalog-mf-btn__icon--img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
  }

  .catalog-mf-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    min-height: 44px;
    height: auto;
    border: 1px solid var(--neutralgray);
    border-radius: 10px;
    background: #f5f5f5;
    font-family: "Manrope-Bold", Helvetica, system-ui, sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: var(--neutral-200);
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
  }

  .catalog-mf-chip--active {
    background: #ff8200 !important;
    border-color: #e67300 !important;
    color: #fff !important;
  }

  .catalog-mf-chip--active .catalog-mf-chip__label {
    color: #fff;
  }

  .catalog-mf-chip__badge:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-family: "Manrope-Bold", Helvetica, system-ui, sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    background: rgba(255, 255, 255, 0.34);
    color: #fff;
    flex-shrink: 0;
  }

  .catalog-mf-chip:focus-visible {
    outline: 2px solid var(--colors-100);
    outline-offset: 2px;
  }

  /* Сортировка только на десктопе; на мобилке — порядок по умолчанию (hidden #catalog-sort). */
  .catalog-page-screen .catalog-page__title-row .catalog-sort-wrap {
    display: none !important;
  }

  .catalog-filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10028;
    background: rgba(26, 26, 26, 0.45);
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
  }

  .catalog-filter-backdrop[hidden] {
    display: none !important;
  }

  .catalog-page-screen .catalog-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .catalog-page-screen .catalog-layout__sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    max-height: min(88vh, 100vh - 48px);
    z-index: 10030;
    margin: 0;
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0));
    gap: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--neutral-100);
    border-radius: 16px 16px 0 0;
    border: 1px solid var(--neutralgray);
    border-bottom: none;
    box-shadow: 0 -12px 48px rgba(26, 26, 26, 0.18);
    box-sizing: border-box;
    transform: translateY(105%);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    pointer-events: none;
    visibility: hidden;
  }

  body.catalog-filter-sheet-open .catalog-page-screen .catalog-layout__sidebar {
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }

  body.catalog-filter-sheet-open[data-catalog-sheet-mode='categories']
    .catalog-page-screen
    .catalog-layout__sidebar
    .catalog-filter:not(.catalog-filter--categories),
  body.catalog-filter-sheet-open[data-catalog-sheet-mode='brands']
    .catalog-page-screen
    .catalog-layout__sidebar
    .catalog-filter:not(.catalog-filter--brands),
  body.catalog-filter-sheet-open[data-catalog-sheet-mode='price']
    .catalog-page-screen
    .catalog-layout__sidebar
    .catalog-filter:not(.catalog-filter--price) {
    display: none !important;
  }

  .catalog-page-screen .catalog-filter__sheet-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0 0 10px;
    padding: 0;
    box-sizing: border-box;
  }

  .catalog-page-screen .catalog-filter__sheet-rule {
    display: block;
    width: 100%;
    height: 1px;
    margin: 0 0 12px;
    padding: 0;
    border: none;
    background: rgba(26, 26, 26, 0.14);
    flex-shrink: 0;
  }

  .catalog-page-screen .catalog-filter .catalog-filter__divider {
    display: none !important;
  }

  .catalog-page-screen .catalog-layout__sidebar .catalog-filter {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 0 20px;
    box-sizing: border-box;
  }

  .catalog-page-screen .catalog-layout__sidebar .catalog-filter__head {
    display: none !important;
  }

  .catalog-page-screen .catalog-filter--collapsed .catalog-filter__panel {
    display: flex !important;
    flex-direction: column;
  }

  .catalog-page-screen .catalog-layout__sidebar .catalog-filter__stack {
    gap: 0;
    width: 100%;
  }

  .catalog-page-screen .catalog-layout__sidebar .catalog-filter__options {
    gap: 0;
    width: 100%;
  }

  .catalog-page-screen .catalog-layout__sidebar .catalog-filter__tick {
    display: none !important;
  }

  .catalog-page-screen .catalog-layout__sidebar .catalog-filter__row {
    padding: 14px 6px;
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
    box-sizing: border-box;
  }

  .catalog-page-screen .catalog-layout__sidebar .catalog-filter__row:last-child {
    border-bottom: none;
  }

  .catalog-page-screen
    .catalog-layout__sidebar
    .catalog-filter__row[aria-checked='true'] {
    background: rgba(255, 130, 0, 0.16);
    border-bottom-color: transparent;
    border-radius: 10px;
    margin: 0 -4px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .catalog-page-screen .catalog-layout__sidebar .catalog-filter__row--empty {
    border-bottom: none;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .catalog-page-screen .catalog-layout__sidebar .catalog-filter__option-label {
    flex: 1;
    min-width: 0;
  }

  .catalog-page-screen .catalog-layout__sidebar .catalog-filter__option-count {
    margin-left: auto;
  }

  .catalog-page-screen .catalog-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .catalog-page-screen .catalog-product-card {
    padding: 10px;
    border-radius: 12px;
    height: 100%;
  }

  .catalog-page-screen .catalog-product-card__media {
    margin-bottom: 8px;
    border-radius: 10px;
  }

  .catalog-page-screen .catalog-product-card__favorite {
    width: 36px;
    height: 36px;
    top: 6px;
    right: 6px;
  }

  .catalog-page-screen .catalog-product-card__favorite-icon {
    font-size: 17px;
  }

  .catalog-page-screen .catalog-product-card__body {
    gap: 6px;
  }

  .catalog-page-screen .catalog-product-card__sku {
    font-size: 11px;
  }

  .catalog-page-screen .catalog-product-card__title-link {
    font-size: 13px;
    line-height: 1.32;
    max-height: calc(1.32em * 2);
    min-height: calc(1.32em * 2);
    flex-shrink: 0;
  }

  .catalog-page-screen .catalog-product-card__name {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 13px;
    line-height: 1.32;
  }

  .catalog-page-screen .catalog-product-card__retail {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 8px;
  }

  .catalog-page-screen .catalog-product-card__retail .catalog-product-card__label {
    font-size: 10px;
    line-height: 1.25;
  }

  .catalog-page-screen .catalog-product-card__price {
    font-size: 14px;
  }

  .catalog-page-screen .catalog-product-card__wholesale-admin {
    padding: 8px 8px;
    gap: 6px;
  }

  .catalog-page-screen .catalog-product-card__wholesale-line,
  .catalog-page-screen .catalog-product-card__moq-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    font-size: 10px;
    line-height: 1.25;
  }

  .catalog-page-screen .catalog-product-card__wholesale-val,
  .catalog-page-screen .catalog-product-card__moq-val {
    font-size: 13px;
  }

  .catalog-page-screen .catalog-product-card__wholesale-hint {
    font-size: 10px;
    padding: 6px 8px;
    line-height: 1.35;
  }

  .catalog-page-screen .catalog-product-card__actions {
    padding-top: 4px;
    gap: 10px;
    margin-top: auto;
    flex-shrink: 0;
  }

  .catalog-page-screen .catalog-product-card__cart {
    min-width: 0;
    min-height: 48px;
    height: auto;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .catalog-page-screen .catalog-product-card__cart-icon {
    width: 22px;
    height: 22px;
  }
}

@media (min-width: 901px) {
  .catalog-mobile-filter-bar {
    display: none !important;
  }

  .catalog-filter-backdrop {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .catalog-product-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-product-card__cart {
    width: 100%;
  }
}
