/* ═══ Каталог ═══ */

/* Шапочные селекторы .header / .header-bottom / .search-bar ранее были
   изоляционными (`#page-catalog .header`, …). После унификации правил
   ниже они избыточны: общие правила корректны для всех экранов
   (home/catalog/item/supplier), а фиксированная высота .header
   осталась только в lk.css и перенесена на .header-inner. */

#page-catalog .breadcrumbs { padding: 10px 0; }
#page-catalog .search-wrap { flex:1; max-width:none; min-width:0; display:flex; }
#page-catalog .search-wrap .ac-wrap { flex:1; min-width:0; }
#page-catalog .search-wrap .search-input { width:100%; min-width:0; }
#page-catalog .results-table { overflow-x:auto; }
#page-catalog .results-table-head,
#page-catalog .results-row { min-width:860px; }

/* ═══════════════════════════════════════════════════════════
   MECHANIC BRAND SYSTEM — v2.0
   (Палитра/шрифты объявлены в base.css)
   ════════════════════════════════════════════════════════════ */

/* ══ ШАПКА ══════════════════════════════════════════════════ */
.header {
  background: var(--navy);
  border-bottom: 1px solid var(--navy-border);
  box-shadow: 0 1px 24px rgba(0,0,0,0.4);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
}
.header-top {
  background: rgba(10, 16, 26, 0.96);
  border-bottom: 1px solid var(--navy-border);
  padding: 5px 0;
}
.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
}
.nav-links li a {
  font-family: var(--f-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(241,245,249,0.6);
  padding: 5px 10px;
  border-radius: var(--r);
  transition: all var(--tr);
}
.nav-links li a:hover { color: var(--light); background: rgba(8,145,178,0.12); }
.nav-links li a.active { color: var(--teal); background: rgba(8,145,178,0.12); }

.header-auth { display: flex; gap: 8px; align-items: center; }
.btn-ghost {
  font-size: 0.8125rem; font-weight: 500;
  color: rgba(241,245,249,0.7);
  border: 1px solid var(--navy-border);
  padding: 5px 14px;
  background: transparent;
}
.btn-ghost:hover { color: var(--teal); border-color: var(--teal); background: rgba(8,145,178,0.1); }
.btn-teal {
  font-size: 0.8125rem; font-weight: 600;
  color: var(--white);
  background: var(--teal);
  border: 1px solid var(--teal);
  padding: 5px 16px;
}
.btn-teal:hover { background: var(--teal-dark); border-color: var(--teal-dark); }

/* Логотип + поиск */
.header-bottom { padding: 10px 0; }
.header-bottom-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.search-bar {
  flex: 1;
  display: flex; align-items: center;
  max-width: none;
  min-width: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--navy-border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--tr);
}
.search-bar:focus-within { border-color: var(--teal); background: rgba(8,145,178,0.06); }
.search-bar .autocomplete-wrap,
.search-bar .ac-wrap {
  flex: 1; min-width: 0; position: relative;
}
.search-type {
  font-family: var(--f-body);
  font-size: 0.75rem; color: rgba(241,245,249,0.5);
  padding: 0 10px;
  border-right: 1px solid var(--navy-border);
  white-space: nowrap; cursor: pointer;
  display: flex; align-items: center; gap: 4px;
}
.search-bar input {
  flex: 1; min-width: 0; width: 100%;
  background: transparent; border: none; outline: none;
  color: var(--light); font-family: var(--f-body);
  font-size: 0.8125rem; padding: 10px 14px;
}
.search-bar input::placeholder { color: rgba(241,245,249,0.35); }
.search-btn {
  background: var(--teal); border: none; color: var(--white);
  padding: 10px 18px; cursor: pointer;
  font-family: var(--f-body); font-size: 0.8125rem; font-weight: 600;
  transition: background var(--tr); white-space: nowrap;
}
.search-btn:hover { background: var(--teal-dark); }

