/* ═══════════════════════════════════════════════════════════
   МОБИЛЬНАЯ НАВИГАЦИЯ (D-942) — нижняя панель, шторки, поиск, корзина-полоса.
   Источник визуала: design/mockups/page-mobile-nav.html (D-940).
   Мобильная схема действует до 1199.98px; с 1200px — десктоп без изменений.
   Разметку создаёт js/nav.js. Брейкпоинты Bootstrap 5: xs<576, sm 576–767,
   md 768–991, lg 992–1199, xl≥1200.
═══════════════════════════════════════════════════════════ */

:root {
  --lider-bar-h: 64px;      /* высота нижней панели без safe-area */
  --lider-cookie-h: 0px;    /* высоту ставит nav.js, когда виден баннер cookie */
  --lider-cart-h: 0px;      /* 64px, когда видна плавающая корзина */
}
@media (min-width: 768px) { :root { --lider-bar-h: 76px; } }
/* Телефон/планшет лежа (высота до 500): панель ниже, чтобы не съедать пол-экрана (QA 13.10) */
@media (max-height: 500px) and (orientation: landscape) { :root { --lider-bar-h: 56px; } }

/* на широком экране всё это не существует */
.lider-nav-bar, .lider-nav-top, .lider-cartbar,
.lnav-drawer, .lnav-search, .lider-nav-overlay { display: none; }

