

/* Start:/local/templates/santerika/components/bitrix/catalog.smart.filter/santerika/style.css?178327154717062*/
/* ===================== FILTER PANEL ===================== */

.filter-panel {
  min-width: 0;
}

.filter-panel__header {
  display: none;
}

.filter-panel__form {
  margin: 0;
}

.filter-panel__special {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e9e9e9;
  color: #777;
  font-weight: 600;
  cursor: pointer;
}

/* ---- Переключатель (switch) ---- */
.filter-panel__switch-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-panel__special.disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.filter-panel__switch {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 20px;
  background: #d9d9d9;
  transition: background 0.2s ease;
}

.filter-panel__switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.filter-panel__switch-input:checked+.filter-panel__switch {
  background: #168fc7;
}

.filter-panel__switch-input:checked+.filter-panel__switch::after {
  transform: translateX(14px);
}

/* ===================== FILTER GROUP ===================== */

.filter-group {
  border-top: 1px solid #ececec;
  padding: 12px 0;
}

.filter-group:first-of-type {
  border-top: 0;
}

.filter-group__toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 4px 24px 4px 0;
  border: 0;
  background: none;
  color: #2d2a2a;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.filter-group__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 4px;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid #999;
  border-bottom: 2px solid #999;
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.filter-group--open .filter-group__toggle::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.filter-group__hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e5e5e5;
  color: #777;
  font-size: 11px;
  font-style: normal;
  cursor: help;
}

.filter-group__body {
  display: none;
  padding-top: 14px;
}

.filter-group--open .filter-group__body {
  display: block;
}

/* ===================== PRICE FILTER ===================== */

.price-filter__inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.price-filter__field {
  display: grid;
  gap: 4px;
}

.price-filter__field-label {
  color: #888;
  font-size: 12px;
}

.price-filter__num {
  width: 100%;
  min-height: 30px;
  padding: 0 10px;
  border: 2px solid #e5e5e5;
  border-radius: 4px;
  color: #333;
  background: #fff;
  font-size: 14px;
}

.price-filter__num:focus {
  border-color: #168fc7;
  outline: none;
}

/* ---- Родной слайдер Битрикса (bx-ui-slider) ---- */
.bx-ui-slider-track-container {
  padding: 0 4px;
  margin-bottom: 6px;
}

.bx-ui-slider-track {
  position: relative;
  height: 3px;
  margin: 8px 4px 10px;
  background: #e3e3e3;
}

.bx-ui-slider-part {
  position: absolute;
  top: -22px;
  width: 1px;
  height: 8px;
  background: #d6d6d6;
}

.bx-ui-slider-part span {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  color: #999;
  font-size: 10px;
  white-space: nowrap;
}

.bx-ui-slider-part.p1 {
  left: 0;
}

.bx-ui-slider-part.p1 span {
  left: 0;
  transform: none;
}

.bx-ui-slider-part.p2 {
  left: 25%;
}

.bx-ui-slider-part.p3 {
  left: 50%;
}

.bx-ui-slider-part.p4 {
  left: 75%;
}

.bx-ui-slider-part.p5 {
  left: 100%;
}

.bx-ui-slider-part.p5 span {
  left: auto;
  right: 0;
  transform: none;
}

.bx-ui-slider-pricebar-vd,
.bx-ui-slider-pricebar-vn,
.bx-ui-slider-pricebar-v {
  position: absolute;
  top: 0;
  height: 3px;
}

.bx-ui-slider-pricebar-vn {
  background: #e3e3e3;
}

.bx-ui-slider-pricebar-vd {
  background: #f2f2f2;
}

.bx-ui-slider-pricebar-v {
  background: #168fc7;
}

.bx-ui-slider-range {
  position: absolute;
  top: 0;
  height: 3px;
}

.bx-ui-slider-handle {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: #168fc7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.bx-ui-slider-handle.left {
  margin-left: -8px;
}

.bx-ui-slider-handle.right {
  margin-right: -8px;
}

/* ===================== FILTER LIST (единый вид: бренд / коллекции / цвет) ===================== */

.filter-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.filter-list__item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.filter-list__item.disabled {
  opacity: 0.45;
}

.filter-list__label.disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.filter-list__label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
}

/* Нативный чекбокс скрыт — как у образца цвета */
.filter-list__label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Единый квадратный образец слева (цвет / лого бренда).
   Для значений без картинки служит индикатором выбора. */