/* ══ ХЛЕБНЫЕ КРОШКИ ════════════════════════════════════════ */
.breadcrumbs {
  display: none;
  padding: 12px 0;
  align-items: center; gap: 6px;
  font-family: var(--f-body); font-size: 0.8125rem; color: var(--muted);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs .sep { color: var(--border); }
.breadcrumbs .current { color: var(--text); font-weight: 500; }

/* ══ КОНТЕНТ ════════════════════════════════════════════════ */
.page-title {
  font-family: var(--f-display);
  font-size: 1.625rem; font-weight: 700;
  color: var(--text); letter-spacing: -0.03em; line-height: 1.2;
  margin-bottom: 4px;
}
.page-subtitle { font-family: var(--f-body); font-size: 0.8125rem; color: var(--muted); }

/* ══ ГОРИЗОНТАЛЬНЫЙ БЛОК ФИЛЬТРОВ ══════════════════════════ */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 20px;
  margin-bottom: 16px;
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  /* When .filter-bar-fixed clicks scroll into view */
  scroll-margin-top: var(--header-h-actual, var(--header-h));
}
.filter-bar-title {
  font-family: var(--f-body);
  font-size: 0.6875rem; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 5px;
}
.filter-group {
  width: 110px;
  display: flex;
  flex-direction: column;
  margin-right: 10px;
}
.filter-group.wide {
  width: 150px;
}
.filter-select, .filter-input {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 0.8125rem;
  padding: 7px 10px;
  outline: none;
  transition: border-color var(--tr);
  appearance: auto;
  height: 34px;
}
.filter-select:focus, .filter-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8,145,178,0.1);
}
/* ══ DUAL-RANGE SLIDER (два перекрывающихся native <input type=range>) ══
   Каждый thumb доступен с клавиатуры (стрелки/Home/End) и скринридером
   из коробки. JS только удерживает min ≤ max и обновляет fill/output. */
.filter-range {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.filter-range-slider {
  position: relative;
  height: 20px;
}
.filter-range-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  margin-top: -2px;
  border-radius: 2px;
  background: var(--border);
  pointer-events: none;
}
.filter-range-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--teal);
  border-radius: 2px;
}
.filter-range-input {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 20px;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
/* Min thumb поверх max — при совпадении позиций хватаем min */
.filter-range-input[data-range-min] { z-index: 2; }
.filter-range-input[data-range-max] { z-index: 1; }
.filter-range-input::-webkit-slider-runnable-track {
  background: transparent;
  border: none;
  height: 4px;
}
.filter-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--teal);
  cursor: pointer;
  margin-top: -6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.filter-range-input::-moz-range-track {
  background: transparent;
  border: none;
  height: 4px;
}
.filter-range-input::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--teal);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.filter-range-input:focus-visible::-webkit-slider-thumb {
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 4px rgba(8,145,178,0.18);
}
.filter-range-input:focus-visible::-moz-range-thumb {
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 4px rgba(8,145,178,0.18);
}
.filter-range-out {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--text);
}

/* ══ COMBOBOX-ФИЛЬТР (keyboard-filterable replacement for .filter-select) ══ */
.filter-combo {
  position: relative;
  display: flex;
  align-items: center;
}
.filter-combo-input {
  width: 100%;
  cursor: text;
}
.filter-combo-caret {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.625rem;
  color: var(--muted);
  pointer-events: none;
}
.filter-combo-drop {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: var(--z-dropdown);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  max-height: 240px;
  overflow-y: auto;
  padding: 4px 0;
  display: none;
}
.filter-combo-drop.open { display: block; }
.filter-combo-row {
  padding: 7px 10px;
  font-family: var(--f-body);
  font-size: 0.8125rem;
  color: var(--text);
  cursor: pointer;
  line-height: 1.3;
}
.filter-combo-row:hover,
.filter-combo-row.is-active { background: var(--light); }
.filter-combo-row.is-selected { color: var(--teal); font-weight: 600; }
.filter-combo-row.hidden { display: none; }

/* Чекбоксы в фильтрах */
.filter-checks {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-top: 2px;
}
.filter-check {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--f-body); font-size: 0.8125rem; color: var(--text); cursor: pointer;
}
.filter-check input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--teal); cursor: pointer; }

.filter-actions {
  gap: 6px;
  margin-left: auto;
}
.btn-filter-apply {
  background: var(--teal); color: var(--white); border: none;
  font-size: 0.8125rem; font-weight: 600; padding: 7px 20px;
  transition: background var(--tr); white-space: nowrap;
}
.btn-filter-apply:hover { background: var(--teal-dark); }
.btn-filter-reset {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border);
  font-size: 0.75rem; font-weight: 500;
  padding: 5px 14px; white-space: nowrap;
}
.btn-filter-reset:hover { color: var(--text); border-color: var(--muted); }

