/* =============================================================
   CLS_2_ — стили новой шапки Shop-AVD
   Все классы с префиксом CLS_2_ — нет конфликтов с OC / unishop
   ============================================================= */

:root {
  --CLS_2_blue:   #2563eb;
  --CLS_2_blue_d: #1d4ed8;
  --CLS_2_red:    #ef4444;
  --CLS_2_text:   #111827;
  --CLS_2_muted:  #6b7280;
  --CLS_2_border: #e5e7eb;
  --CLS_2_light:  #f9fafb;
  --CLS_2_bg:     #ffffff;
}

.CLS_2_top_bar *, .CLS_2_main *, .CLS_2_nav_bar *, .CLS_2_mob_bar * {
  box-sizing: border-box;
}
.CLS_2_top_bar a, .CLS_2_main a, .CLS_2_nav_bar a, .CLS_2_mob_bar a {
  text-decoration: none; color: inherit;
}

/* ══ TIER 1: топ-бар ══════════════════════════════════════ */
.CLS_2_top_bar {
  background: var(--CLS_2_bg);
  border-bottom: 1px solid var(--CLS_2_border);
  position: relative; z-index: 101;
}
.CLS_2_top_inner {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  height: 36px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.CLS_2_top_left, .CLS_2_top_right {
  display: flex; align-items: center; gap: 4px;
}
.CLS_2_top_link {
  display: flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: var(--CLS_2_muted);
  padding: 4px 9px; border-radius: 5px;
  transition: color .15s, background .15s;
  white-space: nowrap; cursor: pointer;
  background: none; border: none;
  font-family: inherit; line-height: 1;
}
.CLS_2_top_link:hover { color: var(--CLS_2_blue); background: #eff6ff; }
.CLS_2_top_link.CLS_2_red { color: var(--CLS_2_red); font-weight: 600; }
.CLS_2_top_link.CLS_2_red:hover { background: #fff1f2; }
.CLS_2_top_link svg { flex-shrink: 0; }
.CLS_2_top_sep { width: 1px; height: 16px; background: var(--CLS_2_border); flex-shrink: 0; margin: 0 2px; }

/* Phone dropdown */
.CLS_2_phone_wrap { position: relative; }
.CLS_2_phone_btn {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--CLS_2_text);
  background: none; border: none; cursor: pointer;
  font-family: inherit; padding: 4px 8px; border-radius: 5px;
  transition: color .15s, background .15s; white-space: nowrap;
}
.CLS_2_phone_btn:hover { color: var(--CLS_2_blue); background: #eff6ff; }
.CLS_2_phone_btn > svg:first-child { color: var(--CLS_2_blue); flex-shrink: 0; }
.CLS_2_phone_caret { color: var(--CLS_2_muted); transition: transform .2s; flex-shrink: 0; }
.CLS_2_phone_btn.CLS_2_open .CLS_2_phone_caret { transform: rotate(180deg); }
.CLS_2_phone_dd {
  display: none; position: absolute;
  top: calc(100% + 8px); right: 0; width: 270px;
  background: var(--CLS_2_bg); border: 1px solid var(--CLS_2_border);
  border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.12);
  padding: 18px; z-index: 500;
}
.CLS_2_phone_dd.CLS_2_open { display: block; animation: CLS2_fadeDown .15s ease; }
@keyframes CLS2_fadeDown { from{opacity:0;transform:translateY(-5px)} to{opacity:1;transform:none} }
.CLS_2_phone_dd::before {
  content:''; position: absolute; top:-6px; right:16px;
  width:11px; height:11px; background:var(--CLS_2_bg);
  border-left:1px solid var(--CLS_2_border); border-top:1px solid var(--CLS_2_border);
  transform:rotate(45deg);
}
.CLS_2_dd_company { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.8px; color:var(--CLS_2_muted); margin-bottom:10px; }
.CLS_2_dd_phones { list-style:none; margin:0 0 12px; padding:0; }
.CLS_2_dd_phones li+li { margin-top:4px; }
.CLS_2_dd_phones a {
  display:flex; align-items:center; gap:8px;
  font-size:15px; font-weight:700; color:var(--CLS_2_text);
  padding:6px 8px; border-radius:7px; transition:background .15s;
}
.CLS_2_dd_phones a::before { content:''; width:7px; height:7px; border-radius:50%; background:var(--CLS_2_blue); flex-shrink:0; }
.CLS_2_dd_phones a:hover { background:#eff6ff; color:var(--CLS_2_blue); }
.CLS_2_dd_email {
  display:flex; align-items:center; gap:7px; font-size:13px; color:var(--CLS_2_muted);
  padding:6px 8px; border-radius:7px; margin-bottom:14px; transition:background .15s;
}
.CLS_2_dd_email:hover { background:#eff6ff; color:var(--CLS_2_blue); }
.CLS_2_dd_cta {
  display:block; width:100%; padding:9px; background:var(--CLS_2_blue); color:#fff;
  border:none; border-radius:7px; font-size:13px; font-weight:600;
  cursor:pointer; text-align:center; font-family:inherit; transition:background .2s;
}
.CLS_2_dd_cta:hover { background:var(--CLS_2_blue_d); }
.CLS_2_dd_link { display:block; text-align:center; font-size:12px; color:var(--CLS_2_blue); margin-top:8px; }
.CLS_2_dd_link:hover { text-decoration:underline; }
.CLS_2_btn_callback {
  display:flex; align-items:center; gap:6px;
  background:var(--CLS_2_blue); color:#fff !important; border:none;
  padding:5px 13px; border-radius:6px; font-size:12px; font-weight:600;
  cursor:pointer; font-family:inherit; transition:background .2s; white-space:nowrap;
}
.CLS_2_btn_callback:hover { background:var(--CLS_2_blue_d); }

/* ══ TIER 2: основная шапка ═══════════════════════════════ */
/* Сброс глобального правила stylesheet.css: header { margin-top:-20px; background:url(fon.jpeg); padding-top:57px } */
header.CLS_2_main {
  margin-top: 0 !important;
  padding-top: 0 !important;
  background-image: none !important;
  box-shadow: none !important;
}
.CLS_2_main {
  background: var(--CLS_2_bg);
  border-bottom: 1px solid var(--CLS_2_border);
  position: relative; z-index: 210;
}
.CLS_2_main_inner {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  height: 72px; display: flex; align-items: center; gap: 14px;
}
.CLS_2_logo { flex-shrink:0; width:148px; display:block; line-height:0; }
.CLS_2_logo img { width:100%; height:auto; display:block; }

/* Кнопка каталога */
.CLS_2_btn_catalog {
  display:flex; align-items:center; gap:8px;
  background:var(--CLS_2_blue); color:#fff !important; border:none;
  padding:0 18px; height:46px; border-radius:10px;
  font-size:14px; font-weight:700; flex-shrink:0; white-space:nowrap;
  cursor:pointer; font-family:inherit; transition:background .2s;
}
.CLS_2_btn_catalog:hover { background:var(--CLS_2_blue_d); }
.CLS_2_catalog_grid { display:grid; grid-template-columns:1fr 1fr; gap:3px; width:14px; height:14px; flex-shrink:0; }
.CLS_2_catalog_grid span { display:block; background:rgba(255,255,255,.85); border-radius:1.5px; }

/* Поиск — id="search" сохраняем для OC AJAX */
.CLS_2_search { flex:1; }
.CLS_2_search_form {
  display:flex; align-items:stretch; height:46px;
  border:1.5px solid var(--CLS_2_border); border-radius:10px;
  overflow:hidden; background:var(--CLS_2_light);
  transition:border-color .2s, background .2s, box-shadow .2s;
}
.CLS_2_search_form:focus-within {
  border-color:var(--CLS_2_blue); background:#fff;
  box-shadow:0 0 0 3px rgba(37,99,235,.1);
}
.CLS_2_search_form input[type="text"] {
  flex:1; border:none !important; background:transparent !important;
  padding:0 16px !important; font-size:14px !important;
  color:var(--CLS_2_text) !important; outline:none !important;
  font-family:inherit !important; box-shadow:none !important; height:100% !important;
}
.CLS_2_search_form input[type="text"]::placeholder { color:#9ca3af; }
.CLS_2_search_btn {
  width:46px; height:100%; background:var(--CLS_2_blue); border:none;
  color:#fff; display:flex; align-items:center; justify-content:center;
  cursor:pointer; flex-shrink:0; transition:background .2s;
}
.CLS_2_search_btn:hover { background:var(--CLS_2_blue_d); }

/* Кнопки действий */
.CLS_2_actions { display:flex; align-items:center; gap:4px; flex-shrink:0; }
.CLS_2_act {
  position:relative; display:flex; flex-direction:column;
  align-items:center; gap:3px; padding:6px 10px; border-radius:8px;
  color:var(--CLS_2_text); background:none; border:none;
  font-size:11px; font-weight:500; white-space:nowrap;
  transition:color .15s, background .15s;
  text-decoration:none !important; cursor:pointer; line-height:1; font-family:inherit;
}
.CLS_2_act:hover { color:var(--CLS_2_blue); background:#eff6ff; }
.CLS_2_act:hover svg { color:var(--CLS_2_blue); }
.CLS_2_act svg { color:var(--CLS_2_muted); transition:color .15s; flex-shrink:0; }
.CLS_2_badge {
  position:absolute; top:2px; right:6px;
  min-width:16px; height:16px; background:var(--CLS_2_red); color:#fff;
  border-radius:20px; font-size:9px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  padding:0 3px; border:2px solid #fff; line-height:1;
}
.CLS_2_act_cart {
  flex-direction:row; gap:10px; padding:8px 16px;
  background:var(--CLS_2_blue); color:#fff !important;
  border-radius:10px; font-size:13px; font-weight:600;
}
.CLS_2_act_cart:hover { background:var(--CLS_2_blue_d); color:#fff !important; }
.CLS_2_act_cart svg { color:#fff !important; }
.CLS_2_act_cart .CLS_2_badge { top:-5px; right:-5px; background:var(--CLS_2_red); border-color:var(--CLS_2_blue); }
.CLS_2_cart_icon { position:relative; }
.CLS_2_cart_info { display:flex; flex-direction:column; align-items:flex-start; }
.CLS_2_cart_label { font-size:10px; opacity:.8; line-height:1; font-weight:500; }
.CLS_2_cart_sum { font-size:15px; font-weight:800; line-height:1.2; }

/* ══ БЛОК ТЕЛЕФОНА С ВЫПАДАЮЩИМ МЕНЮ ═══════════════════════════ */
.CLS_2_act_phone {
  flex-direction: row; align-items: center;
  gap: 10px; padding: 6px 14px;
  border-left: 1px solid rgba(255,255,255,.2);
  cursor: pointer; position: relative;
}
.CLS_2_phone_icon { color: var(--CLS_2_blue); flex-shrink:0; }
.CLS_2_act_phone_info { display:flex; flex-direction:column; gap:1px; }
.CLS_2_act_phone_num {
  font-size: 18px; font-weight: 800; color: var(--CLS_2_text);
  line-height: 1.2; white-space: nowrap;
}
.CLS_2_act_phone_free {
  font-size: 10px; color: var(--CLS_2_muted); line-height: 1.2;
  white-space: nowrap; text-transform: uppercase; letter-spacing: .03em;
}
/* Стрелка-индикатор выпадающего меню */
.CLS_2_act_phone::after {
  content: '';
  display: block;
  width: 8px; height: 8px;
  border-right: 2px solid var(--CLS_2_muted);
  border-bottom: 2px solid var(--CLS_2_muted);
  transform: rotate(45deg) translateY(-2px);
  flex-shrink: 0;
  transition: transform .2s, border-color .2s;
}
.CLS_2_act_phone.CLS_2_phone_open::after {
  transform: rotate(225deg) translateY(-2px);
  border-color: var(--CLS_2_blue);
}

/* Выпадающее меню контактов */
.CLS_2_phone_dd {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 290px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.16);
  padding: 14px 0 10px;
  z-index: 300;
}
.CLS_2_phone_dd::before {
  content: '';
  position: absolute;
  top: -7px; right: 28px;
  width: 14px; height: 7px;
  background: #fff;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.CLS_2_act_phone.CLS_2_phone_open .CLS_2_phone_dd { display: block; }

.CLS_2_phone_dd_row {
  display: flex; flex-direction: column; gap: 1px;
  padding: 6px 18px;
}
.CLS_2_phone_dd_label {
  font-size: 10px; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em;
}
.CLS_2_phone_dd_num {
  font-size: 16px; font-weight: 800; color: #111827;
  text-decoration: none; transition: color .15s;
}
.CLS_2_phone_dd_num:hover { color: var(--CLS_2_blue); }
.CLS_2_phone_dd_mail {
  font-size: 14px; font-weight: 600; color: #374151;
  text-decoration: none; transition: color .15s;
}
.CLS_2_phone_dd_mail:hover { color: var(--CLS_2_blue); }

.CLS_2_phone_dd_divider {
  height: 1px; background: #f3f4f6; margin: 6px 0;
}

.CLS_2_phone_dd_messengers {
  display: flex; gap: 8px; padding: 6px 18px;
}
.CLS_2_phone_dd_msg {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  text-decoration: none; background: #f3f4f6;
  transition: background .15s, transform .15s;
  flex-shrink: 0;
}
.CLS_2_phone_dd_msg:hover { background: #e0e7ff; transform: scale(1.1); }
.CLS_2_phone_dd_msg img { display: block; }

.CLS_2_phone_dd_bottom {
  padding: 6px 18px 2px;
  display: flex; flex-direction: column; gap: 4px;
}
.CLS_2_phone_dd_addr,
.CLS_2_phone_dd_hours {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: #6b7280; line-height: 1.4;
}
.CLS_2_phone_dd_addr svg,
.CLS_2_phone_dd_hours svg { flex-shrink:0; color: #9ca3af; }

/* ══ TIER 3: нижняя навигация ══════════════════════════════ */
.CLS_2_nav_bar {
  background: var(--CLS_2_bg);
  border-bottom: 1px solid var(--CLS_2_border);
  position: relative; z-index: 99;
  margin-bottom: 15px;
}
.CLS_2_nav_inner {
  max-width:1280px; margin:0 auto; padding:0 20px;
  display:flex; align-items:stretch; height:42px; overflow:hidden;
}
.CLS_2_nav_bar a {
  display:flex; align-items:center; gap:6px; padding:0 12px;
  font-size:13px; font-weight:500; color:var(--CLS_2_text);
  white-space:nowrap; transition:color .15s, background .15s; position:relative;
}
.CLS_2_nav_bar a svg { flex-shrink:0; color:var(--CLS_2_muted); transition:color .15s; }
.CLS_2_nav_bar a:hover { color:var(--CLS_2_blue); background:#eff6ff; }
.CLS_2_nav_bar a:hover svg { color:var(--CLS_2_blue); }
.CLS_2_nav_sep { width:1px; background:var(--CLS_2_border); margin:8px 2px; flex-shrink:0; }
.CLS_2_nav_bar .CLS_2_red { color:var(--CLS_2_red) !important; font-weight:600; }
.CLS_2_nav_bar .CLS_2_red svg { color:var(--CLS_2_red) !important; }
.CLS_2_nav_bar .CLS_2_red:hover { background:#fff1f2; }
.CLS_2_nav_hot { background:var(--CLS_2_red); color:#fff; font-size:9px; font-weight:700; padding:1px 5px; border-radius:20px; line-height:1.4; }

/* ══ МОБИЛЬНАЯ ШАПКА ═══════════════════════════════════════ */
.CLS_2_mob_bar {
  background:var(--CLS_2_bg);
  border-bottom:1px solid var(--CLS_2_border);
  position:relative; z-index:200;
  box-shadow:0 2px 12px rgba(0,0,0,.08);
}
.CLS_2_mob_inner {
  display:flex; align-items:center; justify-content:space-between;
  height:58px; padding:0 14px; gap:8px; position:relative;
}
.CLS_2_mob_left, .CLS_2_mob_right { display:flex; align-items:center; gap:4px; }
.CLS_2_mob_logo {
  position:absolute; left:50%; transform:translateX(-50%);
  display:block; line-height:0;
}
.CLS_2_mob_logo img { height:30px; width:auto; display:block; }
.CLS_2_mob_icon_btn {
  display:flex; align-items:center; justify-content:center;
  width:40px; height:40px; background:none; border:none;
  border-radius:8px; cursor:pointer; color:var(--CLS_2_text);
  transition:background .15s; position:relative;
  font-family:inherit; flex-shrink:0;
}
.CLS_2_mob_icon_btn:hover { background:var(--CLS_2_light); }
.CLS_2_mob_icon_btn .CLS_2_badge { top:1px; right:1px; min-width:14px; height:14px; font-size:8px; }

/* Бургер анимация */
.CLS_2_mob_burger_lines { display:flex; flex-direction:column; gap:5px; }
.CLS_2_mob_burger_lines span { display:block; width:20px; height:2px; background:var(--CLS_2_text); border-radius:2px; transition:all .25s; }
.CLS_2_mob_burger.CLS_2_open .CLS_2_mob_burger_lines span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.CLS_2_mob_burger.CLS_2_open .CLS_2_mob_burger_lines span:nth-child(2) { opacity:0; transform:scaleX(0); }
.CLS_2_mob_burger.CLS_2_open .CLS_2_mob_burger_lines span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* Drawer и поиск удалены — используется встроенное nmMobileMenu через show_menu_mob() */

/* ══ nm-menu-wrapper интеграция ════════════════════════════
   Кнопка #nmCategoriesBtn стилизована под наш CLS_2_nav_bar,
   горизонтальные ссылки скрыты — показываем только кнопку-триггер */
.nm-menu-wrapper {
  background: var(--CLS_2_bg) !important;
  border-bottom: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}
.nm-menu-wrapper .container { background: none !important; padding: 0 !important; max-width: 1280px; margin: 0 auto; }
.nm-menu-wrapper .nm-menu-inner { padding: 0 20px !important; min-height: 0 !important; height: 0 !important; overflow: visible !important; }
/* Кнопка «Категории» из dop.js — скрыта визуально, но кликабельна */
.nm-categories-btn {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
/* Дропдаун категорий — показывается поверх нашей шапки */
.nm-cat-wrap { position: relative !important; z-index: 300 !important; }
/* Скрываем горизонтальные ссылки nm-menu */
.nm-horizontal-menu { display: none !important; }

/* nm-submenus-container и панели подменю — position:fixed чтобы не занимать место в потоке */
#nmSubmenusContainer {
  position: fixed !important;
  top: 0; left: 0;
  width: 100%; height: 0;
  pointer-events: none;
  z-index: 490;
  overflow: visible;
}
.nm-submenu-panel {
  position: fixed !important;
  display: none;
  pointer-events: auto;
  z-index: 490;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  border-radius: 0 12px 12px 0;
  overflow-y: auto;
  max-height: 80vh;
}
.nm-submenu-panel.active { display: block; }

/* ══ ИСПРАВЛЕНИЕ BOOTSTRAP BACKDROP ════════════════════════════
   Скрываем стандартный backdrop — вместо него используем
   наш #CLS2SearchOverlay управляемый через JS                   */
.dropdown-backdrop { display: none !important; }

/* ══ ОВЕРЛЕЙ ПРИ ПОИСКЕ ════════════════════════════════════════ */
#CLS2SearchOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 150;
  backdrop-filter: blur(1px);
}
#CLS2SearchOverlay.CLS_2_open { display: block; }

/* ══ LIVE-SEARCH DROPDOWN ═══════════════════════════════════════
   .CLS_2_main z-index:210 > overlay z-index:150 — шапка всегда поверх затемнения.
   live-search вставляется common.js внутри #search после form. */
.CLS_2_search { position: relative !important; z-index: 220 !important; }

/* JS переопределяет position/top/left/width через setProperty — здесь базовые стили */
#live-search,
#search > .live-search {
  position: fixed !important;
  z-index: 9999 !important;
  margin-top: 0 !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.18) !important;
  max-height: 540px !important;
  overflow-y: auto !important;
  font-family: inherit !important;
}

#live-search ul,
#search > .live-search ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 8px 0 !important;
}

/* Товар (type=0) — flex-строка с картинкой */
#live-search ul li,
#search > .live-search ul li {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 8px 16px !important;
  cursor: pointer !important;
  transition: background .1s !important;
  border: none !important;
  background: none !important;
  line-height: 1.35 !important;
}
#live-search ul li:hover,
#search > .live-search ul li:hover { background: #eff6ff !important; }

/* Картинка */
#live-search ul li .product-image,
#search > .live-search ul li .product-image {
  flex-shrink: 0 !important;
  width: 48px !important; height: 48px !important;
}
#live-search ul li .product-image img,
#search > .live-search ul li .product-image img {
  width: 48px !important; height: 48px !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  border: 1px solid #f3f4f6 !important;
  background: #f9fafb !important;
  display: block !important;
}

/* Название */
#live-search ul li .product-name,
#search > .live-search ul li .product-name {
  flex: 1 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #111827 !important;
  min-width: 0 !important;
}

/* Цена */
#live-search ul li .product-price,
#search > .live-search ul li .product-price {
  flex-shrink: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #2563eb !important;
  text-align: right !important;
  white-space: nowrap !important;
}
#live-search ul li .product-price .special,
#search > .live-search ul li .product-price .special {
  display: block !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  color: #9ca3af !important;
  text-decoration: line-through !important;
}

/* Категория (type=1) — без картинки, с количеством товаров */
#live-search ul li:not(:has(.product-image)),
#search > .live-search ul li:not(:has(.product-image)) {
  padding: 7px 16px !important;
  font-size: 13px !important;
  color: #374151 !important;
  background: #f9fafb !important;
  border-bottom: 1px solid #f3f4f6 !important;
}
#live-search ul li:not(:has(.product-image)):hover,
#search > .live-search ul li:not(:has(.product-image)):hover {
  background: #eff6ff !important;
  color: #2563eb !important;
}

/* «Все результаты» — последний li */
#live-search ul li:last-child,
#search > .live-search ul li:last-child {
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #2563eb !important;
  border-top: 1px solid #e5e7eb !important;
  background: #f9fafb !important;
  padding: 11px 16px !important;
}

