/* HomeFine: меню сайта (new.homefine.ru, 03.10.2026). Разметка — template/common/hf_nav.tpl, логика — /hf/nav.js */
:root {
  --hf-ink: #33322e;
  --hf-muted: #8b8a85;
  --hf-line: #ebeae6;
  --hf-soft: #f4f3f0;
  --hf-accent: #325678;
  --hf-ease: cubic-bezier(.2, .8, .2, 1);
  --hf-font: 'Manrope', Arial, Helvetica, sans-serif;
  /* отступ нижней панели над полоской «домой». В Safari iOS 26 он 0 (зону закрывает панель Safari); иконки прижаты к низу панели в .hf-tab */
  --hf-tabpad: max(0px, calc(env(safe-area-inset-bottom, 0px) - 28px));
}
.hf-i { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* Тема делает текст всех <button> заглавным — у наших кнопок обычный регистр */
button.hf-tab, button.hf-row, button.hf-ib, button.hf-nav__tool, button.hf-level__write, button.hf-search__cancel, button.hf-crow { text-transform: none; letter-spacing: normal; }
.hf-badge {
  position: absolute; top: -6px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--hf-accent); color: #fff; font: 700 11px/18px var(--hf-font); text-align: center; font-variant-numeric: tabular-nums;
}
.hf-badge[hidden] { display: none; }

/* ---------- Строка разделов (компьютер) ---------- */
.hf-navwrap { position: relative; height: 56px; margin-bottom: 16px; }
.hf-navwrap .hf-nav-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.hf-nav { position: relative; z-index: 900; background: #fff; }
.hf-nav.is-stuck {
  position: fixed; top: 0; left: 0; right: 0;
  box-shadow: 0 1px 0 var(--hf-line), 0 10px 30px -12px rgba(30, 28, 24, .18);
  animation: hf-drop .24s var(--hf-ease);
}
@keyframes hf-drop { from { transform: translateY(-100%); } to { transform: none; } }
.hf-nav__inner { position: relative; display: flex; align-items: center; height: 56px; gap: 12px; }
.hf-nav__list { display: flex; flex: 1; justify-content: center; margin: 0; padding: 0; list-style: none; min-width: 0; }
.hf-nav__link {
  position: relative; display: flex; align-items: center; height: 56px; padding: 0 14px;
  font: 700 13px/1 var(--hf-font); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
  color: var(--hf-ink); text-decoration: none;
}
.hf-nav__link:hover, .hf-nav__link:focus { color: var(--hf-accent); text-decoration: none; }
.hf-nav__link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 13px; height: 2px; border-radius: 1px;
  background: var(--hf-accent); transform: scaleX(0); transform-origin: left center; transition: transform .2s ease-out;
}
.hf-nav__item.is-open > .hf-nav__link { color: var(--hf-accent); }
.hf-nav__item.is-open > .hf-nav__link::after, .hf-nav__item.is-current > .hf-nav__link::after { transform: scaleX(1); }
.hf-nav__logo, .hf-nav__tools { display: none; }
.hf-nav__logo { flex: none; line-height: 0; }
.hf-nav__logo svg { height: 22px; width: auto; }
.hf-nav.is-stuck .hf-nav__tools { display: flex; gap: 4px; flex: none; }
@media (min-width: 1400px) { .hf-nav.is-stuck .hf-nav__logo { display: block; } }
.hf-nav__tool, button.hf-nav__tool:hover, button.hf-nav__tool:focus, button.hf-nav__tool:active {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px;
  background: none; color: var(--hf-ink); text-decoration: none;
}
.hf-nav__tool:hover { background: var(--hf-soft); color: var(--hf-accent); }
.hf-nav__tool .hf-badge { top: 4px; right: 2px; }

/* Выпадающее меню */
.hf-mega {
  position: absolute; left: 12px; right: 12px; top: 100%;
  display: flex; gap: 40px; padding: 28px 32px 32px;
  background: #fff; border-radius: 0 0 18px 18px;
  box-shadow: 0 0 0 1px rgba(30, 28, 24, .06), 0 28px 56px -16px rgba(30, 28, 24, .22);
  opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  transition: opacity .14s ease-out, transform .14s ease-out, visibility 0s linear .14s;
}
.hf-nav__item.is-open > .hf-mega {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  transition: opacity .16s ease-out, transform .16s ease-out, visibility 0s;
}
.hf-nav.is-switching .hf-mega { transition: none; }
.hf-mega__grid { flex: 1; display: flex; gap: 40px; min-width: 0; }
.hf-mega__group { min-width: 170px; }
.hf-mega__group--thumbs { min-width: 250px; }
.hf-mega__group--wide { flex: 1; }
.hf-mega__group--wide .hf-mega__list { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); column-gap: 32px; }
h3.hf-mega__h, .hf-mega__h {
  margin: 0 0 12px; font: 600 12px/1.2 var(--hf-font); letter-spacing: .07em; text-transform: uppercase; color: var(--hf-muted);
}
.hf-mega__list { margin: 0; padding: 0; list-style: none; }
/* 19.11.2026: «Модели» кресел — длинный список, три колонки сверху вниз */
.hf-mega__group--cols { flex: 1; min-width: 0; }
.hf-mega__group--cols .hf-mega__list { columns: 3 170px; column-gap: 28px; }
.hf-mega__group--cols .hf-mega__list li { break-inside: avoid; }
.hf-mega__group--cols .hf-mega__a { padding-top: 3px; padding-bottom: 3px; font-size: 14px; }
.hf-mega__group--cols .hf-mega__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-mega__a {
  display: flex; align-items: center; gap: 12px; margin: 0 -10px; padding: 6px 10px; border-radius: 10px;
  font: 500 15px/1.25 var(--hf-font); color: var(--hf-ink); text-decoration: none;
  transition: background-color .12s ease-out, color .12s ease-out;
}
.hf-mega__group:not(.hf-mega__group--thumbs) .hf-mega__a { padding-top: 7px; padding-bottom: 7px; }
.hf-mega__a:hover, .hf-mega__a:focus-visible { background: var(--hf-soft); color: var(--hf-accent); text-decoration: none; }
.hf-mega__img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--hf-soft); flex: none; }
.hf-mega__name { min-width: 0; }
.hf-mega__n { margin-left: auto; padding-left: 14px; font-size: 13px; color: var(--hf-muted); font-variant-numeric: tabular-nums; }
.hf-mega__promo {
  flex: 0 0 240px; display: flex; flex-direction: column; gap: 6px; align-self: flex-start;
  color: var(--hf-ink); text-decoration: none;
}
.hf-mega__promo:hover { color: var(--hf-ink); text-decoration: none; }
.hf-mega__pimg { display: block; width: 240px; height: 180px; margin-bottom: 8px; border-radius: 14px; overflow: hidden; background: var(--hf-soft); }
.hf-mega__pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--hf-ease); }
.hf-mega__promo:hover .hf-mega__pimg img { transform: scale(1.03); }
.hf-mega__pt { font: 700 16px/1.25 var(--hf-font); }
.hf-mega__pn { display: inline-flex; align-items: center; gap: 4px; font: 600 14px/1.2 var(--hf-font); color: var(--hf-accent); }