/* ══ СТРОКА УПРАВЛЕНИЯ РЕЗУЛЬТАТАМИ ════════════════════════ */
.results-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; gap: 12px; flex-wrap: wrap;
}
.results-count {
  font-family: var(--f-body); font-size: 0.8125rem; color: var(--muted);
}
.results-count strong { color: var(--text); font-weight: 600; }
.sort-bar { display: flex; align-items: center; gap: 8px; }
.sort-label { font-family: var(--f-body); font-size: 0.8125rem; color: var(--muted); }
.sort-select {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); color: var(--text);
  font-family: var(--f-body); font-size: 0.8125rem;
  padding: 6px 10px; outline: none; cursor: pointer;
  transition: border-color var(--tr);
}
.sort-select:focus { border-color: var(--teal); }

/* Плашка зафиксированных изменений */
.change-note {
  background: rgba(14, 116, 144, 0.08);
  border: 1px solid rgba(14, 116, 144, 0.25);
  border-left: 3px solid var(--teal-muted);
  border-radius: var(--r);
  padding: 9px 14px;
  font-family: var(--f-body); font-size: 0.75rem; color: var(--teal-muted);
  margin-bottom: 14px;
}
.change-note strong { color: var(--teal-muted); }

/* ══ ТАБЛИЦА РЕЗУЛЬТАТОВ (§3.2) ════════════════════════════ */
.results-table {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.results-table-head {
  /*display: grid;*/
  padding: 10px 16px;
  background: var(--light);
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.results-table-head div {
  font-family: var(--f-body);
  font-size: 0.625rem; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em;
  text-align: left;
}
/* Правая колонка — по правому краю */
.results-table-head div:last-child {
  text-align: right;
}
/* Метка НОВОЕ под заголовком */
.col-new { display: flex; flex-direction: column; gap: 2px; }
.new-badge {
  display: inline-block;
  background: var(--navy); color: var(--white);
  border-radius: 3px; font-size: 0.5625rem; font-weight: 700;
  padding: 1px 5px; letter-spacing: 0.04em; line-height: 1.5;
  width: fit-content;
}

.results-row {
  width: 100%;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background var(--tr);
}
/* Все ячейки — left, последняя — right (квадратор) */
.results-row > * { text-align: left; }
.results-row:last-child { border-bottom: none; }
.results-row:hover { background: var(--light); }

/* Поставщик */
.cell-supplier {
  width: 250px;
}
.supplier-name {
  font-family: var(--f-body);
  font-size: 0.875rem; font-weight: 600;
  color: var(--teal); margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
/* Имя юрлица/ИП:
   фиксированные 20ch — колонка всегда шириной ровно 20 символов,
   длинные названия переносятся на вторую строку */
.supplier-name a {
  color: inherit;
  display: block;          /* block чтобы width работал */
  /*overflow-wrap: break-word;
  word-break: break-word;*/
  white-space: normal;
}
.supplier-rating {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--f-body); font-size: 0.75rem; color: var(--muted);
  margin-bottom: 2px;
}
.stars { color: var(--teal-muted); font-size: 0.6875rem; letter-spacing: 1px; }
.rating-val { font-weight: 600; color: var(--text); }
.supplier-region { font-family: var(--f-body); font-size: 0.75rem; color: var(--muted); }

/* Наличие */
.cell-avail {
  min-width: 210px;
  padding: 0 16px;
  margin-bottom: 12px;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}
.cell-avail_avail {
  width: 90px;
  margin-right: 40px;
}
.avail-in {
  display: inline-flex;
  gap: 5px;
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--teal-muted);
  align-items: center;
}
.cell-avail_delivery {
  width: 110px;
}
.dot-teal {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-muted); flex-shrink: 0;
}
.avail-order {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--f-body); font-size: 0.75rem; font-weight: 500;
  color: var(--muted);
}
.dot-muted {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted); flex-shrink: 0;
}
.avail-qty {
  font-family: var(--f-body); font-size: 0.6875rem; color: var(--muted);
  margin-top: 3px; display: block;
}

/* Срок */
.deadline-val {
  font-family: var(--f-body); font-size: 0.8125rem; font-weight: 600; color: var(--text);
}
.deadline-note {
  font-family: var(--f-body); font-size: 0.6875rem; color: var(--muted);
  margin-top: 2px; display: block;
}

