@charset "UTF-8";
/* =====================================================
   cat_catalog.css v4.5 — Каталог: layout, фильтры, темы
   Путь: /css2/cat_catalog.css
   Группа: css_каталоги (1-й)
   Содержит: CSS-переменные темы, .title, .goods,
     .goods__sidebar, фильтры, .catalog-about, .seo-text
   v4.5 — transition timing → --mi-t-* tokens (all_micro.css)
   v4.4 — fix: sidebar mobile overflow→hidden, foot pinned to bottom
   ===================================================== */

/* ═══════════════════════════════════════════
   ТЕМА: CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════════ */

/* ─── Светлая (по умолчанию) ─── */
:root,
[data-theme="light"] {
  --page-bg: #f0f4f8;

  --goods-bg: #fff;
  --goods-border: #e2e8f0;
  --goods-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --goods-header-color: #334155;

  --sb-bg: #f8fafc;
  --sb-border: #e2e8f0;
  --sb-title-color: #1e293b;
  --sb-text: #475569;
  --sb-muted: #6b7280;
  --sb-divider: #e2e8f0;
  --sb-input-bg: #fff;
  --sb-input-border: #cbd5e1;
  --sb-input-color: #1e293b;
  --sb-label-color: #334155;
  --sb-label-hover-bg: #f1f5f9;
  --sb-check-border: #cbd5e1;
  --sb-check-bg: #f8fafc;
  --sb-tag-bg: #eff6ff;
  --sb-tag-border: #bfdbfe;
  --sb-tag-color: #1d4ed8;
  --sb-mobile-bg: rgba(248, 250, 252, 0.98);
  --sb-toggle-bg: #e2e8f0;
  --sb-toggle-border: #cbd5e1;
  --sb-toggle-color: #334155;

  --card-bg: #fff;
  --card-bg-hover: #f8faff;
  --card-border: #e2e8f0;
  --card-border-hover: #bfdbfe;
  --card-shadow-hover: 0 4px 16px rgba(0,0,0,0.06);

  --photo-bg: #f8fafc;
  --photo-border: 1px solid #e2e8f0;
  --name-color: #1e293b;
  --name-hover: #2563eb;
  --type-color: #64748b;
  --specs-color: #475569;
  --text-muted: #6b7280;

  --avail-yes: #16a34a;
  --avail-no: #6b7280;
  --avail-glow: rgba(22, 163, 74, 0.3);

  --action-color: #3b82f6;
  --action-hover: #2563eb;

  --price-bg: #f8fafc;
  --price-border: #e2e8f0;
  --price-color: #1e293b;
  --currency-color: #6b7280;
  --article-color: #6b7280;

  --about-bg: #fff;
  --about-border: #e2e8f0;
  --about-text: #475569;
  --about-accent: #1e293b;
  --about-benefit-bg: #f0fdf4;
  --about-benefit-border: #86efac;

  --seo-text-color: #475569;

  --toggle-bg: rgba(255, 255, 255, 0.45);
  --toggle-border: rgba(200, 215, 230, 0.5);
  --toggle-text: #64748b;
  --toggle-active-bg: #bfdbfe;
  --toggle-active-text: #1e293b;

  /* Заголовок .title */
  --title-bg: #fff;
  --title-border: #e2e8f0;
  --title-shadow: 0 1px 3px rgba(0,0,0,0.06);
  --title-color: #1e293b;
  --title-h2-color: #64748b;
  --title-decor: rgba(59, 130, 246, 0.04);

  /* Популярные модели */
  --pm-bg: #fff;
  --pm-border: #e2e8f0;
  --pm-shadow: 0 1px 3px rgba(0,0,0,0.06);
  --pm-header-color: #334155;
  --pm-card-bg: #f8fafc;
  --pm-card-border: #e2e8f0;
  --pm-card-border-hover: #bfdbfe;
  --pm-card-shadow-hover: 0 4px 16px rgba(0,0,0,0.06);
  --pm-name-bg: #f1f5f9;
  --pm-name-color: #1e293b;
  --pm-avail-color: #16a34a;
  --pm-avail-order: #6b7280;
  --pm-address-color: #64748b;
  --pm-chars-color: #475569;
  --pm-price-color: #1e293b;
  --pm-nophoto-color: #6b7280;
  --pm-expected-color: #3b82f6;
  --pm-sale-color: #dc2626;
}