/* ---------- Ряд подразделов на странице категории ---------- */
.hf-chips { margin: 10px 0 18px; }   /* сверху — воздух под заголовком (просьба владельца) */
.hf-chips__track { display: flex; flex-wrap: wrap; gap: 8px; }
.hf-chip {
  flex: none; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 19px;
  border: 1px solid #dddcd7; background: #fff; color: var(--hf-ink);
  font: 600 14px/1 var(--hf-font); white-space: nowrap; text-decoration: none;
  transition: border-color .15s ease-out, background-color .15s ease-out, color .15s ease-out;
}
.hf-chip:hover, .hf-chip:focus { border-color: var(--hf-ink); color: var(--hf-ink); text-decoration: none; }
.hf-chip.is-active, .hf-chip.is-active:hover { background: var(--hf-ink); border-color: var(--hf-ink); color: #fff; }

/* ---------- Нижняя панель (телефон) ---------- */
.hf-tabbar { display: none; }

/* ---------- Окна: каталог, поиск, связаться ---------- */
.hf-ov { position: fixed; inset: 0; z-index: 1060; }
.hf-ov[hidden] { display: none; }
.hf-ov__backdrop { position: absolute; inset: 0; background: rgba(22, 21, 19, .45); opacity: 0; transition: opacity .22s ease-out; }
.hf-ov.is-open .hf-ov__backdrop { opacity: 1; }
.hf-ib, button.hf-ib:hover, button.hf-ib:focus, button.hf-ib:active {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; flex: none;
  border: 0; border-radius: 12px; background: none; color: var(--hf-ink);
}
button.hf-ib:active { background: var(--hf-soft); }

/* Каталог */
.hf-drawer__panel {
  position: absolute; inset: 0; overflow: hidden; background: #fff;
  opacity: 0; transform: translateY(14px); transition: opacity .22s ease-out, transform .26s var(--hf-ease);
}
.hf-drawer.is-open .hf-drawer__panel { opacity: 1; transform: none; }
.hf-level {
  position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff;
  transform: translateX(100%); transition: transform .3s var(--hf-ease);
}
.hf-level[hidden] { display: none; }
.hf-level.is-current { transform: none; }
.hf-level.is-behind { transform: translateX(-24%); }
.hf-level__head {
  flex: none; display: flex; align-items: center; gap: 4px; min-height: 56px;
  padding: env(safe-area-inset-top) 6px 0 16px; border-bottom: 1px solid var(--hf-line);
}
.hf-level__head .hf-ib:first-child { margin-left: -10px; }
.hf-level__title { flex: 1; min-width: 0; font: 700 18px/1.2 var(--hf-font); color: var(--hf-ink); }
.hf-level__body {
  flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 4px 16px calc(28px + env(safe-area-inset-bottom));
}
h3.hf-level__h, .hf-level__h {
  margin: 22px 0 2px; font: 600 12px/1.2 var(--hf-font); letter-spacing: .07em; text-transform: uppercase; color: var(--hf-muted);
}
.hf-rows { margin: 0; padding: 0; list-style: none; }
.hf-row, button.hf-row:hover, button.hf-row:focus, button.hf-row:active {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 6px 0; margin: 0;
  border: 0; border-bottom: 1px solid var(--hf-line); border-radius: 0; background: none; text-align: left;
  font: 600 16px/1.25 var(--hf-font); color: var(--hf-ink); text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.hf-row:hover, .hf-row:focus { color: var(--hf-ink); text-decoration: none; }
.hf-row:active { background: var(--hf-soft); }
.hf-rows--plain .hf-row { min-height: 50px; font-weight: 500; }
.hf-row--all, .hf-row--all:hover, .hf-row--all:focus { color: var(--hf-accent); font-weight: 700; }
.hf-row__img { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: var(--hf-soft); flex: none; }
.hf-rows .hf-row .hf-row__img img, .hf-row__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hf-row__t { flex: 1; min-width: 0; }
.hf-row__n { font: 500 13px/1 var(--hf-font); color: var(--hf-muted); font-variant-numeric: tabular-nums; }
.hf-row__chev { color: #b9b8b3; }
.hf-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin: 18px 0 0; padding: 0; list-style: none; }
.hf-links a { display: flex; align-items: center; min-height: 44px; font: 500 15px/1.2 var(--hf-font); color: var(--hf-ink); text-decoration: none; }
.hf-level__contact { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hf-line); }
.hf-level__phone { font: 700 18px/1.2 var(--hf-font); color: var(--hf-ink); text-decoration: none; }
.hf-level__write, button.hf-level__write:hover, button.hf-level__write:focus, button.hf-level__write:active {
  height: 44px; padding: 0 18px; border: 1px solid var(--hf-ink); border-radius: 22px; background: #fff;
  font: 600 14px/1 var(--hf-font); color: var(--hf-ink);
}

/* Поиск */
.hf-search__panel {
  position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff;
  opacity: 0; transform: translateY(10px); transition: opacity .18s ease-out, transform .22s var(--hf-ease);
}
.hf-search.is-open .hf-search__panel { opacity: 1; transform: none; }
.hf-search__bar {
  flex: none; display: flex; align-items: center; gap: 6px; margin: 0;
  padding: calc(10px + env(safe-area-inset-top)) 8px 10px 12px; border-bottom: 1px solid var(--hf-line);
}
.hf-search__field { position: relative; flex: 1; margin: 0; }
.hf-search__icon { position: absolute; left: 12px; top: 50%; margin-top: -10px; color: var(--hf-muted); pointer-events: none; }
.hf-search__input, .hf-search__input:focus {
  width: 100%; height: 46px; margin: 0; padding: 0 14px 0 42px; border: 1px solid transparent; border-radius: 14px;
  background: var(--hf-soft); font: 500 16px/1 var(--hf-font); color: var(--hf-ink); box-shadow: none; outline: none;
  -webkit-appearance: none; appearance: none;
}
.hf-search__input:focus { border-color: #cfcec9; background: #fff; }
.hf-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hf-search__cancel, button.hf-search__cancel:hover, button.hf-search__cancel:focus, button.hf-search__cancel:active {
  height: 46px; padding: 0 8px; border: 0; background: none; font: 600 15px/1 var(--hf-font); color: var(--hf-accent);
}
.hf-search__res { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 6px 16px calc(24px + env(safe-area-inset-bottom)); }

/* Подсказки поиска (общие для окна поиска и поля в шапке) */
.hf-sr__h { margin: 16px 0 10px; font: 600 12px/1.2 var(--hf-font); letter-spacing: .07em; text-transform: uppercase; color: var(--hf-muted); }
.hf-sr__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.hf-sr__cat {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 18px;
  background: var(--hf-soft); color: var(--hf-ink); font: 600 14px/1 var(--hf-font); text-decoration: none; white-space: nowrap;
}
.hf-sr__cat:hover, .hf-sr__cat:focus-visible, .hf-sr__cat.is-active { background: #e9e8e3; color: var(--hf-ink); text-decoration: none; outline: none; }
.hf-sr__cat small { font-size: 12px; font-weight: 500; color: var(--hf-muted); }
.hf-sr__list { margin: 0; padding: 0; list-style: none; }
.hf-sr__item {
  display: flex; align-items: center; gap: 12px; margin: 0 -8px; padding: 8px; border-radius: 12px;
  color: var(--hf-ink); text-decoration: none;
}
.hf-sr__item:hover, .hf-sr__item:focus-visible, .hf-sr__item.is-active { background: var(--hf-soft); color: var(--hf-ink); text-decoration: none; outline: none; }
.hf-sr__img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--hf-soft); flex: none; }
.hf-sr__name {
  flex: 1; min-width: 0; font: 500 15px/1.3 var(--hf-font);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hf-sr__name mark { padding: 0; background: none; color: inherit; font-weight: 700; }
.hf-sr__price { flex: none; text-align: right; font: 700 15px/1.2 var(--hf-font); color: var(--hf-accent); white-space: nowrap; }
.hf-sr__price s { display: block; font-size: 12px; font-weight: 500; color: var(--hf-muted); }
.hf-sr__all {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 48px; margin-top: 14px; border-radius: 14px;
  background: var(--hf-ink); color: #fff; font: 600 15px/1 var(--hf-font); text-decoration: none;
}
.hf-sr__all:hover, .hf-sr__all:focus, .hf-sr__all.is-active { background: #1f1e1b; color: #fff; text-decoration: none; }
.hf-sr__empty { margin: 16px 0 4px; font: 500 15px/1.45 var(--hf-font); color: var(--hf-muted); }
.hf-sr__load { height: 3px; margin: 0 -16px; overflow: hidden; }
.hf-sr__load::after { content: ''; display: block; width: 40%; height: 100%; background: var(--hf-accent); animation: hf-load 1s ease-in-out infinite; }
@keyframes hf-load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* Подсказки под полем поиска в шапке (компьютер) */
#search.hf-has-suggest { position: relative; }
.hf-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 1000; width: max(100%, 460px); max-height: min(70vh, 620px);
  overflow-y: auto; padding: 4px 16px 16px; background: #fff; border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(30, 28, 24, .07), 0 24px 48px -12px rgba(30, 28, 24, .25);
}
.hf-suggest[hidden] { display: none; }

/* Связаться */
.hf-sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100% - 40px); overflow-y: auto;
  padding: 6px 16px calc(16px + env(safe-area-inset-bottom)); background: #fff; border-radius: 22px 22px 0 0;
  transform: translateY(100%); transition: transform .32s var(--hf-ease);
}
.hf-sheet.is-open .hf-sheet__panel { transform: none; }
.hf-sheet__grab { width: 38px; height: 5px; margin: 4px auto 6px; border-radius: 3px; background: #dcdbd6; }
.hf-sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.hf-sheet__head .hf-ib { margin-right: -10px; }
h2.hf-sheet__t, .hf-sheet__t { margin: 0; font: 700 19px/1.2 var(--hf-font); color: var(--hf-ink); text-transform: none; letter-spacing: normal; }
.hf-crow, button.hf-crow:hover, button.hf-crow:focus, button.hf-crow:active {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 8px 0; margin: 0;
  border: 0; border-bottom: 1px solid var(--hf-line); border-radius: 0; background: none; text-align: left;
  color: var(--hf-ink); text-decoration: none;
}
.hf-crow[hidden] { display: none; }
.hf-crow:last-child { border-bottom: 0; }
.hf-crow:hover, .hf-crow:focus { color: var(--hf-ink); text-decoration: none; }
.hf-crow__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--hf-soft); color: var(--hf-accent); flex: none; }
.hf-crow__ic .icon { width: 22px; height: 22px; }
.hf-crow__t b { display: block; font: 700 16px/1.25 var(--hf-font); }
.hf-crow__t small { display: block; margin-top: 2px; font: 500 13px/1.3 var(--hf-font); color: var(--hf-muted); }

/* ---------- Компьютер / телефон ---------- */
@media (min-width: 992px) {
  #header nav.navbar { display: none; }
  .hf-search__panel {
    inset: auto; left: 50%; top: 24px; width: min(720px, calc(100vw - 48px)); max-height: calc(100vh - 48px);
    border-radius: 18px; transform: translate(-50%, -8px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35);
  }
  .hf-search.is-open .hf-search__panel { transform: translate(-50%, 0); }
  .hf-search__bar { padding: 12px 12px 12px 16px; }
  .hf-search__res { padding-bottom: 20px; }
  .hf-drawer__panel { left: auto; width: 440px; box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .3); transform: translateX(24px); }
  .hf-sheet__panel { left: 50%; right: auto; bottom: auto; top: 50%; width: 420px; border-radius: 20px; transform: translate(-50%, -46%); opacity: 0; transition: opacity .2s ease-out, transform .24s var(--hf-ease); }
  .hf-sheet.is-open .hf-sheet__panel { transform: translate(-50%, -50%); opacity: 1; }
  .hf-sheet__grab { display: none; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hf-nav__link { padding: 0 10px; font-size: 12px; }
  .hf-nav__link::after { left: 10px; right: 10px; }
  .hf-mega__promo { display: none; }
}
@media (max-width: 991.98px) {
  .hf-navwrap { display: none; }
  body { padding-bottom: calc(60px + var(--hf-tabpad)); }
  .hf-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: grid; grid-template-columns: repeat(4, 1fr);
    padding-bottom: var(--hf-tabpad); background: #fff;
    border-top: 1px solid var(--hf-line); box-shadow: 0 -6px 18px -12px rgba(30, 28, 24, .25);
  }
  /* Белый фон продолжается за нижний край экрана: при «пружине» прокрутки и сворачивании панели браузера под панелью не видно страницу */
  .hf-tabbar::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 200px; background: #fff; }
  .hf-tab, button.hf-tab:hover, button.hf-tab:focus, button.hf-tab:active {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; height: 60px; padding: 0 0 6px; margin: 0;
    border: 0; border-radius: 0; background: none; color: var(--hf-ink); font: 600 11px/1 var(--hf-font); text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .hf-tab:hover, .hf-tab:focus { color: var(--hf-ink); text-decoration: none; }
  .hf-tab > svg, .hf-tab__ic { transition: transform .12s ease-out; }
  .hf-tab:active > svg, .hf-tab:active .hf-tab__ic { transform: scale(.88); }
  .hf-tab__ic { position: relative; line-height: 0; }
  .getconnect { display: none !important; }
  #topcontrol { bottom: calc(72px + var(--hf-tabpad)) !important; }
  #cookiefy_bar { bottom: calc(72px + var(--hf-tabpad)) !important; left: 12px !important; right: 12px !important; width: auto !important; max-width: none !important; }
  /* Подразделы на телефоне — все видны, переносятся на следующие строки (листание вбок было незаметно) */
  .hf-chips { margin: 8px 0 14px; }
  .hf-chips__track { gap: 8px; }
  .hf-chip { height: 38px; padding: 0 15px; font-size: 14px; }
}