/* Цена */
.cell-price {
  width: 250px;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.price-main {
  padding: 12px 0;
  margin-bottom: 12px;
  font-family: var(--f-display);
  font-size: 1.0625rem; font-weight: 700; color: var(--text);
}

/* Действие */
.btn-order-login {
  background: transparent; color: var(--teal);
  border: 1.5px solid var(--teal);
  font-size: 0.75rem; font-weight: 600;
  padding: 8px 10px;
  width: 140px;
  text-align: center; display: block;
  line-height: 1.4; white-space: nowrap;
}
.btn-order-login:hover { background: var(--teal); color: var(--white); }

.btn-order {
  background: var(--teal); color: var(--white); border: none;
  font-size: 0.75rem; font-weight: 600;
  padding: 8px 10px;
  transition: background var(--tr);
  width: 100%; text-align: center; display: block;
}
.btn-order:hover { background: var(--teal-dark); }

/* Регион-разделитель — нейтральный */
.region-divider {
  padding: 7px 16px;
  background: var(--light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-family: var(--f-body);
  font-size: 0.625rem; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.09em;
  display: flex; align-items: center; gap: 10px;
}
.region-divider::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border);
}

/* Артикулы — моно */
.sku {
  font-family: var(--f-mono);
  font-size: 0.75rem; color: var(--muted);
  letter-spacing: -0.01em;
}

/* ══ МОБИЛЬНАЯ ВЕРСИЯ ══ */

/* ══ ПЛАНШЕТНАЯ ВЕРСИЯ ══ */
@media (max-width: 1024px) {

  /* Бейдж «Верифицирован» переносится под название юрлица/ИП */
  .supplier-name {
    flex-wrap: wrap;
    row-gap: 3px;
  }
  .supplier-name a { order: 0; }
  .badge-verified {
    order: 1;
    /* flex-basis: auto — сбрасываем 100%, пусть работает width: fit-content */
    flex-basis: auto;
    margin-top: 1px;
    white-space: nowrap;
    display: inline-flex;
    width: fit-content;
    align-self: flex-start;
  }

  /* Колонка «Действие» — по правому краю */
  .btn-order-login, .btn-order {
    font-size: 0.75rem;
    white-space: nowrap;
    width: 100%;
  }
}

