/* ============================================================
   SHOPEQ Theme — Equipment Store
   OpenCart 4.x
   ============================================================ */

/*
 * ── НАСТРАИВАЕМЫЕ ПЕРЕМЕННЫЕ ТЕМЫ ─────────────────────────
 * Эти переменные можно переопределить через модуль SHOPEQ Theme
 * в админке, генерируя <style> блок с нужными значениями.
 * ─────────────────────────────────────────────────────────── */
:root {
  /* Цвета бренда */
  --sq-primary:      #1e4d7b;   /* основной (используется в футере, flyout) */
  --sq-accent:       #0095b7;   /* акцент — кнопки, ссылки */
  --sq-accent-dark:  #007a98;   /* акцент при hover */
  --sq-dark:         #142034;   /* topbar */
  --sq-light:        #f4f6f9;   /* фон страницы */
  --sq-border:       #e0e6ef;
  --sq-text:         #2d3748;
  --sq-muted:        #6b7a8d;
  --sq-success:      #22a05b;
  --sq-danger:       #e53e3e;
  --sq-white:        #ffffff;

  /* ── Настройки шапки ── */
  --sq-header-bg:    #ffffff;         /* фон шапки: #ffffff = белая, #1e4d7b = синяя */
  --sq-header-color: #2d3748;         /* цвет текста/иконок в шапке */

  /* ── Настройки кнопок ── */
  --sq-btn-bg:       #0095b7;         /* фон кнопок */
  --sq-btn-color:    #ffffff;         /* цвет текста кнопок */
  --sq-btn-radius:   4px;             /* скругление кнопок: 0 = острые, 4px = чуть, 20px = таблетка */

  /* ── Настройки карточек/блоков ── */
  --sq-card-radius:  4px;             /* скругление карточек товара */

  /* ── Шрифт ── */
  --sq-font:         'Inter', 'Segoe UI', system-ui, sans-serif;
  --sq-font-size:    14px;

  /* Служебные */
  --sq-shadow:       0 2px 8px rgba(0,0,0,.1);
  --sq-transition:   .2s ease;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--sq-font);
  font-size: var(--sq-font-size);
  color: var(--sq-text);
  background: var(--sq-light);
  margin: 0;
}

a { color: var(--sq-primary); text-decoration: none; }
a:hover { color: var(--sq-accent); }

/* ── Top bar ─────────────────────────────────────────────── */
#sq-topbar {
  background: var(--sq-dark);
  padding: 7px 0;
  font-size: 12px;
  color: rgba(255,255,255,.65);
}
#sq-topbar a { color: rgba(255,255,255,.65); }
#sq-topbar a:hover { color: var(--sq-white); }
#sq-topbar .container { display: flex; align-items: center; justify-content: space-between; }
.sq-topbar-right { display: flex; align-items: center; gap: 20px; }

/* ── Header ──────────────────────────────────────────────── */
#sq-header {
  background: var(--sq-header-bg);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  border-bottom: 1px solid var(--sq-border);
}
#sq-header .container {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo */
#sq-logo { flex: 0 0 auto; display: flex; align-items: center; }
#sq-logo img { max-height: 52px; width: auto; display: block; }
#sq-logo .sq-logo-text {
  color: var(--sq-header-color);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
/* Дескриптор справа от логотипа (в один ряд, с разделителем) */
.sq-descr {
  flex: 0 0 auto;
  font-size: 11.5px;
  line-height: 1.25;
  color: var(--sq-muted);
  padding-left: 14px;
  border-left: 2px solid var(--sq-border);
  max-width: 200px;
}
@media (max-width: 1199px) { .sq-descr { display: none; } }

/* Catalog button */
#sq-catalog-btn {
  flex: 0 0 auto;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--sq-btn-bg);
  color: var(--sq-btn-color);
  border: none;
  border-radius: var(--sq-btn-radius);
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: filter var(--sq-transition);
}
#sq-catalog-btn:hover { filter: brightness(.9); }
#sq-catalog-btn .sq-grid-icon {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  grid-template-rows: repeat(3, 5px);
  gap: 2px;
}
#sq-catalog-btn .sq-grid-icon span {
  display: block;
  background: var(--sq-btn-color);
  border-radius: 1px;
}

/* Search */
/* min-width: 0 и width: 0 у поля — иначе поиск не уже ~310px (ширина поля по
   умолчанию), и на 1300px телефон выталкивается за правый край контейнера */
#sq-search-wrap { flex: 1 1 auto; min-width: 0; }
/* mb-3 у OC-поиска идёт с !important (bootstrap utility) — гасим, иначе поле смещается вверх */
#sq-search-wrap #search { display: flex; margin: 0 !important; }
#sq-search-wrap #search input[type="text"] {
  flex: 1;
  width: 0;
  height: 44px;
  border: 1px solid var(--sq-border);
  border-right: none;
  border-radius: var(--sq-btn-radius) 0 0 var(--sq-btn-radius);
  padding: 0 16px;
  font-size: var(--sq-font-size);
  font-family: var(--sq-font);
  outline: none;
  color: var(--sq-text);
  min-width: 0;
  background: #fff;
}
#sq-search-wrap #search input[type="text"]:focus { border-color: var(--sq-accent); }
#sq-search-wrap #search input[type="text"]::placeholder { color: var(--sq-muted); }
#sq-search-wrap #search button {
  height: 44px;
  background: var(--sq-btn-bg);
  border: none;
  border-radius: 0 var(--sq-btn-radius) var(--sq-btn-radius) 0;
  color: var(--sq-btn-color);
  padding: 0 18px;
  cursor: pointer;
  font-size: 16px;
  transition: filter var(--sq-transition);
}
#sq-search-wrap #search button:hover { filter: brightness(.9); }

/* Header icons */
#sq-header-icons {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sq-icon-btn {
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--sq-header-color);
  padding: 0 10px;
  border-radius: var(--sq-btn-radius);
  font-size: 11px;
  line-height: 1;
  transition: color var(--sq-transition), background var(--sq-transition);
  white-space: nowrap;
  opacity: .75;
}
.sq-icon-btn:hover { opacity: 1; background: rgba(0,0,0,.05); color: var(--sq-accent); }
.sq-icon-btn i { font-size: 19px; }
/* Подпись не влияет на центрирование иконки: картинка садится на линию с поиском/каталогом */
.sq-icon-btn span { margin-bottom: -13px; }

/* Phone block */
/* Номер — на линии иконок, «Заказать звонок» — на линии их подписей;
   всё по правому краю контейнера */
#sq-phone-block {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  margin-bottom: -10px;
}
#sq-phone-block .sq-phone {
  display: block;
  color: var(--sq-header-color);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
#sq-phone-block .sq-msgr { justify-content: flex-end; margin-top: 2px; }

.sq-cb-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  color: var(--sq-accent);
  border-bottom: 1px dashed currentColor;
  cursor: pointer;
  white-space: nowrap;
}
.sq-cb-link:hover { border-bottom-style: solid; }

/* Несколько телефонов: номер раскрывает список (наведение — мышь, клик — палец) */
#sq-phone-block.sq-has-drop { position: relative; }
.sq-phone-line { display: flex; align-items: center; gap: 4px; }
.sq-phone-toggle {
  background: none; border: 0; padding: 2px 0 2px 2px; cursor: pointer;
  color: var(--sq-muted); font-size: 11px; line-height: 1;
  transition: transform var(--sq-transition), color var(--sq-transition);
}
.sq-has-drop:hover .sq-phone-toggle, .sq-has-drop.open .sq-phone-toggle { color: var(--sq-accent); transform: rotate(180deg); }
.sq-phone-drop {
  position: absolute; top: 100%; right: -14px; z-index: 1100;
  min-width: 290px; margin-top: 10px; padding: 8px;
  background: var(--sq-white); border: 1px solid var(--sq-border); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.16);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
  text-align: left;
}
/* мостик над списком: курсор не «проваливается» между номером и списком */
.sq-phone-drop::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.sq-has-drop:hover .sq-phone-drop, .sq-has-drop.open .sq-phone-drop, .sq-has-drop:focus-within .sq-phone-drop {
  opacity: 1; visibility: visible; transform: none;
}
.sq-pd-phone {
  display: flex; flex-direction: column; padding: 8px 10px; border-radius: 6px;
  color: var(--sq-dark); line-height: 1.25;
}
.sq-pd-phone b { font-size: 16px; font-weight: 700; white-space: nowrap; }
.sq-pd-phone span { font-size: 12px; color: var(--sq-muted); }
.sq-pd-phone:hover { background: var(--sq-light); color: var(--sq-accent); }
.sq-pd-msgr { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--sq-border); }
.sq-pd-m { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 6px; color: var(--sq-dark); font-size: 14px; }
.sq-pd-m:hover { background: var(--sq-light); color: var(--sq-dark); }
.sq-pd-m .sq-msgr-ic { flex: 0 0 auto; }
.sq-pd-cb { margin-top: 6px; width: 100%; justify-content: center; }

/* выезжающее меню: все номера с подписями столбиком */
.sq-fc-phones { display: flex; flex-direction: column; gap: 4px; }
.sq-fc-phone span { font-size: 12px; font-weight: 400; color: var(--sq-muted); }
#sq-flyout-contacts .sq-cb-link { font-size: 13px; }
.sq-cb-lead { margin: 0 0 14px; color: var(--sq-muted); font-size: 14px; }