.filter-list__logo {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-list__name {
  color: #333;
  font-size: 13px;
}

/* Активное состояние — рамка образца + подсветка названия */
.filter-list__label.bx-active .filter-list__logo,
.filter-list__label input:checked ~ .filter-list__logo {
  border-color: #008fd0;
  box-shadow: 0 0 0 1px #008fd0;
}

/* Пустой квадрат (значения без картинки, напр. «Коллекции») —
   работает как чекбокс: галочка при выборе */
.filter-list__logo--empty {
  position: relative;
}

.filter-list__label.bx-active .filter-list__logo--empty,
.filter-list__label input:checked ~ .filter-list__logo--empty {
  background-color: #008fd0;
  border-color: #008fd0;
  box-shadow: none;
}

.filter-list__label.bx-active .filter-list__logo--empty::after,
.filter-list__label input:checked ~ .filter-list__logo--empty::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 7px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-list__label.bx-active .filter-list__name,
.filter-list__label input:checked ~ .filter-list__name {
  color: #008fd0;
  font-weight: 600;
}

.filter-list__count {
  min-width: 30px;
  padding: 1px 8px;
  border: 1px solid #e8e8e8;
  border-radius: 999px;
  color: #888;
  font-size: 12px;
  text-align: center;
}

/* ---- Бренд: широкий образец лого 50×25 ---- */
.filter-group--brand .filter-list__logo {
  width: 50px;
  height: 25px;
  border-color: transparent;
  background-position: left center;
}

/* пустой квадрат-индикатор у бренда (значение без лого) оставляем
   компактным, чтобы не было пустой широкой плашки */
.filter-group--brand .filter-list__logo--empty {
  width: 22px;
  height: 22px;
  border-color: #e3e3e3;
}

/* ---- Радио-список (Все / варианты) — оставляем нативный кружок ---- */
.filter-list--plain {
  gap: 10px;
}

.filter-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #333;
}

.filter-radio.disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.filter-radio input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #168fc7;
}

.filter-radio .filter-list__count {
  flex: 0 0 auto;
  margin-left: auto;
}

/* ===================== DROPDOWN (родной попап Битрикса) ===================== */

.bx-filter-select-container {
  position: relative;
}

.filter-select-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 12px;
  border: 2px solid #e5e5e5;
  border-radius: 4px;
  color: #555;
  background: #fff;
  cursor: pointer;
}

.bx-filter-select-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid #999;
  border-bottom: 2px solid #999;
  transform: rotate(45deg) translateY(-2px);
}

.bx-filter-select-popup {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  margin-top: 4px;
  padding: 6px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.bx-filter-select-popup ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bx-filter-select-popup .bx-filter-param-label {
  display: block;
  padding: 7px 10px;
  border-radius: 4px;
  color: #333;
  font-size: 13px;
  cursor: pointer;
}

.bx-filter-select-popup .bx-filter-param-label:hover {
  background: #f4f4f4;
}

.bx-filter-select-popup .bx-filter-param-label.selected {
  color: #008fd0;
  font-weight: 600;
}

.bx-filter-select-popup .bx-filter-param-label.disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ---- Старый select (из первого файла) ---- */
.filter-select {
  width: 100%;
  min-height: 40px;
  margin-bottom: 12px;
  padding: 0 12px;
  border: 2px solid #e5e5e5;
  border-radius: 4px;
  color: #777;
  background: #fff;
}

/* ===================== КАЛЕНДАРЬ ===================== */

.filter-calendar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.filter-calendar .calendar {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 2px solid #e5e5e5;
  border-radius: 4px;
}

/* ===================== FOOTER: кнопки + popup количества ===================== */

.filter-panel__footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #ececec;
}

.filter-panel__apply--primary {
  min-height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: #168fc7;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.filter-panel__apply--primary:hover {
  background: #1279a8;
}

.filter-panel__apply--primary:disabled {
  opacity: 0.6;
  cursor: default;
}

.filter-panel__apply {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  color: #333;
  background: #f4f4f4;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.filter-panel__reset {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  background: none;
  color: #888;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.filter-panel__reset:hover {
  color: #168fc7;
}

/* popup "Выбрано: N" */
.bx-filter-container-modef {
  position: relative;
  display: block;
}

