/* ═══════════════════════════════════════════════════════════
   МОБИЛЬНЫЙ UX — bottom nav + catalog drawer + menu sheet
   lideravto theme · Bootstrap Barrio
   Спека: ux/mobile-ux.md v1.0.0
═══════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────────────
   НИЖНЯЯ НАВИГАЦИЯ (≤991px)
──────────────────────────────────────────────────────── */

.lider-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  border-top: 1px solid #e2e8f0;
  grid-template-columns: repeat(3, 1fr);
  z-index: 500;
  box-shadow: 0 -2px 8px rgba(0,0,0,.08);
}

@media (max-width: 991.98px) {
  .lider-mobile-nav { display: grid; }
  body { padding-bottom: 60px; }
}

.lider-mobile-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font);
  color: #64748b;
  border: none;
  background: none;
  cursor: pointer;
  text-decoration: none;
  transition: color .15s, background .15s;
  position: relative;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.lider-mobile-btn:hover,
.lider-mobile-btn.is-active { color: var(--navy); background: #f8fafc; }

.lider-mobile-btn i { font-size: 22px; line-height: 1; }
.lider-mobile-btn span { line-height: 1; }

/* ────────────────────────────────────────────────────────
   OVERLAY
──────────────────────────────────────────────────────── */

.lider-mob-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
  -webkit-tap-highlight-color: transparent;
}

body.lider-catalog-open .lider-mob-overlay,
body.lider-menu-open .lider-mob-overlay { display: block; }

/* ────────────────────────────────────────────────────────
   КАТАЛОГ DRAWER — левая шторка
──────────────────────────────────────────────────────── */

.lider-catalog-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(300px, 85vw);
  background: var(--white);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.lider-catalog-open .lider-catalog-drawer { transform: translateX(0); }

.lider-catalog-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 52px;
  background: var(--navy);
  flex-shrink: 0;
}

.lider-catalog-drawer__title {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  color: var(--white);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.lider-drawer-close {
  background: none; border: none;
  color: var(--white); font-size: 20px;
  cursor: pointer; padding: 0;
  display: flex; align-items: center;
  opacity: .85; line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.lider-drawer-close:hover { opacity: 1; }

.lider-catalog-drawer__body {
  flex: 1; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Ссылки марок */
.lider-catalog-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font);
  color: #1e293b;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  transition: background .12s;
  -webkit-tap-highlight-color: transparent;
}

.lider-catalog-link:last-child { border-bottom: none; }

.lider-catalog-link:hover,
.lider-catalog-link:active {
  background: #f8fafc;
  color: var(--blue);
}

.lider-catalog-link i {
  font-size: 13px;
  color: #cbd5e1;
}

/* ────────────────────────────────────────────────────────
   МЕНЮ SHEET — нижняя шторка
──────────────────────────────────────────────────────── */

.lider-menu-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--white);
  border-radius: 16px 16px 0 0;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -4px 24px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

body.lider-menu-open .lider-menu-sheet { transform: translateY(0); }

/* Drag handle */
.lider-menu-sheet__handle {
  width: 40px; height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  margin: 10px auto 0;
  flex-shrink: 0;
}

/* Шапка: лого + крестик */
.lider-menu-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 12px;
  flex-shrink: 0;
}

.lider-menu-sheet__logo img {
  height: 32px;
  width: auto;
  display: block;
}

.lider-menu-sheet__close {
  background: none; border: none;
  font-size: 20px; color: #94a3b8;
  cursor: pointer; padding: 0;
  display: flex; align-items: center;
  -webkit-tap-highlight-color: transparent;
}

.lider-menu-sheet__close:hover { color: #1e293b; }

/* Тело: скролл */
.lider-menu-sheet__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Инфо-ссылки */
.lider-menu-link {
  display: block;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font);
  color: #1e293b;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  transition: background .12s;
  -webkit-tap-highlight-color: transparent;
}

.lider-menu-link:last-of-type { border-bottom: none; }
.lider-menu-link:hover,
.lider-menu-link:active { background: #f8fafc; color: var(--blue); }

/* Разделитель секций */
.lider-menu-divider {
  height: 6px;
  background: #f8fafc;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

/* Коммуникации: WA / Telegram / Чат */
.lider-comm-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
  transition: background .12s;
  -webkit-tap-highlight-color: transparent;
}

.lider-comm-row:hover,
.lider-comm-row:active { background: #f8fafc; }

.lider-comm-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.lider-comm-icon--wa { background: #dcfce7; color: #16a34a; }
.lider-comm-icon--tg { background: #dbeafe; color: #2563eb; }
.lider-comm-icon--chat { background: #f3e8ff; color: #9333ea; }

.lider-comm-text {
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font);
  color: #1e293b;
}

/* Телефон */
.lider-phone-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.lider-phone-row i {
  font-size: 20px;
  color: var(--blue);
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.lider-phone-number {
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font);
  color: var(--navy);
}

.lider-phone-row:hover .lider-phone-number { color: var(--blue); }

/* Поиск — прилипает к низу */
.lider-menu-sheet__search {
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 0;
  flex-shrink: 0;
  background: var(--white);
}

.lider-menu-sheet__search input {
  flex: 1;
  height: 42px;
  border: 1px solid #d1d5db;
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 0 12px;
  font-size: 14px;
  font-family: var(--font);
  color: #1e293b;
  background: #f8fafc;
  outline: none;
}

.lider-menu-sheet__search input:focus {
  border-color: var(--blue);
  background: var(--white);
}

.lider-menu-sheet__search button {
  height: 42px;
  padding: 0 16px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}

.lider-menu-sheet__search button:hover { background: var(--navy); }