/* ══ АДАПТИВ ════════════════════════════════════════════════
   Bootstrap 3: xs < 768px, sm 768-991px, md 992-1199px, lg ≥ 1200px
   Используем Bootstrap классы hidden-xs hidden-sm на HTML-элементах
   + медиазапросы как дополнительная страховка                  */

@media (max-width: 991px) {
  /* Планшеты и телефоны: десктоп шапка через Bootstrap скрыта,
     здесь фиксируем на случай если Bootstrap не подключился */
  .CLS_2_top_bar { display: none !important; }
  .CLS_2_main    { display: none !important; }
  .CLS_2_nav_bar { display: none !important; }
  .nm-menu-wrapper { display: none !important; }
  .nm-submenus-container { display: none !important; }
  .nm-overlay { display: none !important; }
}

@media (min-width: 992px) {
  /* Десктоп: мобильная шапка скрыта */
  .CLS_2_mob_bar { display: none !important; }
}

/* Планшет: убираем подписи кнопок */
@media (max-width: 1100px) and (min-width: 992px) {
  .CLS_2_main_inner { gap: 10px; }
  .CLS_2_btn_catalog span { display: none; }
  .CLS_2_btn_catalog { padding: 0 14px; }
  .CLS_2_act:not(.CLS_2_act_cart) { padding: 6px 7px; font-size: 10px; }
}