.filter-panel__count {
  display: none;
  position: absolute;
  z-index: 40;
  bottom: calc(100% + 8px);
  left: 0;
  padding: 8px 12px;
  border-radius: 4px;
  background: #2d2a2a;
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}

.filter-panel__count.right {
  left: auto;
  right: 0;
}

.filter-panel__count a {
  color: #6fc4ec;
  text-decoration: underline;
}

.filter-panel__count .arrow {
  position: absolute;
  top: 100%;
  left: 16px;
  border: 6px solid transparent;
  border-top-color: #2d2a2a;
}

.filter-panel__count.right .arrow {
  left: auto;
  right: 16px;
}

/* ===================== OVERLAY ===================== */

.filter-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(0, 0, 0, 0.66);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

body.filter-panel-open {
  overflow: hidden;
}

body.filter-panel-open .filter-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* ===================== АДАПТИВ (мобильная панель) ===================== */

@media (max-width: 1024px) {
  .filter-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 220;
    width: 300px;
    max-width: calc(100vw - 28px);
    padding: 0 28px 28px;
    background: #fff;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .filter-panel-open .filter-panel {
    transform: translateX(0);
  }

  .filter-panel__header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 68px;
    margin: 0 -28px;
    padding: 0 28px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
  }

  .filter-panel__title {
    display: none;
  }

  .filter-panel__close {
    border: 0;
    color: #222;
    background: transparent;
    font-family: Georgia, serif;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
  }

  .filter-panel__footer {
    position: sticky;
    bottom: -24px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 18px -28px -28px;
    padding: 12px 28px calc(34px + env(safe-area-inset-bottom));
    border-top: 1px solid #f0f0f0;
    background: #fff;
    box-shadow: 0 -12px 18px rgba(255, 255, 255, 0.95);
  }

  .filter-panel__apply--primary {
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 4px;
    color: #333;
    background: #f4f4f4;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .filter-panel__apply--primary:hover {
    color: #333;
    background: #ebebeb;
  }

  .filter-panel__reset {
    min-height: 42px;
    padding: 0;
    color: #777;
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
  }

  .filter-panel__count {
    display: none;
  }

  .filter-panel__footer::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 18px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
  }
}

.price-filter__inputs input[type="hidden"] {
  display: none;
}

.price-filter__num::-webkit-outer-spin-button,
.price-filter__num::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* ===================== ПРОКРУТКА ДЛИННЫХ СПИСКОВ ===================== */
/* Раскрытый пункт показывает ~10 элементов, остальное — под скролл.
   Высота считается от строки списка: ~28px на строку (16px чекбокс/лого
   + вертикальные отступы) с учётом gap между пунктами. */
.filter-list {
  /* бренд-список: лого 22px + gap 12px, 10 строк = 328px; +14px,
     чтобы край 11-го пункта выглядывал и подсказывал прокрутку */
  max-height: 342px;
  overflow-y: auto;
  /* небольшой внутренний отступ справа, чтобы скроллбар не наезжал на бейджи */
  padding-right: 6px;
  /* плавная инерция на тач-устройствах */
  -webkit-overflow-scrolling: touch;
  /* подсказка о прокручиваемости: лёгкий fade сверху и снизу */
  scrollbar-gutter: stable;
}

/* plain-список (радио «Все / варианты»): строка ~18px + gap 10px,
   10 строк = 270px; +12px для подсказки о продолжении */
.filter-list--plain {
  max-height: 282px;
}

/* Когда пунктов мало, скролл не нужен — браузер сам не покажет полосу,
   max-height просто не достигается. */

/* ---- Компактный кастомный скроллбар (WebKit/Chromium) ---- */
.filter-list::-webkit-scrollbar {
  width: 6px;
}

.filter-list::-webkit-scrollbar-track {
  background: transparent;
}

.filter-list::-webkit-scrollbar-thumb {
  background: #d6d9dd;
  border-radius: 999px;
}

.filter-list::-webkit-scrollbar-thumb:hover {
  background: #c0c4c9;
}

/* ---- Firefox ---- */
.filter-list {
  scrollbar-width: thin;
  scrollbar-color: #d6d9dd transparent;
}

/* Чтобы первый/последний пункт не прилипали к краям при прокрутке */
.filter-list > li:first-child {
  margin-top: 0;
}

/* End */
/* /local/templates/santerika/components/bitrix/catalog.smart.filter/santerika/style.css?178327154717062 */