:is(.hf-nav__link, .hf-mega__a, .hf-mega__promo, .hf-nav__tool, .hf-row, .hf-tab, .hf-ib, .hf-chip, .hf-sr__item, .hf-sr__cat, .hf-sr__all, .hf-crow, .hf-links a, .hf-search__cancel, .hf-level__write):focus-visible {
  outline: 2px solid var(--hf-accent); outline-offset: 2px;
}
/* ---------- Окно поиска: что можно искать ---------- */
.hf-sr__h--row { display: flex; align-items: center; justify-content: space-between; }
.hf-sr__clear, button.hf-sr__clear:hover, button.hf-sr__clear:focus, button.hf-sr__clear:active {
  padding: 4px 0; margin: 0; border: 0; background: none; font: 600 13px/1 var(--hf-font); color: var(--hf-accent); text-transform: none; letter-spacing: normal;
}
.hf-sr__qs { display: flex; flex-wrap: wrap; gap: 8px; }
.hf-sr__q, button.hf-sr__q:hover, button.hf-sr__q:focus, button.hf-sr__q:active {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 11px; margin: 0;
  border: 1px solid #e3e2dd; border-radius: 18px; background: #fff; color: var(--hf-ink);
  font: 500 14px/1 var(--hf-font); text-transform: none; letter-spacing: normal; white-space: nowrap;
}
button.hf-sr__q:hover { border-color: var(--hf-ink); }
.hf-sr__q .hf-i { color: var(--hf-muted); }
.hf-sr__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
@media (min-width: 600px) { .hf-sr__tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hf-sr__tile { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--hf-ink); text-decoration: none; }
.hf-sr__tile:hover, .hf-sr__tile:focus { color: var(--hf-ink); text-decoration: none; }
.hf-sr__timg { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--hf-soft); }
.hf-sr__timg img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--hf-ease); }
.hf-sr__tile:hover .hf-sr__timg img { transform: scale(1.04); }
.hf-sr__tt { font: 600 13px/1.25 var(--hf-font); }
.hf-sr__tn { margin-top: -3px; font: 500 12px/1 var(--hf-font); color: var(--hf-muted); }

/* ---------- Хлебные крошки ---------- */
ul.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; margin: 8px 0 14px; padding: 0; list-style: none; background: none;
  font: 500 13px/1.45 var(--hf-font); color: var(--hf-muted);
}
ul.breadcrumb > li { display: inline-flex; align-items: center; min-width: 0; padding: 0; color: var(--hf-muted); }
ul.breadcrumb > li + li::before {
  content: ''; flex: none; width: 16px; height: 16px; margin: 0 4px; padding: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9b8b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9.5 6 6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat;
}
ul.breadcrumb > li > a { color: var(--hf-muted); text-decoration: none; }
ul.breadcrumb > li > a:hover, ul.breadcrumb > li > a:focus { color: var(--hf-accent); text-decoration: none; }
ul.breadcrumb > li:last-child { color: var(--hf-ink); font-weight: 600; }
@media (min-width: 992px) { ul.breadcrumb { margin: 10px 0 18px; font-size: 14px; } }