/* ─── Тёмная ─── */
[data-theme="dark"] {
  --page-bg: #0f172a;

  --goods-bg: linear-gradient(160deg, #1e3a5f, #1a3050);
  --goods-border: rgba(100, 140, 220, 0.12);
  --goods-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  --goods-header-color: rgb(190 205 230);

  --sb-bg: rgba(26, 38, 64, 0.55);
  --sb-border: rgba(120, 150, 220, 0.18);
  --sb-title-color: #e8edff;
  --sb-text: #c8d2ea;
  --sb-muted: #8a96b8;
  --sb-divider: rgba(120, 150, 220, 0.12);
  --sb-input-bg: rgba(120, 150, 220, 0.1);
  --sb-input-border: rgba(120, 150, 220, 0.25);
  --sb-input-color: #e8edff;
  --sb-label-color: #c8d2ea;
  --sb-label-hover-bg: rgba(120, 150, 220, 0.1);
  --sb-check-border: rgba(120, 150, 220, 0.35);
  --sb-check-bg: rgba(120, 150, 220, 0.06);
  --sb-tag-bg: rgba(94, 125, 225, 0.2);
  --sb-tag-border: rgba(94, 125, 225, 0.3);
  --sb-tag-color: #c8d8ff;
  --sb-mobile-bg: rgba(22, 33, 58, 0.97);
  --sb-toggle-bg: rgba(120, 150, 220, 0.12);
  --sb-toggle-border: rgba(120, 150, 220, 0.25);
  --sb-toggle-color: #e8edff;

  --card-bg: rgba(26, 38, 64, 0.5);
  --card-bg-hover: rgba(30, 45, 75, 0.55);
  --card-border: rgba(100, 140, 220, 0.12);
  --card-border-hover: rgba(100, 150, 230, 0.28);
  --card-shadow-hover: none;

  --photo-bg: #fff;
  --photo-border: none;
  --name-color: #e8f0ff;
  --name-hover: #7db4ff;
  --type-color: #6b7fa0;
  --specs-color: #8ea0c0;
  --text-muted: #7b90ac;

  --avail-yes: #4ade80;
  --avail-no: #8a96b8;
  --avail-glow: rgba(74, 222, 128, 0.4);

  --action-color: #5e7db8;
  --action-hover: #7db4ff;

  --price-bg: rgba(15, 25, 50, 0.4);
  --price-border: rgba(100, 140, 220, 0.08);
  --price-color: #fff;
  --currency-color: #7b90ac;
  --article-color: #7b90ac;

  --about-bg: linear-gradient(160deg, #2b3f6a, #344c7e, #2f4470);
  --about-border: rgba(120, 150, 220, 0.14);
  --about-text: #c5d4ec;
  --about-accent: #e0eaff;
  --about-benefit-bg: rgba(94, 125, 225, 0.07);
  --about-benefit-border: rgba(94, 125, 225, 0.5);

  --seo-text-color: #d8dff0;

  --toggle-bg: rgba(15, 23, 42, 0.45);
  --toggle-border: rgba(100, 140, 220, 0.2);
  --toggle-text: #8ea0c0;
  --toggle-active-bg: rgba(100, 140, 220, 0.3);
  --toggle-active-text: #e8f0ff;

  /* Заголовок .title */
  --title-bg: linear-gradient(160deg, #1e3a5f, #1a3050);
  --title-border: rgba(100, 140, 220, 0.12);
  --title-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  --title-color: #e8f0ff;
  --title-h2-color: #8ea0c0;
  --title-decor: rgba(120, 150, 220, 0.06);

  /* Популярные модели */
  --pm-bg: linear-gradient(160deg, #1e3a5f, #1a3050);
  --pm-border: rgba(100, 140, 220, 0.12);
  --pm-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  --pm-header-color: rgb(190 205 230);
  --pm-card-bg: rgba(255, 255, 255, 0.08);
  --pm-card-border: rgba(255, 255, 255, 0.12);
  --pm-card-border-hover: rgba(255, 255, 255, 0.28);
  --pm-card-shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.2);
  --pm-name-bg: rgba(15, 25, 50, 0.5);
  --pm-name-color: #c8d8f0;
  --pm-avail-color: #4ade80;
  --pm-avail-order: #8ea0c0;
  --pm-address-color: #6b7fa0;
  --pm-chars-color: #8ea0c0;
  --pm-price-color: #fff;
  --pm-nophoto-color: #5a6a88;
  --pm-expected-color: #7db4ff;
  --pm-sale-color: #ff8a65;
}

/* ═══ ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ — одна кнопка ═══ */

.theme-toggle {
  position: fixed;
  top: 8px;
  right: 12px;
  z-index: 1100;
  background: var(--toggle-bg);
  border: 1px solid var(--toggle-border);
  border-radius: 10px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.1),
    0 4px 24px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s, background 0.3s, border-color 0.3s, transform 0.15s;
  padding: 0;
  display: flex;
}
.theme-toggle:hover {
  transform: scale(1.08);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.08);
  border-color: var(--toggle-active-bg);
}
.theme-toggle:active {
  transform: scale(0.92);
}

.theme-toggle__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--toggle-text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s ease, opacity 0.3s;
}
.theme-toggle__btn:hover .theme-toggle__icon {
  transform: rotate(25deg);
}