@media (max-width: 400px) {
  .CLS_2_mob_inner { padding: 0 10px; }
}

/* ══ КАСТОМНЫЙ ПОИСК — ДРОПДАУН ════════════════════════════════ */

/* Инпут без input-lg — задаём высоту сами */
#CLS2SearchInput.CLS_2_input {
  height: 44px !important;
  font-size: 15px !important;
  padding: 0 16px !important;
  border-radius: 10px 0 0 10px !important;
}

/* Контейнер дропдауна */
#CLS2SearchDrop {
  display: none;
  position: fixed;
  z-index: 9999;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.06);
  max-height: 520px;
  overflow-y: auto;
  font-family: inherit;
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
}
#CLS2SearchDrop.CLS2_sd_open {
  display: block;
  animation: CLS2_ddAppear .22s cubic-bezier(.25,.8,.25,1) both;
}
@keyframes CLS2_ddAppear {
  from { opacity: 0; transform: translateY(-10px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Секция */
.CLS2_sd_section { padding: 6px 0; }
.CLS2_sd_label {
  padding: 6px 18px 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #9ca3af;
}

/* Разделитель между блоками */
.CLS2_sd_sep { height: 1px; background: #f1f5f9; margin: 2px 18px; }

/* Общий стиль строки */
.CLS2_sd_item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 18px; text-decoration: none; color: #111827;
  transition: background .12s;
  animation: CLS2_itemSlide .28s cubic-bezier(.25,.8,.25,1) both;
}
@keyframes CLS2_itemSlide {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}
.CLS2_sd_item:hover { background: #f0f7ff; }

/* Стрелка */
.CLS2_sd_arr { color: #d1d5db; flex-shrink: 0; margin-left: auto; transition: color .12s, transform .12s; }
.CLS2_sd_item:hover .CLS2_sd_arr { color: var(--CLS_2_blue); transform: translateX(2px); }
.CLS2_sd_arr_prod { opacity: 0; }
.CLS2_sd_prod:hover .CLS2_sd_arr_prod { opacity: 1; }

/* ── Категория ── */
.CLS2_sd_cat_ic {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  background: #eff6ff; color: #2563eb;
  display: flex; align-items: center; justify-content: center;
}
.CLS2_sd_cat_name { flex: 1; font-size: 13px; font-weight: 600; }
.CLS2_sd_cat_cnt {
  font-size: 11px; color: #9ca3af; white-space: nowrap;
  background: #f3f4f6; padding: 2px 7px; border-radius: 20px;
}

/* ── Товар ── */
.CLS2_sd_img {
  width: 54px; height: 54px; flex-shrink: 0; border-radius: 10px;
  background: #f9fafb; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #f3f4f6;
}
.CLS2_sd_img img { width: 100%; height: 100%; object-fit: contain; }
.CLS2_sd_info { flex: 1; min-width: 0; }
.CLS2_sd_name {
  font-size: 13px; font-weight: 500; line-height: 1.35; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.CLS2_sd_prices { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.CLS2_sd_price  { font-size: 14px; font-weight: 700; color: #111827; }
.CLS2_sd_old    { font-size: 12px; color: #9ca3af; text-decoration: line-through; }
.CLS2_sd_new    { font-size: 14px; font-weight: 700; color: #dc2626; }

/* ── Пусто ── */
.CLS2_sd_empty {
  padding: 36px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 14px; color: #6b7280; line-height: 1.5;
}

/* ── Футер «все результаты» ── */
.CLS2_sd_footer {
  position: sticky; bottom: 0;
  background: #fff; border-top: 1px solid #f1f5f9;
  padding: 10px 18px;
}
.CLS2_sd_all {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px; border-radius: 10px; background: #eff6ff;
  font-size: 13px; font-weight: 600; color: #2563eb;
  text-decoration: none; transition: background .15s;
}
.CLS2_sd_all:hover { background: #dbeafe; color: #1d4ed8; }

/* ── Скелетон ── */
.CLS2_sd_skeleton { cursor: default !important; }
.CLS2_sd_skeleton:hover { background: transparent !important; }
.CLS2_sk_img {
  width: 54px; height: 54px; border-radius: 10px; flex-shrink: 0;
}
.CLS2_sk_lines { flex: 1; display: flex; flex-direction: column; }
.CLS2_sk_line  { height: 13px; border-radius: 6px; }
.CLS2_sk_img, .CLS2_sk_line {
  background: linear-gradient(90deg, #f3f4f6 25%, #e9ecf0 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: CLS2_shimmer 1.4s infinite ease-in-out;
}
@keyframes CLS2_shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