/* ---------- «Все подразделы»: последней кнопкой в ряду подразделов, плоская голубоватая, открывает боковую панель #hf-subcats ---------- */
button.hf-chip, button.hf-chip:hover, button.hf-chip:focus, button.hf-chip:active { margin: 0; text-transform: none; letter-spacing: normal; background: #fff; color: var(--hf-ink); }
button.hf-chip--more, button.hf-chip--more:hover, button.hf-chip--more:focus, button.hf-chip--more:active {
  gap: 7px; padding: 0 6px 0 13px; border-color: #c9d8e7; background: #edf3f9; color: var(--hf-accent); box-shadow: none;
}
button.hf-chip--more:hover { border-color: var(--hf-accent); background: #e4edf6; color: var(--hf-accent); }
.hf-chip__n { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: #fff; font: 700 13px/26px var(--hf-font); color: var(--hf-accent); text-align: center; font-variant-numeric: tabular-nums; }

/* Панель: заголовок раздела, поиск по названиям, «Все …», список с фото */
.hf-sc .hf-level__head { min-height: 68px; padding: max(10px, env(safe-area-inset-top)) 6px 8px 20px; border-bottom: 0; }
.hf-sc__titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hf-sc__kicker { font: 600 11px/1.2 var(--hf-font); letter-spacing: .08em; text-transform: uppercase; color: var(--hf-muted); }
.hf-sc__title { font: 700 24px/1.1 var(--hf-font); color: var(--hf-ink); }
.hf-sc__find { position: relative; flex: none; margin: 2px 16px 12px; }
.hf-sc__find .hf-i { position: absolute; left: 14px; top: 50%; margin-top: -10px; color: var(--hf-muted); pointer-events: none; }
input.hf-sc__input {
  display: block; width: 100%; height: 46px; margin: 0; padding: 0 14px 0 44px; border: 1.5px solid transparent; border-radius: 14px;
  background: var(--hf-soft); box-shadow: none; font: 500 16px/1 var(--hf-font); color: var(--hf-ink); outline: none;
  -webkit-appearance: none; appearance: none; transition: border-color .15s ease-out, background-color .15s ease-out;
}
input.hf-sc__input:focus { border-color: var(--hf-accent); background: #fff; box-shadow: none; }
input.hf-sc__input::placeholder { color: #9d9c96; }
.hf-sc .hf-level__body { padding: 12px 10px calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hf-line); }
a.hf-sc__all, a.hf-sc__all:hover, a.hf-sc__all:focus {
  display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 10px 12px 10px 10px; border-radius: 16px;
  background: linear-gradient(135deg, #f1f6fb 0%, #e3ecf5 100%); color: var(--hf-accent); text-decoration: none;
}
a.hf-sc__all:hover { background: linear-gradient(135deg, #e9f1f8 0%, #d9e5f1 100%); }
a.hf-sc__all.is-current { box-shadow: inset 0 0 0 1.5px var(--hf-accent); }
.hf-sc__all-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(36, 63, 90, .12); }
.hf-sc__all-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font: 700 15px/1.2 var(--hf-font); }
.hf-sc__all-t small { font: 500 13px/1.2 var(--hf-font); color: #5d7a97; }
.hf-sc__list { margin: 0; padding: 0; list-style: none; }
a.hf-sc__row, a.hf-sc__row:hover, a.hf-sc__row:focus {
  display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 6px 10px 6px 6px; border-radius: 14px;
  color: var(--hf-ink); font: 500 15px/1.25 var(--hf-font); text-decoration: none;
}
a.hf-sc__row { transition: background-color .12s ease-out; -webkit-tap-highlight-color: transparent; }
a.hf-sc__row:hover, a.hf-sc__row:focus-visible, a.hf-sc__row:active { background: var(--hf-soft); }
.hf-sc__img { display: grid; place-items: center; width: 46px; height: 46px; flex: none; overflow: hidden; border-radius: 12px; background: var(--hf-soft); color: #c4c3bd; }
.hf-sc__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hf-sc__t { flex: 1; min-width: 0; }
.hf-sc__n { flex: none; min-width: 30px; height: 24px; padding: 0 8px; border-radius: 12px; background: var(--hf-soft); font: 600 12px/24px var(--hf-font); color: var(--hf-muted); text-align: center; font-variant-numeric: tabular-nums; }
a.hf-sc__row:hover .hf-sc__n { background: #fff; }
a.hf-sc__row.is-current { background: #edf3f9; color: var(--hf-accent); font-weight: 700; }
a.hf-sc__row.is-current .hf-sc__img { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--hf-accent); }
a.hf-sc__row.is-current .hf-sc__n { background: var(--hf-accent); color: #fff; }
.hf-sc [hidden] { display: none !important; }
.hf-sc__empty { margin: 28px 0; text-align: center; font: 500 15px/1.4 var(--hf-font); color: var(--hf-muted); }
@media (min-width: 992px) {
  /* на компьютере — слева, как панель темы */
  .hf-sc .hf-drawer__panel { left: 0; right: auto; width: 420px; border-radius: 0 22px 22px 0; box-shadow: 24px 0 60px -20px rgba(0, 0, 0, .3); transform: translateX(-28px); }
  .hf-sc.is-open .hf-drawer__panel { transform: none; }
}
.hf-chips ~ .product-filter [data-bs-target="#offcanvassubcateg"] { display: none !important; }
.product-filter a[data-bs-target="#offcanvassubcateg"] {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border: 1px solid #c9d6e2; border-radius: 19px;
  background: #f3f7fb; color: var(--hf-accent); font: 600 14px/1 var(--hf-font); text-transform: none;
}
#offcanvassubcateg .catalog_info_title { margin: 0; font: 700 18px/1.2 var(--hf-font); color: var(--hf-ink); text-transform: none; }
#offcanvassubcateg .category-list ul { margin: 0; padding: 0; list-style: none; }
#offcanvassubcateg .category-list li a {
  display: flex; align-items: center; min-height: 46px; border-bottom: 1px solid var(--hf-line);
  font: 500 15px/1.25 var(--hf-font); color: var(--hf-ink); text-decoration: none;
}

/* ---------- Телефон: верхняя строка (телефон и «Меню») и поле поиска ---------- */
@media (max-width: 991.98px) {
  #top { background: #fff !important; border-bottom: 1px solid var(--hf-line); }
  #top .toplinks { min-height: 54px; }
  #top .contactinfo > a.dropdown-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; cursor: pointer;
    font: 700 16px/1 var(--hf-font); color: var(--hf-ink); letter-spacing: .01em; -webkit-tap-highlight-color: transparent;
  }
  #top .contactinfo > a.dropdown-toggle::before {
    content: ''; flex: none; width: 36px; height: 36px; border-radius: 11px;
    background: #eef3f8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23325678' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.2 3.5h3.1l1.9 4.7-2.4 1.6a11.5 11.5 0 0 0 6.4 6.4l1.6-2.4 4.7 1.9v3.1a2 2 0 0 1-2.2 2A16.6 16.6 0 0 1 3.2 5.7a2 2 0 0 1 2-2.2z'/%3E%3C/svg%3E") center / 18px no-repeat;
  }
  #top .contactinfo > a.dropdown-toggle::after { margin-left: 0; opacity: .45; }
  #top .contactinfo .dropdown-menu {
    min-width: 260px; padding: 6px; border: 0; border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(30, 28, 24, .06), 0 18px 40px -12px rgba(30, 28, 24, .3);
  }
  #top .contactinfo .dropdown-menu .dropdown-item { padding: 0; border-radius: 10px; background: none; }
  #top .contactinfo .dropdown-menu .dropdown-item > a {
    display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; border-radius: 10px;
    font: 600 15px/1.2 var(--hf-font); color: var(--hf-ink); text-decoration: none;
  }
  #top .contactinfo .dropdown-menu .dropdown-item > a:active { background: var(--hf-soft); }
  .hf-topmenu {
    align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 13px; border: 1px solid #d9d8d3; border-radius: 13px;
    background: #fff; color: var(--hf-ink); font: 600 15px/1 var(--hf-font); text-decoration: none; -webkit-tap-highlight-color: transparent;
  }
  .hf-topmenu:hover, .hf-topmenu:focus { color: var(--hf-ink); text-decoration: none; }
  .hf-topmenu:active { background: var(--hf-soft); }

  #header #search.input-group { flex-wrap: nowrap; margin-top: 6px; }
  #header #search .input-group-btn { display: none; }
  #header #search input.form-control[name="search"] {
    height: 46px; padding: 0 14px 0 44px; border: 1px solid transparent; border-radius: 14px !important;
    background: #f4f3f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8a85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E") 14px center / 20px no-repeat;
    font: 500 16px/1 var(--hf-font); color: var(--hf-ink); box-shadow: none; cursor: pointer;
  }
  #header #search input.form-control[name="search"]::placeholder { color: #8b8a85; opacity: 1; }
}

/* ---------- Компьютер: верхняя строка (#top темы) — ссылки с иконками, телефон-кнопка, меню телефона карточкой ---------- */
@media (min-width: 992px) {
  #top { background: #f7f6f3 !important; border-bottom: 1px solid var(--hf-line); }
  #top .toplinks { min-height: 40px; }
  #top .topcontactinfo, #top .topcontactinforight { align-items: center; gap: 4px; }
  #top .topcontactinfo > div { display: flex; align-items: center; margin: 0 !important; padding: 0 !important; line-height: 1; border: 0 !important; }
  #top .topcontactinfo > div::before, #top .topcontactinfo > div::after { content: none !important; display: none !important; }
  #top .topcontactinforight { margin-left: 24px; }
  #top .topcontactinfo a, #top .topcontactinforight > div > a {
    display: inline-flex; align-items: center; gap: 7px; height: 32px; margin: 0 !important; padding: 0 11px; border-radius: 16px;
    font: 600 14px/1 var(--hf-font); color: var(--hf-ink); text-decoration: none; transition: background-color .15s ease-out, color .15s ease-out;
  }
  #top .topcontactinfo a::before, #top .topcontactinforight > div > a::before { width: 16px; height: 16px; background: currentColor !important; opacity: 1 !important; -webkit-mask-size: 16px !important; mask-size: 16px !important; }
  #top .toplinks { min-height: 44px !important; }
  #top .topcontactinfo a:hover, #top .topcontactinforight > div > a:hover { background: #e9e8e3; color: var(--hf-ink); text-decoration: none; }
  #top .topcontactinfo { margin-left: -11px; }
  /* порядок: Наши работы, Материалы обивки, Дизайнерам, Блог (в настройках темы иначе) */
  #top .topcontactinfo > div:has(a[href*="designers"]) { order: 1; }
  #top .topcontactinfo > div:has(a[href*="blog"]) { order: 2; }
  #top .topcontactinforight > div.d-lg-flex { gap: 2px; margin-right: 10px; }
  #top .topcontactinfo a::before, #top .topcontactinforight > div > a::before {
    content: ''; width: 15px; height: 15px; flex: none; background: currentColor; opacity: .75;
    -webkit-mask: var(--hf-ti) center / 15px no-repeat; mask: var(--hf-ti) center / 15px no-repeat;
  }
  #top a[href*="designers"] { --hf-ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16z'/%3E%3Cpath d='m13.5 6.5 4 4'/%3E%3C/svg%3E"); }
  #top a[href*="portfolio"] { --hf-ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='m21 16-5-5-9 9'/%3E%3C/svg%3E"); }
  #top a[href*="materials"] { --hf-ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='8' height='8' rx='2'/%3E%3Crect x='13' y='3' width='8' height='8' rx='2'/%3E%3Crect x='3' y='13' width='8' height='8' rx='2'/%3E%3Crect x='13' y='13' width='8' height='8' rx='2'/%3E%3C/svg%3E"); }
  #top a[href*="blog"] { --hf-ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h11l3 3v13H5z'/%3E%3Cpath d='M9 10h6M9 14h6M9 18h4'/%3E%3C/svg%3E"); }
  #top a[href*="oplata"] { --hf-ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M3 10h18M7 15h3'/%3E%3C/svg%3E"); }
  #top a[href*="delivery"] { --hf-ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3zM14 9h4l3 3v4h-7'/%3E%3Ccircle cx='7' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E"); }
  #top a[href*="about_us"] { --hf-ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.01'/%3E%3C/svg%3E"); }
  #top a[href*="contacts"] { --hf-ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
  #top .contactinfo > a.dropdown-toggle {
    display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px; border-radius: 15px; background: #fff;
    box-shadow: inset 0 0 0 1px #e3e2dd; font: 700 13px/1 var(--hf-font); color: var(--hf-ink); cursor: pointer; transition: box-shadow .15s ease-out, color .15s ease-out;
  }
  #top .contactinfo > a.dropdown-toggle::before {
    content: ''; width: 14px; height: 14px; background: var(--hf-ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.2 3.5h3.1l1.9 4.7-2.4 1.6a11.5 11.5 0 0 0 6.4 6.4l1.6-2.4 4.7 1.9v3.1a2 2 0 0 1-2.2 2A16.6 16.6 0 0 1 3.2 5.7a2 2 0 0 1 2-2.2z'/%3E%3C/svg%3E") center / 14px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.2 3.5h3.1l1.9 4.7-2.4 1.6a11.5 11.5 0 0 0 6.4 6.4l1.6-2.4 4.7 1.9v3.1a2 2 0 0 1-2.2 2A16.6 16.6 0 0 1 3.2 5.7a2 2 0 0 1 2-2.2z'/%3E%3C/svg%3E") center / 14px no-repeat;
  }
  #top .contactinfo > a.dropdown-toggle:hover, #top .contactinfo > a.dropdown-toggle.show { box-shadow: inset 0 0 0 1px var(--hf-ink); color: var(--hf-ink); }
  #top .contactinfo .dropdown-menu {
    min-width: 240px; margin-top: 8px !important; padding: 6px; border: 0; border-radius: 16px; background: #fff;
    box-shadow: 0 0 0 1px rgba(30, 28, 24, .07), 0 20px 44px -14px rgba(30, 28, 24, .3);
  }
  #top .contactinfo .dropdown-menu .dropdown-item { padding: 0; border-radius: 10px; background: none; }
  #top .contactinfo .dropdown-menu .dropdown-item > a {
    display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border-radius: 10px; cursor: pointer;
    font: 600 14px/1.2 var(--hf-font); color: var(--hf-ink); text-decoration: none;
  }
  #top .contactinfo .dropdown-menu .dropdown-item > a:hover { background: var(--hf-soft); color: var(--hf-ink); }
  #top .contactinfo .dropdown-menu .dropdown-item svg { width: 20px; height: 20px; margin: 0 !important; color: var(--hf-ink); fill: currentColor; }
}
@media (min-width: 992px) and (max-width: 1279.98px) {
  /* узкий экран компьютера: всё в одну строку — ссылки плотнее, иконки только справа */
  #top .topcontactinfo a, #top .topcontactinforight > div > a { padding: 0 7px; font-size: 13px; }
  #top .topcontactinfo a::before { display: none; }
  #top .topcontactinforight { margin-left: 12px; }
}
.hf-sclear { display: none; }   /* крестик очистки — только на компьютере (на телефоне поле открывает окно поиска) */
/* ---------- Компьютер: поле поиска в шапке — крупное, со стрелкой «Найти»; по клику выпадают частые запросы и популярное ---------- */
@media (min-width: 992px) {
  #header #search.input-group { flex-wrap: nowrap; width: 100%; max-width: 400px; }
  #header #search input.form-control[name="search"] {
    height: 48px; padding: 0 58px 0 48px; border: 1.5px solid transparent; border-radius: 24px !important;
    background: #f4f3f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8a85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E") 17px center / 20px no-repeat;
    font: 500 15px/1 var(--hf-font); color: var(--hf-ink); box-shadow: none;
    transition: background-color .15s ease-out, border-color .15s ease-out, box-shadow .15s ease-out;
  }
  #header #search input.form-control[name="search"]:hover { background-color: #efeee9; }
  #header #search input.form-control[name="search"]:focus { background-color: #fff; border-color: var(--hf-accent); box-shadow: 0 0 0 4px rgba(50, 86, 120, .12); }
  #header #search input.form-control[name="search"]::placeholder { color: #8b8a85; opacity: 1; }
  /* кнопка — ровно по центру поля справа (у темы своё правило span.input-group-btn — перебиваем той же точностью) */
  #header #search span.input-group-btn { position: absolute; top: 0; bottom: 0; right: 6px; z-index: 5; display: flex; align-items: center; width: auto; height: auto; line-height: 1; }
  #header #search span.input-group-btn .btn {
    display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
    background: var(--hf-ink); color: #fff; box-shadow: none; transition: background-color .15s ease-out, transform .12s ease-out;
  }
  #header #search span.input-group-btn .btn:hover { background: var(--hf-accent); }
  #header #search.has-value:focus-within input.form-control[name="search"] { padding-right: 94px; }
  #header #search .hf-sclear {
    position: absolute; top: 50%; right: 50px; z-index: 5; display: grid; place-items: center; width: 32px; height: 32px; margin: -16px 0 0; padding: 0;
    border: 0; border-radius: 50%; background: #e9e8e3; color: #6b6a65; line-height: 1; box-shadow: none; cursor: pointer; transition: background-color .15s, color .15s;
  }
  #header #search .hf-sclear:hover { background: #dcdbd5; color: var(--hf-ink); }
  #header #search .hf-sclear[hidden], #header #search:not(:focus-within) .hf-sclear { display: none; }   /* только пока курсор в поле */
  #header #search span.input-group-btn .btn:active { transform: scale(.94); }
  #header #search span.input-group-btn .btn .icon { display: none; }
  #header #search span.input-group-btn .btn::before {
    content: ''; width: 18px; height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
  }
  /* выпадающая панель: до ввода — «Вы искали», «Часто ищут» и «Популярное сейчас» в две колонки, при вводе — подсказки */
  .hf-suggest { top: calc(100% + 10px); width: 660px; max-height: min(74vh, 640px); padding: 4px 22px 20px; border-radius: 22px; }
  .hf-hs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0 26px; }
  .hf-hs__col + .hf-hs__col { padding-left: 26px; border-left: 1px solid var(--hf-line); }
  .hf-hs .hf-sr__h { margin: 18px 0 10px; }
  .hf-hs .hf-sr__qs { gap: 7px; }
  .hf-hs .hf-sr__q, .hf-hs button.hf-sr__q:hover, .hf-hs button.hf-sr__q:focus, .hf-hs button.hf-sr__q:active {
    height: 34px; padding: 0 13px; border: 0; border-radius: 17px; background: var(--hf-soft); font-size: 14px; color: var(--hf-ink);
  }
  .hf-hs button.hf-sr__q:hover { background: #e9e8e3; }
  .hf-hs .hf-sr__q .hf-i { display: none; }
  .hf-hs .hf-sr__q--recent .hf-i { display: block; }
  .hf-hs .hf-sr__q--recent, .hf-hs button.hf-sr__q--recent:hover, .hf-hs button.hf-sr__q--recent:focus { padding-left: 10px; background: #fff; box-shadow: inset 0 0 0 1px #e3e2dd; }
  .hf-hs .hf-sr__list { margin-top: -2px; }
  .hf-hs .hf-sr__item { gap: 12px; padding: 7px 8px; }
  .hf-hs .hf-sr__img { width: 52px; height: 52px; border-radius: 12px; }
  .hf-hs .hf-sr__name { font-size: 14px; }
  .hf-hs .hf-sr__price { font-size: 14px; }
}
.hf-has-suggest { position: relative; }

/* ---------- Страница поиска (product/search.tpl): поле с разделом, чипы «где нашлось», пустой результат ---------- */
.hf-srch .hf-head { margin-bottom: 14px; }
.hf-sbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; }
.hf-sbar__field { position: relative; flex: 1 1 360px; min-width: 0; margin: 0; }
.hf-sbar__field .hf-i { position: absolute; left: 16px; top: 50%; margin-top: -10px; color: var(--hf-muted); pointer-events: none; }
.hf-sbar input[type="search"] {
  display: block; width: 100%; height: 50px; margin: 0; padding: 0 16px 0 48px; border: 1.5px solid #dddcd7; border-radius: 16px;
  background: #fff; box-shadow: none; font: 500 16px/1 var(--hf-font); color: var(--hf-ink); outline: none;
  -webkit-appearance: none; appearance: none; transition: border-color .15s ease-out, box-shadow .15s ease-out;
}
.hf-sbar input[type="search"]:hover { border-color: #c9c8c3; }
.hf-sbar input[type="search"]:focus { border-color: var(--hf-accent); box-shadow: 0 0 0 4px rgba(50, 86, 120, .12); }
.hf-sbar input[type="search"]::placeholder { color: #9d9c96; }
.hf-sbar__sel { position: relative; flex: 0 1 250px; min-width: 0; margin: 0; }
.hf-sbar__sel select {
  display: block; width: 100%; height: 50px; margin: 0; padding: 0 40px 0 16px; border: 1.5px solid #dddcd7; border-radius: 16px;
  background: #fff; box-shadow: none; font: 600 15px/1 var(--hf-font); color: var(--hf-ink); text-overflow: ellipsis;
  -webkit-appearance: none; appearance: none; cursor: pointer; outline: none; transition: border-color .15s ease-out;
}
.hf-sbar__sel select:hover { border-color: #c9c8c3; }
.hf-sbar__sel select, .hf-sbar__sel select option { font-weight: 500; }
.hf-sbar__sel select option { font-weight: 400; color: var(--hf-ink); }
.hf-sbar__sel select:focus { border-color: var(--hf-accent); }
.hf-sbar__sel .hf-i { position: absolute; right: 14px; top: 50%; margin-top: -9px; color: var(--hf-muted); pointer-events: none; }
.hf-sbar__go, button.hf-sbar__go:hover, button.hf-sbar__go:focus, button.hf-sbar__go:active {
  flex: none; height: 50px; margin: 0; padding: 0 28px; border: 0; border-radius: 16px; background: var(--hf-ink); color: #fff;
  font: 700 15px/1 var(--hf-font); text-transform: none; letter-spacing: 0; box-shadow: none; cursor: pointer;
}
button.hf-sbar__go:hover { background: var(--hf-accent); }
.hf-sbar__opt { flex-basis: 100%; min-height: 28px; padding: 0; font-size: 14px; color: #5d5c57; }
.hf-schips { margin-top: 0; }
.hf-chip__c { margin-left: 7px; font-weight: 500; color: var(--hf-muted); font-variant-numeric: tabular-nums; }
.hf-chip.is-active .hf-chip__c { color: rgba(255, 255, 255, .7); }
.hf-sempty { max-width: 600px; margin: 28px auto 56px; text-align: center; }
.hf-sempty__ic { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: #edf3f9; color: var(--hf-accent); }
h2.hf-sempty__t, .hf-sempty__t { margin: 0 0 10px; font: 700 22px/1.3 var(--hf-font); color: var(--hf-ink); text-transform: none; letter-spacing: normal; }
.hf-sempty__p { margin: 0 0 26px; font: 400 15px/1.55 var(--hf-font); color: #5d5c57; }
.hf-sempty__h { margin: 0 0 12px; font: 600 12px/1.2 var(--hf-font); letter-spacing: .07em; text-transform: uppercase; color: var(--hf-muted); }
.hf-sempty__q { justify-content: center; margin: 0 0 28px; }
.hf-sempty__cat, button.hf-sempty__cat:hover, button.hf-sempty__cat:focus, button.hf-sempty__cat:active {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; margin: 0; padding: 0 24px; border: 1.5px solid var(--hf-ink); border-radius: 24px;
  background: #fff; color: var(--hf-ink); font: 700 15px/1 var(--hf-font); text-transform: none; letter-spacing: 0;
}
button.hf-sempty__cat:hover { background: var(--hf-ink); color: #fff; }
@media (max-width: 991.98px) {
  .hf-srch .hf-head__n { display: inline; }   /* на странице поиска окна фильтра нет — число товаров показываем здесь */
  .hf-sbar { gap: 8px; margin-bottom: 12px; }
  .hf-sbar__field { flex-basis: 100%; }
  .hf-sbar__sel { flex: 1 1 0; }
  .hf-sbar__sel select { font-size: 16px; }
  .hf-sbar input[type="search"], .hf-sbar__sel select, .hf-sbar__go, button.hf-sbar__go:hover, button.hf-sbar__go:focus, button.hf-sbar__go:active { height: 48px; border-radius: 14px; }
  .hf-sbar input[type="search"]::placeholder { font-size: 15px; }
  .hf-sempty { margin: 16px auto 40px; }
  h2.hf-sempty__t, .hf-sempty__t { font-size: 20px; }
}

/* ---------- Телефон: логотип и кнопка корзины в шапке ---------- */
.hf-cart-ic, .hf-hc__t { display: none; }

/* ---------- Компьютер: корзина в шапке — кнопка-«пилюля», по наведению панель с содержимым (nav.js, .hf-hcp) ---------- */
@media (min-width: 992px) {
  #cart { display: flex; align-items: center; justify-content: flex-end; }
  #cart > a.dropdown-toggle {
    position: relative; display: inline-flex !important; align-items: center; gap: 12px; height: 52px; padding: 0 22px 0 7px; border-radius: 26px;
    background: #f4f3f0; color: var(--hf-ink); text-decoration: none; cursor: pointer; user-select: none;
    transition: background-color .15s ease-out, box-shadow .15s ease-out;
  }
  #cart > a.dropdown-toggle::after { display: none; }
  #cart > a.dropdown-toggle:hover, #cart > a.dropdown-toggle.is-open { background: #ecebe6; color: var(--hf-ink); text-decoration: none; }
  #cart > a.dropdown-toggle:focus-visible { outline: 2px solid var(--hf-accent); outline-offset: 2px; }
  #cart > a svg.icon, #cart #sqcart, #cart .barbara-cart-title, #cart #cart-total, #cart .dropdown-menu { display: none !important; }
  #cart > a .position-relative {
    display: grid !important; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgba(30, 28, 24, .1); transition: transform .2s var(--hf-ease);
  }
  #cart > a:hover .position-relative { transform: scale(1.06); }
  #cart > a .hf-cart-ic { display: block; transform-origin: 50% 15%; }
  #cart > a:hover .hf-cart-ic { animation: hf-bag-swing .7s var(--hf-ease); }
  #cart > a .hf-badge { top: 3px; left: 31px; right: auto; box-shadow: 0 0 0 2px #f4f3f0; }
  .hf-hc__t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .hf-hc__t b { font: 700 14px/1 var(--hf-font); color: var(--hf-ink); }
  .hf-hc__t small { font: 500 12px/1 var(--hf-font); color: var(--hf-muted); white-space: nowrap; }
}
@keyframes hf-bag-swing { 0% { transform: rotate(0); } 25% { transform: rotate(-13deg); } 55% { transform: rotate(9deg); } 80% { transform: rotate(-4deg); } 100% { transform: rotate(0); } }
@keyframes hf-bag-got { 0% { transform: scale(1); } 30% { transform: scale(1.3) rotate(-10deg); } 60% { transform: scale(.9) rotate(4deg); } 100% { transform: scale(1); } }
@keyframes hf-badge-pop { 0% { transform: scale(1); } 40% { transform: scale(1.55); } 100% { transform: scale(1); } }
.hf-badge.is-pop { animation: hf-badge-pop .5s var(--hf-ease); }
.is-got .hf-cart-ic, .hf-nav__tool.is-got > .hf-i, .hf-tab.is-got .hf-tab__ic > .hf-i { animation: hf-bag-got .65s var(--hf-ease); }
.hf-fly { position: fixed; z-index: 3000; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--hf-accent); box-shadow: 0 4px 12px rgba(50, 86, 120, .45); pointer-events: none; }

/* Панель корзины у кнопки (наведение, и после «В корзину» — вместо окна темы) */
.hf-hcp {
  position: fixed; z-index: 1050; width: 400px; padding: 0; border-radius: 22px; background: #fff;
  box-shadow: 0 0 0 1px rgba(30, 28, 24, .07), 0 28px 56px -16px rgba(30, 28, 24, .3);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.985); transform-origin: top right;
  transition: opacity .16s ease-out, transform .22s var(--hf-ease), visibility 0s linear .22s;
}
.hf-hcp.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .16s ease-out, transform .22s var(--hf-ease), visibility 0s; }
.hf-hcp::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }   /* мост между кнопкой и панелью — наведение не теряется */
.hf-hcp__head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 12px; }
.hf-hcp__t { flex: 1; min-width: 0; font: 700 17px/1.2 var(--hf-font); color: var(--hf-ink); }
.hf-hcp__t small { margin-left: 6px; font-size: 14px; font-weight: 500; color: var(--hf-muted); }
.hf-hcp__ok { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: #e3f3e8; color: #23824a; animation: hf-badge-pop .5s var(--hf-ease); }
.hf-hcp__list { max-height: min(340px, 48vh); margin: 0; padding: 0 12px; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.hf-hcp__list .hf-ci { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; transition: background-color .4s ease-out, opacity .2s; }
.hf-hcp__list .hf-ci + .hf-ci { margin-top: 2px; }
.hf-hcp__list .hf-ci.is-new { background: #eef6f0; }
.hf-hcp__list .hf-ci.is-removing { opacity: .4; pointer-events: none; }
.hf-hcp .hf-ci__img { width: 60px; height: 60px; flex: none; overflow: hidden; border-radius: 12px; background: var(--hf-soft); }
.hf-hcp .hf-ci__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hf-hcp .hf-ci__body { flex: 1; min-width: 0; }
.hf-hcp .hf-ci__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 600 14px/1.3 var(--hf-font); color: var(--hf-ink); text-decoration: none; }
.hf-hcp .hf-ci__name:hover { color: var(--hf-accent); text-decoration: none; }
.hf-hcp .hf-ci__opt { margin-top: 2px; font: 500 12px/1.35 var(--hf-font); color: var(--hf-muted); }
.hf-hcp .hf-ci__price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; font: 500 13px/1.2 var(--hf-font); color: var(--hf-muted); }
.hf-hcp .hf-ci__price b { font: 700 14px/1.2 var(--hf-font); color: var(--hf-ink); }
.hf-hcp .hf-ci__rm, .hf-hcp button.hf-ci__rm:hover, .hf-hcp button.hf-ci__rm:focus { width: 36px; height: 36px; border-radius: 10px; color: #b3b2ad; }
.hf-hcp button.hf-ci__rm:hover { background: #fbeceb; color: #c0392b; }
.hf-hcp__foot { margin-top: 8px; padding: 14px 20px 20px; border-top: 1px solid var(--hf-line); }
.hf-hcp__sum { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; font: 500 14px/1.2 var(--hf-font); color: var(--hf-muted); }
.hf-hcp__sum b { font: 800 20px/1.2 var(--hf-font); color: var(--hf-ink); }
.hf-hcp__go, .hf-hcp__go:hover, .hf-hcp__go:focus {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 16px; background: var(--hf-ink);
  color: #fff; font: 700 15px/1 var(--hf-font); text-decoration: none; transition: background-color .15s ease-out;
}
.hf-hcp__go:hover { background: var(--hf-accent); color: #fff; }
button.hf-hcp__go, button.hf-hcp__go:hover, button.hf-hcp__go:focus { width: 100%; margin: 0; border: 0; text-transform: none; letter-spacing: 0; cursor: pointer; }
.hf-hcp__go .hf-i { transition: transform .2s var(--hf-ease); }
.hf-hcp__go:hover .hf-i { transform: translateX(3px); }
.hf-hcp__more, button.hf-hcp__more:hover, button.hf-hcp__more:focus {
  display: block; width: 100%; margin: 8px 0 0; padding: 10px 0 0; border: 0; background: none; font: 600 14px/1 var(--hf-font); color: var(--hf-accent); text-transform: none; text-align: center;
}
button.hf-hcp__more:hover { text-decoration: underline; }
.hf-hcp__empty { padding: 10px 28px 28px; text-align: center; }
.hf-hcp__eic { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #edf3f9; color: var(--hf-accent); }
.hf-hcp__empty b { display: block; margin-bottom: 6px; font: 700 17px/1.3 var(--hf-font); color: var(--hf-ink); }
.hf-hcp__empty p { margin: 0 0 18px; font: 400 14px/1.5 var(--hf-font); color: #5d5c57; }
.hf-hcp__load { display: flex; gap: 12px; padding: 4px 20px 22px; }
.hf-hcp__load i { display: block; height: 60px; flex: 1; border-radius: 12px; background: linear-gradient(90deg, #f4f3f0 25%, #ebeae6 50%, #f4f3f0 75%) 0 0 / 200% 100%; animation: hf-shim 1.1s linear infinite; }
.hf-hcp__load i:first-child { flex: none; width: 60px; }
@keyframes hf-shim { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .hf-hcp, .hf-hcp.is-open { transition: none; }
  #cart > a:hover .hf-cart-ic, .is-got .hf-cart-ic, .hf-nav__tool.is-got > .hf-i, .hf-badge.is-pop { animation: none; }
}
@media (max-width: 991.98px) {
  header.menufix .logo-menu { align-items: center; padding-top: 10px; }
  .logo-menu > #logo { flex: 1 1 auto; width: auto; max-width: none; display: flex; align-items: center; min-height: 48px; }
  .logo-menu > #logo svg { width: 236px; max-width: 100%; height: auto; }
  .logo-menu > #cart { flex: 0 0 auto; width: auto; max-width: none; display: flex; align-items: center; }
  #cart > a.dropdown-toggle {
    position: relative; width: 48px; height: 48px; padding: 0; justify-content: center !important; border-radius: 15px;
    background: #f4f3f0; color: var(--hf-ink); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s ease-out, background-color .12s;
  }
  #cart > a.dropdown-toggle:active { transform: scale(.94); background: #ebeae5; }
  #cart > a.dropdown-toggle::after { display: none; }
  #cart > a .position-relative { position: static !important; }
  #cart > a svg.icon, #cart #sqcart, #cart .barbara-cart-title, #cart #cart-total, #cart .dropdown-menu { display: none !important; }
  #cart > a .hf-cart-ic { display: block; }
  #cart > a .hf-badge { top: 3px; right: 2px; }
  #header #search.input-group { margin-top: 14px; margin-bottom: 12px; }
  /* тема даёт строке шапки 24px снизу — вместе с отступами поиска и крошек выходило 46px над крошками (владелец просил меньше) */
  #header header.menufix .logo-menu { padding-bottom: 0 !important; }
  ul.breadcrumb { margin-top: 4px; }
}

/* ---------- Страница корзины и оформления (/simplecheckout/, модуль Simple) ----------
   Разметку Simple не трогаем (он сам перерисовывает блоки) — только стили; сводка «Ваш заказ» справа — из nav.js (.hf-co-sum) */
.checkout-simplecheckout .barbara-white.hf-co { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; padding: 0; background: none; box-shadow: none; }
.checkout-simplecheckout .hf-co.is-empty { display: block; }
.checkout-simplecheckout .hf-co.is-none .simple-content { display: none; }
.hf-co-empty { max-width: 520px; margin: 24px auto 56px; text-align: center; }
.hf-co-empty[hidden] { display: none; }
.hf-co-empty .hf-hcp__eic { width: 80px; height: 80px; margin-bottom: 18px; }
.hf-co-empty b { display: block; margin-bottom: 8px; font: 700 22px/1.3 var(--hf-font); color: var(--hf-ink); }
.hf-co-empty p { margin: 0 0 22px; font: 400 15px/1.55 var(--hf-font); color: #5d5c57; }
.hf-co-empty__btns { max-width: 320px; margin: 0 auto; }
.hf-co-empty .hf-co-sum__go { margin-top: 0; }
.checkout-simplecheckout .simplecheckout-step { counter-reset: hfco; }
.checkout-simplecheckout .simplecheckout-block { margin: 0 0 16px; padding: 22px 24px; border: 1px solid var(--hf-line); border-radius: 22px; background: #fff; box-shadow: none; }
.checkout-simplecheckout .simplecheckout-block:empty, .checkout-simplecheckout #simplecheckout_payment_form:not(:has(*)) { display: none; }
.checkout-simplecheckout .simplecheckout-block > .checkout-heading {
  display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 0; border: 0; background: none;
  font: 700 20px/1.2 var(--hf-font); color: var(--hf-ink); text-transform: none; letter-spacing: 0;
}
.checkout-simplecheckout .simplecheckout-block > .checkout-heading::before {
  counter-increment: hfco; content: counter(hfco); display: grid; place-items: center; width: 30px; height: 30px; flex: none;
  border-radius: 50%; background: var(--hf-ink); color: #fff; font: 700 14px/1 var(--hf-font);
}
.checkout-simplecheckout .hf-co-n { font-size: 15px; font-weight: 500; color: var(--hf-muted); }
.checkout-simplecheckout .checkout-heading-button { margin-left: auto; float: none; }
.checkout-simplecheckout .checkout-heading-button a, .checkout-simplecheckout .checkout-heading-button a small { font: 600 13px/1 var(--hf-font); color: var(--hf-muted) !important; text-decoration: none; }
.checkout-simplecheckout .checkout-heading-button a:hover small { color: #c0392b !important; }
/* товары: таблица → карточки */
.checkout-simplecheckout #simplecheckout_cart .table-responsive { overflow: visible; margin: 0; }
.checkout-simplecheckout table.simplecheckout-cart, .checkout-simplecheckout table.simplecheckout-cart tbody { display: block; width: 100%; margin: 0; border: 0; }
.checkout-simplecheckout table.simplecheckout-cart colgroup, .checkout-simplecheckout table.simplecheckout-cart thead { display: none; }
.checkout-simplecheckout table.simplecheckout-cart tr {
  position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; grid-template-areas: "img name name" "img meta meta" "img qty total";
  column-gap: 18px; row-gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--hf-line);
}
.checkout-simplecheckout table.simplecheckout-cart tr:first-child { padding-top: 4px; }
.checkout-simplecheckout table.simplecheckout-cart tr:last-child { border-bottom: 0; padding-bottom: 4px; }
.checkout-simplecheckout table.simplecheckout-cart td { display: block; padding: 0; border: 0; background: none; text-align: left; vertical-align: top; }
.checkout-simplecheckout table.simplecheckout-cart td.image { grid-area: img; }
.checkout-simplecheckout table.simplecheckout-cart td.image img { display: block; width: 112px; height: 112px; object-fit: cover; border-radius: 16px; background: var(--hf-soft); }
.checkout-simplecheckout table.simplecheckout-cart td.name { grid-area: name; padding-right: 44px; }
.checkout-simplecheckout table.simplecheckout-cart td.name > .image { display: none; }
.checkout-simplecheckout table.simplecheckout-cart td.name > a { font: 600 16px/1.35 var(--hf-font); color: var(--hf-ink); text-decoration: none; }
.checkout-simplecheckout table.simplecheckout-cart td.name > a:hover { color: var(--hf-accent); }
.checkout-simplecheckout table.simplecheckout-cart td.name .options { font: 500 13px/1.4 var(--hf-font); color: var(--hf-muted); }
.checkout-simplecheckout table.simplecheckout-cart td.name .options:empty { display: none; }
.checkout-simplecheckout table.simplecheckout-cart td.model { grid-area: meta; font: 500 13px/1.3 var(--hf-font); color: var(--hf-muted); }
.checkout-simplecheckout table.simplecheckout-cart td.model:not(:empty)::before { content: 'Артикул: '; }
.checkout-simplecheckout table.simplecheckout-cart td.price, .checkout-simplecheckout table.simplecheckout-cart td.remove { display: none; }
.checkout-simplecheckout table.simplecheckout-cart td.total { grid-area: total; align-self: end; text-align: right; font: 800 19px/1.2 var(--hf-font); color: var(--hf-ink); white-space: nowrap; }
.checkout-simplecheckout table.simplecheckout-cart td.quantity { grid-area: qty; align-self: end; }
/* количество: «− 1 +» в одной рамке; корзинка «убрать» — в правом верхнем углу карточки */
.checkout-simplecheckout td.quantity > .input-group-btn { display: inline-flex !important; align-items: center; max-width: none !important; height: 42px; padding: 3px; border: 1.5px solid #dddcd7; border-radius: 21px; background: #fff; position: static; }
.checkout-simplecheckout td.quantity > .input-group-btn > span { display: contents; }
.checkout-simplecheckout td.quantity input.form-control {
  width: 42px !important; height: 34px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  font: 700 15px/1 var(--hf-font); color: var(--hf-ink); text-align: center;
}
.checkout-simplecheckout td.quantity button[data-onclick$="ProductQuantity"] {
  display: grid; place-items: center; width: 34px; height: 34px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: var(--hf-soft) !important; color: var(--hf-ink) !important; font: 500 20px/1 var(--hf-font); box-shadow: none; transition: background-color .12s ease-out;
}
.checkout-simplecheckout td.quantity button[data-onclick$="ProductQuantity"]:hover { background: #e9e8e3 !important; }
.checkout-simplecheckout td.quantity button i { display: none; }
.checkout-simplecheckout td.quantity button[data-onclick="decreaseProductQuantity"]::before { content: '−'; }
.checkout-simplecheckout td.quantity button[data-onclick="increaseProductQuantity"]::before { content: '+'; }
.checkout-simplecheckout td.quantity button[data-onclick="removeProduct"] {
  position: absolute; top: 12px; right: 0; display: grid; place-items: center; width: 38px; height: 38px; margin: 0; padding: 0; border: 0; border-radius: 12px;
  background: none !important; color: #b3b2ad !important; box-shadow: none; transition: background-color .12s ease-out, color .12s ease-out;
}
.checkout-simplecheckout table.simplecheckout-cart tr:first-child td.quantity button[data-onclick="removeProduct"] { top: 0; }
.checkout-simplecheckout td.quantity button[data-onclick="removeProduct"]::before {
  content: ''; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M9 7V4.5h6V7M6.5 7l1 13h9l1-13M10 11v5M14 11v5'/%3E%3C/svg%3E") center / 20px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M9 7V4.5h6V7M6.5 7l1 13h9l1-13M10 11v5M14 11v5'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.checkout-simplecheckout td.quantity button[data-onclick="removeProduct"]:hover { background: #fbeceb !important; color: #c0392b !important; }
.checkout-simplecheckout .hf-co #simplecheckout_cart .simplecheckout-cart-total, .checkout-simplecheckout .hf-co #buttons { display: none !important; }
/* поля покупателя */
.checkout-simplecheckout #simplecheckout_customer fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin: 0; padding: 0; border: 0; }
.checkout-simplecheckout #simplecheckout_customer .form-group { display: block; margin: 0 !important; padding: 0; }
.checkout-simplecheckout #simplecheckout_customer .row-customer_telephone { order: -1; }   /* телефон — первым */
.checkout-simplecheckout .hf-tel-err { margin-top: 6px; font: 500 13px/1.35 var(--hf-font); color: #c0392b; }
.checkout-simplecheckout input.hf-tel-bad { border-color: #c0392b !important; box-shadow: 0 0 0 4px rgba(192, 57, 43, .1) !important; }
.checkout-simplecheckout .simplecheckout-block .form-group > label {
  display: block; width: auto; max-width: none; margin: 0 0 7px; padding: 0; float: none; text-align: left !important;
  font: 600 14px/1.2 var(--hf-font); color: var(--hf-ink);
}
.checkout-simplecheckout .simplecheckout-block .form-group.required > label::after { content: ' *'; color: #c0392b; }
.checkout-simplecheckout .simplecheckout-block .form-group.required > label::before { content: none; }
.checkout-simplecheckout .simplecheckout-block .form-group > div[class*="col-"] { width: 100%; max-width: 100%; flex: none; padding: 0; }
.checkout-simplecheckout .simplecheckout-block input.form-control, .checkout-simplecheckout .simplecheckout-block select.form-control, .checkout-simplecheckout #simplecheckout_comment textarea {
  height: 50px; padding: 0 16px; border: 1.5px solid #dddcd7; border-radius: 14px; background: #fff; box-shadow: none;
  font: 500 16px/1.2 var(--hf-font); color: var(--hf-ink); transition: border-color .15s ease-out, box-shadow .15s ease-out;
}
.checkout-simplecheckout #simplecheckout_comment textarea { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; }
.checkout-simplecheckout .simplecheckout-block input.form-control:focus, .checkout-simplecheckout #simplecheckout_comment textarea:focus { border-color: var(--hf-accent); box-shadow: 0 0 0 4px rgba(50, 86, 120, .12); outline: none; }
.checkout-simplecheckout .simplecheckout-block input.form-control::placeholder, .checkout-simplecheckout #simplecheckout_comment textarea::placeholder { color: #a3a29c; }
.checkout-simplecheckout .simplecheckout-error-text { margin-top: 6px; font: 500 13px/1.35 var(--hf-font); color: #c0392b; }
/* сводка «Ваш заказ» */
.hf-co-sum { position: sticky; top: 88px; padding: 24px; border: 1px solid var(--hf-line); border-radius: 22px; background: #f7f6f3; }
.hf-co-sum[hidden] { display: none; }
.hf-co-sum__h { margin: 0 0 14px; font: 700 20px/1.2 var(--hf-font); color: var(--hf-ink); }
.hf-co-sum__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 5px 0; font: 500 15px/1.3 var(--hf-font); color: #5d5c57; }
.hf-co-sum__row b { font-weight: 600; color: var(--hf-ink); white-space: nowrap; }
.hf-co-sum__row--total { margin-top: 10px; padding-top: 16px; border-top: 1px solid #e3e2dd; font-size: 16px; font-weight: 600; color: var(--hf-ink); }
.hf-co-sum__row--total b { font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.hf-co-sum__go, button.hf-co-sum__go:hover, button.hf-co-sum__go:focus, button.hf-co-sum__go:active {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 56px; margin: 20px 0 0; padding: 0; border: 0; border-radius: 16px;
  background: var(--hf-ink); color: #fff; font: 700 16px/1 var(--hf-font); text-transform: none; letter-spacing: 0; box-shadow: none; cursor: pointer;
  transition: background-color .15s ease-out, transform .12s ease-out;
}
button.hf-co-sum__go:hover { background: var(--hf-accent); }
button.hf-co-sum__go:active { transform: scale(.985); }
.hf-co-sum__go .hf-i { transition: transform .2s var(--hf-ease); }
button.hf-co-sum__go:hover .hf-i { transform: translateX(3px); }
.hf-co-sum__back { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font: 600 14px/1.2 var(--hf-font); color: var(--hf-accent); text-decoration: none; }
.hf-co-sum__back:hover { color: var(--hf-accent); text-decoration: underline; }
.hf-co-sum__help { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e3e2dd; font: 500 13px/1.5 var(--hf-font); color: var(--hf-muted); }
.hf-co-sum__help a { font-weight: 700; color: var(--hf-ink); text-decoration: none; white-space: nowrap; }
@media (max-width: 991.98px) {
  .checkout-simplecheckout .barbara-white.hf-co { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hf-co-sum { position: static; margin-bottom: 16px; padding: 20px; }
  .checkout-simplecheckout .simplecheckout-block { padding: 18px 16px; border-radius: 18px; }
  .checkout-simplecheckout .simplecheckout-block > .checkout-heading { font-size: 18px; }
  .checkout-simplecheckout table.simplecheckout-cart tr { grid-template-columns: 84px minmax(0, 1fr) auto; column-gap: 12px; }
  .checkout-simplecheckout table.simplecheckout-cart td.image img { width: 84px; height: 84px; border-radius: 14px; }
  .checkout-simplecheckout table.simplecheckout-cart td.name > a { font-size: 15px; }
  .checkout-simplecheckout table.simplecheckout-cart td.total { font-size: 17px; }
  .checkout-simplecheckout table.simplecheckout-cart tr { grid-template-areas: "img name name" "img meta meta" "qty qty total"; }
  .checkout-simplecheckout #simplecheckout_customer fieldset { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Подвал (common/hf_footer.php) ---------- */
footer { margin-top: 56px; padding: 0 !important; background: #252421 !important; color: #c9c8c2; }
.hf-ft { padding: 56px 0 26px; font-family: var(--hf-font); }
.hf-ft a { color: #d9d8d2; text-decoration: none; transition: color .15s ease-out, background-color .15s ease-out; }
.hf-ft a:hover, .hf-ft a:focus-visible { color: #fff; text-decoration: none; }
.hf-ft__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.hf-ft__logo { display: inline-block; line-height: 0; }
.hf-ft__logo .hf-logo { width: 220px; }
.hf-ft__logo .hf-logo stop { stop-color: #f4f3f0; }
.hf-ft__logo .hf-logo .hf-l { fill: #252421; }
.hf-ft__brand p { margin: 14px 0 0; font: 500 14px/1.5 var(--hf-font); color: #9d9c96; }
.hf-ft__reach { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.hf-ft__phone { display: flex; flex-direction: column; gap: 6px; font: 800 26px/1 var(--hf-font); letter-spacing: .01em; color: #fff !important; white-space: nowrap; }
.hf-ft__phone small { font: 600 11px/1 var(--hf-font); letter-spacing: .1em; text-transform: uppercase; color: #8b8a85; }
.hf-ft__pills { display: flex; flex-wrap: wrap; gap: 10px; }
.hf-ft__pill { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 20px 0 15px; border-radius: 23px; background: rgba(255, 255, 255, .07); color: #fff !important; font: 600 14px/1 var(--hf-font); }
.hf-ft__pill:hover { background: rgba(255, 255, 255, .15); }
.hf-ft__col .hf-ft__pills { margin-top: 18px; }
/* группа ВКонтакте — карточка с подписью */
.hf-ft__card { display: flex; align-items: center; gap: 12px; max-width: 300px; margin-top: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(255, 255, 255, .07); color: #fff !important; }
.hf-ft__card:hover { background: rgba(255, 255, 255, .14); }
.hf-ft__card-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; }
.hf-ft__card-ic .icon { fill: currentColor; }
.hf-ft__card-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hf-ft__card-t b { font: 700 14px/1.2 var(--hf-font); }
.hf-ft__card-t small { font: 500 12px/1.3 var(--hf-font); color: #9d9c96; }
.hf-ft__card-go { color: #8b8a85; transition: transform .2s var(--hf-ease), color .15s; }
.hf-ft__card:hover .hf-ft__card-go { color: #fff; transform: translate(2px, -2px); }
/* телефон сверху — по той же колонке, что «Контакты» */
@media (min-width: 992px) {
  .hf-ft__top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .hf-ft__brand { grid-column: 1 / 4; }
  .hf-ft__reach { grid-column: 4; }
}
.hf-ft__pill .icon, .hf-ft__soc .icon { fill: currentColor; color: inherit; flex: none; }
.hf-ft__pill .icon { width: 20px; height: 20px; }
.hf-ft__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 40px 0 36px; }
h2.hf-ft__h, .hf-ft__h { margin: 0 0 16px; font: 700 12px/1.2 var(--hf-font); letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.hf-ft__h--sub { margin-top: 28px; }
.hf-ft__col ul { margin: 0; padding: 0; list-style: none; }
.hf-ft__col ul ul { display: contents; }
.hf-ft__col li { margin: 0; padding: 0; }
.hf-ft__col li + li, .hf-ft__col ul ul li { margin-top: 11px; }
.hf-ft__col li a { display: inline-block; font: 500 15px/1.35 var(--hf-font); color: #bdbcb6; }
.hf-ft__col li a:hover { color: #fff; transform: translateX(2px); }
.hf-ft__col li a { transition: color .15s ease-out, transform .2s var(--hf-ease); }
.hf-ft__contacts li a { color: #fff; font-weight: 600; }
.hf-ft__addr { font: 500 14px/1.5 var(--hf-font); color: #9d9c96; }
.hf-ft__extra { margin-top: 14px; font-size: 14px; color: #9d9c96; }
.hf-ft__soc { display: flex; gap: 10px; margin-top: 20px; }
.hf-ft__soc a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .07); color: #fff; }
.hf-ft__soc a:hover { background: rgba(255, 255, 255, .15); }
.hf-ft__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .09); font: 500 13px/1.5 var(--hf-font); color: #8b8a85; }
.hf-ft__pay { display: flex; align-items: center; gap: 10px; }
.hf-ft__up { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 18px; border-radius: 20px; background: rgba(255, 255, 255, .07); color: #d9d8d2 !important; font: 600 13px/1 var(--hf-font); }
.hf-ft__up:hover { background: rgba(255, 255, 255, .15); color: #fff !important; }
.hf-ft__up .hf-i { transition: transform .2s var(--hf-ease); }
.hf-ft__up:hover .hf-i { transform: translateY(-2px); }
.hf-ft__pay img { height: 30px; width: auto; padding: 4px 6px; border-radius: 8px; background: #fff; }
@media (max-width: 991.98px) {
  footer { margin-top: 36px; }
  .hf-ft { padding: 36px 0 20px; }
  .hf-ft__top { padding-bottom: 28px; }
  .hf-ft__logo .hf-logo { width: 190px; }
  .hf-ft__reach { width: 100%; }
  .hf-ft__phone { font-size: 24px; }
  .hf-ft__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding: 28px 0; }
  .hf-ft__col li a { font-size: 15px; padding: 3px 0; }
}
@media (max-width: 380px) { .hf-ft__cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Шторка корзины ---------- */
.hf-cs .hf-sheet__panel { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
.hf-cs .hf-sheet__head { flex: none; }
.hf-cs__n { font-size: 15px; font-weight: 500; color: var(--hf-muted); }
.hf-cs__body { flex: 1; min-height: 120px; margin: 0 -16px; padding: 0 16px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.hf-cs__list { margin: 0; padding: 0; list-style: none; }
.hf-ci { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hf-line); transition: opacity .2s ease-out; }
.hf-ci:last-child { border-bottom: 0; }
.hf-ci.is-removing { opacity: .35; pointer-events: none; }
.hf-ci__img { flex: none; width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: var(--hf-soft); }
.hf-ci__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hf-ci__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hf-ci__name {
  font: 600 15px/1.3 var(--hf-font); color: var(--hf-ink); text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hf-ci__name:hover, .hf-ci__name:focus { color: var(--hf-ink); text-decoration: none; }
.hf-ci__opt { font: 500 12px/1.35 var(--hf-font); color: var(--hf-muted); }
.hf-ci__price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; font: 500 13px/1.2 var(--hf-font); color: var(--hf-muted); }
.hf-ci__price b { font: 700 16px/1.2 var(--hf-font); color: var(--hf-ink); }
button.hf-ci__rm, button.hf-ci__rm:hover, button.hf-ci__rm:focus { align-self: flex-start; margin: -6px -10px 0 0; color: #a3a29d; }
.hf-cs__foot { flex: none; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hf-line); }
.hf-cs__total { display: flex; align-items: baseline; justify-content: space-between; font: 600 15px/1.2 var(--hf-font); color: var(--hf-ink); }
.hf-cs__total b { font: 800 21px/1.2 var(--hf-font); }
.hf-cs__note { margin: 4px 0 12px; font: 500 12px/1.35 var(--hf-font); color: var(--hf-muted); }
.hf-cs__go {
  display: flex; align-items: center; justify-content: center; height: 52px; border-radius: 14px;
  background: var(--hf-ink); color: #fff; font: 700 16px/1 var(--hf-font); text-decoration: none;
}
.hf-cs__go:hover, .hf-cs__go:focus { background: #1f1e1b; color: #fff; text-decoration: none; }
.hf-cs__more, button.hf-cs__more:hover, button.hf-cs__more:focus, button.hf-cs__more:active {
  width: 100%; height: 46px; margin: 4px 0 0; border: 0; background: none; color: var(--hf-accent);
  font: 600 15px/1 var(--hf-font); text-transform: none; letter-spacing: normal;
}
.hf-cs__empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 8px calc(24px + env(safe-area-inset-bottom)); }
.hf-cs__eic { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 14px; border-radius: 50%; background: var(--hf-soft); color: var(--hf-muted); }
.hf-cs__empty b { font: 700 18px/1.25 var(--hf-font); color: var(--hf-ink); }
.hf-cs__empty p { margin: 6px 0 18px; font: 500 14px/1.4 var(--hf-font); color: var(--hf-muted); }
.hf-cs__cat, button.hf-cs__cat:hover, button.hf-cs__cat:focus, button.hf-cs__cat:active {
  height: 48px; padding: 0 22px; border: 0; border-radius: 14px; background: var(--hf-ink); color: #fff;
  font: 700 15px/1 var(--hf-font); text-transform: none; letter-spacing: normal;
}
.hf-cs__err { padding: 20px 0; font: 500 14px/1.4 var(--hf-font); color: var(--hf-muted); }
.hf-cs__load { padding: 12px 0; }
.hf-cs__load i {
  display: block; height: 76px; margin-bottom: 12px; border-radius: 14px;
  background: linear-gradient(90deg, #f1f0ec 25%, #f8f7f4 50%, #f1f0ec 75%); background-size: 200% 100%; animation: hf-shimmer 1.2s linear infinite;
}
@keyframes hf-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* iPhone: окно не прокручивается, страница листается в .hf-scroll над нижней панелью (см. nav.js) */
html.hf-shell, html.hf-shell body { height: 100%; overflow: hidden; }
html.hf-shell body { padding: 0 !important; }
.hf-scroll {
  position: fixed; top: 0; left: 0; right: 0; bottom: calc(60px + var(--hf-tabpad));
  overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch;
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); background: #fff;
}
@media (min-width: 992px) { .hf-scroll { bottom: 0; } }

/* Экран до самого низа (viewport-fit=cover): нижняя панель закрывает белым зону под полоской «домой»; по бокам — отступы под вырез камеры */
@media (max-width: 991.98px) {
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .hf-tabbar { padding-bottom: var(--hf-tabpad); }
}

@media (prefers-reduced-motion: reduce) {
  .hf-cs__load i { animation: none; }
  .hf-nav.is-stuck { animation: none; }
  .hf-mega, .hf-ov__backdrop, .hf-drawer__panel, .hf-level, .hf-search__panel, .hf-sheet__panel, .hf-mega__pimg img, .hf-nav__link::after, .hf-sr__timg img { transition: none !important; }
  .hf-drawer__panel, .hf-search__panel { transform: none; }
}