/* Галочка согласия на обработку ПД — во всех формах сайта */
.sq-consent {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 6px 0 2px; cursor: pointer;
  font-size: 12.5px; line-height: 1.4; color: var(--sq-muted); font-weight: 400;
}
.sq-consent input { flex: 0 0 auto; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--sq-accent); cursor: pointer; }
.sq-consent a { color: var(--sq-accent); text-decoration: underline; }
.sq-consent.is-invalid { color: var(--sq-danger, #c0392b); }
.sq-consent.is-invalid input { outline: 2px solid var(--sq-danger, #c0392b); outline-offset: 1px; }
.sq-consent-error:empty { display: none; }
.sq-consent-error { margin-bottom: 8px; }
#sq-chat .sq-consent { font-size: 11.5px; }
.sq-cb-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Мессенджеры и соцсети: шапка, выезжающая панель, подвал. Ссылки — из
   настроек темы, незаполненные не выводятся. */
.sq-msgr { display: flex; flex-wrap: wrap; gap: 6px; }
.sq-msgr-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 13px;
  background: var(--sq-muted);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: filter var(--sq-transition);
}
.sq-msgr-ic:hover { filter: brightness(1.1); color: #fff; }
.sq-msgr-ic.sq-max, .sq-msgr-ic.sq-dzen, .sq-msgr-ic.sq-rutube { font-size: 10px; letter-spacing: .02em; }
.sq-msgr-ic.sq-whatsapp { background: #25d366; }
.sq-msgr-ic.sq-telegram { background: #29a9eb; }
.sq-msgr-ic.sq-max      { background: #7b2ff7; }
.sq-msgr-ic.sq-vk       { background: #0077ff; }
.sq-msgr-ic.sq-youtube  { background: #ff0000; }
.sq-msgr-ic.sq-dzen     { background: #000; }
.sq-msgr-ic.sq-rutube   { background: #100943; }

/* ── Info navigation ─────────────────────────────────────── */
#sq-infonav {
  background: var(--sq-white);
  border-bottom: 1px solid var(--sq-border);
  font-size: 13px;
}
#sq-infonav .container { display: flex; align-items: center; }
#sq-infonav a {
  display: block;
  padding: 10px 16px;
  color: var(--sq-text);
  border-bottom: 2px solid transparent;
  transition: color var(--sq-transition), border-color var(--sq-transition);
}
#sq-infonav a:hover, #sq-infonav a.active {
  color: var(--sq-accent);
  border-bottom-color: var(--sq-accent);
}

/* ── Flyout Catalog Sidebar ──────────────────────────────── */
#sq-flyout-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1099;
  animation: fadeIn .2s ease;
}
#sq-flyout-overlay.active { display: block; }

#sq-flyout {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 320px;
  background: var(--sq-white);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  box-shadow: 4px 0 20px rgba(0,0,0,.15);
}
#sq-flyout.active { transform: translateX(0); }

#sq-flyout-header {
  background: var(--sq-primary);
  color: var(--sq-white);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
}
#sq-flyout-header span { font-size: 15px; font-weight: 600; }
#sq-flyout-close {
  background: none; border: none;
  color: var(--sq-white);
  font-size: 22px; cursor: pointer;
  padding: 0; line-height: 1; opacity: .8;
}
#sq-flyout-close:hover { opacity: 1; }

#sq-flyout-body { flex: 1 1 auto; overflow-y: auto; padding: 8px 0; }

.sq-cat-item {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid var(--sq-border);
  color: var(--sq-text);
  font-size: 14px;
  transition: background var(--sq-transition);
  text-decoration: none;
}
.sq-cat-item:hover { background: var(--sq-light); color: var(--sq-accent); }
.sq-cat-item img { width: 28px; height: 28px; object-fit: contain; margin-right: 10px; flex: 0 0 auto; }
.sq-cat-item span { flex: 1; }
.sq-cat-ico { width: 28px; margin-right: 10px; color: var(--sq-muted); font-size: 16px; text-align: center; flex: 0 0 auto; }

/* ── Уровни разделов: каскад боковых панелей ─────────────── */
/* Вся структура лежит в разметке, но показывается по одной панели на уровень:
   разворачивать список на месте нельзя — в каталоге сотни разделов, и открытая
   ветка выдавила бы вниз и соседние разделы, и «Предложение недели». */
.sq-cat-list { list-style: none; margin: 0; padding: 0; display: none; }

/* видимы первый уровень и та ветка, которую JS вынес в панель */
#sq-flyout-body > .sq-cat-list,
.sq-cat-panel-body > .sq-cat-list { display: block; }

.sq-cat-node { position: relative; }
/* стрелка перекрывает правый край строки: клик по названию уводит в раздел,
   клик по стрелке открывает следующую панель — две разные цели в одной строке */
.sq-cat-more {
  position: absolute;
  top: 0; right: 0; bottom: 1px;
  width: 46px;
  background: none;
  border: none;
  border-left: 1px solid var(--sq-border);
  color: var(--sq-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}
.sq-cat-more:hover { background: var(--sq-light); color: var(--sq-accent); }
.sq-cat-node > .sq-cat-item { padding-right: 56px; }
/* открытая ветка подсвечена — видно, из какой строки выросла соседняя панель */
.sq-cat-node.sq-active > .sq-cat-item { background: var(--sq-light); color: var(--sq-accent); }
.sq-cat-node.sq-active > .sq-cat-more { color: var(--sq-accent); }

#sq-flyout-header { gap: 10px; }
#sq-flyout-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sq-cat-empty { padding: 20px; color: var(--sq-muted); text-align: center; font-size: 13px; }

/* ── Панели уровней ──────────────────────────────────────── */
#sq-flyout-cols {
  position: fixed;
  top: 0; bottom: 0;
  left: 320px;
  z-index: 1099;
  display: flex;
  pointer-events: none;
}
#sq-flyout-cols[hidden] { display: none; }

.sq-cat-panel {
  width: 320px;
  flex: 0 0 320px;
  background: var(--sq-white);
  border-left: 1px solid var(--sq-border);
  box-shadow: 4px 0 20px rgba(0,0,0,.10);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}
.sq-cat-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--sq-border);
  background: var(--sq-light);
  font-size: 14px;
  font-weight: 600;
  flex: 0 0 auto;
}
.sq-cat-panel-head .sq-panel-title {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sq-panel-back {
  background: none; border: none;
  color: var(--sq-text);
  font-size: 14px; cursor: pointer;
  padding: 0 2px 0 0; line-height: 1;
  flex: 0 0 auto;
}
/* вход в сам раздел: панель показывает потомков, а сам раздел тоже нужен */
.sq-panel-all {
  display: block;
  padding: 9px 20px;
  border-bottom: 1px solid var(--sq-border);
  color: var(--sq-accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  flex: 0 0 auto;
}
.sq-panel-all:hover { text-decoration: underline; }
.sq-cat-panel-body { flex: 1 1 auto; overflow-y: auto; padding: 4px 0; }

/* Панели не должны уезжать за экран: когда места нет, JS оставляет
   последние и помечает каскад сдвинутым — левый край показывает обрезку. */
#sq-flyout-cols.sq-shifted .sq-cat-panel:first-child { box-shadow: inset 6px 0 8px -6px rgba(0,0,0,.25); }

/* На узком экране рядом ничего не помещается — панель ложится поверх */
@media (max-width: 760px) {
  #sq-flyout-cols { left: 0; right: 0; z-index: 1101; }
  .sq-cat-panel { width: 100%; flex: 1 1 auto; }
}
}

/* ── Main layout ─────────────────────────────────────────── */
#sq-body { min-height: calc(100vh - 200px); }

/* ── Footer ──────────────────────────────────────────────── */
#sq-footer {
  background: var(--sq-primary);
  color: rgba(255,255,255,.75);
  padding: 40px 0 20px;
  margin-top: 40px;
  font-size: 13px;
}
#sq-footer h5 { color: var(--sq-white); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
#sq-footer a { color: rgba(255,255,255,.65); display: block; margin-bottom: 6px; }
#sq-footer a:hover { color: var(--sq-white); }
#sq-footer .sq-foot-phone { margin-bottom: 8px; }
#sq-footer .sq-foot-phone a { color: #fff; font-size: 18px; font-weight: 700; margin: 0; }
#sq-footer .sq-foot-links { margin-bottom: 10px; }
#sq-footer .sq-msgr-ic { display: inline-flex; margin: 0; min-width: 32px; height: 32px; border-radius: 16px; font-size: 16px; color: #fff; }
#sq-footer .sq-msgr-ic.sq-max, #sq-footer .sq-msgr-ic.sq-dzen, #sq-footer .sq-msgr-ic.sq-rutube { font-size: 11px; }
#sq-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 30px; padding-top: 16px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.sq-breadcrumb { padding: 10px 0; font-size: 12px; color: var(--sq-muted); }
.sq-breadcrumb a { color: var(--sq-muted); }
.sq-breadcrumb a:hover { color: var(--sq-accent); }
.sq-breadcrumb .sq-sep { margin: 0 6px; }

/* ── Alerts ──────────────────────────────────────────────── */
#alert { z-index: 2000; }

/* ── Category page ───────────────────────────────────────── */
.sq-cat-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--sq-dark);
  margin: 16px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sq-border);
}

.sq-cat-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* Sidebar */
.sq-sidebar {
  flex: 0 0 240px;
  width: 240px;
}

.sq-filter-section {
  background: var(--sq-white);
  border: 1px solid var(--sq-border);
  border-radius: var(--sq-card-radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.sq-filter-heading {
  background: var(--sq-light);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sq-muted);
  border-bottom: 1px solid var(--sq-border);
}

.sq-subcat-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.sq-subcat-list li a {
  display: block;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--sq-text);
  transition: background var(--sq-transition), color var(--sq-transition);
}

.sq-subcat-list li a:hover {
  background: var(--sq-light);
  color: var(--sq-accent);
}

.sq-select {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  font-family: var(--sq-font);
  color: var(--sq-text);
  border: none;
  outline: none;
  background: var(--sq-white);
  cursor: pointer;
}

/* Product area */
.sq-product-area { flex: 1 1 0; min-width: 0; }

.sq-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 8px 12px;
  background: var(--sq-white);
  border: 1px solid var(--sq-border);
  border-radius: var(--sq-card-radius);
}

.sq-results-text {
  flex: 1;
  font-size: 12px;
  color: var(--sq-muted);
}

.sq-view-toggle { display: flex; gap: 4px; }

.sq-view-btn {
  background: none;
  border: 1px solid var(--sq-border);
  border-radius: var(--sq-btn-radius);
  color: var(--sq-muted);
  padding: 5px 9px;
  cursor: pointer;
  font-size: 13px;
  transition: all var(--sq-transition);
}

.sq-view-btn.active,
.sq-view-btn:hover {
  background: var(--sq-accent);
  border-color: var(--sq-accent);
  color: var(--sq-white);
}

.sq-compare-link {
  font-size: 12px;
  color: var(--sq-muted);
  white-space: nowrap;
}

.sq-compare-link:hover { color: var(--sq-accent); }

/* Products grid */
.sq-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.sq-products-grid.sq-list-view {
  grid-template-columns: 1fr;
}

/* No results */
.sq-no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--sq-muted);
}

.sq-no-results i { font-size: 48px; opacity: .3; display: block; margin-bottom: 16px; }
.sq-no-results p { font-size: 16px; margin-bottom: 20px; }

/* Subcategory cards (when no products) */
.sq-subcat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sq-subcat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--sq-white);
  border: 1px solid var(--sq-border);
  border-radius: var(--sq-card-radius);
  color: var(--sq-text);
  font-size: 14px;
  transition: all var(--sq-transition);
}

.sq-subcat-card:hover {
  border-color: var(--sq-accent);
  color: var(--sq-accent);
  box-shadow: var(--sq-shadow);
}

/* Pagination */
.sq-pagination-row { margin-top: 20px; }

.sq-pagination nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0; margin: 0;
  flex-wrap: wrap;
}

.sq-pagination .page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--sq-border);
  border-radius: var(--sq-btn-radius);
  color: var(--sq-text);
  font-size: 13px;
  transition: all var(--sq-transition);
  background: var(--sq-white);
}

.sq-pagination .page-item.active .page-link,
.sq-pagination .page-item .page-link:hover {
  background: var(--sq-accent);
  border-color: var(--sq-accent);
  color: var(--sq-white);
}

/* ── Product card ─────────────────────────────────────────── */
.sq-card {
  background: var(--sq-white);
  border: 1px solid var(--sq-border);
  border-radius: var(--sq-card-radius);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--sq-transition), border-color var(--sq-transition);
  height: 100%;
  overflow: hidden;
}

.sq-card:hover {
  box-shadow: var(--sq-shadow);
  border-color: #c8d5e8;
}

.sq-card-img-wrap {
  display: block;
  padding: 12px;
  background: #fff;
  border-bottom: 1px solid var(--sq-border);
  text-align: center;
  flex: 0 0 auto;
}

.sq-card-img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  display: block;
}

.sq-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.sq-card-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--sq-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1 1 auto;
  margin-bottom: 8px;
}

.sq-card-name:hover { color: var(--sq-accent); }

.sq-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 4px;
}

.sq-card-price { display: flex; flex-direction: column; gap: 1px; }

.sq-price-new {
  font-size: 16px;
  font-weight: 700;
  color: var(--sq-dark);
}

.sq-price-old {
  font-size: 12px;
  color: var(--sq-muted);
  text-decoration: line-through;
}

.sq-stock {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 10px;
}

.sq-stock-in  { background: #e6f9ee; color: #1a7a40; }
.sq-stock-out { background: #fdecea; color: #c0392b; }

.sq-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.sq-btn-cart {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
}

.sq-icon-action {
  background: var(--sq-light);
  border: 1px solid var(--sq-border);
  border-radius: var(--sq-btn-radius);
  color: var(--sq-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all var(--sq-transition);
  flex: 0 0 auto;
}

.sq-icon-action:hover {
  background: var(--sq-accent);
  border-color: var(--sq-accent);
  color: var(--sq-white);
}

/* List view card */
.sq-products-grid.sq-list-view .sq-card {
  flex-direction: row;
  height: auto;
}

.sq-products-grid.sq-list-view .sq-card-img-wrap {
  flex: 0 0 120px;
  border-bottom: none;
  border-right: 1px solid var(--sq-border);
}

.sq-products-grid.sq-list-view .sq-card-img { height: 90px; }

.sq-products-grid.sq-list-view .sq-card-name {
  -webkit-line-clamp: 2;
  font-size: 14px;
}

/* ── Buttons (global) ────────────────────────────────────── */
.sq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--sq-btn-bg);
  color: var(--sq-btn-color);
  border: none;
  border-radius: var(--sq-btn-radius);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sq-font);
  cursor: pointer;
  transition: filter var(--sq-transition);
  text-decoration: none;
  white-space: nowrap;
}
.sq-btn:hover { filter: brightness(.9); color: var(--sq-btn-color); }
.sq-btn-sm { padding: 6px 12px; font-size: 12px; }
.sq-btn-lg { padding: 12px 24px; font-size: 15px; font-weight: 700; }
.sq-btn-outline {
  background: transparent;
  border: 1px solid var(--sq-btn-bg);
  color: var(--sq-btn-bg);
}
.sq-btn-outline:hover { background: var(--sq-btn-bg); color: var(--sq-btn-color); filter: none; }