/* ────────────────────────────────────────────────────────
   МОБИЛЬНАЯ СХЕМА (≤1199.98px)
──────────────────────────────────────────────────────── */
@media (max-width: 1199.98px) {

  /* Шапка (логотип, поиск, телефон, «Спросить», брендбар) убрана:
     всё это теперь в нижней панели и шторках. Оставлена тонкая полоса. */
  #header { display: none !important; }
  /* html body + !important: layout.css задаёт body{padding:0 !important}, без этого отступ не применялся
     и низ страницы (подвал) был под панелью (QA 13.10). */
  html body { padding-bottom: calc(var(--lider-bar-h) + env(safe-area-inset-bottom, 0px) + var(--lider-cart-h) + var(--lider-cookie-h)) !important; }

  /* Боковая колонка не рядом с контентом, а под ним (как на проде до 991) */
  /* flex-wrap:nowrap обязателен: у колонки с wrap ширину строки задаёт самое широкое содержимое
     (748-760 px при экране 320-744), весь контент уезжал за правый край и клипался (QA 13.10). */
  .row.row-offcanvas { flex-direction: column; flex-wrap: nowrap; }
  .row.row-offcanvas > #sidebar_first { flex-basis: auto; width: 100%; }

  /* Дерево каталога (система → узел) и блок «Нужна помощь» внутри него на мобильной
     схеме скрыты: каталог теперь в шторке «Каталог» (D-946). Разметка остаётся в HTML
     (ссылки для поисковиков), display:none убирает её и с экрана, и из дерева
     доступности. Блок «В сборе» и прочие блоки колонки не затронуты. */
  #block-lideravto-lider-sidebar-catalog-block { display: none !important; }

  /* ── Шапка сверху: логотип, телефон, вход. Не закрепляется: уезжает при прокрутке ── */
  .lider-nav-top {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    position: static; z-index: 400;
    min-height: 52px; padding: 6px 4px 6px var(--cont-pad);
    background: var(--white); border-bottom: 1px solid var(--gray-200);
  }
  .lider-nav-top__logo { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; text-decoration: none; font-weight: 800; color: var(--navy); }
  .lider-nav-top__logo img { display: block; height: 18px; width: auto; max-width: 100%; }
  .lider-call-pill {
    display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto;
    padding: 4px 12px 4px 4px; border-radius: 999px; white-space: nowrap; text-decoration: none;
    background: linear-gradient(135deg, #ff8a3d, #e85d04); color: #fff;
    font: 700 14px/1 var(--font); box-shadow: 0 3px 10px rgba(249,115,22,.35);
    -webkit-tap-highlight-color: transparent;
  }
  .lider-call-pill:hover, .lider-call-pill:focus-visible { color: #fff; filter: brightness(1.06); }
  .lider-call-pill__ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.22); font-size: 14px; }
  .lider-nav-top__user {
    display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 44px; height: 40px; color: var(--gray-500); font-size: var(--heading);
  }

  /* ── Нижняя панель ── */
  .lider-nav-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    height: calc(var(--lider-bar-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -2px 8px rgba(0,0,0,.08);
  }
  .lider-nav-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; min-height: 44px; padding: 0;
    border: 0; background: none; cursor: pointer; text-decoration: none;
    font: 600 var(--caption)/1 var(--font); color: var(--gray-600);
    -webkit-tap-highlight-color: transparent; position: relative;
  }
  .lider-nav-btn i { font-size: 24px; line-height: 1; }
  .lider-nav-btn span { line-height: 1; }
  .lider-nav-btn:hover { color: var(--navy); }
  .lider-nav-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
  .lider-nav-btn.is-active { color: var(--navy); background: var(--sky); }
  .lider-nav-btn img { display: block; width: min(132px, 86%); height: auto; margin: 0 auto; }
  .lider-nav-btn--fav { display: none; }
  /* Позвонить: приподнятая круглая кнопка посередине панели */
  .lider-nav-btn--call { color: #e85d04; overflow: visible; }
  .lider-nav-btn--call .lider-fab {
    position: absolute; left: 50%; top: -22px; transform: translateX(-50%);
    display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(145deg, #ff9248, #e85d04); color: #fff;
    box-shadow: 0 6px 16px rgba(249,115,22,.45), 0 0 0 6px var(--white);
  }
  .lider-nav-btn--call .lider-fab i { font-size: 26px; }
  .lider-nav-btn--call > span:last-child { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; }
  .lider-nav-btn--call:hover { color: #e85d04; }
  /* баннер cookie поднимаем выше кнопки «Позвонить», чтобы не перекрывались */
  body #lider-cookie-consent { margin-bottom: 26px; }
  .lider-nav-count {
    position: absolute; top: 6px; left: calc(50% + 6px);
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
    display: none; align-items: center; justify-content: center;
  }
  .lider-nav-count.is-on { display: flex; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .lider-nav-bar { grid-template-columns: repeat(5, 1fr); }
  .lider-nav-btn { font-size: var(--small); gap: 6px; }
  .lider-nav-btn i { font-size: 28px; }
  .lider-nav-btn img { width: min(190px, 86%); }
  .lider-nav-btn--fav { display: flex; }
}

/* ────────────────────────────────────────────────────────
   ЗАТЕМНЕНИЕ, БЛОКИРОВКА ПРОКРУТКИ
──────────────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
  .lider-nav-overlay {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(0,0,0,.5); touch-action: none;
    -webkit-tap-highlight-color: transparent;
  }
  body.lnav-open .lider-nav-overlay { display: block; }
  body.lnav-open--search .lider-nav-overlay { display: none; }
}
html.lider-scroll-lock, html.lider-scroll-lock body { overflow: hidden !important; }

/* ────────────────────────────────────────────────────────
   ШТОРКИ (слева «Каталог», справа «Связь» и «Избранное»)
──────────────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
  .lnav-drawer {
    display: flex; flex-direction: column; overflow: hidden;
    position: fixed; top: 0; bottom: 0; z-index: 1000;
    width: min(300px, 85vw); background: var(--white);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.4,0,.2,1), visibility 0s linear .3s;
  }
  .lnav-drawer--left { left: 0; transform: translateX(-100%); }
  .lnav-drawer--right { right: 0; transform: translateX(100%); width: min(380px, 92vw); box-shadow: -8px 0 32px rgba(0,0,0,.18); }
  body.lnav-open--cat #lnav-cat,
  body.lnav-open--contact #lnav-contact,
  body.lnav-open--fav #lnav-fav { transform: translateX(0); visibility: visible; transition-delay: 0s; }
  body.lnav-instant .lnav-drawer { transition: none !important; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .lnav-drawer--left { width: min(400px, 85vw); }
  .lnav-drawer--right { width: min(420px, 92vw); }
}
@media (prefers-reduced-motion: reduce) {
  .lnav-drawer, .lnav-search { transition: none !important; }
}

.lnav-head {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
  height: 52px; padding: 0 4px 0 16px; background: var(--navy); color: #fff;
}
.lnav-title {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--small); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.lnav-back, .lnav-x {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #fff;
  font-size: var(--heading); cursor: pointer; opacity: .9; -webkit-tap-highlight-color: transparent;
}
.lnav-back { margin-left: -12px; }
.lnav-back:hover, .lnav-x:hover { opacity: 1; }
.lnav-back:focus-visible, .lnav-x:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.lnav-body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Шаг 1 и 2: марки и модели ── */
.lnav-brand, .lnav-model {
  display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 60px; padding: 8px 16px;
  background: #fff; border: 0; border-bottom: 1px solid var(--gray-100);
  text-align: left; cursor: pointer; text-decoration: none;
  color: var(--gray-900); font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
}
.lnav-brand:active, .lnav-model:active { background: var(--gray-50); }
.lnav-brand:focus-visible, .lnav-model:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
.lnav-brand img { width: 56px; height: 32px; object-fit: contain; flex-shrink: 0; }
.lnav-brand .nm { flex: 1; font-size: var(--body); font-weight: 600; }
.lnav-model .nm { flex: 1; font-size: var(--body); font-weight: 600; min-width: 0; }
.lnav-model .nm small { display: block; font-size: var(--small); font-weight: 400; color: var(--gray-500); }
.lnav-model .ct { font-size: var(--small); color: var(--gray-500); font-weight: 600; }
.lnav-brand .bi, .lnav-model .bi { color: var(--gray-400); font-size: var(--small); }
.lnav-model--all { background: #fff7ed; }
.lnav-model--all .nm { color: #c2410c; }

/* ── Шаг 3: чип модели и дерево каталога ── */
.lnav-chipbar {
  position: sticky; top: 0; z-index: 2; padding: 12px 12px 8px;
  background: #fff; border-bottom: 1px solid var(--gray-100);
}
.lnav-chip {
  display: flex; align-items: center; min-height: 48px;
  background: var(--sky); border: 1px solid var(--sky-dark); border-radius: var(--radius-pill);
  color: var(--navy); font-weight: 700; font-size: var(--small);
}
.lnav-chip__main {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 4px 0 14px; background: none; border: 0;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.lnav-chip__main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lnav-chip__x {
  width: 46px; height: 46px; flex-shrink: 0; background: none; border: 0; color: var(--navy);
  font-size: var(--heading); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.lnav-chip__main:focus-visible, .lnav-chip__x:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; border-radius: var(--radius-pill); }
.lnav-tree { padding: 8px; }
.lnav-sys-row {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 12px;
  border: 0; border-radius: var(--radius-control-sm); background: none; cursor: pointer;
  color: var(--gray-700); font-family: var(--font); text-align: left;
}
.lnav-sys-row[aria-expanded="true"] { background: var(--navy); color: #fff; border-radius: var(--radius-control-sm) var(--radius-control-sm) 0 0; }
.lnav-sys-row:focus-visible, .lnav-uzel:focus-visible, .lnav-part:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
.lnav-sys-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--sky-dark); }
.lnav-sys-dot--1 { background: var(--accent); } .lnav-sys-dot--2 { background: #16a34a; }
.lnav-sys-dot--3 { background: #dc2626; } .lnav-sys-dot--4 { background: #0284c7; } .lnav-sys-dot--5 { background: var(--blue); }
.lnav-sys-name { flex: 1; font-size: var(--small); font-weight: 600; }
.lnav-sys-count { font-size: var(--caption); color: var(--gray-400); }
.lnav-sys-row[aria-expanded="true"] .lnav-sys-count { color: rgba(255,255,255,.7); }
.lnav-sys-row .bi { font-size: var(--small); color: var(--gray-400); }
.lnav-sys-row[aria-expanded="true"] .bi { color: rgba(255,255,255,.7); }
.lnav-uzly { padding: 4px 0 6px 10px; background: var(--gray-50); border-radius: 0 0 var(--radius-control-sm) var(--radius-control-sm); }
.lnav-uzly[hidden], .lnav-parts[hidden] { display: none; }
.lnav-uzel {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  min-height: 44px; padding: 7px 10px; background: none; cursor: pointer;
  border: 0; border-left: 3px solid transparent; border-radius: 0 6px 6px 0;
  font: var(--small) var(--font); color: var(--gray-700); text-align: left; text-decoration: none;
}
.lnav-uzel.is-active { border-left-color: var(--accent); background: rgba(249,115,22,.08); font-weight: 700; color: var(--navy); }
.lnav-uzel .ct { font-size: var(--caption); color: var(--gray-400); flex-shrink: 0; display: flex; align-items: center; gap: 4px; }
.lnav-uzel.is-active .ct { color: var(--accent-hover); }
.lnav-parts { padding: 2px 0 6px 14px; }
.lnav-part {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 6px 10px;
  border: 0; border-left: 2px solid var(--gray-200); background: none; cursor: pointer;
  font: var(--small) var(--font); color: var(--gray-700); text-align: left; text-decoration: none;
}
.lnav-part:active { background: var(--gray-100); }
.lnav-part--all { font-weight: 600; color: var(--blue); }
.lnav-part.is-active { border-left-color: var(--accent); background: rgba(249,115,22,.08); font-weight: 700; color: var(--navy); }
.lnav-part .ct { margin-left: auto; font-size: var(--caption); color: var(--gray-400); }
.lnav-note { padding: 16px; font-size: var(--small); color: var(--gray-600); }

/* ────────────────────────────────────────────────────────
   ПРАВАЯ ШТОРКА «СВЯЗЬ»
──────────────────────────────────────────────────────── */
.lider-cpanel-status {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--gray-100);
  font-size: var(--small); font-weight: 700;
}
.lider-cpanel-status .sched { width: 100%; padding-left: 16px; font-weight: 400; font-size: var(--caption); color: var(--gray-500); }
.lider-cpanel-status.on { color: var(--success); }
.lider-cpanel-status.off { color: #b45309; }
.lider-cpanel-status .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.lider-cpanel-list { display: flex; flex-direction: column; gap: 8px; padding: 8px 12px 0; }
.lider-cpanel-list .lider-contact-item {
  min-height: 60px; padding: 8px 12px; gap: 12px;
  border: 1px solid var(--gray-200); border-radius: 10px; background: #fff;
}
.lider-cpanel-list .lider-contact-item:active { background: var(--gray-50); }
.lider-cpanel-list .lider-contact-item:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.lider-cpanel-list .lider-contact-item.is-primary { background: #fff7ed; border-color: #fdba74; border-left: 4px solid #e8760a; padding-left: 12px; }
.lider-cpanel-list .lider-contact-icon { width: 44px; height: 44px; border-radius: 10px; }
.lider-cpanel-list .lider-contact-icon svg { width: 22px; height: 22px; }
.lider-cpanel-list .lider-contact-label { font-size: var(--body); font-weight: 700; }
.lider-cpanel-list .lider-contact-hint { font-size: var(--small); color: var(--gray-500); }
.lider-cpanel-list .lider-contact-item[aria-expanded="true"] { border-radius: 10px 10px 0 0; }
.lider-cpanel-list .lider-contact-item[aria-expanded="true"] .lider-contact-chevron { transform: rotate(90deg); }
.lider-cb { margin: -8px 0 0; padding: 14px; border: 1px solid var(--gray-200); border-top: 0; border-radius: 0 0 10px 10px; background: var(--gray-50); }
.lider-cb[hidden] { display: none; }
.lider-cb .lbl { display: block; margin-bottom: 6px; font-size: var(--small); font-weight: 600; color: var(--gray-700); }
.lider-cb input[type="tel"] {
  width: 100%; height: 48px; padding: 0 12px; border: 1.5px solid var(--gray-300); border-radius: var(--radius);
  font: var(--body) var(--font); background: #fff; color: var(--gray-900);
}
.lider-cb input[type="tel"]:focus { outline: none; border-color: var(--blue); }
.lider-cb .lider-cb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lider-cb .consent { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: var(--small); color: var(--gray-600); line-height: 1.35; }
.lider-cb .consent input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--blue); }
.lider-cb .consent label { display: block; min-height: 44px; padding-top: 2px; }
.lider-cb .btn { width: 100%; min-height: 48px; }
.lider-cb-error { margin: 0 0 10px; font-size: var(--small); color: var(--error); font-weight: 600; }
.lider-cb-error[hidden] { display: none; }
.lider-cb .done { align-items: flex-start; gap: 10px; color: #166534; font-size: var(--small); font-weight: 600; line-height: 1.35; }
.lider-cb .done:not([hidden]) { display: flex; }
.lider-cb .done::before { content: "\2713"; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--success); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.lider-cpanel-info { margin: 16px 12px 0; padding: 4px 0; border-top: 1px solid var(--gray-100); list-style: none; }
.lider-cpanel-info li { display: flex; gap: 12px; padding: 10px 4px; font-size: var(--small); color: var(--gray-700); line-height: 1.35; }
.lider-cpanel-info svg { color: var(--gray-400); flex-shrink: 0; margin-top: 2px; }
.lider-cpanel-cart {
  display: flex; align-items: center; gap: 12px; min-height: 56px; margin: 8px 12px 16px; padding: 8px 14px;
  border-radius: 10px; background: var(--sky); color: var(--navy); font-weight: 700; font-size: var(--body); text-decoration: none;
}
.lider-cpanel-cart .bi:first-child { font-size: 22px; }
.lider-cpanel-cart .sum { flex: 1; }
.lider-cpanel-cart small { display: block; font-weight: 400; font-size: var(--small); color: var(--gray-600); }

/* ────────────────────────────────────────────────────────
   ПОИСК (лупа в нижней панели)
──────────────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
  .lnav-search {
    display: none; flex-direction: column;
    position: fixed; left: 0; right: 0; top: 0; z-index: 880;
    bottom: calc(var(--lider-bar-h) + env(safe-area-inset-bottom, 0px));
    background: var(--white);
  }
  body.lnav-open--search .lnav-search { display: flex; }
  .lnav-search__in { display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; max-width: 760px; margin: 0 auto; }
  .lnav-s-head { display: flex; align-items: center; gap: 8px; padding: 10px 8px 10px 12px; border-bottom: 1px solid var(--gray-200); }
  .lnav-s-form {
    flex: 1; display: flex; align-items: center; height: 48px; overflow: hidden;
    border: 1.5px solid var(--blue); border-radius: var(--radius); background: #fff;
  }
  .lnav-s-form > i { margin-left: 12px; color: var(--gray-400); font-size: var(--body); }
  .lnav-s-form input[type="search"] {
    flex: 1; min-width: 0; width: auto; height: 100%; margin: 0; padding: 0 8px;
    border: 0; outline: none; box-shadow: none; border-radius: 0; background: transparent;
    font: var(--body) var(--font); color: var(--gray-900); -webkit-appearance: none; appearance: none;
  }
  /* общие стили полей сайта (рамка, фон, отступ) внутри обёртки не нужны: рамка одна, у формы */
  .lnav-s-form input[type="search"] { border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 0 !important; padding: 0 8px !important; margin: 0 !important; width: auto !important; height: 100% !important; }
  .lnav-s-form > i { position: static; }
  .lnav-s-form input[type="search"]::-webkit-search-cancel-button { display: none; }
  .lnav-s-form .clr { width: 44px; height: 48px; border: 0; background: none; color: var(--gray-400); font-size: var(--heading); display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .lnav-s-form .clr[hidden] { display: none; }
  .lnav-s-form .go { width: 56px; height: 100%; border: 0; background: var(--accent); color: #fff; font-size: var(--heading); display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .lnav-s-form:focus-within { box-shadow: 0 0 0 3px rgba(26,111,212,.2); }
  .lnav-s-x { width: 44px; height: 44px; border: 0; background: none; color: var(--gray-600); font-size: var(--heading); display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .lnav-s-body { flex: 1; overflow-y: auto; padding: 12px 12px 24px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .lnav-s-h { display: flex; align-items: center; justify-content: space-between; margin: 12px 4px 6px; font-size: var(--caption); font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em; }
  .lnav-s-h button { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--blue); font: 600 var(--small) var(--font); text-transform: none; letter-spacing: 0; cursor: pointer; }
  .lnav-s-hist { list-style: none; margin: 0; padding: 0; }
  .lnav-s-hist a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 6px; color: var(--gray-900); font-size: var(--body); text-decoration: none; border-bottom: 1px solid var(--gray-100); }
  .lnav-s-hist a i { color: var(--gray-400); }
  .lnav-s-hist a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lnav-s-pop { display: flex; flex-wrap: wrap; gap: 8px; }
  .lnav-s-pop a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--gray-200); border-radius: var(--radius-pill); background: var(--white); color: var(--gray-700); font-size: var(--small); font-weight: 500; text-decoration: none; }
  .lnav-s-sug { margin-top: 4px; overflow: hidden; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); }
  .lnav-s-sug .lider-search-suggestion-link { min-height: 56px; }
  .lnav-s-more { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 8px; color: var(--blue); font-size: var(--small); font-weight: 600; text-decoration: none; }
}

/* ────────────────────────────────────────────────────────
   ИЗБРАННОЕ: сердечки на плитках и карточке (только 768–1199, где есть кнопка в панели),
   список в правой шторке
──────────────────────────────────────────────────────── */
.lnav-heart, .lnav-heart-row { display: none; }
@media (min-width: 768px) and (max-width: 1199.98px) {
  .lnav-has-heart { position: relative; }
  .lnav-heart {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; background: none; cursor: pointer; color: var(--gray-600);
    -webkit-tap-highlight-color: transparent;
  }
  .lnav-has-heart > .lnav-heart {
    position: absolute; top: 34px; right: 2px; z-index: 3; width: 44px; height: 44px; padding: 0;
  }
  .lnav-has-heart > .lnav-heart i {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.95);
    box-shadow: 0 1px 4px rgba(15,23,42,.3); font-size: 16px; line-height: 1;
  }
  .lnav-heart[aria-pressed="true"] i, .lnav-heart:hover i { color: #dc2626; }
  .lnav-heart:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; }
  .lnav-heart-row { display: block; margin: -4px 0 12px; }
  .lnav-heart--text {
    min-height: 44px; padding: 0 14px; border: 1px solid var(--gray-300); border-radius: var(--radius);
    background: #fff; font: 600 var(--small) var(--font); color: var(--gray-700);
  }
  .lnav-heart--text i { font-size: 18px; }
}
.lnav-fav-list { list-style: none; margin: 0; padding: 8px 12px; }
.lnav-fav-item { display: flex; align-items: stretch; gap: 4px; border-bottom: 1px solid var(--gray-100); }
.lnav-fav-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 8px 0; text-decoration: none; color: var(--gray-900); }
.lnav-fav-img { flex: 0 0 60px; width: 60px; height: 60px; border-radius: var(--radius); overflow: hidden; background: var(--gray-100); }
.lnav-fav-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lnav-fav-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lnav-fav-txt .nm { font-size: var(--small); font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lnav-fav-txt .pr { font-size: var(--body); font-weight: 800; color: var(--navy); }
.lnav-fav-txt .pr.is-sold { color: var(--gray-500); font-weight: 700; font-size: var(--small); }
.lnav-fav-del { flex: 0 0 44px; width: 44px; border: 0; background: none; color: #dc2626; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lnav-fav-del:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }

/* ────────────────────────────────────────────────────────
   КОРЗИНА: плавающая полоса «В корзине N · сумма → Оформить» над панелью
──────────────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
  .lider-cartbar {
    display: none; align-items: center; gap: 12px;
    position: fixed; left: 12px; right: 12px; z-index: 850;
    bottom: calc(var(--lider-bar-h) + env(safe-area-inset-bottom, 0px) + var(--lider-cookie-h) + 12px);
    min-height: 52px; padding: 6px 6px 6px 16px;
    background: var(--navy); color: #fff; border-radius: 10px; text-decoration: none;
    box-shadow: 0 6px 20px rgba(15,45,94,.35); font-size: var(--small); font-weight: 600;
  }
  .lider-cartbar:hover { color: #fff; }
  .lider-cartbar b { font-weight: 800; }
  .lider-cartbar__sum { flex: 1; min-width: 0; }
  .lider-cartbar .btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; white-space: nowrap; }
  body.lider-cart-on .lider-cartbar { display: flex; }
  .lider-cartbar:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .lider-cartbar { left: auto; right: 24px; width: 440px; }
}
@media (max-width: 1199.98px) {
  body.lnav-open .lider-cartbar { visibility: hidden; }
}