/* Светлая тема → показываем луну (переключить на тёмную) */
[data-theme="light"] .theme-toggle__icon--sun,
:root:not([data-theme]) .theme-toggle__icon--sun { display: none; }
[data-theme="light"] .theme-toggle__icon--moon,
:root:not([data-theme]) .theme-toggle__icon--moon { display: block; }

/* Тёмная тема → показываем солнце (переключить на светлую) */
[data-theme="dark"] .theme-toggle__icon--moon { display: none; }
[data-theme="dark"] .theme-toggle__icon--sun { display: block; }

/* ═══ ЗАГОЛОВОК КАТЕГОРИИ ═══ */

.title {
  background: var(--title-bg);
  border-radius: 14px;
  margin: 0 auto 12px;
  max-width: 1200px;
  width: 100%;
  border: 1px solid var(--title-border);
  box-shadow: var(--title-shadow);
  position: relative;
  overflow: hidden;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
  margin-top: 15px;
}
.title::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 100%;
  background: linear-gradient(90deg, transparent, var(--title-decor), transparent);
  pointer-events: none;
}
.title__header {
  text-align: center;
  color: var(--title-color);
  margin: 0;
  padding: 22px 16px;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.title__header_h2 {
  text-align: center;
  color: var(--title-h2-color);
  margin: 0;
  padding: 0 16px 16px;
  font-size: 1rem;
  font-weight: 400;
}

/* ═══ КОНТЕЙНЕР ТОВАРОВ (.goods) ═══ */

.goods {
  padding: 14px;
  margin: 0 auto;
  background: var(--goods-bg);
  border-radius: 14px;
  border: 1px solid var(--goods-border);
  max-width: 1200px;
  width: 100%;
  color: var(--goods-header-color);
  box-shadow: var(--goods-shadow);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.goods__header {
  text-align: center;
  color: var(--goods-header-color);
  font-size: 17px;
  padding: 6px 0 14px;
  margin: 0;
  font-weight: 500;
}
.goods__header_ba { color: var(--sb-title-color); font-size: 21px; padding: 0 5px; }
.goods__header_id2 { color: var(--avail-yes); font-size: 18px; }
.goods__header_low { padding-bottom: 3px; }
.goods__header-comment {
  text-align: center;
  font-size: 15px;
  margin: 0;
  padding: 4px 0 12px;
  color: var(--avail-yes);
  font-weight: bold;
  max-width: 700px;
  justify-self: center;
}
.goods__header-comment_kn {
  font-size: 15px;
  border: 1px solid rgba(120,150,220,0.3);
  padding: 8px 16px;
  border-radius: 8px;
  background: #319935;
  color: #fff;
  text-decoration: none;
}

/* ═══ SIDEBAR TOGGLE ═══ */

.sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  margin: 0 0 12px;
  background: var(--sb-toggle-bg);
  border: 1px solid var(--sb-toggle-border);
  border-radius: 10px;
  color: var(--sb-toggle-color);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}
.sidebar-toggle:hover { opacity: 0.85; }
.sidebar-toggle:active { transform: scale(0.98); }
.sidebar-toggle__icon {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.sidebar-toggle__count {
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 22px; height: 22px;
  padding: 0 6px;
  background: #5e7de1; color: #fff;
  border-radius: 11px;
  font-size: 12px; font-weight: 700;
}
.sidebar-toggle__count:empty { display: none; }

/* ═══ LAYOUT: sidebar + products ═══ */

.goods__b {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  position: relative;
}
.goods__b:has(.goods__sidebar) {
  grid-template-columns: 240px 1fr;
}

/* Backdrop */
.goods__backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10,18,36,0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s;
}
.goods__backdrop--vis { display: block; opacity: 1; }

/* ═══ SIDEBAR ═══ */

.goods__sidebar {
  position: sticky;
  top: 8px;
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 10px;
  background: var(--sb-bg);
  border: 1px solid var(--sb-border);
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(120,150,220,0.3) transparent;
  transition: background 0.4s, border-color 0.4s;
}
.goods__sidebar::-webkit-scrollbar { width: 5px; }
.goods__sidebar::-webkit-scrollbar-track { background: transparent; }
.goods__sidebar::-webkit-scrollbar-thumb { background: rgba(120,150,220,0.3); border-radius: 3px; }

/* Sidebar head */
.sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--sb-divider);
  flex-shrink: 0;
}
.sidebar__title {
  font-size: 15px; font-weight: 700;
  color: var(--sb-title-color);
  letter-spacing: 0.02em;
}
.sidebar__close {
  display: none;
  width: 32px; height: 32px;
  border: none;
  background: var(--sb-label-hover-bg);
  color: var(--sb-text);
  border-radius: 8px;
  font-size: 18px; cursor: pointer;
  transition: background var(--mi-t-fast), transform var(--mi-t-bounce);
  line-height: 1;
  align-items: center; justify-content: center;
}
.sidebar__close:hover { opacity: 0.8; transform: rotate(90deg); }