/* ── Карточка товара: три колонки ────────────────────────────
   галерея | характеристики | панель покупки. Фото — главный элемент,
   кнопки обычного размера: панель узкая, крупные кнопки её распирали. */
.sq-pc-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--sq-dark);
  margin: 4px 0 18px;
  text-wrap: balance;
}

.sq-pc {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  margin-bottom: 32px;
}

/* Gallery: миниатюры столбиком слева от фото */
.sq-pc-gallery {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  position: sticky;
  top: 80px;
}
.sq-pc-gallery-single { grid-template-columns: minmax(0, 1fr); }

.sq-pc-gallery .sq-gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 480px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.sq-gallery-main {
  background: var(--sq-white);
  border: 1px solid var(--sq-border);
  border-radius: var(--sq-card-radius);
  overflow: hidden;
  position: relative;
}

.sq-gallery-zoom {
  display: block;
  position: relative;
  padding: 16px;
  text-align: center;
}

.sq-main-photo {
  width: 100%;
  height: 448px;
  object-fit: contain;
  display: block;
}

.sq-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,.45);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity var(--sq-transition);
}
.sq-gallery-zoom:hover .sq-zoom-hint { opacity: 1; }

.sq-thumb-item {
  /* flex: 0 0 72px, а не height: без запрета сжатия 16+ фото ужимаются
     в полоски, и прокрутка не появляется — переполнения не возникает. */
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border: 1px solid var(--sq-border);
  border-radius: var(--sq-card-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sq-white);
  padding: 4px;
  transition: border-color var(--sq-transition);
}
.sq-thumb-item img { width: 100%; height: 100%; object-fit: contain; }
.sq-thumb-item:hover,
.sq-thumb-item.active { border-color: var(--sq-accent); box-shadow: inset 0 0 0 1px var(--sq-accent); }

/* Specs column */
/* Колонки характеристик и покупки — белые блоки с рамкой, как плитка
   каталога: тот же радиус, те же плашки статуса и строки свойств. */
.sq-pc-specs,
.sq-pc-aside {
  background: var(--sq-white);
  border: 1px solid var(--sq-border);
  border-radius: var(--sq-card-radius);
}
.sq-pc-specs { padding: 16px 18px; }

.sq-pc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sq-border);
}
.sq-pc-sku { font-size: 14px; font-weight: 700; color: var(--sq-accent); }
.sq-pc-model { font-size: 12px; color: var(--sq-muted); }
.sq-pc-stars { margin-left: auto; color: var(--sq-accent); font-size: 12px; letter-spacing: 1px; }

.sq-pc-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 8px;
}
.sq-pc-h h2 { font-size: 16px; font-weight: 700; color: var(--sq-dark); margin: 0; }

.sq-pc-icons { display: flex; gap: 6px; }
.sq-pc-icons button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--sq-border);
  border-radius: var(--sq-btn-radius);
  background: var(--sq-light);
  color: var(--sq-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--sq-transition);
}
.sq-pc-icons button:hover { border-color: var(--sq-accent); color: var(--sq-accent); background: var(--sq-white); }

/* Ряды исполнений серии: подпись над плашками, ряды через пунктир */
.sq-pc .sq-series { margin: 0 0 6px; }
.sq-pc .sq-series-row { display: block; padding: 8px 0; border-bottom: 1px dashed var(--sq-border); }
.sq-pc .sq-series-name { font-size: 12px; color: var(--sq-muted); margin-bottom: 6px; min-width: 0; }
.sq-pc .sq-series-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Свойства — как на плитке: подпись серым, значение жирным, пунктир */
.sq-pc-dots { list-style: none; margin: 4px 0 12px; padding: 0; font-size: 13px; }
.sq-pc-dots li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--sq-border); }
.sq-pc-dots span { color: var(--sq-muted); }
.sq-pc-dots i { display: none; }
.sq-pc-dots b { font-weight: 600; color: var(--sq-text); text-align: right; }

.sq-pc-brand { font-size: 12px; color: var(--sq-muted); margin-bottom: 12px; }

.sq-pc-jump { display: flex; flex-wrap: wrap; gap: 6px; }
.sq-pill {
  padding: 6px 12px;
  border: 1px solid var(--sq-btn-bg);
  border-radius: var(--sq-btn-radius);
  background: transparent;
  color: var(--sq-btn-bg);
  font: 600 12px var(--sq-font);
  cursor: pointer;
  transition: all var(--sq-transition);
}
.sq-pill:hover { background: var(--sq-btn-bg); color: var(--sq-btn-color); }

/* Панель покупки */
.sq-pc-stock { padding: 14px 16px 12px; border-bottom: 1px solid var(--sq-border); }
.sq-pc-stock .sq-stock { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.sq-pc-cities { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13px; }
.sq-pc-cities li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.sq-pc-cities li[hidden] { display: none; }
.sq-pc-cities span { color: var(--sq-text); }
.sq-pc-cities span i { color: var(--sq-muted); font-size: 11px; margin-right: 5px; }
.sq-pc-cities b { font-weight: 600; color: var(--sq-success); white-space: nowrap; }
.sq-pc-stock-more {
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sq-accent);
  font: 12px var(--sq-font);
  text-decoration: underline;
  text-decoration-style: dashed;
  cursor: pointer;
}
.sq-pc-stock-more:hover { color: var(--sq-primary); }

.sq-pc-buy { padding: 14px 16px 16px; }
.sq-pc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.sq-pc-price-new { font-size: 24px; font-weight: 700; color: var(--sq-dark); line-height: 1.2; }
.sq-pc-price-old { font-size: 14px; color: var(--sq-muted); text-decoration: line-through; }
.sq-pc-per { flex-basis: 100%; font-size: 11px; color: var(--sq-muted); }

.sq-product-price-tax { font-size: 11px; color: var(--sq-muted); margin-top: 3px; }

.sq-pc-buy #product { margin-top: 12px; }
.sq-cart-block {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 8px;
}
.sq-cart-block .sq-qty-control { flex: 0 0 auto; }
.sq-cart-block .sq-qty-btn { height: 38px; width: 32px; }
.sq-cart-block .sq-qty-input { width: 44px; }
.sq-cart-block .sq-btn-cart-main { flex: 1; min-height: 38px; font-size: 13px; }
.sq-pc .sq-btn-quickbuy {
  min-height: 36px;
  margin: 0;
  border-width: 1px;
  font-size: 13px;
}

.sq-pc-box { padding: 12px 16px; border-top: 1px solid var(--sq-border); }
.sq-pc-box-h {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--sq-muted);
  margin-bottom: 8px;
}
.sq-pc-pay, .sq-pc-docs { list-style: none; margin: 0; padding: 0; }
.sq-pc-pay li { font-size: 13px; padding: 2px 0; color: var(--sq-text); }
.sq-pc-pay i { color: var(--sq-muted); width: 18px; }
.sq-pc-docs li + li { margin-top: 6px; }
.sq-pc-docs a { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.35; color: var(--sq-text); }
.sq-pc-docs a:hover { color: var(--sq-accent); }
.sq-pc-docs i { font-size: 18px; color: var(--sq-danger); flex: 0 0 auto; }
.sq-pc-link {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sq-accent);
  font: 12px var(--sq-font);
  cursor: pointer;
}
.sq-pc-link:hover { text-decoration: underline; }

/* Коммерческое предложение: кнопка в панели и окно */
.sq-pc-kp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--sq-accent);
  font: 600 13px var(--sq-font);
  cursor: pointer;
}
.sq-pc-kp i { font-size: 16px; }
.sq-pc-kp:hover { text-decoration: underline; }

.sq-kp-modal { width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; }
.sq-kp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.sq-kp-note {
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: var(--sq-btn-radius);
  background: #fff7e0;
  color: #7a5a00;
  font-size: 13px;
}
.sq-kp-static { padding: 8px 0; font-size: 15px; font-weight: 700; color: var(--sq-dark); }
.sq-kp-sum { margin: 4px 0 12px; font-size: 15px; text-align: right; }
.sq-kp-sum b { font-size: 18px; color: var(--sq-dark); }
.sq-kp-download { width: 100%; min-height: 40px; }
@media (max-width: 575px) { .sq-kp-grid { grid-template-columns: 1fr; } }

@media (max-width: 1199px) {
  .sq-pc { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .sq-pc-aside { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .sq-pc-stock { grid-row: span 2; }
  .sq-pc-box { border-top: 0; }
  .sq-main-photo { height: 380px; }
}
@media (max-width: 767px) {
  .sq-pc { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sq-pc-aside { display: block; }
  .sq-pc-gallery { position: static; grid-template-columns: minmax(0, 1fr); }
  .sq-pc-gallery .sq-gallery-thumbs { order: 2; flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; }
  .sq-main-photo { height: 300px; }
  .sq-pc-title { font-size: 18px; }
}

/* ── Quick buy button ────────────────────────────────────── */
.sq-btn-quickbuy {
  background: transparent;
  border: 2px solid var(--sq-accent);
  color: var(--sq-accent);
  width: 100%;
  margin-bottom: 12px;
}

.sq-btn-quickbuy:hover {
  background: var(--sq-accent);
  color: var(--sq-white);
  filter: none;
}

/* ── Modal ───────────────────────────────────────────────── */
.sq-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 2000;
  animation: fadeIn .2s ease;
}

.sq-modal-overlay.active { display: block; }

.sq-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2001;
  width: 480px;
  max-width: calc(100vw - 32px);
  background: var(--sq-white);
  border-radius: var(--sq-card-radius);
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
  animation: slideIn .2s ease;
}

.sq-modal.active { display: flex; flex-direction: column; }

@keyframes slideIn {
  from { opacity: 0; transform: translate(-50%, -48%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

.sq-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--sq-border);
  font-size: 15px;
  font-weight: 700;
  color: var(--sq-dark);
}

.sq-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--sq-muted);
  padding: 0;
  line-height: 1;
  transition: color var(--sq-transition);
}

.sq-modal-close:hover { color: var(--sq-text); }

.sq-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sq-modal-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--sq-light);
  border-radius: var(--sq-card-radius);
  margin-bottom: 12px;
}

.sq-modal-thumb {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: 0 0 auto;
}

.sq-modal-pname {
  font-size: 13px;
  font-weight: 500;
  color: var(--sq-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sq-modal-psku {
  font-size: 11px;
  color: var(--sq-muted);
  margin-top: 2px;
}

.sq-modal-success {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  background: #e6f9ee;
  border-left: 4px solid var(--sq-success);
  border-radius: var(--sq-btn-radius);
  color: #145c30;
  font-size: 14px;
  margin-bottom: 8px;
}

/* Discounts */
.sq-discounts {
  background: var(--sq-light);
  border: 1px solid var(--sq-border);
  border-radius: var(--sq-card-radius);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
}

.sq-discount-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed var(--sq-border);
}

.sq-discount-row:last-child { border-bottom: none; }
.sq-discount-price { font-weight: 700; color: var(--sq-accent); }

/* Options */
.sq-options { margin-bottom: 16px; }

.sq-option-group {
  margin-bottom: 14px;
}

.sq-option-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--sq-muted);
  margin-bottom: 6px;
}

.sq-option-select {
  border: 1px solid var(--sq-border) !important;
  border-radius: var(--sq-btn-radius);
  padding: 8px 12px;
  font-size: 14px;
  background: var(--sq-white);
  width: 100%;
}

.sq-option-select:focus { outline: none; border-color: var(--sq-accent) !important; }