@media (max-width: 768px) {

  /* Убираем верхнюю навигацию и хлебные крошки — экономим место */
  .header-top { display: none; }
  .breadcrumbs { display: none; }

  /* Шапка компактнее */
  .wrap { padding: 0 12px; }
  .page-wrap { padding: 0 12px 32px; }
  .header-bottom { padding: 8px 0; }
  .logo-text { font-size: 1.0625rem; }
  .search-type { display: none; }
  .search-bar input { font-size: 0.8125rem; padding: 9px 10px; }
  .search-btn { padding: 9px 12px; font-size: 0.75rem; }

  /* Заголовок страницы */
  .page-title { font-size: 1.1875rem; }
  .page-subtitle { display: none; }

  /* ── КНОПКА-ТРИГГЕР ФИЛЬТРОВ (только мобила) ── */
  .filter-toggle {
    display: block;
    width: 100%;
    padding: 10px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    font-family: var(--f-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    margin-bottom: 10px;
    text-align: left;
  }

  /* ── ЗАТЕМНЕНИЕ ПОД ВЫДВИЖНОЙ ФИЛЬТР ── */
  .filter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(12, 17, 26, 0.55);
    z-index: var(--z-modal);
    display: none;
  }
  .filter-backdrop.open { display: block; }

  .filter-bar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(100%, 460px);
    height: 100vh;
    height: 100dvh;             /* iOS Safari: не обрезается тулбаром */
    background: var(--white);
    border: 0;
    border-left: 1px solid var(--border);
    border-radius: 0;
    box-shadow: -8px 0 32px rgba(12, 17, 26, 0.15);
    z-index: var(--z-modal);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--tr);
  }
  .filter-bar.open { transform: translateX(0); }

  /* Шапка drawer — скрыта на десктопе инлайн-атрибутом [hidden],
     на мобиле переопределяем (author > UA при равной специфичности). */
  .filter-bar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: var(--z-base);
  }
  .filter-bar-head-title {
    font-family: var(--f-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
  }

  .filter-bar > .flex-row:not(.filter-actions) {
    display: flex;
    flex-direction: column;
    padding: 16px;
  }
  .filter-bar-body {
    gap: 24px;
  }
  .filter-group, .filter-group.wide { min-width: 0; width: 100%; margin-right: 0; }
  .filter-select, .filter-input { width: 100%; font-size: 0.875rem; height: 45px; }
  .filter-combo { width: 100%; }
  .filter-combo-input { font-size: 0.875rem; height: 45px; }

  .filter-range {
    margin-top: 8px;
  }
  .filter-range-input::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    background: var(--white);
    border: 4px solid var(--teal);
    margin-top: -12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  }
  .filter-range-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--white);
    border: 4px solid var(--teal);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  }

  /* Липкий футер с Применить/Сбросить внизу drawer. */
  .filter-actions {
    position: sticky;
    bottom: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    margin-left: 0;
    flex-direction: row;
    gap: 8px;
    width: 100%;
  }
  .btn-filter-apply { flex: 1; }
  .btn-filter-reset { flex: 1; }

  /* Плашка итерации */
  .change-note { font-size: 0.6875rem; padding: 8px 10px; margin-bottom: 10px; }

  /* Строка управления */
  .results-header { margin-bottom: 8px; }
  .sort-label { display: none; }
  .sort-select { font-size: 0.8125rem; }

  #page-catalog .results-table {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  #page-catalog .results-row { min-width: 0; }

  /* Шапку таблицы в карточечном виде скрываем. */
  .results-table-head { display: none; }

  /* Сама карточка */
  .results-row {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 14px 16px;
    gap: 12px;
    margin-bottom: 16px;
    align-items: stretch;
  }
  .results-row:last-child {
    margin-bottom: 0;
    border-bottom: 1px solid var(--border);
  }

  .cell-supplier {
    width: auto;
    min-width: 0;
    padding-bottom: 12px;
  }

  /* Наличие: flex-row → flex-column */
  .cell-avail {
    display: flex;
    min-width: 0;
    width: auto;
    padding: 12px 0;
    margin-bottom: 0;
    flex-direction: column;
    align-items: stretch;
    border-left: 0;
    border-top: 1px solid var(--border);
    gap: 6px;
  }
  .cell-avail_avail,
  .cell-avail_delivery { width: auto; margin: 0; }

  /* Цена: flex-row → flex-column */
  .cell-price {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: auto;
    min-width: 0;
    padding: 0;
    border-left: 0;
    border-top: 1px solid var(--border);
    gap: 6px;
  }

  /* Размеры внутри ячеек */
  .avail-in, .avail-order { font-size: 0.6875rem; }
  .avail-qty { font-size: 0.625rem; margin-top: 2px; }
  .dot-teal, .dot-muted { width: 6px; height: 6px; }
  .deadline-val { font-size: 0.6875rem; }
  .deadline-note { font-size: 0.625rem; margin-top: 2px; }
  .price-main { font-size: 0.9375rem; text-align: left; margin-bottom: 4px; }

  /* Кнопка действия — во всю ширину карточки */
  .btn-order-login, .btn-order {
    font-size: 0.75rem;
    padding: 8px 10px;
    white-space: normal;
    word-break: break-word;
    width: 100%;
    display: block;
    text-align: center;
    line-height: 1.4;
  }

  /* Имя поставщика */
  .supplier-name { font-size: 0.75rem; flex-wrap: wrap; row-gap: 3px; }
  .supplier-name a {
    order: 0;
    width: 20ch;   /* фиксированная ширина = 20 символов */
  }
  .badge-verified {
    font-size: 0.5625rem;
    padding: 2px 2ch;
    order: 1;
    flex-basis: auto;      /* сбрасываем 100% */
    margin-top: 1px;
    white-space: nowrap;
    display: inline-flex;
    width: fit-content;
    align-self: flex-start;
  }
  .supplier-rating { font-size: 0.6875rem; }
  .stars { font-size: 0.625rem; }
  .rating-val { font-size: 0.6875rem; }
  .supplier-region { font-size: 0.6875rem; }

  /* Разделитель регионов */
  .region-divider { padding: 6px 12px; font-size: 0.5625rem; }
}

/* ═══ ЛИПКАЯ КНОПКА ФИЛЬТРОВ ═══
   Появляется только когда .filter-toggle (мобила) или .filter-bar (десктоп)
   прокручены выше шапки. z-dropdown (200) — выше шапки (100), ниже drawer/backdrop (300). */
.filter-bar-fixed{
  position: fixed;
  left: 0; right:0;
  top: var(--header-h-actual, var(--header-h));
  z-index: var(--z-dropdown);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  box-shadow: 0 12px 28px #00000014;
}
.filter-bar-fixed[hidden]{display:none;}
.filter-bar-fixed-inner{
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 8px 16px;
  max-width: 1280px;
  margin: 0 auto;
}
.filter-bar-fixed-label{
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
}
.filter-bar-fixed-hint{
  margin-left: auto;
  color: var(--muted);
  font-size: 0.75rem;
}

@media (max-width:768px){
  .filter-bar-fixed-inner{
    flex-wrap: wrap;
    gap: 6px;
  }
  .filter-bar-fixed-hint{
    margin-left: 0;
    width: 100%;
  }
}