/* Active tags — внизу sidebar, над кнопкой «Сбросить» */
.sidebar__active-tags {
  padding: 8px 12px;
  display: flex; flex-wrap: wrap; gap: 4px;
  border-top: 1px solid var(--sb-divider);
  flex-shrink: 0;
}
.sidebar__active-tags:empty { display: none; padding: 0; border: none; }
.sidebar__tag {
  display: inline-flex;
  align-items: center; gap: 4px;
  padding: 3px 8px;
  background: var(--sb-tag-bg);
  border: 1px solid var(--sb-tag-border);
  border-radius: 12px;
  font-size: 11px;
  color: var(--sb-tag-color);
  cursor: pointer;
  transition: all var(--mi-t-fast);
}
.sidebar__tag:hover {
  background: rgba(220,90,90,0.15);
  border-color: rgba(220,90,90,0.4);
}
.sidebar__tag-x { font-size: 13px; font-weight: 700; line-height: 1; opacity: 0.6; }

/* Sidebar body */
.sidebar__body { flex: 1; overflow-y: auto; padding: 6px 0; }

/* Sidebar footer */
.sidebar__foot {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--sb-divider);
  flex-shrink: 0;
}
.sidebar__reset {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(220,90,90,0.4);
  color: #f0a0a0;
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
[data-theme="light"] .sidebar__reset { color: #dc2626; border-color: #fca5a5; }
.sidebar__reset:hover { background: rgba(220,90,90,0.12); }
.sidebar__reset:active { transform: scale(0.97); }

/* ═══ ФИЛЬТР ПО ЦЕНЕ ═══ */

.filter-price {
  padding: 12px 14px;
  border-bottom: 1px solid var(--sb-divider);
}
.filter-price__title {
  font-size: 12px; font-weight: 700;
  color: var(--sb-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}
.filter-price__row { display: flex; align-items: center; gap: 5px; }
.filter-price__input {
  flex: 1 1 0; min-width: 0;
  padding: 8px 6px;
  background: var(--sb-input-bg);
  border: 1px solid var(--sb-input-border);
  border-radius: 6px;
  color: var(--sb-input-color);
  font-size: 14px; font-weight: 500;
  text-align: center;
  transition: border-color 0.15s;
  -moz-appearance: textfield;
}
.filter-price__input::-webkit-outer-spin-button,
.filter-price__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.filter-price__input::placeholder { color: var(--sb-muted); font-weight: 400; font-size: 12px; }
.filter-price__input:focus-visible {
  border-color: #5e7de1;
  outline: 2px solid rgba(94, 125, 225, 0.3);
  outline-offset: -1px;
}
.filter-price__sep { color: var(--sb-muted); font-size: 12px; flex-shrink: 0; }
.filter-price__apply {
  flex-shrink: 0;
  padding: 7px 10px;
  background: #5e7de1; border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all var(--mi-t-fast);
  font-family: inherit;
  line-height: 1;
}
.filter-price__apply:hover { background: #4a6ad4; }
.filter-price__apply:active { transform: scale(0.95); }
.filter-price__range {
  margin-top: 10px; height: 4px;
  background: var(--sb-divider);
  border-radius: 2px;
  position: relative; overflow: hidden;
}
.filter-price__range-fill {
  position: absolute; top: 0; bottom: 0;
  background: #5e7de1; border-radius: 2px;
  transition: left 0.3s, right 0.3s;
}
.filter-price__limits {
  display: flex; justify-content: space-between;
  margin-top: 6px; font-size: 11px; color: var(--sb-muted);
}

/* ═══ ФИЛЬТРЫ-ЧЕКБОКСЫ ═══ */

.selection-of-goods {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
}
.selection-of-goods__characteristics {
  border-bottom: 1px solid var(--sb-divider);
}
.selection-of-goods__feature-name {
  margin: 0; padding: 12px 14px;
  font-size: 12px; font-weight: 700;
  color: var(--sb-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: flex;
  align-items: center; justify-content: space-between;
  user-select: none; -webkit-user-select: none;
  transition: color 0.15s;
  text-decoration: none;
}
.selection-of-goods__feature-name:hover { color: var(--sb-title-color); }
.selection-of-goods__feature-name::after {
  content: '';
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s;
  flex-shrink: 0; margin-left: 8px; opacity: 0.6;
}
.selection-of-goods__characteristics--collapsed
  .selection-of-goods__feature-name::after { transform: rotate(-45deg); }

.selection-of-goods__feature-values {
  list-style: none; margin: 0;
  padding: 0 10px 10px;
  display: flex; flex-direction: column; gap: 3px;
  overflow: hidden; max-height: 800px;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.25s ease;
  opacity: 1;
}
.selection-of-goods__characteristics--collapsed
  .selection-of-goods__feature-values {
  max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0;
}
.selection-of-goods__feature-value { list-style: none; }

/* ─── Компактные колонки для коротких значений ─── */
/* JS (compactColumns) автоматически добавляет модификатор
   на группы с короткими лейблами: USB, WiFi, 57 мм и т.д. */

.selection-of-goods__feature-values--cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 6px;
}
.selection-of-goods__feature-values--cols-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3px 4px;
}

/* Лейбл внутри колонки: компактнее, чекбокс меньше */
.selection-of-goods__feature-values--cols-2 > .selection-of-goods__feature-value,
.selection-of-goods__feature-values--cols-3 > .selection-of-goods__feature-value {
  min-width: 0;
  min-height: 30px;  /* фиксируем высоту ячейки — не схлопывается при absolute hover */
  position: relative;
}
.selection-of-goods__feature-values--cols-2 .selection-of-goods__label,
.selection-of-goods__feature-values--cols-3 .selection-of-goods__label {
  padding: 5px 6px;
  gap: 6px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* При наведении лейбл «поднимается» и показывается во всю ширину */
.selection-of-goods__feature-values--cols-2 .selection-of-goods__label:hover,
.selection-of-goods__feature-values--cols-3 .selection-of-goods__label:hover {
  position: absolute;
  left: 0; top: 0;
  width: auto;
  min-width: 100%;
  overflow: visible;
  z-index: 10;
  background: var(--sb-bg);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.18);
}
[data-theme="light"] .selection-of-goods__feature-values--cols-2 .selection-of-goods__label:hover,
[data-theme="light"] .selection-of-goods__feature-values--cols-3 .selection-of-goods__label:hover {
  background: #f1f5f9;
}
.selection-of-goods__feature-values--cols-2 .selection-of-goods__label::before,
.selection-of-goods__feature-values--cols-3 .selection-of-goods__label::before {
  width: 16px;
  height: 16px;
}

.selection-of-goods__input {
  position: absolute; opacity: 0;
  width: 0; height: 0; margin: 0; cursor: pointer;
}
.selection-of-goods__label {
  display: flex;
  align-items: center; gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px; line-height: 1.3;
  color: var(--sb-label-color);
  cursor: pointer;
  transition: all var(--mi-t-fast);
  border: 1px solid transparent;
  position: relative;
  box-sizing: border-box;
}
.selection-of-goods__label::before {
  content: '';
  width: 18px; height: 18px;
  border: 1.5px solid var(--sb-check-border);
  border-radius: 4px; flex-shrink: 0;
  transition: all var(--mi-t-fast);
  background: var(--sb-check-bg);
  box-sizing: border-box;
}
.selection-of-goods__label:hover {
  background: var(--sb-label-hover-bg);
  color: var(--sb-title-color);
}
.selection-of-goods__label:hover::before {
  border-color: #5e7de1;
}
.selection-of-goods__input:checked + .selection-of-goods__label {
  color: var(--sb-title-color);
  background: rgba(94,125,225,0.12);
  border-color: rgba(94,125,225,0.25);
}
.selection-of-goods__input:checked + .selection-of-goods__label::before {
  background: #5e7de1; border-color: #5e7de1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7.5L5.5 10L11 4' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}
[data-theme="light"] .selection-of-goods__input:checked + .selection-of-goods__label {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.selection-of-goods__feature-value_pressed .selection-of-goods__label {
  color: var(--sb-title-color);
  background: rgba(94,125,225,0.12);
  border-color: rgba(94,125,225,0.25);
}
.selection-of-goods__feature-value_pressed .selection-of-goods__label::before {
  background: #5e7de1; border-color: #5e7de1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7.5L5.5 10L11 4' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}
[data-theme="light"] .selection-of-goods__feature-value_pressed .selection-of-goods__label {
  background: #eff6ff; border-color: #bfdbfe;
}

.page__button-unavailable { opacity: 0.35; cursor: default; }
.page__button-unavailable:hover { background: transparent; border-color: transparent; }
.page__button-unavailable::before { border-color: var(--sb-check-border) !important; background: transparent !important; }

/* ═══ УТИЛИТЫ ═══ */
/* page__hidden анимация — в cat_product-card.css (grid-template-rows) */

/* ═══ SEO-ТЕКСТ ═══ */
.seo-text {
  padding: 24px 16px;
  color: var(--seo-text-color);
  font-size: 15px; line-height: 1.7;
  max-width: 1200px;
  margin: 0 auto;
}
.seo-text p { margin: 0 0 12px; }

/* ═══ О КАТЕГОРИИ ═══ */

.catalog-about {
  margin: 16px auto 0;
  max-width: 1200px; width: 100%;
  background: var(--about-bg);
  border-radius: 14px;
  border: 1px solid var(--about-border);
  overflow: hidden;
  box-shadow: var(--goods-shadow);
  transition: background 0.4s, border-color 0.4s;
}
.catalog-about__body {
  padding: 28px 32px;
  display: flex; flex-direction: column;
  justify-content: center; gap: 6px;
}
.catalog-about__text {
  color: var(--about-text);
  font-size: 15px; line-height: 1.65; margin: 0;
}
.catalog-about__text_accent {
  color: var(--about-accent);
  font-size: 16px; font-weight: 500;
}
.catalog-about__benefits {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.catalog-about__benefit {
  display: flex; align-items: baseline;
  gap: 10px;
  color: var(--about-text);
  font-size: 14px; line-height: 1.5;
  padding: 9px 14px;
  background: var(--about-benefit-bg);
  border-radius: 8px;
  border-left: 3px solid var(--about-benefit-border);
  transition: background var(--mi-t-fast);
}
.catalog-about__benefit:hover { opacity: 0.85; }
.catalog-about__benefit::before {
  content: '✓';
  color: #4ecb71; font-weight: 700;
  font-size: 15px; flex-shrink: 0; line-height: 1;
}
[data-theme="light"] .catalog-about__benefit::before { color: #16a34a; }

/* ═══ АДАПТИВ ═══ */

@media (max-width: 960px) {
  .goods__b:has(.goods__sidebar) { grid-template-columns: 210px 1fr; gap: 12px; }
}

@media (max-width: 820px) {
  .goods {
    margin: 0; padding: 10px;
    border-radius: 0; border: 0;
  }
  .title { border-radius: 0; margin: 0 0 8px; }
  .catalog-about { border-radius: 0; margin: 8px 0 0; }
  .catalog-about__body { padding: 24px 16px; }

  .sidebar-toggle { display: flex; }
  .goods__b { display: block; position: relative; }

  .goods__sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 300px; max-width: 85vw;
    max-height: none;
    overflow: hidden;
    z-index: 1000;
    border-radius: 0 14px 14px 0;
    background: var(--sb-mobile-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-right: 1px solid var(--sb-border);
    transform: translateX(-105%);
    transition: transform var(--mi-t-slide);
    box-shadow: 4px 0 30px rgba(0,0,0,0.3);
  }
  .goods__sidebar--open { transform: translateX(0); }
  .sidebar__close { display: flex; align-items: center; justify-content: center; }
}

@media (max-width: 540px) {
  .selection-of-goods__feature-values--cols-3 {
    grid-template-columns: 1fr 1fr;
  }
  .theme-toggle { top: 6px; right: 8px; border-radius: 8px; }
  .theme-toggle__btn { padding: 6px 9px; }
  .goods { padding: 6px; }
  .title__header { font-size: 1.2rem; padding: 14px 12px; }
  .goods__header { font-size: 16px; }
  .sidebar-toggle { font-size: 14px; padding: 11px 14px; border-radius: 8px; }
  .goods__sidebar { width: 280px; max-width: 88vw; }
  .catalog-about__body { padding: 20px 14px; }
  .catalog-about__text { font-size: 14px; }
  .catalog-about__benefit { font-size: 13px; padding: 8px 12px; }
}

@media (max-width: 360px) {
  .selection-of-goods__feature-values--cols-2,
  .selection-of-goods__feature-values--cols-3 {
    grid-template-columns: 1fr;
  }
  .goods { padding: 4px; }
  .title__header { font-size: 1.1rem; padding: 12px 8px; }
  .goods__header { font-size: 15px; padding: 12px 5px; }
  .goods__sidebar { width: 260px; max-width: 92vw; border-radius: 0 10px 10px 0; }
  .sidebar__head { padding: 12px 10px 8px; }
  .filter-price { padding: 10px; }
  .filter-price__input { padding: 7px 4px; font-size: 13px; }
  .selection-of-goods__feature-name { padding: 10px; font-size: 11px; }
  .selection-of-goods__feature-values { padding: 0 6px 8px; }
  .selection-of-goods__label { padding: 6px 8px; font-size: 12px; }
  .selection-of-goods__label::before { width: 16px; height: 16px; }
}

@media (max-width: 240px) {
  .goods { padding: 2px; }
  .title__header { font-size: 1rem; padding: 10px 5px; }
  .goods__header { font-size: 14px; padding: 8px; }
  .sidebar-toggle { font-size: 13px; padding: 10px; gap: 4px; border-radius: 6px; }
  .goods__sidebar { width: 100vw; max-width: 100vw; border-radius: 0; }
  .filter-price__row { flex-wrap: wrap; }
  .filter-price__input { min-width: 60px; }
  .selection-of-goods__label { font-size: 12px; padding: 5px 6px; gap: 6px; }
  .selection-of-goods__label::before { width: 15px; height: 15px; }
}