.sq-radio-group { display: flex; flex-wrap: wrap; gap: 8px; }

.sq-radio-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid var(--sq-border);
  border-radius: var(--sq-btn-radius);
  cursor: pointer;
  transition: all var(--sq-transition);
}

.sq-radio-btn:has(input:checked) {
  border-color: var(--sq-accent);
  background: #e8f7fb;
  color: var(--sq-accent);
}

.sq-radio-btn input { cursor: pointer; accent-color: var(--sq-accent); }

.sq-input {
  width: 100%;
  border: 1px solid var(--sq-border);
  border-radius: var(--sq-btn-radius);
  padding: 8px 12px;
  font-size: 14px;
  font-family: var(--sq-font);
  color: var(--sq-text);
  outline: none;
  background: var(--sq-white);
}

.sq-input:focus { border-color: var(--sq-accent); }

/* Cart row */
.sq-cart-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.sq-qty-wrap { flex: 0 0 auto; }

.sq-qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--sq-border);
  border-radius: var(--sq-btn-radius);
  overflow: hidden;
  background: var(--sq-white);
}

.sq-qty-btn {
  background: var(--sq-light);
  border: none;
  width: 36px;
  height: 44px;
  font-size: 18px;
  cursor: pointer;
  color: var(--sq-text);
  transition: background var(--sq-transition);
  flex: 0 0 auto;
}

.sq-qty-btn:hover { background: var(--sq-border); }

.sq-qty-input {
  width: 54px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--sq-font);
  color: var(--sq-text);
  outline: none;
  height: 44px;
  padding: 0;
}

.sq-btn-cart-main {
  flex: 1;
  height: 44px;
}

/* Secondary actions */
.sq-secondary-actions {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--sq-border);
  margin-top: 4px;
}

.sq-action-link {
  background: none;
  border: none;
  color: var(--sq-muted);
  font-size: 13px;
  font-family: var(--sq-font);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: color var(--sq-transition);
}

.sq-action-link:hover { color: var(--sq-accent); }

/* Validation */
.sq-field-error {
  font-size: 11px;
  color: var(--sq-danger);
  margin-top: 4px;
  min-height: 16px;
}

.is-invalid { border-color: var(--sq-danger) !important; }

.sq-info-note {
  font-size: 12px;
  color: var(--sq-muted);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── Tabs ────────────────────────────────────────────────── */
.sq-tabs-wrap {
  background: var(--sq-white);
  border: 1px solid var(--sq-border);
  border-radius: var(--sq-card-radius);
  margin-bottom: 32px;
  overflow: hidden;
}

.sq-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--sq-border);
  background: var(--sq-light);
}

.sq-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--sq-font);
  color: var(--sq-muted);
  cursor: pointer;
  transition: all var(--sq-transition);
  margin-bottom: -1px;
}

.sq-tab-btn.active {
  color: var(--sq-accent);
  border-bottom-color: var(--sq-accent);
  background: var(--sq-white);
}

.sq-tab-btn:hover:not(.active) { color: var(--sq-text); }

.sq-tabs-body { padding: 24px; }

.sq-tab-pane { display: none; }
.sq-tab-pane.active { display: block; }

/* Description tab */
.sq-description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--sq-text);
}

.sq-description img { max-width: 100%; height: auto; }
.sq-description ul, .sq-description ol { padding-left: 20px; }
.sq-description table { border-collapse: collapse; width: 100%; }
.sq-description table td, .sq-description table th {
  padding: 8px 12px;
  border: 1px solid var(--sq-border);
  font-size: 13px;
}

/* Specification tab */
.sq-spec-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sq-spec-group + .sq-spec-group { margin-top: 16px; }
.sq-spec-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; align-items: start; }
.sq-spec-cols table + table tbody tr:first-child td { border-top: 1px solid var(--sq-border); }
@media (max-width: 767px) {
  .sq-spec-cols { grid-template-columns: minmax(0, 1fr); }
  .sq-spec-cols table + table tbody tr:first-child td { border-top: 0; }
}
.sq-spec-h,
.sq-spec-table thead tr th {
  text-align: left;
  padding: 10px 14px;
  background: var(--sq-light);
  border: 1px solid var(--sq-border);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--sq-muted);
}

.sq-spec-table tbody tr:nth-child(odd) td { background: #fafbfc; }
.sq-spec-table tbody tr:hover td { background: #f0f7ff; }

.sq-spec-name {
  padding: 9px 14px;
  border: 1px solid var(--sq-border);
  color: var(--sq-muted);
  width: 42%;
}

.sq-spec-val {
  padding: 9px 14px;
  border: 1px solid var(--sq-border);
  font-weight: 500;
  color: var(--sq-text);
}

/* ── Related products ────────────────────────────────────── */
.sq-related { margin-bottom: 40px; }

.sq-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--sq-dark);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sq-border);
}

/* ── Toast notification ──────────────────────────────────── */
.sq-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--sq-btn-radius);
  margin-bottom: 10px;
  font-size: 14px;
  box-shadow: var(--sq-shadow);
}

.sq-toast-success {
  background: #e6f9ee;
  border-left: 4px solid var(--sq-success);
  color: #145c30;
}

.sq-toast button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: inherit;
  margin-left: auto;
  padding: 0;
  opacity: .6;
}

.sq-toast button:hover { opacity: 1; }

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .sq-products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  #sq-phone-block { display: none; }
}

@media (max-width: 768px) {
  #sq-catalog-btn span { display: none; }
  #sq-flyout { width: 85vw; }
  .sq-products-grid { grid-template-columns: repeat(2, 1fr); }
  .sq-cat-layout { flex-direction: column; }
  .sq-sidebar { width: 100%; }
  .sq-cart-row { flex-direction: column; align-items: stretch; }
  .sq-btn-cart-main { width: 100%; }
}

@media (max-width: 480px) {
  .sq-products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .sq-tabs-nav { overflow-x: auto; }
  .sq-tab-btn { padding: 12px 16px; font-size: 13px; white-space: nowrap; }
}

/* ============================================================
   ГЛАВНАЯ СТРАНИЦА (SHOPEQ home blocks)
   ============================================================ */
#sq-home { display: block; }

/* Hero */
.sq-hero {
  background: linear-gradient(120deg, var(--sq-primary), var(--sq-accent));
  color: #fff;
  padding: 56px 0;
}
.sq-hero-inner { max-width: 640px; }
/* Слайдер: слайды лежат в одной ячейке сетки друг на друге — высота по самому
   высокому, без прыжков при смене; меняется прозрачность. */
.sq-slider { position: relative; padding: 0; overflow: hidden; }
.sq-slides { display: grid; min-height: clamp(260px, 20.83vw, 400px); }   /* 1920 px → 400 — под картинку 1920×400 */
/* есть картинка у первого слайда — высота по её пропорциям: без увеличения и обрезки
   (текстовому слайду не хватит места — сетка вытянется по содержимому) */
@media (min-width: 768px) { .sq-slider-ratio .sq-slides { aspect-ratio: var(--sq-ratio); min-height: 0; } }
@media (max-width: 767px) { .sq-slider-ratio-m .sq-slides { aspect-ratio: var(--sq-ratio-m); min-height: 0; } }
.sq-slide {
  grid-area: 1 / 1; position: relative; display: flex; align-items: center; padding: 56px 0;
  opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s;
}
.sq-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.sq-slide-bg, .sq-slide-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sq-slide-bg img { object-fit: cover; object-position: right center; }
/* затемнение — только у слайдов с текстом: слева под текст, справа фото как есть */
.sq-slide-txt.sq-slide-img::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(10, 25, 45, .82) 0%, rgba(10, 25, 45, .55) 45%, rgba(10, 25, 45, 0) 75%);
}
@media (max-width: 767px) {
  .sq-slide-txt.sq-slide-img::before { background: rgba(10, 25, 45, .6); }   /* на телефоне текст во всю ширину */
}
.sq-slide .container { position: relative; z-index: 2; }
.sq-slide-link { position: absolute; inset: 0; z-index: 3; }
.sq-slider-arrow {
  position: absolute; top: 50%; z-index: 4; width: 42px; height: 42px; margin-top: -21px; border: 0; border-radius: 50%;
  color: #fff; background: rgba(10, 25, 45, .35); cursor: pointer; transition: background var(--sq-transition);
}
.sq-slider-arrow:hover, .sq-slider-arrow:focus-visible { background: rgba(10, 25, 45, .65); }
.sq-slider-prev { left: 14px; }
.sq-slider-next { right: 14px; }
.sq-slider-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 4; display: flex; justify-content: center; gap: 8px; }
.sq-slider-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .5); cursor: pointer;
  box-shadow: 0 0 0 1px rgba(10, 25, 45, .3); }   /* видно и на белом фото товара */
.sq-slider-dot.is-active { background: #fff; transform: scale(1.2); }
@media (max-width: 767px) { .sq-slider-arrow { display: none; } }   /* на телефоне — палец и точки */
@media (prefers-reduced-motion: reduce) { .sq-slide { transition: none; } }
.sq-hero .sq-slide-title,
.sq-hero h1 {
  font-size: 34px; line-height: 1.12; font-weight: 800;
  margin: 0 0 14px; text-wrap: balance;
  color: inherit;   /* штатный stylesheet.css красит все h1 в #444 — на синем фоне не читалось */
}
.sq-hero p { font-size: 16px; opacity: .93; margin: 0 0 24px; max-width: 54ch; }
.sq-hero .sq-btn-lg { background: #fff; color: var(--sq-primary); }
.sq-hero .sq-btn-lg:hover { background: #f0f4fa; color: var(--sq-primary); }
/* Высота слайдера — настройка темы. Без класса — узкий (как выше: по картинке или
   400 px). sq-hero-m и sq-hero-l держат пропорции баннеров 1920×560 и 1920×720;
   картинка заполняет слайд. На узких экранах не ниже 340 / 420 px — текст помещается. */
@media (min-width: 768px) {
  .sq-hero-m .sq-slides { aspect-ratio: 1920 / 560; min-height: 340px; }
  .sq-hero-l .sq-slides { aspect-ratio: 1920 / 720; min-height: 420px; }
}
@media (max-width: 767px) {   /* есть картинка для телефона — высота по ней, как у узкого */
  .sq-hero-m:not(.sq-slider-ratio-m) .sq-slides { min-height: 320px; }
  .sq-hero-l:not(.sq-slider-ratio-m) .sq-slides { min-height: 380px; }
}
@media (min-width: 992px) {
  .sq-hero-m h1, .sq-hero-m .sq-slide-title { font-size: 38px; }
  .sq-hero-l h1, .sq-hero-l .sq-slide-title { font-size: 44px; }
  .sq-hero-l p { font-size: 18px; }
  .sq-hero-l .sq-hero-inner { max-width: 720px; }
}

/* Преимущества */
.sq-adv { background: var(--sq-white); border-bottom: 1px solid var(--sq-border); padding: 22px 0; }
.sq-adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.sq-adv-item { display: flex; align-items: center; gap: 13px; }
.sq-adv-item i { font-size: 26px; color: var(--sq-accent); flex: 0 0 auto; width: 30px; text-align: center; }
.sq-adv-item b { display: block; font-size: 14.5px; color: var(--sq-text); }
.sq-adv-item span { font-size: 12.5px; color: var(--sq-muted); }
/* Крупные преимущества (настройка темы): карточки, значок сверху */
.sq-adv-l { padding: 36px 0; }
.sq-adv-l .sq-adv-item {
  flex-direction: column; align-items: flex-start; gap: 14px; padding: 26px 24px;
  border: 1px solid var(--sq-border); border-radius: var(--sq-card-radius, 4px);
  background: var(--sq-white); box-shadow: var(--sq-shadow);
}
.sq-adv-l .sq-adv-item i { font-size: 40px; width: auto; text-align: left; }
.sq-adv-l .sq-adv-item b { font-size: 18px; margin-bottom: 6px; }
.sq-adv-l .sq-adv-item span { font-size: 14.5px; line-height: 1.45; }
@media (max-width: 575px) {
  .sq-adv-l { padding: 24px 0; }
  .sq-adv-l .sq-adv-grid { gap: 12px; }
  .sq-adv-l .sq-adv-item { padding: 16px 14px; gap: 10px; }
  .sq-adv-l .sq-adv-item i { font-size: 30px; }
  .sq-adv-l .sq-adv-item b { font-size: 15px; }
  .sq-adv-l .sq-adv-item span { font-size: 13px; }
}

/* Секции главной */
.sq-home-block { padding: 40px 0; }
.sq-home-block-soft { background: var(--sq-white); }
.sq-h2 { font-size: 24px; font-weight: 700; margin: 0 0 22px; color: var(--sq-text); }
.sq-sech { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.sq-sech .sq-h2 { margin: 0; }
.sq-more { font-size: 14px; color: var(--sq-accent); white-space: nowrap; }

/* Плитка категорий */
.sq-cats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sq-cat-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px; padding: 22px 16px; background: var(--sq-white);
  border: 1px solid var(--sq-border); border-radius: var(--sq-card-radius);
  transition: var(--sq-transition); color: var(--sq-text);
}
.sq-cat-tile:hover { border-color: var(--sq-accent); box-shadow: var(--sq-shadow); transform: translateY(-2px); }
.sq-cat-tile-ic { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.sq-cat-tile-ic img { max-width: 100%; max-height: 100%; }
.sq-cat-tile-ic i { font-size: 40px; color: var(--sq-primary); opacity: .85; }
.sq-cat-tile-name { font-size: 15px; font-weight: 600; }
.sq-cat-tile-count { font-size: 12.5px; color: var(--sq-muted); }

@media (max-width: 991px) {
  .sq-adv-grid { grid-template-columns: repeat(2, 1fr); }
  .sq-cats-grid { grid-template-columns: repeat(3, 1fr); }
  .sq-hero h1, .sq-hero .sq-slide-title { font-size: 28px; }
}
@media (max-width: 575px) {
  .sq-adv-grid, .sq-cats-grid { grid-template-columns: repeat(2, 1fr); }
  .sq-slide { padding: 40px 0; }
  .sq-hero h1, .sq-hero .sq-slide-title { font-size: 24px; }
}

/* ============================================================
   ПЛАШКА МЕССЕНДЖЕРОВ + ВНУТРЕННИЙ ЧАТ
   ============================================================ */
#sq-msg { position: fixed; right: 18px; bottom: 22px; z-index: 1090; display: flex; flex-direction: column; align-items: center; gap: 10px; }
#sq-msg-list { display: flex; flex-direction: column; gap: 10px; transition: opacity .2s, transform .2s; }
#sq-msg.collapsed #sq-msg-list { opacity: 0; pointer-events: none; transform: translateY(10px); }
.sq-msg-ic {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; font-weight: 700; border: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(10,18,28,.28); transition: transform .15s;
  text-decoration: none;
}
.sq-msg-ic:hover { transform: scale(1.08); color: #fff; }
.sq-msg-ic.sq-max { font-size: 13px; background: #7b2ff7; }
.sq-wa { background: #25d366; }
.sq-tg { background: #29a9eb; }
.sq-chat-btn { background: var(--sq-accent); }
#sq-msg-toggle {
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--sq-primary); color: #fff; font-size: 24px;
  box-shadow: 0 6px 18px rgba(10,18,28,.34); transition: transform .15s;
}
#sq-msg-toggle:hover { transform: scale(1.06); }

/* Чат-виджет */
#sq-chat {
  position: fixed; right: 18px; bottom: 22px; z-index: 1095; width: 340px; max-width: calc(100vw - 36px);
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 16px 44px rgba(10,18,28,.32); display: none;
}
#sq-chat.open { display: block; }
.sq-chat-head {
  background: var(--sq-primary); color: #fff; padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center; font-weight: 700;
}
.sq-chat-head button { background: none; border: none; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.sq-chat-body { padding: 16px; }
#sq-chat-form { display: flex; flex-direction: column; gap: 10px; }
#sq-chat-form input, #sq-chat-form textarea {
  border: 1px solid var(--sq-border); border-radius: var(--sq-btn-radius);
  padding: 10px 12px; font: inherit; font-size: 14px; outline: none; width: 100%; resize: vertical;
}
#sq-chat-form input:focus, #sq-chat-form textarea:focus { border-color: var(--sq-accent); }
/* галочка согласия — не поле ввода: общие правила полей чата растягивали её на всю ширину */
#sq-chat-form .sq-consent input { width: 16px; height: 16px; padding: 0; border: 0; flex: 0 0 auto; }
#sq-chat-form .sq-consent { margin: 0; }
#sq-chat-form .sq-btn { justify-content: center; }
.sq-chat-note { font-size: 11px; color: var(--sq-muted); }
#sq-chat-done { text-align: center; padding: 24px 8px; }
#sq-chat-done i { font-size: 44px; color: var(--sq-success); }
#sq-chat-done p { margin: 12px 0 0; color: var(--sq-text); }

@media (max-width: 480px) {
  .sq-msg-ic { width: 44px; height: 44px; font-size: 20px; }
  #sq-msg-toggle { width: 50px; height: 50px; font-size: 21px; }
}

/* ── Наличие по городам в карточке (модуль Warehouses) ── */
.sq-card-stock { position: relative; margin: 6px 0 2px; font-size: 12px; height: 18px; overflow: visible; white-space: nowrap; }
.sq-st { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sq-st i { font-size: 11px; }
.sq-st-in { color: var(--sq-muted); }
.sq-st-in b { color: var(--sq-text); font-weight: 600; }
.sq-st-in i { color: var(--sq-success); }
.sq-st-out { color: var(--sq-muted); }
.sq-st-out i { color: var(--sq-danger); }
.sq-st-more { color: var(--sq-accent); cursor: pointer; text-decoration: underline; text-decoration-style: dashed; white-space: nowrap; }
.sq-st-more:hover { color: var(--sq-primary); }
.sq-st-pop {
  display: none; position: absolute; left: 0; bottom: 100%; z-index: 20; margin-bottom: 6px;
  min-width: 200px; max-height: 240px; overflow-y: auto;
  background: var(--sq-white); border: 1px solid var(--sq-border); border-radius: var(--sq-card-radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.16); padding: 8px 0;
}
.sq-card-stock.pop-open .sq-st-pop { display: block; }
.sq-st-pop-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sq-muted); padding: 2px 12px 6px; }
.sq-st-pop-row { display: flex; justify-content: space-between; gap: 16px; padding: 4px 12px; font-size: 12.5px; }
.sq-st-pop-row:hover { background: var(--sq-light); }
.sq-st-pop-row span { color: var(--sq-text); }
.sq-st-pop-row b { color: var(--sq-success); font-weight: 600; white-space: nowrap; }

/* ── Статусы, медиа и характеристики в карточке ── */
.sq-card-img-wrap { position: relative; display: block; }
.sq-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.sq-badge { display: inline-flex; align-items: center; width: max-content; color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: var(--sq-card-radius); letter-spacing: .02em; }
.sq-badge-sale { background: var(--sq-danger); }
.sq-badge-hit  { background: #f5820a; }
.sq-badge-new  { background: var(--sq-success); }
.sq-media { position: absolute; top: 8px; right: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 3px; background: rgba(20,32,52,.72); color: #fff; font-size: 10.5px; font-weight: 600; padding: 3px 6px; border-radius: var(--sq-card-radius); }
/* ── Карта (виджет Яндекс/2ГИС/Google) ── */
.sq-map { margin: 20px 0; border-radius: var(--sq-radius, 4px); overflow: hidden; line-height: 0; }
.sq-map iframe { display: block; width: 100%; border: 0; max-width: 100%; }
.sq-map-footer { margin: 0; border-radius: 0; }
/* во всю ширину окна, хотя блок лежит внутри .container:
   margin-left с vw вытягивает его за поля, ширину считаем без полосы прокрутки */
.sq-map-full {
  width: 100%; border-radius: 0;
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  width: 100vw; max-width: 100vw;
}
@supports (width: 100dvw) { .sq-map-full { width: 100dvw; max-width: 100dvw; margin-left: calc(50% - 50dvw); margin-right: calc(50% - 50dvw); } }
body { overflow-x: hidden; }   /* страховка: вычисление vw с полосой прокрутки не должно давать горизонтальный скролл */

.sq-card-specs { list-style: none; margin: 8px 0 4px; padding: 0; font-size: 12px; }
.sq-card-specs li { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; border-bottom: 1px dashed var(--sq-border); }
.sq-card-specs li span:first-child { color: var(--sq-muted); }
.sq-card-specs li span:last-child { font-weight: 600; color: var(--sq-text); text-align: right; }

/* ── Галерея в плитке (листание без захода в карточку) ── */
/* высота = как у одиночного .sq-card-img (160px), чтобы карточки были ровными */
.sq-gal { position: relative; width: 100%; height: 160px; overflow: hidden; }
.sq-gal-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .15s; }
.sq-gal-img.on { opacity: 1; }
.sq-gal-zones { position: absolute; inset: 0; display: flex; z-index: 3; }
.sq-gal-zones span { flex: 1; }
.sq-gal-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; gap: 4px; justify-content: center; z-index: 4; pointer-events: none; }
.sq-gal-dots i { width: 16px; height: 3px; border-radius: 2px; background: rgba(20,32,52,.2); transition: background .15s; }
.sq-gal-dots i.on { background: var(--sq-accent); }

/* ── Подкатегории плиткой сверху (навигация) ── */
.sq-subcats { margin: 4px 0 22px; }
.sq-subcats-h { font-size: 15px; font-weight: 700; color: var(--sq-text); margin-bottom: 12px; }
.sq-subcats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.sq-subcat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 10px; background: var(--sq-white); border: 1px solid var(--sq-border); border-radius: var(--sq-card-radius); transition: var(--sq-transition); color: var(--sq-text); }
.sq-subcat:hover { border-color: var(--sq-accent); box-shadow: var(--sq-shadow); transform: translateY(-2px); color: var(--sq-primary); }
.sq-subcat-ic { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; }
.sq-subcat-ic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sq-subcat-ic i { font-size: 34px; color: var(--sq-primary); opacity: .8; }
.sq-subcat-name { font-size: 12.5px; line-height: 1.3; font-weight: 500; }
.sq-subcat-count { font-size: 11px; color: var(--sq-muted); }
.sq-subcat-cnt { color: var(--sq-muted); font-size: 12px; }
@media (max-width: 991px) { .sq-subcats-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 575px) { .sq-subcats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── «Предложение недели» в выезжающем меню ── */
#sq-flyout-promo { border-top: 2px solid var(--sq-border); padding: 12px 14px; background: var(--sq-light); margin-top: auto; }
#sq-flyout-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--sq-border);
  background: var(--sq-white);
}
#sq-flyout-promo[style*="none"] + #sq-flyout-contacts { margin-top: auto; }   /* без «Предложения» — прижать к низу */
.sq-fc-phone { font-size: 16px; font-weight: 700; color: var(--sq-dark); white-space: nowrap; }
.sq-fc-phone i { font-size: 13px; color: var(--sq-accent); margin-right: 4px; }
#sq-flyout-contacts .sq-msgr-ic { min-width: 32px; height: 32px; border-radius: 16px; font-size: 16px; }
.sq-fp-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.sq-fp-head b { font-size: 13px; color: var(--sq-danger); text-transform: uppercase; letter-spacing: .02em; }
.sq-fp-head a { font-size: 12px; color: var(--sq-accent); }
.sq-fp-gal { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.sq-fcard { flex: 0 0 118px; background: var(--sq-white); border: 1px solid var(--sq-border); border-radius: var(--sq-card-radius); padding: 8px; color: var(--sq-text); transition: border-color var(--sq-transition); }
.sq-fcard:hover { border-color: var(--sq-accent); }
.sq-fimg { display: block; height: 84px; margin-bottom: 6px; text-align: center; }
.sq-fimg img { max-height: 100%; max-width: 100%; object-fit: contain; }
.sq-fname { display: block; font-size: 11px; line-height: 1.3; height: 28px; overflow: hidden; margin-bottom: 4px; }
.sq-fprice { display: block; font-size: 12px; }
.sq-fp-new { font-weight: 800; }
.sq-fprice s { color: var(--sq-muted); font-weight: 400; font-size: 10px; margin-left: 3px; }
/* flyout — колонка, чтобы промо прижималось вниз */
#sq-flyout { display: flex; flex-direction: column; }
#sq-flyout-body { flex: 1 1 auto; overflow-y: auto; }

/* ── Фильтр наличия / городов (сайдбар) ── */
.sq-stock-filter { font-size: 13px; padding: 12px 14px; }
.sq-filter-subh { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sq-muted); margin: 12px 0 6px; }
.sq-cities { max-height: 220px; overflow-y: auto; }
.sq-fcheck { display: flex; align-items: center; gap: 7px; padding: 4px 0; cursor: pointer; color: var(--sq-text); }
.sq-fcheck input { width: 15px; height: 15px; accent-color: var(--sq-accent); flex-shrink: 0; }
.sq-home-badge { font-size: 10px; color: var(--sq-success); border: 1px solid var(--sq-success); border-radius: 3px; padding: 0 4px; margin-left: auto; }
.sq-filter-reset { font-size: 12px; color: var(--sq-accent); }

/* ── SHOPEQ Filter (параметрический подбор) ───────────────────────── */
.sq-f-block { margin-bottom: 14px; }
.sq-f-block:last-of-type { margin-bottom: 6px; }
.sq-range { display: flex; align-items: center; gap: 6px; }
.sq-range-input {
  width: 100%; padding: 6px 8px; font-size: 13px;
  border: 1px solid var(--sq-border, #d9dee5); border-radius: var(--sq-radius, 4px);
  background: var(--sq-surface, #fff); color: var(--sq-text, #1f2a37);
}
.sq-range-sep { color: var(--sq-muted, #8a94a6); }
.sq-cb-list { max-height: 190px; overflow-y: auto; padding-right: 4px; }
.sq-cb-list::-webkit-scrollbar { width: 6px; }
.sq-cb-list::-webkit-scrollbar-thumb { background: var(--sq-border, #d9dee5); border-radius: 3px; }
.sq-cb-name { flex: 1; }
.sq-cb-count { color: var(--sq-muted, #8a94a6); font-size: 11px; margin-left: auto; }
.sq-fcheck { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 2px 0; cursor: pointer; }
.sq-fcheck input { flex: 0 0 auto; }
.sq-fdisabled { opacity: .4; }
.sq-fdisabled input { cursor: not-allowed; }

/* ── SHOPEQ Filter: дуал-слайдер ─────────────────────────────────── */
.sq-slider { margin: 2px 4px 0; }
.sq-slider-rail {
  position: relative; height: 4px; margin: 20px 8px 16px;
  background: var(--sq-border, #d9dee5); border-radius: 2px;
}
.sq-slider-fill {
  position: absolute; top: 0; height: 100%;
  background: var(--sq-primary, #2f6fed); border-radius: 2px;
}
.sq-slider-h {
  position: absolute; left: 0; top: 0; width: 100%; height: 4px; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none;
}
.sq-slider-h:focus { outline: none; }
.sq-slider-h::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.sq-slider-h::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; margin-top: -6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid var(--sq-primary, #2f6fed); cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.sq-slider-h::-moz-range-track { height: 4px; background: transparent; }
.sq-slider-h::-moz-range-thumb {
  pointer-events: auto; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 2px solid var(--sq-primary, #2f6fed); cursor: pointer;
}

/* ── SHOPEQ SEO: чипсы «Быстрый отбор» + текст среза ──────────────── */
.sq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.sq-chip {
  display: inline-block; padding: 6px 14px; font-size: 13px; line-height: 1.2;
  border: 1px solid var(--sq-border, #d9dee5); border-radius: 999px;
  background: var(--sq-surface, #fff); color: var(--sq-text, #1f2a37);
  text-decoration: none; transition: all .15s;
}
.sq-chip:hover { border-color: var(--sq-primary, #2f6fed); color: var(--sq-primary, #2f6fed); }
.sq-chip-active { background: var(--sq-primary, #2f6fed); border-color: var(--sq-primary, #2f6fed); color: #fff; }
.sq-slice-text { margin: 4px 0 16px; color: var(--sq-muted, #55606f); font-size: 14px; line-height: 1.6; }

/* ── Счётчики на иконках шапки ───────────────────────────── */
.sq-icon-btn { position: relative; }

.sq-badge-count {
  position: absolute;
  top: -4px;
  right: 4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--sq-cta);
  color: var(--sq-cta-color);
  font-size: 11px;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
}

/* ── Плашки исполнений (раскладка — в блоке карточки, здесь база плашки; её же берёт категория) ── */
.sq-chip {
  display: inline-block;
  padding: 4px 11px;
  border: 1px solid var(--sq-border, #d7dde6);
  border-radius: var(--sq-radius, 4px);
  background: #fff;
  font-size: 13px;
  line-height: 1.4;
  color: #24303f;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
a.sq-chip:hover {
  border-color: var(--sq-primary, #1e4d7b);
  color: var(--sq-primary, #1e4d7b);
  text-decoration: none;
}
.sq-chip-active {
  border-color: var(--sq-primary, #1e4d7b);
  background: var(--sq-primary, #1e4d7b);
  color: #fff;
  cursor: default;
}
span.sq-chip:not(.sq-chip-active) { color: #9aa4b2; }

/* ── Текст о компании на главной ─────────────────────────── */
.sq-about {
  padding: 36px 0 44px;
  background: var(--sq-white);
  border-top: 1px solid var(--sq-border);
}
.sq-about-body {
  position: relative;
  color: var(--sq-text);
  font-size: 15px;
  line-height: 1.7;
  max-width: 900px;
}
.sq-about-body p  { margin: 0 0 14px; }
.sq-about-body h3 { font-size: 17px; margin: 22px 0 10px; }
.sq-about-body ul, .sq-about-body ol { margin: 0 0 14px; padding-left: 22px; }
.sq-about-body li { margin-bottom: 6px; }
.sq-about-body img { max-width: 100%; height: auto; border-radius: var(--sq-radius); }
.sq-about-body table { max-width: 100%; }
.sq-about-body a { color: var(--sq-accent); }

/* Длинный SEO-текст сворачиваем: он нужен поисковику, но не должен
   растягивать главную на три экрана. Класс снимает JS, если текст короткий. */
.sq-about-collapsed .sq-about-body {
  max-height: 260px;
  overflow: hidden;
}
.sq-about-collapsed .sq-about-body::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(rgba(255,255,255,0), var(--sq-white));
  pointer-events: none;
}
.sq-about-open .sq-about-body { max-height: none; }
.sq-about-open .sq-about-body::after { display: none; }

.sq-about-more {
  margin-top: 12px;
  background: none;
  border: 1px solid var(--sq-border);
  border-radius: var(--sq-radius);
  padding: 7px 16px;
  color: var(--sq-accent);
  font-size: 14px;
  cursor: pointer;
}
.sq-about-more:hover { border-color: var(--sq-accent); }

/* ── Видео в галерее карточки ────────────────────────────── */
.sq-main-video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--sq-radius, 4px); overflow: hidden; }
.sq-main-video iframe, .sq-main-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sq-gallery-zoom[hidden] { display: none; }

.sq-thumb-video { position: relative; background: #1d2127; }
.sq-thumb-video-bg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #2b3340, #1d2127); }
.sq-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,.65); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; padding-left: 2px; pointer-events: none;
}
.sq-thumb-video.active .sq-play, .sq-thumb-video:hover .sq-play { background: var(--sq-accent, #0095b7); }

/* значок «есть видео» на плитке */
.sq-badge-video { background: #1d2127; color: #fff; width: 22px; height: 22px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 9px; }

/* ── Лайтбокс ────────────────────────────────────────────── */
.sq-lightbox {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(10, 12, 16, .92);
  display: flex; align-items: center; justify-content: center;
}
.sq-lightbox[hidden] { display: none; }
.sq-lb-stage { max-width: 92vw; max-height: 88vh; display: flex; align-items: center; justify-content: center; }
.sq-lb-stage img { max-width: 92vw; max-height: 88vh; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.sq-lb-video { width: min(92vw, 1100px); aspect-ratio: 16 / 9; background: #000; position: relative; }
.sq-lb-video iframe, .sq-lb-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sq-lb-close, .sq-lb-arrow {
  position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.sq-lb-close:hover, .sq-lb-arrow:hover { background: rgba(255,255,255,.2); }
.sq-lb-close { top: 16px; right: 16px; font-size: 32px; }
.sq-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.sq-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.sq-lb-single .sq-lb-arrow { display: none; }
.sq-lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 13px; }
@media (max-width: 760px) {
  .sq-lb-close, .sq-lb-arrow { width: 40px; height: 40px; font-size: 24px; }
  .sq-lb-prev { left: 6px; } .sq-lb-next { right: 6px; }
}

/* ── Вкладка «Документы» ─────────────────────────────────── */
.sq-tab-count { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 9px; background: var(--sq-light, #eef2f6); color: var(--sq-muted, #7a8596); font-size: 11px; }
.sq-doc-list { list-style: none; margin: 0; padding: 0; }
.sq-doc a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--sq-border, #e3e8ef); border-radius: var(--sq-radius, 4px);
  margin-bottom: 8px; color: var(--sq-text, #24303f); text-decoration: none; transition: border-color .15s;
}
.sq-doc a:hover { border-color: var(--sq-accent, #0095b7); color: var(--sq-accent, #0095b7); }
.sq-doc i { font-size: 22px; width: 26px; text-align: center; flex: 0 0 auto; }
.sq-doc-link i { color: var(--sq-accent, #0095b7); }
.sq-doc i.sq-doc-ext { font-size: 12px; width: auto; color: var(--sq-muted, #7a8596); }
.sq-doc-pdf i { color: #d9363e; } .sq-doc-doc i { color: #2b579a; } .sq-doc-xls i { color: #217346; } .sq-doc-zip i, .sq-doc-file i { color: var(--sq-muted, #7a8596); }
.sq-doc span { flex: 1; }
.sq-doc small { color: var(--sq-muted, #7a8596); font-size: 11px; letter-spacing: .04em; }

/* ── Карта разделов ─────────────────────────────────────────────────────── */
.sq-catmap{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px 32px;margin:8px 0 32px}
.sq-catmap-root{break-inside:avoid}
.sq-catmap-h2{font-size:17px;font-weight:700;margin:0 0 8px}
.sq-catmap-h2 a{color:var(--sq-brand,#1e4d7b);text-decoration:none}
.sq-catmap-h2 a:hover{text-decoration:underline}
.sq-catmap-list{list-style:none;margin:0;padding:0 0 0 14px;border-left:1px solid #e3e7ec}
.sq-catmap-list li{margin:4px 0;font-size:14px}
.sq-catmap-list a{color:#333;text-decoration:none}
.sq-catmap-list a:hover{color:var(--sq-accent,#0095b7)}
.sq-catmap-l3 li,.sq-catmap-l4 li,.sq-catmap-l5 li{font-size:13px;color:#666}

/* ── Шапка на телефоне ───────────────────────────────────────
   В одну строку логотип, каталог, поиск и четыре иконки с подписями
   не помещались уже на 390px: строка распирала документ, и вся страница
   (баннер, преимущества, плитки) уезжала за правый край. Теперь две
   строки: логотип, каталог и иконки без подписей / поиск на всю ширину;
   меню страниц — одной строкой с прокруткой. */
@media (max-width: 767px) {
  #sq-header { padding: 8px 0; }
  #sq-header .container { flex-wrap: wrap; gap: 8px; }
  #sq-logo img { max-height: 40px; }
  #sq-catalog-btn { height: 40px; padding: 0 12px; }
  #sq-header-icons { margin-left: auto; gap: 0; }
  .sq-icon-btn { height: 40px; padding: 0 8px; }
  .sq-icon-btn span:not(.sq-badge-count) { display: none; }
  #sq-search-wrap { order: 10; flex: 1 0 100%; min-width: 0; }
  #sq-search-wrap #search input[type="text"] { width: 0; min-width: 0; height: 40px; }
  #sq-search-wrap #search button { height: 40px; }

  #sq-infonav .container { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  #sq-infonav .container::-webkit-scrollbar { display: none; }
  #sq-infonav a { white-space: nowrap; padding: 10px 12px; }

  #sq-topbar { padding: 4px 0; }
  .sq-topbar-right { gap: 12px; }
}
/* Плитки в две колонки на телефоне: колонка 1fr не уже содержимого плитки
   (~203px) — две не влезали в 360px и раздвигали страницу. minmax(0, 1fr)
   разрешает сжаться; длинное внутри плитки переносится, а не распирает. */
/* На любой ширине: плитка сжимается в свою колонку сетки (min-width: 0 —
   иначе колонка 1fr не уже содержимого), длинные слова переносятся. Без
   этого 3 колонки рядом с фильтром раздвигали страницу и на планшете (900px). */
.sq-product-wrap, .sq-card, .sq-card-body { min-width: 0; }
.sq-card { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 767px) {
  .sq-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* номера страниц переносятся, а не тянут раздел вправо */
  .sq-pagination .pagination { flex-wrap: wrap; }
}
/* Узкая плитка (две в ряд на телефоне): «В корзину» на всю ширину,
   сравнение и избранное — строкой ниже пополам; в одну строку не влезали */
@media (max-width: 991px) {
  .sq-products-grid:not(.sq-list-view) .sq-card-actions { flex-wrap: wrap; }
  .sq-products-grid:not(.sq-list-view) .sq-btn-cart { flex: 1 1 100%; }
  .sq-products-grid:not(.sq-list-view) .sq-icon-action { flex: 1 1 0; width: auto; }
  /* характеристика — название над значением: в узкой плитке рядом они
     рвались посреди слова («Грузоподъемнос-ть», «250 / кг») */
  .sq-products-grid:not(.sq-list-view) .sq-card-specs li { flex-direction: column; gap: 0; }
  .sq-products-grid:not(.sq-list-view) .sq-card-specs li span:last-child { text-align: left; }
  .sq-products-grid:not(.sq-list-view) .sq-card { overflow-wrap: break-word; }
}

/* Планшет (768–1199): строка шапки — без подписей у иконок и без текста
   на кнопке каталога; поиск сжимается (иначе кнопка поиска уезжала под поле) */
#sq-search-wrap { min-width: 0; }
#sq-search-wrap #search input[type="text"] { width: 0; min-width: 0; }
@media (max-width: 991px) {
  .sq-icon-btn span:not(.sq-badge-count) { display: none; }
  .sq-icon-btn { padding: 0 8px; }
  #sq-catalog-btn span { display: none; }
}
/* Панель над товарами: «Показано с 1 по 10 из 327 (Страниц: 33)» и сортировка
   в одну строку не влезают в телефон — переносятся, а не раздвигают раздел */
@media (max-width: 767px) {
  .sq-toolbar { flex-wrap: wrap; }
  .sq-toolbar > * { min-width: 0; }
  .sq-results-text { flex: 1 1 100%; }
  /* раздел в колонку: фильтр и товары — по ширине экрана, а не по содержимому
     (с flex-start область товаров брала ширину двух несжатых плиток) */
  .sq-cat-layout { align-items: stretch; }
}

/* ── Страница «Контакты»: связь, склады с картами, форма, реквизиты ──────── */
.sq-contact-page h1 { margin-bottom: 8px; }
.sq-ct-lead { color: var(--sq-muted); max-width: 820px; margin-bottom: 20px; }
.sq-ct-h2 { font-size: 22px; font-weight: 700; margin: 32px 0 10px; }
.sq-ct-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sq-ct-card {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--sq-white); border: 1px solid var(--sq-border); border-radius: var(--sq-card-radius);
  padding: 16px;
}
.sq-ct-card > i { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--sq-light); color: var(--sq-accent); font-size: 15px; }
.sq-ct-card > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.sq-ct-card b { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--sq-muted); margin-bottom: 2px; }
.sq-ct-card a { color: var(--sq-text); }
.sq-ct-card a:hover { color: var(--sq-accent); }
.sq-ct-big { font-size: 17px; font-weight: 700; }
.sq-ct-small { font-size: 12px; color: var(--sq-muted); }
.sq-ct-msgr { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.sq-ct-msgr a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

.sq-wh { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.sq-wh-list {
  display: flex; flex-direction: column; background: var(--sq-white);
  border: 1px solid var(--sq-border); border-radius: var(--sq-card-radius); padding: 6px; position: sticky; top: 110px;
}
.sq-wh-list a { padding: 7px 12px; border-radius: var(--sq-btn-radius); color: var(--sq-text); font-size: 14px; }
.sq-wh-list a:hover { background: var(--sq-light); color: var(--sq-accent); }
.sq-wh-list a.active { background: var(--sq-accent); color: #fff; }
.sq-wh-city { display: none; background: var(--sq-white); border: 1px solid var(--sq-border); border-radius: var(--sq-card-radius); overflow: hidden; }
.sq-wh-city.active { display: block; }
.sq-wh-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--sq-border); }
.sq-wh-head h3 { margin: 0; font-size: 20px; font-weight: 700; }
.sq-wh-badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: #e6f9ee; color: #1a7a40; }
.sq-wh-badge-keep { background: #fff4e5; color: #9a5b00; }
.sq-wh-body { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
.sq-wh-info { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.sq-wh-row { display: flex; gap: 12px; }
.sq-wh-row > i { flex: 0 0 18px; color: var(--sq-accent); margin-top: 3px; text-align: center; }
.sq-wh-row > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 14px; }
.sq-wh-row b { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--sq-muted); }
.sq-wh-row a[data-map] { color: var(--sq-text); border-bottom: 1px dashed transparent; align-self: flex-start; }
.sq-wh-row a[data-map].active { font-weight: 600; }
.sq-wh-row a[data-map]:not(.active) { border-bottom-color: currentColor; color: var(--sq-accent); }
.sq-wh-ops { margin: 0; padding-left: 18px; }
.sq-wh-map { min-height: 420px; background: var(--sq-light); border-left: 1px solid var(--sq-border); }
.sq-wh-map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }

.sq-ct-form { max-width: 760px; }
.sq-ct-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 1rem; }
.sq-ct-requisites {
  margin: 32px 0 8px; padding: 16px 18px; display: flex; flex-direction: column; gap: 3px;
  background: var(--sq-light); border: 1px solid var(--sq-border); border-radius: var(--sq-card-radius); font-size: 13px;
}
.sq-ct-requisites b { margin-bottom: 4px; }

@media (max-width: 1199px) { .sq-ct-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991px) {
  .sq-wh { grid-template-columns: minmax(0, 1fr); }
  .sq-wh-list { flex-direction: row; flex-wrap: wrap; gap: 4px; position: static; }
  .sq-wh-body { grid-template-columns: minmax(0, 1fr); }
  .sq-wh-map { border-left: 0; border-top: 1px solid var(--sq-border); min-height: 300px; }
  .sq-wh-map iframe { min-height: 300px; }
}
@media (max-width: 575px) {
  .sq-ct-cards, .sq-ct-fields { grid-template-columns: minmax(0, 1fr); }
  .sq-wh-list a { padding: 6px 10px; font-size: 13px; }
}

/* ── Режим магазина «Быстрый заказ»: заявка из корзины ── */
.sq-cart-request {
  margin-top: 8px; padding: 20px 22px; border: 1px solid var(--sq-border, #e3e7ee);
  border-radius: var(--sq-radius, 4px); background: var(--sq-surface, #fff);
}
.sq-cr-title { font-size: 20px; margin: 0 0 6px; }
.sq-cr-lead { color: var(--sq-muted, #7a8596); margin: 0 0 16px; max-width: 720px; }
.sq-cr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.sq-cart-request textarea.sq-input { resize: vertical; min-height: 72px; }
.sq-cr-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.sq-cr-done { margin-top: 12px; }
.sq-cr-actions .sq-btn { width: auto; flex: 0 0 auto; min-width: 260px; justify-content: center; }
@media (max-width: 767px) {
  .sq-cr-grid { grid-template-columns: minmax(0, 1fr); }
  .sq-cart-request { padding: 16px; }
  .sq-cr-actions { flex-direction: column-reverse; align-items: stretch; }
  .sq-cr-actions .sq-btn, .sq-cr-actions .btn { width: 100%; min-width: 0; }
}

/* ── Плановое поступление у товара «под заказ» ── */
.sq-supply { margin-top: 10px; }
.sq-supply-head { font-size: 13px; color: var(--sq-text, #1f2937); margin-bottom: 4px; }
.sq-supply-head i { color: var(--sq-accent, #0095b7); margin-right: 4px; }
.sq-supply-tile { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-size: 11.5px; color: var(--sq-muted, #7a8596); white-space: nowrap; }
.sq-supply-tile i { color: var(--sq-accent, #0095b7); }

/* ── Товар «под заказ» (нет в номенклатуре): цена по запросу ── */
.sq-on-request { font-size: 16px; font-weight: 600; color: var(--sq-muted, #7a8596); }
.sq-pc-price .sq-on-request { font-size: 20px; }
a.sq-btn-request { text-decoration: none; justify-content: center; }

/* ── Фильтр раздела на телефоне: кнопка над товарами, колонка — выезжающая панель ── */
.sq-filter-open, .sq-sidebar-head, .sq-sidebar-overlay { display: none; }
@media (max-width: 768px) {
  .sq-filter-open {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 16px;
    border: 1px solid var(--sq-border, #e3e7ee); border-radius: var(--sq-btn-radius, 4px);
    background: var(--sq-surface, #fff); color: var(--sq-text, #1f2937); font: inherit; font-weight: 600; cursor: pointer;
  }
  .sq-filter-open i { color: var(--sq-accent, #0095b7); }
  .sq-filter-open-n {
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 12px; line-height: 20px; text-align: center;
    background: var(--sq-accent, #0095b7); color: #fff;
  }
  .sq-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 1060; width: min(360px, 88vw) !important;
    margin: 0; padding: 0 16px 24px; overflow-y: auto; background: var(--sq-bg, #f4f6f9);
    transform: translateX(-105%); transition: transform .25s ease; box-shadow: 0 0 24px rgba(0,0,0,.18);
  }
  .sq-sidebar.open { transform: none; }
  .sq-sidebar-head {
    display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1;
    margin: 0 -16px 12px; padding: 14px 16px; background: var(--sq-surface, #fff); border-bottom: 1px solid var(--sq-border, #e3e7ee);
    font-weight: 700; font-size: 16px;
  }
  .sq-sidebar-head i { color: var(--sq-accent, #0095b7); margin-right: 6px; }
  .sq-sidebar-close { border: 0; background: none; font-size: 28px; line-height: 1; padding: 0 4px; color: var(--sq-muted, #7a8596); cursor: pointer; }
  /* «Показать» — всегда под рукой, внизу панели */
  .sq-sidebar #sq-filter-form > button[type="submit"], .sq-sidebar .sq-stock-filter > button[type="submit"] {
    position: sticky; bottom: 0; z-index: 1; box-shadow: 0 -8px 16px var(--sq-bg, #f4f6f9);
  }
  .sq-sidebar-overlay { display: block; position: fixed; inset: 0; z-index: 1050; background: rgba(15, 23, 42, .45); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .sq-sidebar-overlay.open { opacity: 1; pointer-events: auto; }
  body.sq-noscroll { overflow: hidden; }
  /* блоки колонки обрезают углы overflow: hidden — с ним «Показать» не прилипает к низу панели */
  .sq-sidebar .sq-filter-section { overflow: visible; }
  /* плавающие кнопки чата и мессенджеров закрывали бы «Показать» */
  body.sq-noscroll .sq-msg-ic, body.sq-noscroll #sq-chat { display: none !important; }
}
.sq-spec-h { display: block; border-bottom: 0; }
.sq-spec-name { word-break: break-word; }

/* ── Блоки контентных страниц (sq-pg-*) ─────────────────────────
 * Для «О компании», «Доставка», «Оплата» и т. п.: разметка вставляется
 * в описание статьи (Каталог → Статьи, режим кода). Цвета — из схемы
 * темы, поэтому страницы перекрашиваются вместе с сайтом.
 *   .sq-pg            обёртка
 *   .sq-pg-hero       заголовок-вступление (+ картинка справа)
 *   .sq-pg-stats      цифры в плашках
 *   .sq-pg-cards      карточки разделов с картинкой
 *   .sq-pg-feats      преимущества с иконкой (.sq-pg-alt — второй цвет)
 *   .sq-pg-steps      шаги с номером
 *   .sq-pg-cols       колонки-списки с галочками
 *   .sq-pg-note       примечание (.sq-pg-info — справочное)
 *   .sq-pg-cta        тёмная плашка «позвоните/напишите»
 * ─────────────────────────────────────────────────────────── */
.sq-pg { font-size: 15px; line-height: 1.6; color: var(--sq-text); }
.sq-pg h2 { font-size: 24px; font-weight: 700; margin: 36px 0 16px; color: var(--sq-text); }
.sq-pg h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; color: var(--sq-text); }
.sq-pg p { margin: 0 0 12px; }
.sq-pg-lead { font-size: 17px; line-height: 1.55; color: var(--sq-muted); }

.sq-pg-hero { display: flex; gap: 36px; align-items: center; margin: 0 0 8px; }
.sq-pg-hero > div { flex: 1 1 55%; }
.sq-pg-hero > img { flex: 0 1 38%; max-width: 380px; width: 100%; height: auto; display: block; }
.sq-pg-title { font-size: 30px; font-weight: 700; line-height: 1.2; margin: 0 0 14px; color: var(--sq-text); }
.sq-pg-title span { color: var(--sq-accent); }

.sq-pg-stats { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0; }
.sq-pg-stats > div { flex: 1 1 150px; padding: 16px 18px; background: var(--sq-white); border: 1px solid var(--sq-border);
  border-top: 3px solid var(--sq-accent); border-radius: var(--sq-card-radius); }
.sq-pg-stats b { display: block; font-size: 28px; font-weight: 700; line-height: 1.1; color: var(--sq-primary); }
.sq-pg-stats span { font-size: 13px; color: var(--sq-muted); }

.sq-pg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin: 0 0 8px; }
.sq-pg-card { display: flex; flex-direction: column; background: var(--sq-white); border: 1px solid var(--sq-border);
  border-radius: var(--sq-card-radius); overflow: hidden; transition: box-shadow var(--sq-transition), transform var(--sq-transition); }
.sq-pg-card:hover { box-shadow: 0 8px 22px rgba(20, 32, 52, .12); transform: translateY(-2px); }
.sq-pg-card > img { width: 100%; height: 170px; object-fit: contain; padding: 14px; background: var(--sq-white); display: block; }
.sq-pg-card > div { flex: 1; display: flex; flex-direction: column; padding: 4px 18px 16px; }
.sq-pg-card ul { list-style: none; margin: 0 0 12px; padding: 0; font-size: 14px; color: var(--sq-muted); flex: 1; }
.sq-pg-card li { position: relative; padding: 2px 0 2px 14px; }
.sq-pg-card li::before { content: ''; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--sq-accent); }
.sq-pg-more { font-weight: 600; font-size: 14px; color: var(--sq-accent); }
.sq-pg-more:hover { color: var(--sq-primary); }

.sq-pg-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; margin: 0 0 8px; }
.sq-pg-feat { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: var(--sq-white);
  border: 1px solid var(--sq-border); border-radius: var(--sq-card-radius); }
.sq-pg-feat > i { flex: 0 0 48px; width: 48px; height: 48px; line-height: 48px; text-align: center; font-size: 20px;
  border-radius: 50%; color: var(--sq-white); background: var(--sq-accent); }
.sq-pg-alt .sq-pg-feat > i { background: var(--sq-primary); }
.sq-pg-feat h3 { font-size: 16px; margin: 2px 0 6px; }
.sq-pg-feat p { margin: 0; font-size: 14px; color: var(--sq-muted); }

.sq-pg-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 22px 16px; margin: 14px 0 8px; counter-reset: sqpg; }
.sq-pg-step { position: relative; padding: 24px 20px 18px; background: var(--sq-white); border: 1px solid var(--sq-border); border-radius: var(--sq-card-radius); }
.sq-pg-step::before { counter-increment: sqpg; content: counter(sqpg); position: absolute; top: -14px; left: 18px; width: 30px; height: 30px;
  line-height: 30px; text-align: center; border-radius: 50%; font-weight: 700; font-size: 14px; color: var(--sq-white); background: var(--sq-accent); }
.sq-pg-step > i { display: block; font-size: 28px; margin: 2px 0 10px; color: var(--sq-primary); }
.sq-pg-step p { margin: 0 0 6px; font-size: 14px; color: var(--sq-muted); }
.sq-pg-tag { display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 3px; font-size: 13px; font-weight: 600;
  color: var(--sq-primary); background: var(--sq-light); }

.sq-pg-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin: 0 0 8px; }
.sq-pg-col { padding: 18px 20px; background: var(--sq-white); border: 1px solid var(--sq-border); border-radius: var(--sq-card-radius); }
.sq-pg-col h3 { font-size: 15px; color: var(--sq-primary); margin: 0 0 6px; }
.sq-pg-col ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.sq-pg-col li { position: relative; padding: 4px 0 4px 22px; }
.sq-pg-col li::before { content: ''; position: absolute; left: 3px; top: 9px; width: 10px; height: 6px;
  border-left: 2px solid var(--sq-success); border-bottom: 2px solid var(--sq-success); transform: rotate(-45deg); }
.sq-pg-or { display: block; padding: 0 0 0 22px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--sq-muted); }

.sq-pg-note { display: flex; gap: 14px; align-items: flex-start; margin: 18px 0; padding: 16px 20px; border-radius: var(--sq-card-radius);
  background: #fff6ec; border-left: 4px solid #f08c00; }
.sq-pg-note > i { flex: 0 0 auto; margin-top: 3px; font-size: 18px; color: #f08c00; }
.sq-pg-note p { margin: 0; font-size: 14px; }
.sq-pg-note.sq-pg-info { background: var(--sq-white); border: 1px solid var(--sq-border); border-left: 4px solid var(--sq-accent); }
.sq-pg-note.sq-pg-info > i { color: var(--sq-accent); }
.sq-pg-small { font-size: 13px; color: var(--sq-muted); }

.sq-pg-cta { display: flex; flex-wrap: wrap; gap: 20px 30px; align-items: center; justify-content: space-between; margin: 36px 0 12px;
  padding: 28px 32px; border-radius: var(--sq-card-radius); color: var(--sq-white); background: var(--sq-dark); }
.sq-pg-cta h2 { margin: 0 0 6px; font-size: 22px; color: var(--sq-white); }
.sq-pg-cta p { margin: 0; max-width: 560px; color: rgba(255, 255, 255, .75); }
.sq-pg-cta .sq-pg-phone { display: block; font-size: 24px; font-weight: 700; white-space: nowrap; color: var(--sq-white); }
.sq-pg-cta .sq-pg-phone small { display: block; font-size: 13px; font-weight: 400; color: rgba(255, 255, 255, .7); }
.sq-pg-cta .sq-pg-btn { display: inline-block; margin-top: 12px; padding: 10px 24px; border-radius: var(--sq-btn-radius); font-weight: 600;
  color: var(--sq-btn-color); background: var(--sq-btn-bg); }
.sq-pg-cta .sq-pg-btn:hover { color: var(--sq-btn-color); filter: brightness(1.1); }

@media (max-width: 767px) {
  .sq-pg-hero { flex-direction: column-reverse; gap: 12px; }
  .sq-pg-hero > img { max-width: 240px; }
  .sq-pg-title { font-size: 23px; }
  .sq-pg h2 { font-size: 20px; margin-top: 26px; }
  .sq-pg-cta { padding: 22px 18px; }
}

/* ── Панель над товарами: сортировка и «Показывать» ── */
.sq-tb-sel { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; color: var(--sq-muted); white-space: nowrap; }
.sq-tb-sel select {
  max-width: 220px; padding: 4px 8px; font-size: 13px; font-family: var(--sq-font); color: var(--sq-text); cursor: pointer;
  background: var(--sq-white); border: 1px solid var(--sq-border); border-radius: var(--sq-btn-radius);
}
.sq-tb-sel select:focus { outline: none; border-color: var(--sq-accent); }
@media (max-width: 767px) {
  .sq-tb-sel > span { display: none; }
  .sq-tb-sort { flex: 1 1 auto; }
  .sq-tb-sort select { width: 100%; max-width: none; }
}

/* ── Горизонтальный фильтр (настройка темы «Расположение фильтра») ──
 * Та же разметка колонки: каждое свойство — кнопка, значения выпадают
 * под ней. На телефоне — как вертикальный, выезжающая панель. */
.sq-f-n { display: none; }
@media (min-width: 769px) {
  .sq-layout-h { flex-direction: column; align-items: stretch; gap: 0; }
  .sq-layout-h .sq-sidebar { flex: none; width: 100%; }
  .sq-layout-h .sq-filter-section { overflow: visible; margin-bottom: 14px; }
  .sq-layout-h .sq-filter-heading { display: none; }
  .sq-layout-h .sq-stock-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; }
  .sq-layout-h .sq-f-block { position: relative; margin: 0; }
  .sq-layout-h .sq-f-block > .sq-filter-subh {
    display: flex; align-items: center; gap: 6px; margin: 0; padding: 7px 12px; cursor: pointer; user-select: none;
    font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--sq-text);
    background: var(--sq-white); border: 1px solid var(--sq-border); border-radius: var(--sq-btn-radius);
    transition: border-color var(--sq-transition), color var(--sq-transition);
  }
  .sq-layout-h .sq-f-block > .sq-filter-subh::after {
    content: ''; width: 6px; height: 6px; margin: -3px 0 0 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); opacity: .6; transition: transform var(--sq-transition);
  }
  .sq-layout-h .sq-f-block.open > .sq-filter-subh::after { transform: rotate(-135deg); margin-top: 3px; }
  .sq-layout-h .sq-f-block > .sq-filter-subh:hover,
  .sq-layout-h .sq-f-block.open > .sq-filter-subh { border-color: var(--sq-accent); color: var(--sq-accent); }
  .sq-layout-h .sq-f-on > .sq-filter-subh { border-color: var(--sq-accent); color: var(--sq-accent); background: var(--sq-light); }
  .sq-layout-h .sq-f-n {
    display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; line-height: 18px;
    text-align: center; color: var(--sq-white); background: var(--sq-accent);
  }
  .sq-layout-h .sq-f-block > :not(.sq-filter-subh) { display: none; }
  .sq-layout-h .sq-f-block.open > :not(.sq-filter-subh) {
    display: block; position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 260px; max-width: 340px; padding: 12px 14px;
    background: var(--sq-white); border: 1px solid var(--sq-border); border-radius: var(--sq-card-radius); box-shadow: 0 10px 28px rgba(20, 32, 52, .16);
  }
  .sq-layout-h .sq-f-block.open > .sq-cb-list, .sq-layout-h .sq-f-block.open > .sq-cities { max-height: 300px; overflow-y: auto; }
  /* «только в наличии» — галочка прямо в строке, без выпадашки */
  .sq-layout-h .sq-f-block.sq-f-stock > .sq-filter-subh { display: none; }
  .sq-layout-h .sq-f-block.sq-f-stock > label { display: flex; padding: 7px 4px; font-size: 13px; }
  .sq-layout-h .sq-stock-filter > button[type="submit"] { width: auto !important; margin: 0 0 0 auto !important; padding: 7px 18px; }
  .sq-layout-h .sq-stock-filter > div:not(.sq-f-block) { margin: 0 !important; }
}
@media (min-width: 1200px) {
  .sq-layout-h .sq-products-grid:not(.sq-list-view) { grid-template-columns: repeat(5, 1fr); }
}
