/**
 * EK-Theme for Modesy — v1.4
 * Fixes: logo overflow, burger to category bar, blue bleed, sticky header, category mosaic
 */

:root {
  --ek-blue: #1e3a78;
  --ek-blue-dark: #152c5c;
  --ek-blue-mid: #2a4d9b;
  --ek-orange: #ff6b00;
  --ek-orange-hover: #e65c00;
  --ek-orange-light: #fff4eb;
  --ek-topbar-bg: #f0f2f5;
  --ek-header-bg: #1e3a78;
  --ek-body-bg: #f4f6f9;
  --ek-card-bg: #ffffff;
  --ek-text: #1a1a1a;
  --ek-text-muted: #5a5a5a;
  --ek-border: #dde1e8;
  --ek-border-light: #eef0f4;
  --ek-price: #d32f2f;
  --ek-badge-new: #43a047;
  --ek-badge-hit: #ff6b00;
  --ek-star: #ffb300;
  --ek-shadow: 0 1px 4px rgba(0,0,0,.06);
  --ek-shadow-hover: 0 4px 16px rgba(30,58,120,.12);
  --ek-radius: 8px;
  --ek-radius-sm: 6px;
  --ek-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ek-container: 1240px;
}

/* ========== BASE ========== */
body {
  font-family: var(--ek-font) !important;
  /* background: var(--ek-body-bg) !important; */
  
    background-image: url(../img/bg-2-min.jpg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  
  color: var(--ek-text) !important;
  font-size: 14px;
  line-height: 1.45;
}
a { color: var(--ek-blue-mid); text-decoration: none; transition: color .15s; }
a:hover { color: var(--ek-orange); }
/* .container, .container-fluid { max-width: var(--ek-container); } */

/* ========== TOP-BAR СКРЫТ ========== */
#header .top-bar,
.top-bar { display: none !important; }

/* =====================================================
   HEADER — синий блок
   ===================================================== */
#header {
  position: relative;
  z-index: 1000;
  background: transparent !important; /* важно: не синий на весь header */
  box-shadow: none !important;
}

/* Только nav-top — синий */
#header .main-menu {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  margin: 0 !important;
}

#header .main-menu > .container-fluid,
#header .main-menu > .container-fluid > .row {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* === СИНИЙ БЛОК С ПОИСКОМ === */
#header .nav-top {
  /* background: var(--ek-header-bg) !important; */
  background: linear-gradient(135deg, #00418e, #000000);
  padding: 10px 0 !important;
  margin: 0 !important;
  border: none !important;
  transition: padding .25s ease, box-shadow .25s ease;
}

#header .nav-top .container {
  display: flex !important;
  align-items: center !important;
  max-width: var(--ek-container);
  padding-left: 16px !important;
  padding-right: 16px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background: transparent !important;
}

#header .nav-top .row.align-items-center {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
  background: transparent !important;
}

/* Левая часть: лого + поиск */
#header .nav-top-left {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  max-width: none !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

#header .nav-top-left .row-align-items-center {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  gap: 16px;
  margin: 0 !important;
}

/* ЛОГО — не вылезает */
#header .logo {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 160px;
  overflow: hidden;
}
#header .logo a {
  display: block;
  line-height: 0;
  max-width: 100%;
}
#header .logo img {
  max-height: 38px !important;
  max-width: 150px !important;
  width: auto !important;
  height: auto !important;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

/* ПОИСК */
#header .top-search-bar {
  flex: 1 1 auto !important;
  max-width: 560px !important;
  margin: 0 !important;
  padding: 0 !important;
}
#header .top-search-bar .form_search_main,
#header #form_validate_search {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  background: #fff;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  height: 42px;
}
#header .top-search-bar .input-search,
#header #input_search_main {
  flex: 1 1 auto !important;
  height: 42px !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #222 !important;
  outline: none !important;
}
#header .top-search-bar .btn-search,
#header .top-search-bar button.btn-search {
  flex: 0 0 auto !important;
  height: 42px !important;
  width: 48px !important;
  min-width: 48px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: var(--ek-orange) !important;
  border: none !important;
  border-radius: 0 !important;
  color: #fff !important;
  font-size: 17px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background .15s;
  box-shadow: none !important;
}
#header .top-search-bar .btn-search:hover { background: var(--ek-orange-hover) !important; }
#header .top-search-bar .btn-search i { color: #fff !important; font-size: 17px; margin: 0; }

/* Правая часть — иконки (БЕЗ гамбургера) */
#header .nav-top-right {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 0 0 12px !important;
  margin-left: auto !important;
  background: transparent !important;
}
#header .nav-top-right .nav,
#header .ek-header-icons {
  display: flex !important;
  align-items: center !important;
  gap: 0;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
#header .ek-header-icons .ek-icon-btn,
#header .nav-top-right .nav-item a {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  color: rgba(255,255,255,.95) !important;
  font-size: 10px !important;
  line-height: 1.15 !important;
  text-align: center !important;
  padding: 5px 9px !important;
  border-radius: 6px !important;
  transition: background .15s;
  position: relative;
  min-width: 44px;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  text-decoration: none !important;
}
#header .ek-header-icons .ek-icon-btn:hover,
#header .nav-top-right .nav-item a:hover {
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
}
#header .ek-header-icons .ek-icon-btn i,
#header .nav-top-right .nav-item a i {
  font-size: 20px !important;
  color: #fff !important;
  margin-bottom: 2px;
  line-height: 1;
}
#header .ek-header-icons .ek-icon-label,
#header .nav-top-right .label-nav-icon {
  font-size: 10px !important;
  color: rgba(255,255,255,.88) !important;
  white-space: nowrap;
}
#header .ek-header-icons .ek-badge,
#header .nav-top-right .notification,
#header .nav-top-right .span_cart_product_count {
  position: absolute !important;
  top: 1px !important;
  right: 3px !important;
  background: var(--ek-orange) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  min-width: 15px !important;
  height: 15px !important;
  line-height: 15px !important;
  border-radius: 50% !important;
  text-align: center !important;
  padding: 0 3px !important;
}
#header .btn-sell-now { display: none !important; }

/* ГАМБУРГЕР — скрываем из синего хедера (переносим в category bar) */
#header .nav-top .ek-burger-wrap,
#header .nav-top #ek-burger,
#header .nav-top #ek-burger-menu {
  display: none !important;
}

/* =====================================================
   CATEGORY BAR — белая полоса + гамбургер справа
   ===================================================== */
#header .nav-main {
  background: #fff !important;
  border-bottom: 1px solid var(--ek-border) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  padding: 0 !important;
  margin: 0 !important;
  position: relative;
  z-index: 999;
  /* Критично: не даём синему фону наезжать */
  clear: both;
  overflow: visible;
}

#header .nav-main .container {
  display: flex !important;
  align-items: center !important;
  max-width: var(--ek-container);
  padding-left: 16px !important;
  padding-right: 16px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background: #fff !important;
}

#header .nav-main .navbar-nav,
#header .nav-main ul.navbar-nav,
#header .nav-main > ul {
  display: flex !important;
  flex-wrap: nowrap !important;
  flex: 1 1 auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: transparent !important;
}
#header .nav-main .navbar-nav::-webkit-scrollbar { display: none; }

#header .nav-main .navbar-nav > li,
#header .nav-main ul > li {
  flex: 0 0 auto !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
}

#header .nav-main .navbar-nav > li > a,
#header .nav-main ul > li > a {
  display: block !important;
  padding: 10px 14px !important;
  color: #222 !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  border-bottom: 2px solid transparent !important;
  background: transparent !important;
  transition: color .15s, border-color .15s;
}
#header .nav-main .navbar-nav > li > a:hover,
#header .nav-main .navbar-nav > li:hover > a {
  color: var(--ek-orange) !important;
  background: transparent !important;
  border-bottom-color: var(--ek-orange) !important;
}

#header .nav-main .dropdown-menu {
  border: 1px solid var(--ek-border) !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: var(--ek-shadow-hover) !important;
  padding: 8px 0 !important;
  margin-top: 0 !important;
  background: #fff !important;
}
#header .nav-main .dropdown-menu a {
  color: #222 !important;
  padding: 8px 16px !important;
  font-size: 13px;
  display: block;
}
#header .nav-main .dropdown-menu a:hover {
  background: var(--ek-orange-light) !important;
  color: var(--ek-orange) !important;
}

/* Гамбургер в category bar (синий) */
#header .nav-main .ek-burger-wrap {
  position: relative;
  display: flex !important;
  align-items: center;
  margin-left: auto;
  flex: 0 0 auto;
  padding-left: 8px;
}

#header .nav-main .ek-burger {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px;
  height: 40px;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer;
  transition: background .15s;
}
#header .nav-main .ek-burger:hover,
#header .nav-main .ek-burger.is-active {
  background: rgba(30,58,120,.08) !important;
}

#header .nav-main .ek-burger-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}
#header .nav-main .ek-burger-lines span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ek-blue) !important; /* СИНИЙ */
  border-radius: 1px;
  transition: transform .2s, opacity .2s;
}
#header .nav-main .ek-burger.is-active .ek-burger-lines span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#header .nav-main .ek-burger.is-active .ek-burger-lines span:nth-child(2) { opacity: 0; }
#header .nav-main .ek-burger.is-active .ek-burger-lines span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#header .nav-main #ek-burger-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  padding: 8px 0;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
  pointer-events: none;
}
#header .nav-main #ek-burger-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
#header .nav-main #ek-burger-menu a {
  display: block;
  padding: 11px 20px;
  color: #222 !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  border-bottom: none !important;
}
#header .nav-main #ek-burger-menu a:hover {
  background: var(--ek-orange-light) !important;
  color: var(--ek-orange) !important;
}

/* =====================================================
   STICKY HEADER (только nav-top)
   ===================================================== */
#header .nav-top.is-sticky {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 6px 0 !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.2) !important;
  animation: ekStickyIn .28s ease forwards;
}

@keyframes ekStickyIn {
  from { transform: translateY(-100%); opacity: .7; }
  to   { transform: translateY(0); opacity: 1; }
}

/* placeholder чтобы контент не прыгал */
#header .nav-top-placeholder {
  display: none;
  height: 0;
}
#header .nav-top-placeholder.is-active {
  display: block;
}

/* =====================================================
   CATEGORY MOSAIC v2 — в стиле ek.ua
   Светлые плитки, товар-картинка сбоку, тёмный текст,
   раскладка 4 колонки × 3 ряда, слайды по 8 плиток
   ===================================================== */
.ek-mosaic {
  margin: 20px 0 32px;
  position: relative;
}

.ek-mosaic-viewport {
  overflow: hidden;
}

.ek-mosaic-track {
  display: flex;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.ek-mosaic-page {
  flex: 0 0 100%;
  min-width: 100%;
}

.ek-category-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 158px);
  gap: 10px;
}

.ek-mosaic-item {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #eef1f5;
  text-decoration: none !important;
  transition: box-shadow .18s ease, transform .18s ease;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  isolation: isolate;
}

.ek-mosaic-item:hover {
  box-shadow: 0 8px 24px rgba(16, 24, 40, .14);
  transform: translateY(-2px);
}

/* --- Картинка: не растягивается на весь блок, а "лежит" в углу --- */
/*
 * СТАРЫЙ ВАРИАНТ УБРАН.
 *
 * Раньше картинка лежала отдельным блоком шириной 58% в правом нижнем
 * углу плитки: при разных пропорциях фото вылезало за границы, а на
 * узких экранах наезжало на подпись.
 *
 * Теперь изображение — фон всей плитки (background-size: cover),
 * подпись поверх. Правила ниже в файле, раздел «СЛАЙДЕР И МОЗАИКА».
 */

.ek-mosaic-item.t1 { background: #eef2f8; }
.ek-mosaic-item.t2 { background: #f2f4f7; }
.ek-mosaic-item.t3 { background: #e8f1fb; }
.ek-mosaic-item.t4 { background: #f4f1ec; }
.ek-mosaic-item.t5 { background: #eaf3f0; }
.ek-mosaic-item.t6 { background: #f5eef0; }

/* Акцентные плитки — белый текст */
.ek-mosaic-item.accent-blue {
  background: linear-gradient(135deg, #2a4d9b, #1e3a78);
}
.ek-mosaic-item.accent-red {
  background: linear-gradient(135deg, #e8384f, #c81e37);
}
/* Подпись везде чёрная с белым контуром — читается и на цветной плитке */
.ek-mosaic-item.accent-blue .ek-mosaic-label,
.ek-mosaic-item.accent-red .ek-mosaic-label {
  color: #0d1117;
}
.ek-mosaic-item.accent-blue:hover .ek-mosaic-label,
.ek-mosaic-item.accent-red:hover .ek-mosaic-label {
  color: #0d1117;
  opacity: .9;
}

/* --- Плейсхолдер, если у категории нет картинки --- */
.ek-mosaic-item .ek-mosaic-ph {
  position: absolute;
  right: -8%;
  bottom: -14%;
  width: 55%;
  height: 78%;
  border-radius: 50% 14px 14px 50%;
  background: rgba(30, 58, 120, .07);
  z-index: 1;
}
.ek-mosaic-item.accent-blue .ek-mosaic-ph,
.ek-mosaic-item.accent-red .ek-mosaic-ph {
  background: rgba(255, 255, 255, .12);
}

/* --- Точная раскладка ek.ua для страницы из 8 плиток --- */
.ek-category-mosaic.is-8 .ek-mosaic-item:nth-child(1) { grid-area: 1 / 1 / 2 / 2; }
.ek-category-mosaic.is-8 .ek-mosaic-item:nth-child(2) { grid-area: 2 / 1 / 3 / 2; }
.ek-category-mosaic.is-8 .ek-mosaic-item:nth-child(3) { grid-area: 1 / 2 / 3 / 3; }
.ek-category-mosaic.is-8 .ek-mosaic-item:nth-child(4) { grid-area: 1 / 3 / 3 / 5; }
.ek-category-mosaic.is-8 .ek-mosaic-item:nth-child(5) { grid-area: 3 / 1 / 4 / 2; }
.ek-category-mosaic.is-8 .ek-mosaic-item:nth-child(6) { grid-area: 3 / 2 / 4 / 3; }
.ek-category-mosaic.is-8 .ek-mosaic-item:nth-child(7) { grid-area: 3 / 3 / 4 / 4; }
.ek-category-mosaic.is-8 .ek-mosaic-item:nth-child(8) { grid-area: 3 / 4 / 4 / 5; }

/* Неполные страницы — авторазмещение с сохранением span-классов */
.ek-category-mosaic:not(.is-8) {
  grid-auto-rows: 158px;
  grid-template-rows: none;
  grid-auto-flow: dense;
}
.ek-category-mosaic:not(.is-8) .ek-mosaic-item.is-tall { grid-row: span 2; }
.ek-category-mosaic:not(.is-8) .ek-mosaic-item.is-big  { grid-column: span 2; grid-row: span 2; }

/* --- Точки-пагинация --- */
.ek-mosaic-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.ek-mosaic-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #c7cdd6;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.ek-mosaic-dot:hover { background: #98a2b3; }
.ek-mosaic-dot.is-active {
  background: var(--ek-blue-mid);
  transform: scale(1.15);
}

/* --- Стрелки (появляются на hover, десктоп) --- */
.ek-mosaic-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #1a1f2e;
  box-shadow: 0 2px 12px rgba(16, 24, 40, .18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  transition: opacity .18s ease;
  z-index: 5;
}
.ek-mosaic:hover .ek-mosaic-arrow { opacity: 1; }
.ek-mosaic-arrow.prev { left: -18px; }
.ek-mosaic-arrow.next { right: -18px; }
.ek-mosaic-arrow:hover { background: var(--ek-orange); color: #fff; }
.ek-mosaic-arrow[disabled] { display: none; }

/* --- Планшет --- */
@media (max-width: 991px) {
  .ek-category-mosaic,
  .ek-category-mosaic.is-8 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-auto-rows: 132px;
    gap: 8px;
  }
  .ek-category-mosaic.is-8 .ek-mosaic-item:nth-child(n) { grid-area: auto; }
  .ek-mosaic-item.is-big { grid-column: span 2; }
  .ek-mosaic-item.is-tall { grid-row: span 1; }
  /* Картинка теперь фон на всю плитку — старые размеры не нужны */
  .ek-mosaic-item.is-tall .ek-mosaic-label,
  .ek-mosaic-item.is-big .ek-mosaic-label {
    font-size: 17px;
    padding: 14px;
    max-width: 100%;
  }
  .ek-mosaic-arrow { display: none; }
}

/* --- Мобильный --- */
@media (max-width: 575px) {
  .ek-mosaic { margin: 14px 0 24px; }
  .ek-category-mosaic,
  .ek-category-mosaic.is-8 {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 112px;
    gap: 8px;
  }
  .ek-mosaic-item.is-big { grid-column: span 2; }
  .ek-mosaic-label {
    font-size: 13px;
    padding: 11px;
    max-width: 100%;
  }
  .ek-mosaic-item.is-tall .ek-mosaic-label,
  .ek-mosaic-item.is-big .ek-mosaic-label {
    font-size: 15px;
    padding: 12px;
    max-width: 100%;
  }
  .ek-mosaic-dots { margin-top: 12px; }
}

/* ========== КАРТОЧКИ ТОВАРОВ ========== */
.product-item,
.col-product .product-item {
  background: #fff !important;
  border: 1px solid var(--ek-border-light) !important;
  border-radius: 8px !important;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-item:hover {
  box-shadow: var(--ek-shadow-hover) !important;
  transform: translateY(-2px);
}
.product-item .img-product,
.product-item .product-image {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #fafafa;
}
.product-item .img-product img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .3s;
}
.product-item:hover .img-product img { transform: scale(1.04); }
.product-item .badge-new, .product-item .label-new {
  position: absolute; top: 10px; left: 10px;
  background: var(--ek-badge-new) !important; color: #fff !important;
  font-size: 11px !important; font-weight: 600;
  padding: 3px 10px !important; border-radius: 20px !important; z-index: 2;
}
.product-item .badge-hit, .product-item .label-hit {
  position: absolute; top: 10px; left: 10px;
  background: var(--ek-badge-hit) !important; color: #fff !important;
  font-size: 11px !important; font-weight: 600;
  padding: 3px 10px !important; border-radius: 20px !important; z-index: 2;
}
.product-item .product-title, .product-item h3 {
  font-size: 13px !important; font-weight: 400 !important;
  color: #222 !important; line-height: 1.35;
  margin: 0 0 6px !important;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 55px;
}
.product-item .product-title a { color: #222 !important; }
.product-item .product-title a:hover { color: var(--ek-blue-mid) !important; }
.product-item .price, .product-item .product-price {
  font-size: 16px !important; font-weight: 700 !important;
  color: #1a1a1a !important; margin-top: auto;
}
.product-item .price-old {
  font-size: 13px; color: #999; text-decoration: line-through;
  font-weight: 400; margin-right: 6px;
}
.product-item .item-meta, .product-item .product-item-footer {
  padding: 10px 12px 14px !important;
  display: flex; flex-direction: column; flex: 1;
}

/* ========== FOOTER / BUTTONS / UTILS ========== */
.section-header .title, .section .title {
  font-size: 22px !important; font-weight: 600 !important; color: #1a1a1a !important;
}
.btn-primary, .btn-custom, .btn-add-to-cart {
  background: var(--ek-orange) !important; border-color: var(--ek-orange) !important;
  color: #fff !important; border-radius: 6px !important; font-weight: 600;
}
.btn-primary:hover, .btn-custom:hover { background: var(--ek-orange-hover) !important; }

#footer {
/*  background: #1a1f2e !important; color: #b0b8c4 !important; */
  padding-top: 15px !important; margin-top: 15px;
}
#footer .footer-title { color: #fff !important; font-size: 15px !important; font-weight: 600; }
#footer a { color: #a0a8b4 !important; font-size: 13px; }
#footer a:hover { color: var(--ek-orange) !important; }
#footer .footer-bottom {
  background: #1a1f2e !important;
  padding: 14px 0; margin-top: 30px;
}
#footer .newsletter-button {
  background: var(--ek-orange) !important; border: none !important;
  color: #fff !important; font-weight: 600;
}

.row-product { margin-left: -8px; margin-right: -8px; }
.col-product { padding-left: 8px; padding-right: 8px; margin-bottom: 16px; }
.section-slider { margin-bottom: 16px; }

/* Мобильный */
@media (max-width: 991px) {
  #header .nav-top .row.align-items-center { flex-wrap: wrap !important; }
  #header .nav-top-left { width: 100% !important; margin-bottom: 6px; }
  #header .top-search-bar { max-width: 100% !important; }
  #header .nav-top-right { width: 100% !important; justify-content: flex-end; padding-left: 0 !important; }
  #header .logo img { max-height: 32px !important; }
  #header .ek-header-icons .ek-icon-label,
  #header .nav-top-right .label-nav-icon { display: none; }
}
@media (max-width: 575px) {
  #header .top-search-bar .input-search,
  #header #input_search_main { height: 38px !important; font-size: 13px !important; }
  #header .top-search-bar .btn-search {
    height: 38px !important; width: 42px !important; min-width: 42px !important;
  }
}

/* =====================================================
   v1.4.1 — фикс сдвига хедера влево (особенно Firefox)
   ===================================================== */

/* Глобальный box-sizing */
#header,
#header *,
#header *::before,
#header *::after {
  box-sizing: border-box !important;
}

/* Внешние обёртки — на всю ширину, без сдвигов */
#header .main-menu,
#header .main-menu > .container-fluid,
#header .main-menu > .container-fluid > .row {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
}

/* nav-top — на всю ширину */
#header .nav-top {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  left: 0 !important;
  right: auto !important;
  float: none !important;
}

/* Контейнер внутри — центрируем */
#header .nav-top > .container {
  width: 100% !important;
  max-width: var(--ek-container) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  float: none !important;
  position: relative !important;
  left: 0 !important;
}

/* КРИТИЧНО: убираем Bootstrap negative margins у .row внутри хедера */
#header .nav-top .row,
#header .nav-top .row.align-items-center,
#header .nav-main .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  float: none !important;
}

/* Колонки Bootstrap внутри хедера — без float и без padding-сдвига */
#header .nav-top .col-md-7,
#header .nav-top .col-md-5,
#header .nav-top-left,
#header .nav-top-right {
  float: none !important;
  left: auto !important;
  right: auto !important;
  position: relative !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Category bar — тоже без сдвига */
#header .nav-main {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  left: 0 !important;
}

#header .nav-main > .container {
  width: 100% !important;
  max-width: var(--ek-container) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

/* Sticky тоже без сдвига */
#header .nav-top.is-sticky {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  transform: none !important; /* анимация только через keyframes opacity */
}

/* Firefox: убираем scrollbar-gutter сдвиг если есть */
@supports (-moz-appearance: none) {
  #header .nav-top > .container,
  #header .nav-main > .container {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  html {
    scrollbar-gutter: auto;
  }
}

/* =====================================================
   v1.4.2 — поиск БЕЗ зазора, радиус ВСЕГДА 5px
   ===================================================== */

#header .top-search-bar .form_search_main,
#header #form_validate_search {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  height: 42px !important;
  background: #fff !important;
  border-radius: 5px !important;          /* ВСЕГДА 5px */
  overflow: hidden !important;            /* срезает углы кнопки/инпута */
  box-shadow: 0 2px 6px rgba(0,0,0,.12) !important;
  gap: 0 !important;                      /* без зазора */
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#header .top-search-bar .input-search,
#header #input_search_main {
  flex: 1 1 auto !important;
  height: 42px !important;
  border: none !important;
  border-radius: 0 !important;            /* радиус даёт родитель */
  padding: 0 14px !important;
  margin: 0 !important;
  font-size: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
  outline: none !important;
  color: #222 !important;
}

#header .top-search-bar .btn-search,
#header .top-search-bar button.btn-search {
  flex: 0 0 auto !important;
  height: 42px !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;            /* радиус даёт родитель через overflow */
  background: #ff6b00 !important;
  color: #fff !important;
  font-size: 17px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  line-height: 1 !important;
  gap: 0 !important;
}

#header .top-search-bar .btn-search:hover {
  background: #e65c00 !important;
}

#header .top-search-bar .btn-search i {
  color: #fff !important;
  font-size: 17px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

/* Глобально фиксируем радиус 5px для всех наших UI-элементов */
:root {
  --ek-radius: 5px !important;
  --ek-radius-sm: 5px !important;
}

.product-item,
.col-product .product-item,
.btn-primary,
.btn-custom,
.btn-add-to-cart,
#header .ek-header-icons .ek-icon-btn,
#header .nav-top-right .nav-item a,
#header .nav-main .ek-burger,
.ek-mosaic-item {
  border-radius: 5px !important;
}

#footer .newsletter-input,
#footer .newsletter-button {
  /* border-radius: 5px !important; */
}

/* =====================================================
   v1.5 — СОВРЕМЕННОЕ МОБИЛЬНОЕ МЕНЮ
   ===================================================== */

/* Оверлей */
#overlay_bg.overlay-bg,
.overlay-bg {
  background: rgba(15, 23, 42, 0.55) !important;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: opacity .25s ease !important;
}

/* Сама панель — ЗАКРЫТА по умолчанию (width:0 как в Modesy) */
#navMobile.nav-mobile,
.nav-mobile {
  background: #fff !important;
  width: 0 !important;              /* закрыто! */
  max-width: 85vw !important;
  box-shadow: none !important;
  border-right: none !important;
  z-index: 9999 !important;
  overflow-x: hidden !important;
}
/* Открыта только с классом nav-mobile-open */
#navMobile.nav-mobile-open,
.nav-mobile.nav-mobile-open {
  width: 300px !important;
  box-shadow: 8px 0 32px rgba(0,0,0,.18) !important;
}

.nav-mobile-sc,
.nav-mobile-inner {
  background: #fff !important;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Шапка мобильного меню (лого + закрыть) */
.nav-mobile-header,
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-mobile-header .logo img,
.mobile-logo img {
  max-height: 32px !important;
  filter: brightness(0) invert(1);
}

/* Кнопки Sell Now */
.mobile-nav-buttons {
  padding: 12px 16px 8px !important;
}
.mobile-nav-buttons .btn-custom,
.mobile-nav-buttons .btn-block {
  background: var(--ek-orange) !important;
  border: none !important;
  border-radius: 5px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 11px 16px !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(255,107,0,.3);
}

/* Табы: Главное меню / Категории */
.nav-tabs-mobile-menu {
  display: flex !important;
  border: none !important;
  background: #f4f6f9 !important;
  margin: 0 12px 12px !important;
  border-radius: 8px !important;
  padding: 4px !important;
  gap: 4px;
}

.nav-tabs-mobile-menu .nav-link {
  flex: 1 1 50% !important;
  text-align: center !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 10px 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #666 !important;
  background: transparent !important;
  transition: all .15s ease !important;
}

.nav-tabs-mobile-menu .nav-link.active {
  background: #fff !important;
  color: var(--ek-blue) !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.08) !important;
}

/* Список ссылок */
.nav-mobile-links,
.tab-content-mobile-menu {
  padding: 0 8px 24px !important;
}

#navbar_mobile_links,
.nav-mobile .navbar-nav {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#navbar_mobile_links > li,
.nav-mobile .navbar-nav > li {
  margin: 0 !important;
  border: none !important;
}

#navbar_mobile_links > li > a,
#navbar_mobile_links > li > .nav-link,
.nav-mobile .navbar-nav > li > a,
.nav-mobile .navbar-nav > li > .nav-link {
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  padding: 13px 14px !important;
  margin: 2px 0 !important;
  border-radius: 8px !important;
  color: #1a1a1a !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  border: none !important;
  background: transparent !important;
  transition: background .12s ease, color .12s ease !important;
  line-height: 1.3 !important;
}

#navbar_mobile_links > li > a:hover,
#navbar_mobile_links > li > a:active,
.nav-mobile .navbar-nav > li > a:hover {
  background: #f0f4fa !important;
  color: var(--ek-blue) !important;
}

/* Иконки внутри пунктов */
.nav-mobile .navbar-nav > li > a .icon,
.nav-mobile .navbar-nav > li > a i,
.nav-mobile .navbar-nav > li > a svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: #6b7a90 !important;
  stroke: #6b7a90 !important;
  fill: #6b7a90 !important;
}

.nav-mobile .navbar-nav > li > a:hover .icon,
.nav-mobile .navbar-nav > li > a:hover i,
.nav-mobile .navbar-nav > li > a:hover svg {
  color: var(--ek-blue) !important;
  stroke: var(--ek-blue) !important;
}

/* Разделитель */
.nav-mobile .navbar-nav > li.divider,
.nav-mobile-divider {
  height: 1px;
  background: #eef0f4;
  margin: 10px 14px !important;
  padding: 0 !important;
  border: none !important;
}

/* Профиль в мобильном */
.nav-mobile .profile-dropdown > a {
  font-weight: 600 !important;
}
.nav-mobile .profile-dropdown img {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  object-fit: cover;
  border: 2px solid #e8eef6;
}

/* Dropdown внутри мобильного */
.nav-mobile .dropdown-menu {
  position: static !important;
  float: none !important;
  width: 100% !important;
  border: none !important;
  box-shadow: none !important;
  background: #f8fafc !important;
  border-radius: 8px !important;
  margin: 4px 0 8px !important;
  padding: 6px !important;
}
.nav-mobile .dropdown-menu a,
.nav-mobile .dropdown-menu .dropdown-item {
  padding: 10px 14px 10px 48px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  color: #444 !important;
}
.nav-mobile .dropdown-menu a:hover {
  background: #e8eef6 !important;
  color: var(--ek-blue) !important;
}

/* Категории в мобильном */
#tabMobileCategories .navbar-nav > li > a {
  font-size: 14px !important;
}
#tabMobileCategories .nav-deep-link {
  padding-left: 28px !important;
  font-size: 13px !important;
  color: #666 !important;
}

/* Язык / валюта внизу мобильного меню */
.nav-mobile .mobile-lang-currency,
.nav-mobile .nav-mobile-footer-links {
  padding: 12px 16px 24px !important;
  border-top: 1px solid #eef0f4;
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nav-mobile .mobile-lang-currency .btn,
.nav-mobile .mobile-lang-currency button,
.nav-mobile .mobile-lang-currency a {
  background: #f4f6f9 !important;
  border: 1px solid #e0e4ea !important;
  border-radius: 5px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  color: #333 !important;
  font-weight: 500 !important;
}

/* Мобильный хедер сверху (бургер + лого + поиск/корзина) */
.nav-mobile-header-container,
.mobile-nav-header-container {
  background: var(--ek-blue) !important;
  padding: 10px 12px !important;
}
.nav-mobile-header-container .btn-open-mobile-nav,
.nav-mobile-header-container .button-link {
  color: #fff !important;
  font-size: 22px !important;
  background: transparent !important;
  border: none !important;
  padding: 6px !important;
}
.nav-mobile-header-container .a-search-icon,
.nav-mobile-header-container .a-mobile-cart {
  color: #fff !important;
  font-size: 20px !important;
  position: relative;
}
.nav-mobile-header-container .a-mobile-cart .notification {
  background: var(--ek-orange) !important;
  color: #fff !important;
  font-size: 10px !important;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  border-radius: 50%;
  position: absolute;
  top: -4px;
  right: -6px;
  text-align: center;
  font-weight: 700;
}

/* Мобильный поиск */
.mobile-search-form .input-search {
  border-radius: 5px 0 0 5px !important;
  border: none !important;
  height: 40px !important;
}
.mobile-search-form .btn-search {
  border-radius: 0 5px 5px 0 !important;
  background: var(--ek-orange) !important;
  border: none !important;
  height: 40px !important;
  color: #fff !important;
}

/* Плавное появление панели (если Modesy использует transform) */
.nav-mobile {
  transition: transform .28s cubic-bezier(.4,0,.2,1) !important;
}
/**
 * EK Accessibility v2 — закрывает PSI Accessibility 78
 * Подключать ПОСЛЕ ek-theme.css
 */

/* ===== Focus ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #ff6b00 !important;
  outline-offset: 2px !important;
}

/* ===== Touch targets ≥ 44×44 ===== */
#header .ek-header-icons .ek-icon-btn,
#header .nav-top-right .nav-item a,
#header .nav-main .ek-burger,
.btn-open-mobile-nav,
.a-search-icon,
.a-mobile-cart,
#header .top-search-bar .btn-search,
.nav-tabs-mobile-menu .nav-link,
.slick-prev, .slick-next,
.product-item .btn-add-to-cart,
.btn-custom {
  min-width: 44px !important;
  min-height: 44px !important;
}

#header .nav-main .navbar-nav > li > a {
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
}

/* ===== Контраст ===== */
#header .ek-header-icons .ek-icon-label,
#header .nav-top-right .label-nav-icon {
  color: #ffffff !important;
  opacity: 1 !important;
}

#header .nav-main .navbar-nav > li > a {
  color: #1a1a1a !important;
}

.product-item .product-title a,
.product-item .price {
  color: #1a1a1a !important;
}

/* Футер — контраст ссылок */
#footer a {
  color: #d0d6e0 !important;
}
#footer a:hover {
  color: #ff6b00 !important;
}
#footer .copyright,
#footer .footer-bottom {
  color: #a8b0bc !important;
}

/* Соцсети в футере — крупнее hit-area */
#footer .social-links a,
#footer a[href*="facebook"],
#footer a[href*="instagram"],
#footer a[href*="twitter"],
#footer a[href*="youtube"],
#footer a[href*="t.me"],
#footer .footer-social a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 44px !important;
  min-height: 44px !important;
  color: #d0d6e0 !important;
}

/* ===== Изображения: место под layout (CLS + SEO) ===== */
/*
 * ВНИМАНИЕ: .ek-mosaic-item здесь БЕЗ aspect-ratio — и это важно.
 *
 * Раньше правило принудительно делало все плитки коллажа квадратными.
 * А сетка мозаики строится на плитках разной формы: обычная,
 * высокая (is-tall) и широкая большая (is-big). Квадрат ломал
 * раскладку: картинки не совпадали с блоками, вылезали за края
 * и оставляли пустые полосы.
 *
 * Пропорции плиток задаёт grid в разделе мозаики, здесь их
 * навязывать нельзя. Фон оставлен — он нужен, пока грузится
 * изображение.
 */
.product-item .img-product,
.product-item .product-image {
  aspect-ratio: 1 / 1;
  background: #f0f2f5;
}

.ek-mosaic-item {
  background: #f0f2f5;
}
.product-item .img-product img,
.product-item .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.section-slider,
.slider-container,
.home-slider {
  min-height: 180px;
}

/* ===== Screen reader only ===== */
.ek-sr-only,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ===== aria-hidden не фокусируется ===== */
[aria-hidden="true"] {
  pointer-events: none !important;
}

/* ===== Мобильные табы — корректные роли ===== */
.nav-tabs-mobile-menu .nav-link {
  min-height: 44px !important;
}

/* Кнопки слайдера */
.slick-prev, .slick-next,
button.slick-arrow {
  min-width: 44px !important;
  min-height: 44px !important;
}
/* === merged ek-a11y v2 into ek-theme — ONE file only === */

/* =====================================================
   v1.6 — КНОПКИ КАРТОЧКИ ТОВАРА (видимые!)
   ===================================================== */

/* Купить / в корзину */
.btn-product-cart,
.btn-add-to-cart,
.product-add-to-cart-container .btn-custom,
.product-add-to-cart-container .btn-md,
button.btn-product-cart,
a.btn-product-cart {
  background: #ff6b00 !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  padding: 12px 24px !important;
  border-radius: 5px !important;
  min-height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(255,107,0,.25) !important;
}
.btn-product-cart:hover,
.btn-add-to-cart:hover,
.product-add-to-cart-container .btn-custom:hover {
  background: #e65c00 !important;
  color: #ffffff !important;
}

/* Связаться с продавцом */
.btn-contact-seller,
button.btn-contact-seller {
  background: #1e3a78 !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 12px 20px !important;
  border-radius: 5px !important;
  min-height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: none !important;
}
.btn-contact-seller:hover {
  background: #152c5c !important;
  color: #ffffff !important;
}
.btn-contact-seller i {
  color: #ffffff !important;
}

/* Wishlist на странице товара — читаемый */
.btn-wishlist,
.button-container-wishlist .button-link,
.btn-add-remove-wishlist {
  color: #1a1a1a !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
  background: transparent !important;
  border: none !important;
  padding: 8px 0 !important;
}
.btn-wishlist:hover,
.btn-add-remove-wishlist:hover {
  color: #ff6b00 !important;
}
.btn-wishlist i,
.btn-add-remove-wishlist i {
  color: inherit !important;
  font-size: 18px !important;
}

/* Контейнер кнопок */
.product-add-to-cart-container,
.button-container {
  opacity: 1 !important;
  visibility: visible !important;
}
.product-add-to-cart-container .button-container {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 12px 0 !important;
}

/* Не прятать кнопки общим правилом button-link */
.product-details-right .button-link,
.product-content-details .button-link,
#product-details-container .button-link {
  color: #1a1a1a !important;
  opacity: 1 !important;
}

/* =====================================================
   v1.6.1 — ВСЕ .btn ВИДИМЫЕ (корзина, checkout, товар)
   ===================================================== */

/* Базовые кнопки Modesy — не должны быть «прозрачными» */
a.btn,
button.btn,
input.btn,
.btn {
  opacity: 1 !important;
  visibility: visible !important;
  text-decoration: none !important;
}

/* Главные CTA: оранжевые */
a.btn-block,
button.btn-block,
.btn.btn-block,
a.btn-custom,
button.btn-custom,
.btn-custom,
a.btn-primary,
button.btn-primary,
.btn-primary,
.btn-product-cart,
.btn-add-to-cart,
.btn-contact-seller,
.newsletter-button,
.cart .btn-block,
.shopping-cart .btn-block,
#wrapper .btn-block {
  background-color: #ff6b00 !important;
  background-image: none !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  padding: 12px 20px !important;
  border-radius: 5px !important;
  min-height: 44px !important;
  line-height: 1.3 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.25) !important;
}

a.btn-block:hover,
button.btn-block:hover,
.btn.btn-block:hover,
a.btn-custom:hover,
button.btn-custom:hover,
.btn-custom:hover,
a.btn-primary:hover,
button.btn-primary:hover,
.btn-primary:hover,
.btn-product-cart:hover,
.btn-contact-seller:hover {
  background-color: #e65c00 !important;
  color: #ffffff !important;
}

/* btn-block на всю ширину колонки */
a.btn-block,
button.btn-block,
.btn.btn-block {
  display: flex !important;
  width: 100% !important;
}

/* Связаться с продавцом — синий */
.btn-contact-seller {
  background-color: #1e3a78 !important;
}
.btn-contact-seller:hover {
  background-color: #152c5c !important;
}

/* Текст и иконки внутри кнопок — всегда белые */
a.btn-block,
button.btn-block,
.btn-custom,
.btn-primary,
.btn-product-cart,
.btn-contact-seller,
.btn-block *,
.btn-custom *,
.btn-primary * {
  color: #ffffff !important;
}

/* Не ломать кнопки в хедере (белые иконки) */
#header .btn-search {
  background-color: #ff6b00 !important;
  color: #ffffff !important;
}
#header .ek-icon-btn,
#header .ek-icon-btn * {
  color: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: auto !important;
  width: auto !important;
  display: flex !important;
}

/* Wishlist — не оранжевая плашка */
.btn-wishlist,
.btn-add-remove-wishlist,
.button-container-wishlist .button-link {
  background: transparent !important;
  background-color: transparent !important;
  color: #1a1a1a !important;
  box-shadow: none !important;
  width: auto !important;
  display: inline-flex !important;
  min-height: auto !important;
  padding: 8px 0 !important;
}
.btn-wishlist *,
.btn-add-remove-wishlist * {
  color: #1a1a1a !important;
}

/* Купон «Применять» — уже оранжевый, пусть остаётся */
.newsletter-button,
button.newsletter-button {
  background-color: #ff6b00 !important;
  color: #ffffff !important;
}

/* =====================================================
   v1.6.2 — TOOLTIP читаемые + кнопки на карточке товара
   ===================================================== */

/* Bootstrap tooltip — тёмный фон, белый текст */
.tooltip,
.tooltip.show {
  opacity: 1 !important;
  z-index: 9999 !important;
}
.tooltip-inner {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  padding: 6px 10px !important;
  border-radius: 4px !important;
  max-width: 220px !important;
  text-align: center !important;
  opacity: 1 !important;
}
.tooltip .arrow::before,
.bs-tooltip-top .arrow::before,
.bs-tooltip-bottom .arrow::before,
.bs-tooltip-left .arrow::before,
.bs-tooltip-right .arrow::before,
.tooltip.bs-tooltip-auto[x-placement^=top] .arrow::before,
.tooltip.bs-tooltip-auto[x-placement^=bottom] .arrow::before {
  border-top-color: #1a1a1a !important;
  border-bottom-color: #1a1a1a !important;
  border-left-color: #1a1a1a !important;
  border-right-color: #1a1a1a !important;
}

/* Кнопки на ховере карточки (корзина / wishlist) */
.product-item .item-option,
.product-item .btn-item-add-to-cart,
.product-item .btn-add-remove-wishlist,
.img-product .item-options button,
.product-item-options button {
  background: #ffffff !important;
  color: #1a1a1a !important;
  border: 1px solid #e0e4ea !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.12) !important;
  opacity: 1 !important;
  visibility: visible !important;
  padding: 0 !important;
}
.product-item .item-option:hover,
.product-item .btn-item-add-to-cart:hover,
.product-item .btn-add-remove-wishlist:hover {
  background: #ff6b00 !important;
  border-color: #ff6b00 !important;
  color: #ffffff !important;
}
.product-item .item-option i,
.product-item .btn-item-add-to-cart i,
.product-item .btn-add-remove-wishlist i {
  color: inherit !important;
  font-size: 16px !important;
  margin: 0 !important;
}

/* Не красить tooltip текст правилом btn * { color: white } */
.tooltip,
.tooltip * {
  color: #ffffff !important;
  background-image: none !important;
}
.tooltip-inner {
  background-color: #1a1a1a !important;
}


/* =====================================================
   v1.6.3 — mobile menu CLOSED + buttons via site color
   ===================================================== */

#navMobile.nav-mobile,
.nav-mobile {
  width: 0 !important;
  overflow-x: hidden !important;
}
#navMobile.nav-mobile-open,
.nav-mobile.nav-mobile-open {
  width: 300px !important;
  max-width: 85vw !important;
}

#overlay_bg:not([style*="display: block"]),
.overlay-bg:not(.active) {
  /* не форсируем display — Modesy сам show/hide */
}

/* Кнопки: фон оранжевый, но НЕ ломаем color у детей глобально */
a.btn.btn-block,
button.btn.btn-block,
.cart a.btn-block,
.shopping-cart a.btn-block {
  background-color: #ff6b00 !important;
  color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* tooltip всегда читаемый */
.tooltip-inner {
  background-color: #1a1a1a !important;
  color: #fff !important;
}

/* =====================================================
   v1.7 — МОБИЛЬНАЯ ВЁРСТКА (нормальная)
   ===================================================== */

@media (max-width: 991px) {

  /* --- Мобильный хедер --- */
  .mobile-nav-container {
    display: block !important;
  }
  .nav-mobile-header,
  .nav-mobile-header-container {
    background: linear-gradient(135deg, #00418e, #000000);
    color: #fff !important;
  }
  .nav-mobile-header-container .btn-open-mobile-nav,
  .nav-mobile-header-container .btn-open-mobile-nav i,
  .nav-mobile-header-container .a-search-icon,
  .nav-mobile-header-container .a-search-icon i,
  .nav-mobile-header-container .a-mobile-cart,
  .nav-mobile-header-container .a-mobile-cart i {
    color: #ffffff !important;
    opacity: 1 !important;
  }
  .nav-mobile-header-container .mobile-logo img,
  .mobile-logo img {
    max-height: 36px !important;
    filter: brightness(0) invert(1);
  }
  .nav-mobile-header-container .a-mobile-cart .notification,
  .nav-mobile-header-container .notification {
    background: #ff6b00 !important;
    color: #fff !important;
  }

  /* Десктоп-хедер прячем на мобилке (Modesy так и делает) */
  #header .main-menu {
    /* не трогаем display — Modesy сам через CSS */
  }

  /* --- Карточка товара на мобилке --- */
  .product-details-container,
  .product-content,
  .product-details-right,
  .row-product-details {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .product-title,
  .product-details-right h1,
  .product-description h1 {
    font-size: 20px !important;
    line-height: 1.3 !important;
    color: #1a1a1a !important;
    margin-bottom: 8px !important;
  }

  /* Цена */
  .price,
  .product-price,
  .price-new,
  .product-details-right .price {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    opacity: 1 !important;
  }

  /* Рейтинг — не ломаем звёзды Modesy */
  .rating,
  .product-rating,
  .rating-stars,
  .stars {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 2px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .rating i,
  .rating-stars i,
  .rating .icon-star,
  .rating .icon-star-o,
  .stars i {
    font-size: 14px !important;
    color: #ffb300 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .rating .icon-star-o {
    color: #ccc !important;
  }

  /* Кнопки покупки / связи — КРУПНЫЕ и ВИДНЫЕ */
  .product-add-to-cart-container,
  .button-container {
    display: block !important;
    width: 100% !important;
    margin: 16px 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .product-add-to-cart-container .btn,
  .product-add-to-cart-container .btn-custom,
  .product-add-to-cart-container .btn-product-cart,
  .product-add-to-cart-container .btn-block,
  .btn-contact-seller,
  .btn-product-cart {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px 0 !important;
    min-height: 48px !important;
    font-size: 16px !important;
    background-color: #ff6b00 !important;
    color: #ffffff !important;
    border-radius: 5px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .btn-contact-seller {
    background-color: #1e3a78 !important;
  }

  .btn-wishlist,
  .btn-add-remove-wishlist {
    display: inline-flex !important;
    color: #1a1a1a !important;
    background: transparent !important;
    width: auto !important;
    margin-top: 8px !important;
  }

  /* Характеристики товара */
  .product-description table,
  .row-custom.product-details,
  .product-details-list {
    font-size: 14px !important;
    color: #333 !important;
  }

  /* Хлебные крошки */
  .breadcrumb,
  .nav-breadcrumb {
    font-size: 12px !important;
    padding: 8px 12px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
  }

  /* Вкладки описание / отзывы */
  .nav-tabs,
  .product-tabs .nav-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .nav-tabs .nav-link {
    white-space: nowrap !important;
    font-size: 13px !important;
    padding: 10px 14px !important;
    color: #333 !important;
  }
  .nav-tabs .nav-link.active {
    color: #1e3a78 !important;
    font-weight: 600 !important;
  }

  /* Сетка товаров */
  .col-product {
    margin-bottom: 12px !important;
  }
  .product-item .product-title {
    min-height: 51px !important;
    font-size: 13px !important;
  }
  .product-item .price {
    font-size: 15px !important;
  }

  /* Фильтры */
  .btn-filter-products-mobile .btn {
    background: #fff !important;
    color: #1a1a1a !important;
    border: 1px solid #dde1e8 !important;
    border-radius: 5px !important;
  }
}

@media (max-width: 575px) {
  .product-title,
  .product-details-right h1 {
    font-size: 18px !important;
  }
  .price,
  .product-price {
    font-size: 22px !important;
  }
  .product-add-to-cart-container .btn,
  .btn-contact-seller,
  .btn-product-cart {
    font-size: 15px !important;
    min-height: 46px !important;
  }
}

/* Звёзды — глобально не ломать (все разрешения) */
.rating i,
.product-rating i,
.rating-stars i,
.stars i,
.label-star i {
  opacity: 1 !important;
  visibility: visible !important;
}
.icon-star {
  color: #ffb300 !important;
}
.icon-star-o {
  color: #c8c8c8 !important;
}

/* ===== Компактный переключатель EN · RU ===== */
.ek-lang {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  margin: 0 0 0 12px !important;
  padding: 0 !important;
  list-style: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

.ek-lang-item {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 6px !important;
  margin: 0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border-radius: 4px !important;
  transition: color .15s ease, background .15s ease !important;
  line-height: 1.2 !important;
}

.ek-lang-item:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.12) !important;
}

.ek-lang-item.is-active {
  color: #fff !important;
  pointer-events: none !important; /* активный не кликабелен */
}

.ek-lang-sep {
  color: rgba(255,255,255,0.35) !important;
  font-size: 11px !important;
  margin: 0 1px !important;
  user-select: none !important;
  line-height: 1 !important;
}

/* Если язык стоит в белой/светлой полосе категорий — тёмный вариант */
.navbar .ek-lang .ek-lang-item {
  color: #6b7280 !important;
}
.navbar .ek-lang .ek-lang-item:hover {
  color: #1e3a78 !important;
  background: rgba(30,58,120,0.08) !important;
}
.navbar .ek-lang .ek-lang-item.is-active {
  color: #1e3a78 !important;
  background: rgba(30,58,120,0.1) !important;
}
.navbar .ek-lang .ek-lang-sep {
  color: #c5cad3 !important;
}

/* Мобильный — чуть компактнее */
@media (max-width: 991px) {
  .ek-lang {
    margin-left: 8px !important;
  }
  .ek-lang-item {
    padding: 3px 5px !important;
    font-size: 11px !important;
  }
}

/* ===== Телефон в хедере (как artmobile) ===== */
.ek-phone {
  position: relative;
  margin-right: 8px;
  flex-shrink: 0;
}

.ek-phone-btn {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: transparent !important;
  border: none !important;
  padding: 6px 10px !important;
  border-radius: 8px !important;
  cursor: pointer;
  color: #fff !important;
  transition: background .15s ease;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}

.ek-phone-btn:hover,
.ek-phone.is-open .ek-phone-btn {
  background: rgba(255,255,255,.12) !important;
}

.ek-phone-icon {
  font-size: 22px !important;
  color: #fff !important;
  line-height: 1 !important;
  flex-shrink: 0;
}

.ek-phone-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.ek-phone-label {
  font-size: 10px !important;
  color: rgba(255,255,255,.7) !important;
  font-weight: 400 !important;
  letter-spacing: 0.2px;
}

.ek-phone-num {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #fff !important;
  letter-spacing: 0.3px;
}

.ek-phone-caret {
  font-size: 11px !important;
  color: rgba(255,255,255,.6) !important;
  transition: transform .2s ease;
  margin-left: 2px;
}

.ek-phone.is-open .ek-phone-caret {
  transform: rotate(180deg);
}

/* Выпадающий список */
.ek-phone-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 175px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .18s ease;
  z-index: 1100;
  pointer-events: none;
}

.ek-phone.is-open .ek-phone-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.ek-phone-item {
  display: flex !important;
  flex-direction: column !important;
  padding: 10px 16px !important;
  text-decoration: none !important;
  color: #1a1a1a !important;
  transition: background .12s ease;
  line-height: 1.25 !important;
}

.ek-phone-item:hover {
  background: #f5f7fb !important;
  color: #1e3a78 !important;
}

.ek-phone-op {
  font-size: 11px !important;
  color: #8a94a6 !important;
  margin-bottom: 2px;
}

.ek-phone-number {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: inherit !important;
  letter-spacing: 0.2px;
}

/* Мобильный — скрываем текст, оставляем только иконку */
@media (max-width: 991px) {
  .ek-phone {
    margin-right: 4px;
  }
  .ek-phone-main,
  .ek-phone-caret {
    display: none !important;
  }
  .ek-phone-btn {
    padding: 8px !important;
  }
  .ek-phone-icon {
    font-size: 20px !important;
  }
  .ek-phone-dropdown {
    right: -20px;
    min-width: 220px;
  }
}

/* ===== КРИТИЧЕСКИЙ ФИКС: список категорий ===== */
#header .top-search-bar .form_search_main,
#header #form_validate_search {
  overflow: visible !important;
}

/* Сохраняем скругления, которые раньше делал overflow:hidden */
#header .top-search-bar .left {
  border-radius: 5px 0 0 5px !important;
  overflow: hidden !important;   /* только левая часть */
}

#header .top-search-bar .btn-search,
#header .top-search-bar button.btn-search {
  border-radius: 0 5px 5px 0 !important;
  top: -1px;
  right: -2px;
}

/* Чтобы меню было поверх всего */
#header .top-search-bar .dropdown-menu.search-categories {
  z-index: 1050 !important;
  margin-top: 2px !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.16) !important;
  max-height: 400px;
  overflow-y: auto !important;
}

/* =====================================================================
   ==  EK-THEME v2.0 — МОБИЛЬНАЯ ВЕРСИЯ + ОБЩАЯ ПОЛИРОВКА             ==
   ==  Блок идёт последним и намеренно перекрывает ранние правила     ==
   ===================================================================== */

:root {
  --ek-grad: linear-gradient(135deg, #00418e 0%, #002a5e 55%, #000000 100%);
  --ek-grad-soft: linear-gradient(135deg, #0a4e9e 0%, #062f66 100%);
  --ek-ink: #101828;
  --ek-ink-2: #475467;
  --ek-ink-3: #667085;
  --ek-line: #e4e7ec;
  --ek-surface: #ffffff;
  --ek-surface-2: #f7f9fc;
}

/* =====================================================
   2.0 — МОБИЛЬНЫЙ ХЕДЕР: фирменный градиент
   Раньше .nav-mobile-header-container перебивал градиент
   плоским var(--ek-blue) с !important — исправлено.
   ===================================================== */
#header .nav-mobile-header,
.nav-mobile-header,
#header .nav-mobile-header-container,
.nav-mobile-header-container,
.mobile-nav-header-container,
.mobile-nav-container .nav-mobile-header {
  background: var(--ek-grad) !important;
  background-color: #00418e !important;
}

/* Внешняя обёртка мобильного хедера — тот же градиент,
   чтобы полоса поиска не отрывалась по цвету */
.mobile-nav-container,
#header .mobile-nav-container {
  background: var(--ek-grad) !important;
  box-shadow: 0 2px 10px rgba(0, 20, 60, .18);
}

.mobile-nav-container > .container-fluid,
.mobile-nav-container > .container-fluid > .row {
  background: transparent !important;
  margin: 0 !important;
}

.nav-mobile-header-container {
  padding: 10px 14px 6px !important;
}

/* Логотип */
.nav-mobile-header-container .mobile-logo img,
.mobile-logo img {
  max-height: 34px !important;
  width: auto !important;
  filter: brightness(0) invert(1);
}

/* Иконки в мобильном хедере — крупнее и с hit-area */
.nav-mobile-header-container .btn-open-mobile-nav,
.nav-mobile-header-container .a-search-icon,
.nav-mobile-header-container .a-mobile-cart {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 42px !important;
  min-height: 42px !important;
  color: #fff !important;
  border-radius: 8px !important;
  transition: background .15s ease;
}
.nav-mobile-header-container .btn-open-mobile-nav:active,
.nav-mobile-header-container .a-search-icon:active,
.nav-mobile-header-container .a-mobile-cart:active {
  background: rgba(255, 255, 255, .14) !important;
}
.nav-mobile-header-container .btn-open-mobile-nav i,
.nav-mobile-header-container .a-search-icon i,
.nav-mobile-header-container .a-mobile-cart i {
  font-size: 21px !important;
  color: #fff !important;
}

/* Мобильный поиск на градиенте */
.mobile-nav-container .mobile-search-form,
.top-search-bar.mobile-search-form {
  padding: 0 14px 12px !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
}
.mobile-search-form form {
  display: flex !important;
  width: 100%;
  border-radius: 9px !important;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  height: 42px;
}
.mobile-search-form .left { flex: 0 0 auto; }
.mobile-search-form .right {
  flex: 1 1 auto;
  display: flex;
  position: relative;
}
.mobile-search-form .input-search {
  flex: 1 1 auto;
  border: none !important;
  border-radius: 0 !important;
  height: 42px !important;
  padding: 0 12px !important;
  font-size: 14px !important;
  box-shadow: none !important;
  outline: none !important;
  color: #101828 !important;
}
.mobile-search-form .btn-search {
  flex: 0 0 46px;
  width: 46px !important;
  height: 42px !important;
  border: none !important;
  border-radius: 0 !important;
  background: var(--ek-orange) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.mobile-search-form .search-select .dropdown-toggle {
  height: 42px !important;
  border: none !important;
  background: #f2f4f7 !important;
  color: #344054 !important;
  font-size: 12px !important;
  padding: 0 24px 0 12px !important;
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =====================================================
   2.0 — БОКОВОЕ МОБИЛЬНОЕ МЕНЮ
   ===================================================== */
body.ek-nav-lock {
  overflow: hidden !important;
  touch-action: none;
}

#navMobile.nav-mobile,
.nav-mobile {
  background: #fff !important;
  border-right: none !important;
  box-shadow: none !important;
}
#navMobile.nav-mobile-open,
.nav-mobile.nav-mobile-open {
  width: 302px !important;
  max-width: 88vw !important;
  box-shadow: 10px 0 40px rgba(16, 24, 40, .22) !important;
}

/* Шапка панели — тот же градиент, что и хедер */
.nav-mobile .mobile-nav-buttons {
  background: var(--ek-grad) !important;
  padding: 16px 16px 16px !important;
  margin: 0 !important;
}
.nav-mobile .mobile-nav-buttons .btn-custom,
.nav-mobile .mobile-nav-buttons .btn-block {
  background: var(--ek-orange) !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 12px 16px !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(255, 107, 0, .32) !important;
  letter-spacing: .1px;
}
.nav-mobile .mobile-nav-buttons:empty {
  display: none !important;
}

/* Табы «Главное меню / Категории» */
.nav-tabs-mobile-menu {
  display: flex !important;
  border: none !important;
  background: #eef1f6 !important;
  margin: 14px 14px 10px !important;
  border-radius: 9px !important;
  padding: 4px !important;
  gap: 4px;
}
.nav-tabs-mobile-menu .nav-link {
  flex: 1 1 50% !important;
  min-height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  border-radius: 7px !important;
  padding: 9px 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--ek-ink-2) !important;
  background: transparent !important;
  transition: all .15s ease !important;
}
.nav-tabs-mobile-menu .nav-link.active {
  background: #fff !important;
  color: #00418e !important;
  box-shadow: 0 1px 4px rgba(16, 24, 40, .1) !important;
}

/* Пункты списка */
.nav-mobile .navbar-nav > li > a,
.nav-mobile .navbar-nav .nav-link,
#navbar_mobile_links > li > a,
#navbar_mobile_categories > li > a {
  display: flex !important;
  align-items: center !important;
  min-height: 46px !important;
  padding: 11px 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--ek-ink) !important;
  border-bottom: 1px solid #f0f2f5 !important;
  border-radius: 0 !important;
  background: transparent !important;
  transition: background .12s ease, color .12s ease;
}
.nav-mobile .navbar-nav > li > a:active,
.nav-mobile .navbar-nav .nav-link:active {
  background: #f5f7fa !important;
  color: #00418e !important;
}
.nav-mobile .navbar-nav > li:last-child > a {
  border-bottom: none !important;
}

/* Иконка-стрелка у категорий с потомками */
#navbar_mobile_categories .nav-link {
  justify-content: space-between !important;
}
#navbar_mobile_categories .nav-link .icon-arrow-right {
  font-size: 13px !important;
  color: var(--ek-ink-3) !important;
  margin-left: auto;
}

/* Кнопка «назад» в категориях */
#navbar_mobile_back_button a,
#navbar_mobile_back_button .nav-link {
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  min-height: 44px !important;
  padding: 10px 16px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  color: #00418e !important;
  background: #f2f6fc !important;
  border-bottom: 1px solid #e4ebf5 !important;
}

/* Профиль внутри меню */
.nav-mobile .profile-dropdown > a.image-profile-drop {
  gap: 10px;
  font-weight: 600 !important;
  background: var(--ek-surface-2) !important;
}
.nav-mobile .profile-dropdown img {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  object-fit: cover;
  margin-right: 8px;
}
.nav-mobile .profile-dropdown .dropdown-menu {
  position: static !important;
  float: none !important;
  width: 100% !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #fafbfc !important;
}
.nav-mobile .profile-dropdown .dropdown-menu > li > a,
.nav-mobile .profile-dropdown .dropdown-menu .btn-logout-mobile {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  width: 100% !important;
  min-height: 42px !important;
  padding: 10px 16px 10px 26px !important;
  font-size: 13.5px !important;
  color: var(--ek-ink-2) !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #eef0f3 !important;
  text-align: left !important;
}
.nav-mobile .profile-dropdown .dropdown-menu i,
.nav-mobile .profile-dropdown .dropdown-menu .isvg {
  width: 18px;
  display: inline-flex;
  justify-content: center;
  color: var(--ek-ink-3) !important;
}

/* Язык / валюта внизу меню */
.nav-mobile .mobile-flex-dropdowns {
  gap: 10px;
  padding: 14px 16px 24px !important;
  border-top: 1px solid var(--ek-line) !important;
  margin-top: 8px;
  background: var(--ek-surface-2) !important;
}
.nav-mobile .mobile-flex-dropdowns .nav-link {
  min-height: 38px !important;
  padding: 8px 12px !important;
  border: 1px solid var(--ek-line) !important;
  border-radius: 7px !important;
  background: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
.nav-mobile .mobile-flex-dropdowns .flag {
  width: 18px;
  height: auto;
  margin-right: 6px;
  border-radius: 2px;
}

/* Оверлей */
#overlay_bg.overlay-bg,
.overlay-bg {
  background: rgba(16, 24, 40, .55) !important;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* =====================================================
   2.0 — ОБЩАЯ ТИПОГРАФИКА И ЦВЕТА (профессиональный вид)
   ===================================================== */
body {
  color: var(--ek-ink) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  color: var(--ek-ink) !important;
  letter-spacing: -.2px;
}

.section-header .title,
.section-header h3.title {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: var(--ek-ink) !important;
  letter-spacing: -.3px;
}
.section-header .title a { color: inherit !important; }
.section-header .title a:hover { color: var(--ek-orange) !important; }

.index-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--ek-ink-2) !important;
  margin: 4px 0 10px !important;
  padding: 0 15px;
}

/* Карточка товара — единые цвета и отступы */
.product-item {
  border: 1px solid var(--ek-line) !important;
  border-radius: 10px !important;
  background: var(--ek-surface) !important;
}
.product-item .product-title a {
  color: var(--ek-ink) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}
.product-item .product-title a:hover { color: #00418e !important; }
.product-item .product-user a { color: var(--ek-ink-3) !important; font-size: 12px !important; }
.product-item .item-details { padding: 10px 12px 12px !important; }

.product-item .price,
.product-item .price-new,
.price-current {
  color: var(--ek-ink) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
}
.product-item .price-old,
.price-discounted {
  color: var(--ek-ink-3) !important;
  font-weight: 400 !important;
  font-size: 12.5px !important;
  text-decoration: line-through !important;
}

.badge-discount {
  background: #d92d20 !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 5px !important;
  padding: 3px 7px !important;
  font-size: 11px !important;
}
.badge-promoted {
  background: rgba(16, 24, 40, .78) !important;
  color: #fff !important;
  border-radius: 5px !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
}

/* Кнопки — единый стиль */
.btn-custom,
.btn-primary,
.btn-add-to-cart {
  background: var(--ek-orange) !important;
  border: 1px solid var(--ek-orange) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  letter-spacing: .1px;
  transition: background .15s ease, box-shadow .15s ease;
}
.btn-custom:hover,
.btn-primary:hover,
.btn-add-to-cart:hover {
  background: var(--ek-orange-hover) !important;
  border-color: var(--ek-orange-hover) !important;
  box-shadow: 0 4px 14px rgba(255, 107, 0, .3) !important;
}

.btn-secondary,
.btn-outline {
  background: #fff !important;
  border: 1px solid var(--ek-line) !important;
  color: var(--ek-ink) !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}
.btn-secondary:hover,
.btn-outline:hover {
  border-color: #00418e !important;
  color: #00418e !important;
  background: #f5f8fd !important;
}

/* Полосы категорий — читаемые пункты */
#header .nav-main .navbar-nav > li > a {
  color: var(--ek-ink) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  padding: 0 13px !important;
}
#header .nav-main .navbar-nav > li > a:hover {
  color: #00418e !important;
}

/* Футер — контраст */
#footer {
  background: #0f172a !important;
  color: #cbd5e1 !important;
}
#footer .footer-title {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .2px;
}
#footer a { color: #cbd5e1 !important; }
#footer a:hover { color: var(--ek-orange) !important; }
#footer .footer-bottom {
  background: #0a1120 !important;
  border-top: 1px solid rgba(255, 255, 255, .07) !important;
}
#footer .copyright { color: #94a3b8 !important; }

/* =====================================================
   2.0 — АДАПТИВ: планшет и телефон
   ===================================================== */
@media (max-width: 992px) {
  /* Брейкпоинт совпадает с Modesy (style-2.4.css: max-width 992px) */
  .container,
  .container-fluid { padding-left: 12px !important; padding-right: 12px !important; }

  .section-header .title,
  .section-header h3.title { font-size: 16px !important; }

  .row-product { margin-left: -5px !important; margin-right: -5px !important; }
  .col-product { padding-left: 5px !important; padding-right: 5px !important; margin-bottom: 10px !important; }

  .product-item .item-details { padding: 9px 10px 10px !important; }
  .product-item .product-title a { font-size: 13px !important; }
  .product-item .price,
  .product-item .price-new { font-size: 15px !important; }

  .index-title { font-size: 14px !important; padding: 0 3px; }
}

@media (max-width: 575px) {
  .section-header { margin-bottom: 10px !important; }
  .section-header .title,
  .section-header h3.title { font-size: 15px !important; }

  .product-item .product-title a { font-size: 12.5px !important; }
  .product-item .price,
  .product-item .price-new { font-size: 14.5px !important; }
  .product-item .product-user { display: none !important; }

  /* Крупные CTA на всю ширину */
  .product-details-right .btn-custom,
  .product-details-right .btn-block { width: 100% !important; min-height: 48px !important; }

  #footer .footer-widget { margin-bottom: 18px !important; }
}

/* Убираем «ловушку» pointer-events для кликабельных иконок */
a[aria-hidden="true"],
button[aria-hidden="true"] { pointer-events: auto !important; }
#searchIconMobile { pointer-events: auto !important; }


/* =====================================================================
   ==  EK-THEME v2.1                                                   ==
   ==  1) слайдер по пропорциям картинки на мобильном                  ==
   ==  2) современное мобильное меню + анимация гамбургера             ==
   ==  7) фикс: выпадающий список "Все категории" был обрезан          ==
   ===================================================================== */

/* =====================================================
   [7] КРИТИЧНО: список "Все категории" не был виден
   Причина: .left имел overflow:hidden ради скругления,
   и он же обрезал абсолютно спозиционированное меню.
   Скругление переносим на сам элемент внутри.
   ===================================================== */
#header .top-search-bar .left,
.mobile-search-form .left {
  overflow: visible !important;
  border-radius: 0 !important;
}
#header .top-search-bar .left .search-select,
.mobile-search-form .left .search-select {
  overflow: visible !important;
  position: relative !important;
}
#header .top-search-bar .left .dropdown-toggle,
.mobile-search-form .left .dropdown-toggle {
  border-radius: 8px 0 0 8px !important;
}
#header .top-search-bar .form_search_main,
#header #form_validate_search,
.mobile-search-form form,
#form_validate_search_mobile {
  overflow: visible !important;
}

/* Само меню категорий — поверх всего и видимое */
#header .top-search-bar .dropdown-menu.search-categories,
.mobile-search-form .dropdown-menu.search-categories,
.search-select .dropdown-menu.search-categories {
  display: none;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: auto !important;
  min-width: 240px !important;
  max-height: 60vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  margin-top: 4px !important;
  padding: 6px !important;
  background: #fff !important;
  border: 1px solid var(--ek-line, #e4e7ec) !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 32px rgba(16, 24, 40, .18) !important;
  z-index: 100000 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  clip: auto !important;
  -webkit-clip-path: none !important;
  clip-path: none !important;
}
#header .top-search-bar .dropdown-menu.search-categories.show,
.mobile-search-form .dropdown-menu.search-categories.show,
.search-select .dropdown-menu.search-categories.show {
  display: block !important;
}
.search-select .dropdown-menu.search-categories .dropdown-item {
  display: block !important;
  padding: 9px 12px !important;
  border-radius: 6px !important;
  font-size: 13.5px !important;
  color: var(--ek-ink, #101828) !important;
  white-space: normal !important;
  line-height: 1.35 !important;
}
.search-select .dropdown-menu.search-categories .dropdown-item:hover,
.search-select .dropdown-menu.search-categories .dropdown-item:focus {
  background: var(--ek-orange-light, #fff4eb) !important;
  color: var(--ek-orange, #ff6b00) !important;
}

/* Родители не должны обрезать меню */
#header .nav-top,
#header .nav-top .container,
#header .nav-top-left,
#header .top-search-bar,
.mobile-nav-container,
.mobile-nav-container .row {
  overflow: visible !important;
}

/* =====================================================
   [1] СЛАЙДЕР: на мобильном высота идёт от картинки
   ===================================================== */
.ek-slide-img { display: none; }

@media (max-width: 992px) {
  .index-mobile-slider,
  .index-mobile-slider .slider-container,
  .index-mobile-slider .main-slider,
  .index-mobile-slider .slick-list,
  .index-mobile-slider .slick-track,
  .index-mobile-slider .item {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .index-mobile-slider .slider-container {
    float: none !important;
    overflow: hidden !important;
    border-radius: 0 !important;
  }

  /* Картинка задаёт высоту — ничего не обрезается */
  .index-mobile-slider .ek-slide-img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
    vertical-align: top;
  }

  /* Фон больше не нужен: он и резал изображение */
  .index-mobile-slider .item {
    background-image: none !important;
    background: transparent !important;
    position: relative !important;
    line-height: 0;
  }

  .index-mobile-slider .item > a {
    display: block;
    position: relative;
    line-height: 0;
  }

  /* Подпись поверх картинки */
  .index-mobile-slider .item .container {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    line-height: normal;
    padding: 0 16px !important;
    max-width: none !important;
  }
  .index-mobile-slider .item .row-slider-caption { width: 100%; margin: 0 !important; }
  .index-mobile-slider .item .caption .title {
    font-size: 19px !important;
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
  }
  .index-mobile-slider .item .caption .description {
    font-size: 13px !important;
    line-height: 1.35 !important;
    margin-bottom: 10px !important;
  }
  .index-mobile-slider .item .caption .btn-slider {
    padding: 8px 16px !important;
    font-size: 13px !important;
    border-radius: 7px !important;
  }

  /* Стрелки компактнее */
  .index-mobile-slider .main-slider-nav .prev,
  .index-mobile-slider .main-slider-nav .next {
    width: 34px !important;
    height: 34px !important;
  }

  .section-slider { min-height: 0 !important; }
}

/* =====================================================
   [2] МОБИЛЬНОЕ МЕНЮ — плавное, без рывков
   ===================================================== */

/* Гамбургер в мобильном хедере — как на десктопе */
.nav-mobile-header-container .ek-burger-mobile {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer;
  transition: background .15s ease;
}
.nav-mobile-header-container .ek-burger-mobile:active {
  background: rgba(255, 255, 255, .14) !important;
}
.nav-mobile-header-container .ek-burger-mobile .ek-burger-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 21px;
}
.nav-mobile-header-container .ek-burger-mobile .ek-burger-lines span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff !important;
  border-radius: 2px;
  transition: transform .24s cubic-bezier(.4, 0, .2, 1), opacity .18s ease;
}
/* Та же анимация в «крестик», что у десктопного гамбургера */
.nav-mobile-header-container .ek-burger-mobile.is-active .ek-burger-lines span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-mobile-header-container .ek-burger-mobile.is-active .ek-burger-lines span:nth-child(2) {
  opacity: 0;
}
.nav-mobile-header-container .ek-burger-mobile.is-active .ek-burger-lines span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Панель: transform вместо width — не дёргает хедер и не пересчитывает layout */
#navMobile.nav-mobile,
.nav-mobile {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 306px !important;
  max-width: 86vw !important;
  background: #fff !important;
  z-index: 10060 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  transform: translateX(-100%) !important;
  transition: transform .3s cubic-bezier(.32, .72, 0, 1) !important;
  box-shadow: none !important;
  will-change: transform;
}
#navMobile.nav-mobile-open,
.nav-mobile.nav-mobile-open {
  width: 306px !important;
  transform: translateX(0) !important;
  box-shadow: 12px 0 44px rgba(16, 24, 40, .26) !important;
}

/* Затемнение — плавное, а не display:none рывком */
#overlay_bg.overlay-bg {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 10055 !important;
  background: rgba(16, 24, 40, .5) !important;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease !important;
}
body.ek-nav-open #overlay_bg.overlay-bg {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Блокировка прокрутки БЕЗ скачка хедера:
   компенсируем исчезнувший скроллбар отступом */
body.ek-nav-lock {
  overflow: hidden !important;
  padding-right: var(--ek-sbw, 0px) !important;
}
body.ek-nav-lock #header .nav-top.is-sticky {
  padding-right: var(--ek-sbw, 0px);
}

/* Шапка панели: логотип + крестик (вместо «Продать сейчас») */
.nav-mobile .nav-mobile-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 16px !important;
  background: var(--ek-grad) !important;
  margin: 0 !important;
}
.nav-mobile .nav-mobile-brand img {
  max-height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}
.nav-mobile .nav-mobile-close {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .12);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-mobile .nav-mobile-close:active { background: rgba(255, 255, 255, .22); }
.nav-mobile .ek-x {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
}
.nav-mobile .ek-x span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.nav-mobile .ek-x span:nth-child(1) { transform: rotate(45deg); }
.nav-mobile .ek-x span:nth-child(2) { transform: rotate(-45deg); }

/* Языки inline-block вместо выпадающего списка */
.ek-lang-mobile {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
.ek-lang-mobile-item {
  display: inline-block !important;
  min-width: 52px;
  padding: 9px 14px !important;
  border: 1px solid var(--ek-line, #e4e7ec) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--ek-ink-2, #475467) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: .4px;
  text-align: center !important;
  text-decoration: none !important;
  transition: all .15s ease;
}
.ek-lang-mobile-item:hover {
  border-color: #00418e !important;
  color: #00418e !important;
}
.ek-lang-mobile-item.is-active {
  background: #00418e !important;
  border-color: #00418e !important;
  color: #fff !important;
}

/* Контейнер языка/валюты внизу панели */
.nav-mobile .mobile-flex-dropdowns {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: flex-start !important;
}

/* Плавное появление пунктов при открытии панели */
@media (prefers-reduced-motion: no-preference) {
  .nav-mobile-open #navbar_mobile_links > li,
  .nav-mobile-open .nav-tabs-mobile-menu {
    animation: ekNavIn .32s cubic-bezier(.32, .72, 0, 1) both;
  }
  .nav-mobile-open #navbar_mobile_links > li:nth-child(1) { animation-delay: .04s; }
  .nav-mobile-open #navbar_mobile_links > li:nth-child(2) { animation-delay: .07s; }
  .nav-mobile-open #navbar_mobile_links > li:nth-child(3) { animation-delay: .10s; }
  .nav-mobile-open #navbar_mobile_links > li:nth-child(4) { animation-delay: .13s; }
  .nav-mobile-open #navbar_mobile_links > li:nth-child(5) { animation-delay: .16s; }
  .nav-mobile-open #navbar_mobile_links > li:nth-child(6) { animation-delay: .19s; }
  .nav-mobile-open #navbar_mobile_links > li:nth-child(n+7) { animation-delay: .22s; }
}
@keyframes ekNavIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}


/* =====================================================================
   ==  [3] КАРТОЧКА ТОВАРА — профессиональная раскладка               ==
   ==  Ориентир: блок покупки одной карточкой, счётчик и кнопка       ==
   ==  в строку, вторичные действия ссылками, вкладки как таб-бар.    ==
   ===================================================================== */

.product-details-container {
  background: #fff;
  border: 1px solid var(--ek-line, #e4e7ec);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

/* --- Заголовок --- */
.product-content-details .product-title,
.product-details-container h1.product-title {
  font-size: 24px !important;
  font-weight: 600 !important;
  line-height: 1.28 !important;
  color: var(--ek-ink, #101828) !important;
  margin: 0 0 10px !important;
  letter-spacing: -.3px;
}

/* --- Мета-строка --- */
.ek-pd-meta {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px !important;
  padding: 0 0 14px !important;
  border-bottom: 1px solid var(--ek-line-soft, #f0f2f5);
  font-size: 13px;
  color: var(--ek-ink-3, #667085);
}
.ek-pd-meta-item {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  color: var(--ek-ink-3, #667085) !important;
  text-decoration: none !important;
}
.ek-pd-meta-item i { font-size: 14px; opacity: .8; }
a.ek-pd-meta-item:hover { color: var(--ek-orange, #ff6b00) !important; }
.ek-pd-rating .rating,
.ek-pd-rating .review-stars { display: inline-flex; align-items: center; gap: 1px; }
.ek-pd-meta-sep {
  width: 1px;
  height: 14px;
  background: var(--ek-line, #e4e7ec);
}
.ek-pd-seller a { color: var(--ek-blue-mid, #2a4d9b) !important; font-weight: 500; }

/* =====================================================
   БЛОК ПОКУПКИ
   ===================================================== */
.ek-buy-box {
  background: var(--ek-surface-2, #f7f9fc);
  border: 1px solid var(--ek-line, #e4e7ec);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 18px;
}
.ek-buy-box.is-sold { opacity: .75; }

/* Верх: наличие слева, артикул справа */
.ek-buy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--ek-line, #e4e7ec);
}
.ek-stock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
}
.ek-stock i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  color: #fff;
}
.ek-stock.in { color: #067647; }
.ek-stock.in i { background: #12b76a; }
.ek-stock.in i::before { content: "\2713"; font-family: inherit; }
.ek-stock.out { color: #b42318; }
.ek-stock.out i { background: #f04438; }
.ek-stock.out i::before { content: "\2715"; font-family: inherit; }
/* Цвет обновляется при смене варианта товара */
.ek-stock .text-danger { color: inherit !important; }
.ek-stock .text-success { color: inherit !important; }

.ek-sku {
  font-size: 12.5px;
  color: var(--ek-ink-3, #667085);
}
.ek-sku b { color: var(--ek-ink, #101828); font-weight: 600; }

/* Середина: цена + действия */
.ek-buy-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.ek-buy-price { flex: 0 0 auto; }
.ek-buy-price .price,
.ek-buy-price .price-new,
.ek-buy-price > span:first-child {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: var(--ek-ink, #101828) !important;
  line-height: 1.15 !important;
  letter-spacing: -.6px;
}
.ek-buy-price .price-old,
.ek-buy-price .price-discounted {
  display: block;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: var(--ek-ink-3, #667085) !important;
  text-decoration: line-through !important;
  margin-top: 2px;
}
.ek-buy-price .lbl-sold {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 20px;
  background: #f04438;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.ek-buy-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Счётчик количества */
.ek-qty { flex: 0 0 auto; margin: 0 !important; }
.ek-qty .input-group {
  display: flex !important;
  /*
   * КРИТИЧНО: у Bootstrap 4 .input-group по умолчанию flex-wrap: wrap.
   * Кнопки 34+34 и поле шириной 100% не влезают в 118px, поэтому
   * элементы переносились в колонку и счётчик разъезжал всю карточку.
   */
  flex-wrap: nowrap !important;
  align-items: stretch;
  width: 118px;
  max-width: 118px;
  border: 1px solid var(--ek-line, #e4e7ec);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}
.ek-qty .input-group-btn {
  display: flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
}
.ek-qty .btn-spinner-minus,
.ek-qty .btn-spinner-plus {
  width: 34px;
  min-width: 34px;
  height: 46px;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--ek-ink-2, #475467) !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background .13s ease, color .13s ease;
}
.ek-qty .btn-spinner-minus:hover,
.ek-qty .btn-spinner-plus:hover {
  background: var(--ek-orange-light, #fff4eb) !important;
  color: var(--ek-orange, #ff6b00) !important;
}
.ek-qty input.form-control {
  /* flex-basis 0, а не auto: поле обязано сжиматься, а не распирать группу */
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 46px !important;
  padding: 0 !important;
  border: none !important;
  border-left: 1px solid var(--ek-line, #e4e7ec) !important;
  border-right: 1px solid var(--ek-line, #e4e7ec) !important;
  border-radius: 0 !important;
  background: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--ek-ink, #101828) !important;
  box-shadow: none !important;
  text-align: center !important;
}

/* Главная кнопка */
.ek-buy-cta { flex: 1 1 190px; min-width: 170px; margin: 0 !important; }
.ek-buy-cta .btn-product-cart,
.ek-buy-cta .btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px;
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 22px !important;
  border-radius: 9px !important;
  background: var(--ek-orange, #ff6b00) !important;
  border: 1px solid var(--ek-orange, #ff6b00) !important;
  color: #fff !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  letter-spacing: .2px;
  text-transform: none !important;
  box-shadow: none !important;
  transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
}
.ek-buy-cta .btn:hover:not([disabled]) {
  background: var(--ek-orange-hover, #e65c00) !important;
  border-color: var(--ek-orange-hover, #e65c00) !important;
  box-shadow: 0 6px 18px rgba(255, 107, 0, .3) !important;
}
.ek-buy-cta .btn:active:not([disabled]) { transform: translateY(1px); }
.ek-buy-cta .btn[disabled] {
  background: #d0d5dd !important;
  border-color: #d0d5dd !important;
  color: #fff !important;
  cursor: not-allowed;
}
.ek-buy-cta .btn-cart-icon { display: inline-flex; align-items: center; font-size: 17px; }
.ek-buy-cta .btn-cart-icon i { color: #fff !important; }

/* Иконка-действие (избранное) */
.ek-buy-icons { display: flex; gap: 8px; flex: 0 0 auto; }
.ek-icon-action {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ek-line, #e4e7ec) !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: var(--ek-ink-2, #475467) !important;
  font-size: 18px;
  text-decoration: none !important;
  transition: all .14s ease;
}
.ek-icon-action:hover {
  border-color: var(--ek-orange, #ff6b00) !important;
  color: var(--ek-orange, #ff6b00) !important;
  background: var(--ek-orange-light, #fff4eb) !important;
}
.ek-icon-action.is-active,
.ek-icon-action.item-wishlist {
  border-color: var(--ek-orange, #ff6b00) !important;
  background: var(--ek-orange-light, #fff4eb) !important;
  color: var(--ek-orange, #ff6b00) !important;
}
.ek-icon-action i { color: inherit !important; margin: 0 !important; }
.ek-icon-action span { display: none !important; }

/* Подтверждение «добавлено в корзину» */
.ek-cart-added {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 11px 14px;
  border: 1px solid #abefc6;
  border-radius: 9px;
  background: #ecfdf3;
  animation: ekCartIn .28s cubic-bezier(.32, .72, 0, 1) both;
}
.ek-cart-added[hidden] { display: none; }
.ek-cart-added-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #067647;
}
.ek-cart-added-text i::before { content: "\2713"; }
.ek-cart-added-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #067647;
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .14s ease;
}
.ek-cart-added-link:hover { background: #045c37; color: #fff !important; }
@keyframes ekCartIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Вторичные действия */
.ek-buy-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--ek-line, #e4e7ec);
}
.ek-link-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: none;
  background: none;
  color: var(--ek-blue-mid, #2a4d9b);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 1px dashed currentColor;
  line-height: 1.6;
  transition: color .14s ease;
}
.ek-link-action:hover { color: var(--ek-orange, #ff6b00); }
.ek-link-action i { font-size: 14px; }

/* Характеристики под блоком покупки */
.ek-pd-specs { margin-top: 4px; }
.ek-pd-specs .item-details {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--ek-line, #e4e7ec);
  font-size: 13.5px;
}
.ek-pd-specs .item-details:last-child { border-bottom: none; }
.ek-pd-specs .item-details .left { flex: 0 0 40%; max-width: 40%; }
.ek-pd-specs .item-details .left label {
  margin: 0;
  font-weight: 400;
  color: var(--ek-ink-3, #667085);
}
.ek-pd-specs .item-details .right {
  flex: 1 1 auto;
  color: var(--ek-ink, #101828);
  font-weight: 500;
}

/* Вариации товара */
.product-variations .row-product-variation { margin: 0 -6px; }
.product-variations .item-variation label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ek-ink-2, #475467);
  margin-bottom: 6px;
}
.product-variations select.form-control,
.product-variations .form-control {
  min-height: 42px;
  border: 1px solid var(--ek-line, #e4e7ec) !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
}

/* =====================================================
   ВКЛАДКИ: описание / характеристики / отзывы
   ===================================================== */
.product-description {
  background: #fff;
  border: 1px solid var(--ek-line, #e4e7ec);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.product-description .nav-tabs-horizontal {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 !important;
  padding: 0 8px !important;
  border: none !important;
  border-bottom: 1px solid var(--ek-line, #e4e7ec) !important;
  background: var(--ek-surface-2, #f7f9fc);
}
.product-description .nav-tabs-horizontal .nav-item { margin: 0 !important; }
.product-description .nav-tabs-horizontal .nav-link {
  display: block;
  padding: 15px 18px !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--ek-ink-2, #475467) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  white-space: nowrap;
  transition: color .14s ease, border-color .14s ease;
}
.product-description .nav-tabs-horizontal .nav-link:hover {
  color: var(--ek-ink, #101828) !important;
}
.product-description .nav-tabs-horizontal .nav-link.active {
  color: #00418e !important;
  background: transparent !important;
  border-bottom-color: var(--ek-orange, #ff6b00) !important;
}
.product-description .tab-content { padding: 0; }
.product-description .tab-pane > .card {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}
/* =====================================================================
   ВАЖНО: только для большого экрана.

   Здесь стояло display:block !important без ограничения по ширине —
   и на телефоне оно раскрывало ВСЕ секции аккордиона разом,
   перебивая и разметку, и скрипт. Именно поэтому аккордион
   не сворачивался, сколько его ни правь.
   ===================================================================== */
@media (min-width: 992px) {
  /* На большом экране заголовки-аккордеоны не нужны: работают вкладки */
  .product-description .tab-pane > .card > .card-header { display: none; }
  .product-description .collapse-description-content {
    display: block !important;
    height: auto !important;
    padding: 22px !important;
  }
}
.product-description .description {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ek-ink-2, #475467);
}
.product-description .description p { margin-bottom: 12px; }
.product-description .description img { max-width: 100%; height: auto; border-radius: 8px; }

/* Таблица характеристик */
.table-product-additional-information {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}
.table-product-additional-information tr { border-bottom: 1px solid var(--ek-line-soft, #f0f2f5); }
.table-product-additional-information tr:last-child { border-bottom: none; }
.table-product-additional-information td {
  padding: 12px 14px !important;
  border: none !important;
  font-size: 13.5px;
  vertical-align: top;
}
.table-product-additional-information .td-left {
  width: 40%;
  color: var(--ek-ink-3, #667085);
  background: var(--ek-surface-2, #f7f9fc);
}
.table-product-additional-information .td-right {
  color: var(--ek-ink, #101828);
  font-weight: 500;
}

/* Галерея */
#product_slider_container .product-image-container,
.product-preview-container {
  border: 1px solid var(--ek-line, #e4e7ec);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

/* =====================================================
   Карточка товара — мобильный
   ===================================================== */
@media (max-width: 992px) {
  .product-details-container { padding: 14px; border-radius: 10px; }

  .product-content-details .product-title,
  .product-details-container h1.product-title { font-size: 19px !important; }

  .ek-buy-box { padding: 14px; }
  .ek-buy-main { gap: 12px; }
  .ek-buy-price { flex: 1 1 100%; }
  .ek-buy-price .price,
  .ek-buy-price .price-new,
  .ek-buy-price > span:first-child { font-size: 24px !important; }

  .ek-buy-actions { width: 100%; justify-content: flex-start; }
  .ek-qty { flex: 0 0 108px; }
  .ek-qty .input-group { width: 108px; }
  .ek-buy-cta { flex: 1 1 auto; min-width: 0; }
  .ek-buy-cta .btn { padding: 0 14px !important; font-size: 14px !important; }

  .ek-buy-secondary { gap: 14px; }
  .ek-pd-meta { gap: 10px; font-size: 12.5px; }

  /* Вкладки прокручиваются по горизонтали */
  .product-description .nav-tabs-horizontal {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .product-description .nav-tabs-horizontal::-webkit-scrollbar { display: none; }
  .product-description .nav-tabs-horizontal .nav-link {
    padding: 13px 14px !important;
    font-size: 13.5px !important;
  }
  .product-description .collapse-description-content { padding: 16px !important; }
  .table-product-additional-information td { padding: 10px !important; font-size: 13px; }
}

@media (max-width: 575px) {
  .ek-buy-actions { flex-wrap: wrap; }
  .ek-buy-cta { flex: 1 1 100%; order: 3; }
  .ek-qty { order: 1; }
  .ek-buy-icons { order: 2; margin-left: auto; }
  .ek-cart-added { flex-direction: column; align-items: stretch; }
  .ek-cart-added-link { justify-content: center; }
}


/* =====================================================================
   ==  [4] ПОКУПКА В 1 КЛИК — модальное окно                          ==
   ===================================================================== */
.ek-oneclick-modal {
  border: none !important;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(16, 24, 40, .28) !important;
}
.ek-oneclick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: var(--ek-grad);
}
.ek-oneclick-head .modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.2px;
}
.ek-oneclick-head .close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  opacity: 1;
  text-shadow: none;
  cursor: pointer;
}
.ek-oneclick-head .close:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.ek-oneclick-head .close i { color: #fff !important; font-size: 13px; }

.ek-oneclick-body { padding: 20px 22px 22px; background: #fff; }
.ek-oneclick-note {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ek-ink-2, #475467);
}

/* Сводка по товару */
.ek-oneclick-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  margin-bottom: 18px;
  border: 1px solid var(--ek-line, #e4e7ec);
  border-radius: 10px;
  background: var(--ek-surface-2, #f7f9fc);
}
.ek-oneclick-product[hidden] { display: none; }
.ek-oneclick-product img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--ek-line-soft, #f0f2f5);
  border-radius: 7px;
}
.ek-oneclick-product-meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ek-oneclick-product-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ek-ink, #101828);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ek-oneclick-product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--ek-ink, #101828);
}

/* Поля */
#form_one_click .form-group { margin-bottom: 14px; }
#form_one_click label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ek-ink-2, #475467);
}
#form_one_click .ek-req { color: #f04438; }
#form_one_click .form-control {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--ek-line, #e4e7ec);
  border-radius: 9px;
  font-size: 14.5px;
  color: var(--ek-ink, #101828);
  background: #fff;
  box-shadow: none;
  transition: border-color .14s ease, box-shadow .14s ease;
}
#form_one_click .form-control:focus {
  border-color: #00418e;
  box-shadow: 0 0 0 3px rgba(0, 65, 142, .12);
  outline: none;
}

/* Honeypot — скрыт от людей, но не через display:none */
.ek-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.ek-oneclick-response {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.5;
}
.ek-oneclick-response:empty { margin: 0; }
.ek-oneclick-response.is-error {
  padding: 10px 13px;
  border: 1px solid #fecdc9;
  border-radius: 9px;
  background: #fef3f2;
  color: #b42318;
}
.ek-oneclick-response.is-success {
  padding: 12px 14px;
  border: 1px solid #abefc6;
  border-radius: 9px;
  background: #ecfdf3;
  color: #067647;
  font-weight: 500;
}

.ek-oneclick-submit {
  height: 48px !important;
  border-radius: 9px !important;
  background: var(--ek-orange, #ff6b00) !important;
  border: 1px solid var(--ek-orange, #ff6b00) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  transition: background .15s ease, box-shadow .15s ease;
}
.ek-oneclick-submit:hover:not([disabled]) {
  background: var(--ek-orange-hover, #e65c00) !important;
  box-shadow: 0 6px 18px rgba(255, 107, 0, .3) !important;
}
.ek-oneclick-submit[disabled] { opacity: .6; cursor: progress; }
.ek-oneclick-submit[hidden] { display: none !important; }

.ek-oneclick-legal {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ek-ink-3, #667085);
  text-align: center;
}

@media (max-width: 575px) {
  .ek-oneclick-head { padding: 15px 16px; }
  .ek-oneclick-body { padding: 16px; }
  .ek-oneclick-head .modal-title { font-size: 16px; }
}


/* =====================================================================
   ==  [5] НОВАЯ ПОЧТА — выбор отделения при оформлении заказа        ==
   ===================================================================== */
.ek-np {
  margin: 10px 0 6px 28px;
  padding: 14px 16px;
  border: 1px solid var(--ek-line, #e4e7ec);
  border-left: 3px solid var(--ek-orange, #ff6b00);
  border-radius: 9px;
  background: var(--ek-surface-2, #f7f9fc);
}
.ek-np[hidden] { display: none; }

.ek-np-row { position: relative; margin-bottom: 12px; }
.ek-np-row:last-of-type { margin-bottom: 0; }

.ek-np label {
  display: block;
  margin-bottom: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ek-ink-2, #475467);
}

.ek-np .form-control {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--ek-line, #e4e7ec);
  border-radius: 8px;
  background: #fff;
  font-size: 13.5px;
  color: var(--ek-ink, #101828);
  box-shadow: none;
}
.ek-np .form-control:focus {
  border-color: #00418e;
  box-shadow: 0 0 0 3px rgba(0, 65, 142, .12);
  outline: none;
}
.ek-np select.form-control {
  appearance: auto;
  -webkit-appearance: menulist;
}

/* Подсказка городов */
.ek-np-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 500;
  max-height: 260px;
  overflow-y: auto;
  margin: 4px 0 0;
  padding: 5px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--ek-line, #e4e7ec);
  border-radius: 9px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .16);
}
.ek-np-suggest[hidden] { display: none; }
.ek-np-suggest li {
  padding: 9px 11px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--ek-ink, #101828);
  cursor: pointer;
  line-height: 1.35;
}
.ek-np-suggest li:hover {
  background: var(--ek-orange-light, #fff4eb);
  color: var(--ek-orange, #ff6b00);
}

.ek-np-status {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ek-ink-3, #667085);
}
.ek-np-status:empty { margin: 0; }
.ek-np-status.is-error { color: #b42318; }
.ek-np-status.is-ok { color: #067647; }

@media (max-width: 575px) {
  .ek-np { margin-left: 0; padding: 12px; }
}


/* =====================================================================
   ==  EK-THEME v2.3 — доводка блока покупки                          ==
   ===================================================================== */

/* Подстраховка от переноса в любых группах внутри карточки товара */
.product-details-container .input-group,
.ek-buy-box .input-group {
  flex-wrap: nowrap !important;
}

/* Ряд действий: не даём элементам наезжать друг на друга */
.ek-buy-actions {
  min-width: 0;
  row-gap: 10px;
}
.ek-buy-actions > * { min-width: 0; }

/* Вторичные ссылки всегда под блоком, а не сбоку */
.ek-buy-secondary {
  clear: both;
  width: 100%;
}

/* Старые модесевские правила спиннера, если всплывут */
.ek-qty .input-group > .input-group-btn > .btn,
.ek-qty .btn-default {
  float: none !important;
  position: static !important;
  margin: 0 !important;
}


/* =====================================================================
   ==  EK-THEME v3.7 — CLS и агентный просмотр                        ==
   ==                                                                  ==
   ==  PageSpeed показывал CLS 0.28 при пороге 0.1. Причина: у         ==
   ==  изображений не заданы пропорции, поэтому при подмене            ==
   ==  плейсхолдера на реальное фото высота блока меняется и вёрстка   ==
   ==  прыгает. Ниже место резервируется заранее.                      ==
   ===================================================================== */

/* --- Иконочный шрифт: без font-display текст ждёт загрузки --- */
@font-face {
  font-family: 'mds-icons';
  src: url('../vendor/font-icons/font/mds-icons.woff2?38154387') format('woff2'),
       url('../vendor/font-icons/font/mds-icons.woff?38154387') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: block;   /* для иконок именно block: swap даёт мигание «квадратиками» */
}

/* =====================================================
   КАРТОЧКИ ТОВАРОВ — резервируем место под фото
   ===================================================== */
.product-item .img-product-container,
.product-item .item-image,
.product-item a.img-product-container {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;      /* квадрат — как в товарной сетке Modesy */
  overflow: hidden;
  background: #f7f9fc;
}

.product-item .img-product-container img,
.product-item .item-image img,
.product-item img.img-product {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Вторая картинка при наведении не должна влиять на поток */
.product-item img.img-second {
  position: absolute;
  inset: 0;
}

/* =====================================================
   СЛАЙДЕР — главный источник прыжка на мобильном
   ===================================================== */
@media (max-width: 992px) {
  .index-mobile-slider .slider-container,
  .index-mobile-slider .main-slider,
  .index-mobile-slider .item,
  .index-mobile-slider .item > a {
    aspect-ratio: 16 / 7;    /* пропорции ваших баннеров */
    height: auto !important;
    min-height: 0 !important;
  }

  .index-mobile-slider .ek-slide-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
  }

  /* До инициализации slick слайды сложены столбиком — это и есть скачок */
  .index-mobile-slider .main-slider:not(.slick-initialized) .item + .item {
    display: none;
  }
}

/* Десктопный слайдер */
@media (min-width: 993px) {
  #main_slider .item,
  .main-slider .item {
    aspect-ratio: 21 / 9;
    min-height: 0;
  }
  .main-slider:not(.slick-initialized) .item + .item { display: none; }
}

/* =====================================================
   МОЗАИКА КАТЕГОРИЙ — высота задана, добавляем плавность
   ===================================================== */
/* Картинка внутри .ek-mosaic-media больше не используется:
   изображение задаётся фоном самой плитки */

/* =====================================================
   КАРТОЧКА ТОВАРА — галерея
   ===================================================== */
.product-preview-container .product-image-container,
#product_slider_container .item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}
.product-preview-container .product-image-container img,
#product_slider_container .item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =====================================================
   ПРОЧИЕ ИСТОЧНИКИ СМЕЩЕНИЙ
   ===================================================== */

/* Баннеры: место резервируется до загрузки */
.ad-space img,
.banner-container img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: attr(width) / attr(height);
}

/* Плашка «добавлено в корзину» появляется поверх, не раздвигая блок */
.ek-cart-added {
  contain: layout;
}

/* Логотип: без размеров шапка дёргается при загрузке */
#header .logo img,
.mobile-logo img {
  height: auto;
  max-height: 44px;
  aspect-ratio: 200 / 44;
  object-fit: contain;
}

/* Cookie-баннер накладывается поверх страницы, а не сдвигает её */
.cookies-warning {
  position: fixed;
  contain: layout style;
}

/* Скрытый от глаз, но читаемый агентами и скринридерами заголовок */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =====================================================================
   ОТЗЫВЫ ПЕРЕНЕСЁННЫХ ПОКУПАТЕЛЕЙ
   У них нет аккаунта на сайте, поэтому вместо фото — инициал имени.
   ===================================================================== */
.list-reviews .ek-review-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  margin-right: 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a4d9b, #1e3a78);
  color: #fff;
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  user-select: none;
}
.list-reviews .media { align-items: flex-start; }
.list-reviews .username { margin-bottom: 4px; }

/* =====================================================================
   БЫСТРЫЙ ВХОД И АВТОРЕГИСТРАЦИЯ ПРИ ОФОРМЛЕНИИ
   ===================================================================== */
.ek-quickauth-box {
  padding: 18px 20px;
  border: 1px solid #b2ddff;
  border-left: 3px solid #00418e;
  border-radius: 10px;
  background: #eff8ff;
}
.ek-quickauth-head { margin-bottom: 14px; }
.ek-quickauth-head b { display: block; font-size: 15px; color: #101828; margin-bottom: 3px; }
.ek-quickauth-head span { font-size: 13.5px; color: #475467; line-height: 1.5; }

.ek-quickauth-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.ek-qa-tab {
  padding: 7px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  background: #fff;
  font-size: 13.5px;
  color: #475467;
  cursor: pointer;
}
.ek-qa-tab.is-active { border-color: #00418e; background: #00418e; color: #fff; }

.ek-qa-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ek-qa-row .form-control { flex: 1 1 200px; min-width: 0; height: 42px; }
.ek-qa-row .btn { height: 42px; white-space: nowrap; }

#ek_qa_code { letter-spacing: 4px; font-family: monospace; font-size: 17px; text-align: center; max-width: 190px; flex: 0 0 auto; }

.ek-qa-msg { margin-top: 10px; font-size: 13.5px; min-height: 18px; color: #475467; }
.ek-qa-msg.is-ok { color: #067647; }
.ek-qa-msg.is-error { color: #b42318; }

/* Галочка автоматической регистрации */
.ek-autoreg-box {
  padding: 14px 16px;
  border: 1px solid var(--ek-line, #e4e7ec);
  border-radius: 9px;
  background: var(--ek-surface-2, #f7f9fc);
}
.ek-autoreg-box .custom-control-label { font-size: 14px; line-height: 1.5; cursor: pointer; }
.ek-autoreg-note { display: block; margin-top: 7px; font-size: 12.5px; color: #667085; line-height: 1.5; }

@media (max-width: 575px) {
  .ek-qa-row .form-control, .ek-qa-row .btn { flex: 1 1 100%; }
  #ek_qa_code { max-width: none; }
}

/* =====================================================================
   ПРИВЯЗКА TELEGRAM В ПРОФИЛЕ
   ===================================================================== */
.ek-tglink {
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid var(--ek-line, #e4e7ec);
  border-radius: 11px;
  background: #fff;
}
.ek-tglink-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 14px; }
.ek-tglink-head i { font-size: 22px; color: #229ED9; line-height: 1.3; }
.ek-tglink-head b { display: block; font-size: 16px; color: #101828; }
.ek-tglink-head span { font-size: 13.5px; color: #667085; }

.ek-tglink-note { margin: 0 0 14px; font-size: 13.5px; color: #475467; line-height: 1.6; }

.ek-tglink-state.is-linked {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 13px 16px; border-radius: 9px; background: #ecfdf3; border: 1px solid #abefc6;
}
.ek-tglink-badge {
  padding: 3px 10px; border-radius: 20px; background: #067647; color: #fff;
  font-size: 12px; font-weight: 600;
}
.ek-tglink-unlink { color: #b42318 !important; padding: 0 !important; margin-left: auto; }

.ek-tglink-result { margin-top: 12px; font-size: 13.5px; }
.ek-tglink-open p { margin: 10px 0 6px; font-size: 13px; color: #667085; line-height: 1.55; }
.ek-tglink-wait { display: inline-block; font-size: 13px; color: #b54708; }
.ek-tglink-wait::after {
  content: '';
  display: inline-block; width: 11px; height: 11px; margin-left: 7px;
  border: 2px solid #fedf89; border-top-color: #b54708; border-radius: 50%;
  animation: ek-tgspin .8s linear infinite; vertical-align: -1px;
}
@keyframes ek-tgspin { to { transform: rotate(360deg); } }

@media (max-width: 575px) {
  .ek-tglink { padding: 16px; }
  .ek-tglink-unlink { margin-left: 0; }
}

/* =====================================================================
   ==  МОДАЛКА «КУПИТЬ В 1 КЛИК» — заголовок и фото                  ==
   ==                                                                  ==
   ==  Заголовок был тёмным: цвет #fff перебивался правилами темы     ==
   ==  Modesy для .modal-title. Поднимаем приоритет.                   ==
   ===================================================================== */
.ek-oneclick-modal .ek-oneclick-head .modal-title,
.ek-oneclick-modal .ek-oneclick-head h4,
#oneClickModal .ek-oneclick-head .modal-title,
#oneClickModal #oneClickModalTitle {
  color: #fff !important;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}

#oneClickModal .ek-oneclick-head .close,
#oneClickModal .ek-oneclick-head .close i {
  color: #fff !important;
  opacity: .9;
  text-shadow: none;
}
#oneClickModal .ek-oneclick-head .close:hover { opacity: 1; }

/* Фото товара: место резервируется, пока картинка грузится */
#oneClickModal .ek-oneclick-product img,
#ek_oc_image {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid var(--ek-line, #e4e7ec);
  border-radius: 8px;
  padding: 3px;
}
#oneClickModal .ek-oneclick-product img[hidden] { display: none !important; }


/* =====================================================================
   ==  ШАПКА И ГЛАВНОЕ МЕНЮ — доработка внешнего вида               ==
   ===================================================================== */

/* ---------------------------------------------------------------
   ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА
   Компактный, в ряду иконок справа. Раньше занимал целую строку
   в верхней панели.
   --------------------------------------------------------------- */
.ek-lang-item { display: flex; align-items: center; }

.ek-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.ek-lang-btn:hover,
.ek-lang-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
}
.ek-lang-btn .icon-arrow-down { /* font-size: 9px; opacity: .8; */ display: none; }
.ek-lang-flag { /* width: 18px; height: 12px; object-fit: cover; border-radius: 2px; */  display: none; }
.ek-lang-code { letter-spacing: .4px; }

.ek-lang-menu {
  min-width: 57px;
  padding: 6px;
  border: 1px solid var(--ek-line, #e4e7ec);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, .14);
}
.ek-lang-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 14px;
}
.ek-lang-menu .dropdown-item:hover { background: var(--ek-surface-2, #f2f5fa); }
.ek-lang-menu .dropdown-item.is-active {
  background: rgba(255, 107, 0, .1);
  color: var(--ek-accent, #ff6b00);
  font-weight: 600;
}

/* ---------------------------------------------------------------
   ГЛАВНОЕ МЕНЮ КАТЕГОРИЙ
   Шрифт подстраивается под ширину экрана, длинные названия
   переносятся, а не вылезают за пределы блока.
   --------------------------------------------------------------- */
.nav-main .mega-menu > li > a,
.nav-main .navbar-nav > li > a {
  position: relative;
  display: flex;
  align-items: center;
  /*
   * Шрифт и отступы подстраиваются под ширину окна.
   * Значения подобраны под ваши восемь категорий: самая длинная —
   * «Пруток (Круг) нержавеющий», 25 символов. При таких параметрах
   * ряд помещается в одну строку начиная с 1280px, а на меньших
   * экранах аккуратно переносится, а не обрезается.
   */
  font-size: clamp(11.5px, 0.82vw, 15px);
  font-weight: 500;
  line-height: 1.32;
  padding: 14px clamp(6px, 0.5vw, 15px);
  color: var(--ek-ink, #101828);
  text-align: center;
  hyphens: auto;
  transition: color .2s ease;
}

/* Оранжевая полоска: растёт из центра при наведении */
.nav-main .mega-menu > li > a::after,
.nav-main .navbar-nav > li > a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 0;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ek-accent, #ff6b00);
  transform: translateX(-50%);
  transition: width .26s cubic-bezier(.4, 0, .2, 1);
}

.nav-main .mega-menu > li > a:hover,
.nav-main .mega-menu > li:hover > a,
.nav-main .navbar-nav > li > a:hover,
.nav-main .navbar-nav > li:hover > a {
  color: var(--ek-accent, #ff6b00);
  background: transparent;
}

.nav-main .mega-menu > li > a:hover::after,
.nav-main .mega-menu > li:hover > a::after,
.nav-main .navbar-nav > li > a:hover::after,
.nav-main .navbar-nav > li:hover > a::after {
  width: calc(100% - 18px);
}

/* Активный раздел — полоска видна всегда */
.nav-main .mega-menu > li.active > a::after,
.nav-main .navbar-nav > li.active > a::after {
  width: calc(100% - 18px);
}
.nav-main .mega-menu > li.active > a,
.nav-main .navbar-nav > li.active > a { color: var(--ek-accent, #ff6b00); }

/* Убираем красную подсветку темы Modesy */
.nav-main .navbar-nav > li > a:focus,
.nav-main .mega-menu > li > a:focus { color: var(--ek-accent, #ff6b00); background: transparent; }

/* Ряд меню распределяется по ширине без переполнения */
.nav-main .mega-menu,
.nav-main .navbar-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
.nav-main .mega-menu > li,
.nav-main .navbar-nav > li { flex: 0 1 auto; min-width: 0; }

/* На узких экранах названия переносятся по словам */
/* Длинные названия переносятся по словам, а не растягивают ряд */
@media (max-width: 1500px) {
  .nav-main .mega-menu > li > a,
  .nav-main .navbar-nav > li > a { white-space: normal; max-width: 155px; }
}
@media (max-width: 1200px) {
  .nav-main .mega-menu > li > a,
  .nav-main .navbar-nav > li > a {
    font-size: 11.5px;
    padding: 11px 6px;
    max-width: 128px;
  }
}
@media (max-width: 992px) {
  /* Ниже этой ширины работает мобильное меню — десктопное скрыто */
  .nav-main .mega-menu > li > a,
  .nav-main .navbar-nav > li > a { max-width: none; }
}

/* Выпадающие подкатегории — тот же оранжевый акцент */
.nav-main .dropdown-menu .dropdown-item:hover,
.nav-main .mega-menu .dropdown-menu a:hover {
  color: var(--ek-accent, #ff6b00);
  background: rgba(255, 107, 0, .07);
}

/* ---------------------------------------------------------------
   МОЗАИКА: карточка без загруженной картинки
   У категорий изображения пока не заданы — вместо пустого места
   показываем аккуратный градиент с названием.
   --------------------------------------------------------------- */
.ek-mosaic-item:not(:has(img)) .ek-mosaic-media,
.ek-mosaic-media:empty {
  background: linear-gradient(135deg, rgba(0, 65, 142, .08), rgba(255, 107, 0, .10));
}


/* =====================================================================
   ==  СЛАЙДЕР И МОЗАИКА — v5.1                                       ==
   ===================================================================== */

/* ---------------------------------------------------------------
   СЛАЙДЕР: картинка вписывается целиком, а не обрезается
   Раньше стоял object-fit: cover — он заполняет блок, срезая края.
   Для баннеров с текстом это плохо: «ЗНИЖКА -20%» уезжала за кадр.
   --------------------------------------------------------------- */
.section-slider,
.main-slider,
#main_slider {
  background: #16181d;   /* поля по краям под цвет баннеров */
  overflow: hidden;
}

.main-slider .item,
#main_slider .item,
.index-mobile-slider .item {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.main-slider .item img,
#main_slider .item img,
.index-mobile-slider .ek-slide-img,
.section-slider .item img {
  width: 100%;
  height: 100%;
  /* contain вместо cover: баннер виден целиком */
  object-fit: contain;
  object-position: center;
}

/* Пропорции под ваши баннеры, чтобы не прыгала вёрстка */
@media (min-width: 993px) {
  .main-slider .item,
  #main_slider .item { aspect-ratio: 1920 / 620; }
}
@media (max-width: 992px) {
  .index-mobile-slider .item,
  .index-mobile-slider .slider-container { aspect-ratio: 16 / 8; }
}

/* Стрелки слайдера — заметнее на тёмном фоне */
.section-slider .slick-prev,
.section-slider .slick-next {
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, .82);
  border-radius: 10px;
  transition: background .2s ease, transform .2s ease;
}
.section-slider .slick-prev:hover,
.section-slider .slick-next:hover {
  background: #fff;
  transform: scale(1.06);
}


/* ---------------------------------------------------------------
   МОЗАИКА КАТЕГОРИЙ
   Картинка — фоном на всю плитку (cover), подпись поверх.
   Раньше картинка лежала отдельным элементом и вылезала за края.
   --------------------------------------------------------------- */
.ek-mosaic-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  isolation: isolate;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1), box-shadow .28s ease;
}
.ek-mosaic-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(16, 24, 40, .18);
}

/*
 * Фоновая картинка.
 *
 * ПОЧЕМУ contain, А НЕ cover.
 * Фотографии категорий квадратные (550×550), а плитки мозаики
 * прямоугольные и разной формы. При cover квадрат заполняет плитку
 * и обрезается сверху-снизу — у трубы и круга срезало половину.
 *
 * contain вписывает снимок целиком: товар виден полностью при любых
 * пропорциях плитки. Пустое место закрывает светлая подложка, так что
 * пустоты не видно — фото товаров и так на белом фоне.
 */
.ek-mosaic-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: 88% auto;
  background-position: center 60%;
  background-repeat: no-repeat;
  /* Отступ сверху — под подпись, снизу поменьше */
  padding: 0;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  transform-origin: center 62%;
}
.ek-mosaic-item:hover .ek-mosaic-media { transform: scale(1.05); }

/*
 * Подложка под фото.
 *
 * ВАЖНО: перебивает цветные фоны плиток (.t1, .accent-red и прочие).
 * Картинка вписывается по contain и не закрывает плитку целиком —
 * из-за цветного фона снизу вылезала красная полоса под уголком.
 * Там, где есть фото, фон должен быть нейтральным.
 */
.ek-mosaic-item { background: linear-gradient(160deg, #fbfcfe 0%, #f2f5fa 60%, #e9eef6 100%) !important; }

/* Плитка без фото — возвращаем цветную заливку через заглушку */
.ek-mosaic-item .ek-mosaic-ph { z-index: 0; }

/* Крупные плитки: снимок занимает меньшую долю, чтобы не растягивался */
.ek-mosaic-item.is-big .ek-mosaic-media { background-size: 55% auto; background-position: center 58%; }
.ek-mosaic-item.is-tall .ek-mosaic-media { background-size: 82% auto; background-position: center 62%; }

/* Заглушка, когда у категории нет изображения */
.ek-mosaic-ph {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #0b3d84 0%, #1b64c4 60%, #ff8a2b 140%);
}

/*
 * Затемнение снизу: подпись читается на любой картинке.
 * Без него светлый металл на фото сливается с белым контуром текста.
 */
/*
 * Осветление под подписью. Фото товаров светлые, поэтому затемнение
 * снизу здесь только мешало бы — оставляем мягкую белую вуаль сверху,
 * чтобы текст ложился на ровный фон.
 */
/*
 * Осветление ТОЛЬКО под подписью.
 *
 * Прошлая версия накрывала белым полплитки — светлые фото
 * («Лист», «Круг», «Полоса» сняты на белом) полностью выцветали
 * и выглядели пустыми. Теперь вуаль занимает верхние 74 пикселя,
 * ровно под текст, и не трогает сам товар.
 */
.ek-mosaic-shade {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 74px;
  z-index: 1;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, .88) 0%,
      rgba(255, 255, 255, .62) 55%,
      rgba(255, 255, 255, 0) 100%);
  transition: opacity .28s ease;
}
.ek-mosaic-item:hover .ek-mosaic-shade { opacity: .82; }

/* Подпись: чёрный текст с белым контуром — читается на любом фоне */
.ek-mosaic-label {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; top: 0;
  padding: clamp(12px, 1.3vw, 20px);
  font-size: clamp(14px, 1.15vw, 21px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.35px;
  color: #0d1117;
  text-shadow:
    -1.5px -1.5px 0 #fff, 1.5px -1.5px 0 #fff,
    -1.5px  1.5px 0 #fff, 1.5px  1.5px 0 #fff,
    0 0 8px rgba(255, 255, 255, 1),
    0 2px 12px rgba(255, 255, 255, .9);
  pointer-events: none;
}

/* Глянцевый блик по диагонали */
.ek-mosaic-item::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(115deg,
      rgba(255, 255, 255, 0) 38%,
      rgba(255, 255, 255, .30) 50%,
      rgba(255, 255, 255, 0) 62%);
  transform: translateX(-110%);
  transition: transform .65s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}
.ek-mosaic-item:hover::after { transform: translateX(110%); }

/* Цветные плитки: подложка видна только там, где нет фото */
.ek-mosaic-item.accent-red .ek-mosaic-ph { background: linear-gradient(135deg, #d92d20, #f04438); }
.ek-mosaic-item.t1 .ek-mosaic-ph { background: linear-gradient(135deg, #0b3d84, #1b64c4); }
.ek-mosaic-item.t2 .ek-mosaic-ph { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.ek-mosaic-item.t3 .ek-mosaic-ph { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.ek-mosaic-item.t4 .ek-mosaic-ph { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.ek-mosaic-item.t5 .ek-mosaic-ph { background: linear-gradient(135deg, #b45309, #f59e0b); }
.ek-mosaic-item.t6 .ek-mosaic-ph { background: linear-gradient(135deg, #334155, #64748b); }

/* На мелких экранах подпись компактнее */
@media (max-width: 575px) {
  .ek-mosaic-label {
    padding: 10px 11px;
    font-size: 13px;
    text-shadow:
      -1px -1px 0 #fff, 1px -1px 0 #fff,
      -1px 1px 0 #fff, 1px 1px 0 #fff,
      0 0 6px rgba(255, 255, 255, .95);
  }
  .ek-mosaic-item { border-radius: 10px; }
}


/* =====================================================================
   ==  НАЗВАНИЯ ТОВАРОВ — перенос на две строки                       ==
   ==                                                                  ==
   ==  Тема Modesy обрезает название в ОДНУ строку многоточием:        ==
   ==      .product-title a { white-space: nowrap; text-overflow: … }  ==
   ==  Причём правило висит на ССЫЛКЕ внутри заголовка, а мой          ==
   ==  line-clamp стоял на самом заголовке — поэтому не срабатывал.    ==
   ==                                                                  ==
   ==  Теперь под название всегда отведены ровно две строки: длинные   ==
   ==  переносятся, короткие занимают одну, но высота карточки одна    ==
   ==  и та же — сетка не разъезжается.                                ==
   ===================================================================== */
.product-item .product-title,
.product-item h3.product-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  /*
   * Три строки: 13.5px × 1.35 = 18.2px на строку, итого 55px.
   * Высота фиксированная, чтобы карточки в сетке стояли вровень
   * независимо от длины названия.
   *
   * Три строки, а не две: у металлопроката в названии идут размер,
   * марка стали и обработка — «Лист нержавеющий рифленый 4мм
   * 1,25х2,5м AISI 304» это 52 символа, в две строки не помещается.
   */
  min-height: 55px;
  height: 55px;
  margin: 0 0 7px !important;
  line-height: 1.35 !important;
}

.product-item .product-title a {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  /* Снимаем запрет переноса, поставленный темой Modesy */
  white-space: normal !important;
  text-overflow: clip !important;
  line-height: 1.35 !important;
  /* Длинные артикулы вроде 60x60x1,5 переносятся, а не рвут сетку */
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Планшет и мобильный — тот же принцип, шрифт чуть мельче */
@media (max-width: 767px) {
  .product-item .product-title,
  .product-item h3.product-title {
    min-height: 51px;
    height: 51px;
    font-size: 12.5px !important;
  }
  .product-item .product-title a { font-size: 12.5px !important; }
}

/* Название продавца под товаром — одна строка, как было */
.product-item .product-user { margin-bottom: 4px !important; }


/* =====================================================================
   ==  СЛАЙДЕР: баннер целиком, без обрезки — v5.9                    ==
   ==                                                                  ==
   ==  Тема Modesy задаёт слайду фиксированную высоту и обрезает фон:  ==
   ==      .main-slider .item { height: 600px; background-size: cover }==
   ==                                                                  ==
   ==  cover масштабирует картинку по большей стороне и срезает        ==
   ==  лишнее — на широком экране обрезается верх и низ, на узком      ==
   ==  бока. Именно это и происходило.                                 ==
   ==                                                                  ==
   ==  Решение: contain вместо cover и высота от пропорций баннера,    ==
   ==  а не жёсткие 600 пикселей.                                      ==
   ===================================================================== */

.section-slider,
.index-main-slider,
.slider-container,
.main-slider,
#main-slider {
  width: 100%;
  max-width: 100%;
  min-height: 0 !important;
  overflow: hidden;
}

/* Слайд: высота по пропорциям, картинка вписывается целиком */
.main-slider .item,
#main-slider .item {
  height: auto !important;
  min-height: 0 !important;
  /*
   * Точные пропорции ваших баннеров: 1920×600.
   * Проверено по файлам в uploads/slider/ — все четыре одного размера.
   *
   * Соотношение задаёт высоту блока, а contain вписывает картинку
   * внутрь. Раз пропорции совпадают, полей по краям не будет вовсе —
   * баннер займёт блок ровно.
   *
   * Если загрузите баннеры другой формы, поменяйте значение здесь.
   */
  aspect-ratio: 1920 / 600;
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #16181d;
}

/* Подпись и кнопка поверх картинки, высоту не задают */
.main-slider .item .row-slider-caption,
#main-slider .item .row-slider-caption {
  height: 100% !important;
  min-height: 0 !important;
}
.main-slider .item > a {
  display: block;
  width: 100%;
  height: 100%;
}

/* Слайдер во всю ширину окна, если не выбран режим «в рамке» */
.index-main-slider.container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.index-main-slider .row { margin-left: 0 !important; margin-right: 0 !important; }
.index-main-slider .slider-container { padding: 0 !important; }

/* ---------------------------------------------------------------
   МОБИЛЬНЫЙ СЛАЙДЕР
   Здесь слайд — обычный <img>, а не фон.
   --------------------------------------------------------------- */
@media (max-width: 992px) {
  .index-mobile-slider,
  .index-mobile-slider .slider-container,
  .index-mobile-slider .main-slider,
  .index-mobile-slider .slick-list,
  .index-mobile-slider .slick-track,
  .index-mobile-slider .item,
  .index-mobile-slider .item > a {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    /* Пропорции задаёт сама картинка */
    aspect-ratio: auto !important;
  }

  /*
   * Мобильные баннеры у вас 768×500. Картинка задаёт высоту блока
   * сама: width 100%, height auto — обрезать при таком раскладе
   * попросту нечего, при любой ширине экрана.
   */
  .index-mobile-slider .ek-slide-img,
  .index-mobile-slider .item img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    vertical-align: top;
  }

  .index-mobile-slider .item {
    background-image: none !important;
    background-color: transparent !important;
  }

  /* Стрелки поверх, не сдвигают картинку */
  .index-mobile-slider .slick-prev { left: 6px; z-index: 3; }
  .index-mobile-slider .slick-next { right: 6px; z-index: 3; }
}

/* На очень широких экранах баннер не растягиваем сверх исходного */
@media (min-width: 1921px) {
  .main-slider .item,
  #main-slider .item { background-size: contain !important; }
}


/* =====================================================================
   ПЕРЕКЛЮЧАТЕЛЬ ДВИЖКА ПЕРЕВОДА (админка)
   ===================================================================== */
.ek-tr-engines { display: grid; gap: 9px; }
.ek-tr-engine {
  display: block;
  padding: 13px 15px;
  border: 1.5px solid #e4e7ec;
  border-radius: 9px;
  cursor: pointer;
  font-weight: normal;
  margin: 0;
  transition: border-color .18s ease, background .18s ease;
}
.ek-tr-engine:hover { border-color: #b2ddff; }
.ek-tr-engine.is-active { border-color: #00418e; background: #eff8ff; }
.ek-tr-engine input { margin-right: 8px; }
.ek-tr-engine b { font-size: 14px; color: #101828; }
.ek-tr-engine span {
  display: block;
  margin: 4px 0 0 22px;
  font-size: 12.5px;
  color: #667085;
  line-height: 1.5;
}


/* =====================================================================
   ==  ОКНО «УЗНАТЬ ВЕС» — v7.5                                       ==
   ===================================================================== */
.ek-weight-modal .modal-dialog { max-width: 940px; }
.ek-weight-content { border: none; border-radius: 14px; overflow: hidden; }

.ek-weight-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 24px;
  background: var(--ek-grad, linear-gradient(135deg, #00418e, #0060cc));
}
.ek-weight-head .modal-title {
  margin: 0; font-size: 17px; font-weight: 600;
  color: #fff !important; letter-spacing: -.2px;
}
.ek-weight-head .close { color: #fff !important; opacity: .9; text-shadow: none; }
.ek-weight-head .close:hover { opacity: 1; }

.ek-weight-tabs {
  display: flex; gap: 2px; padding: 0 24px;
  background: #f7f9fc; border-bottom: 1px solid var(--ek-line, #e4e7ec);
  overflow-x: auto;
}
.ek-weight-tab {
  position: relative; padding: 14px 18px; border: none; background: none;
  font-size: 14px; font-weight: 500; color: #667085; white-space: nowrap; cursor: pointer;
  transition: color .18s ease;
}
.ek-weight-tab::after {
  content: ''; position: absolute; left: 50%; bottom: 0; width: 0; height: 2.5px;
  background: var(--ek-accent, #ff6b00); transform: translateX(-50%);
  transition: width .26s cubic-bezier(.4,0,.2,1);
}
.ek-weight-tab:hover { color: var(--ek-accent, #ff6b00); }
.ek-weight-tab.is-active { color: var(--ek-ink, #101828); }
.ek-weight-tab.is-active::after { width: calc(100% - 24px); }

.ek-weight-body { padding: 22px 24px 26px; max-height: 74vh; overflow-y: auto; }

/* Плавное появление вкладки */
.ek-weight-pane { display: none; }
.ek-weight-pane.is-active { display: block; animation: ek-wc-fade .28s ease; }
@keyframes ek-wc-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Калькулятор ---------- */
.ek-wc-steel { margin-bottom: 18px; }
.ek-wc-steel label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; color: #344054; }

.ek-wc-layout { display: grid; grid-template-columns: 300px 1fr; gap: 22px; }

.ek-wc-shapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: start; }
.ek-wc-shape {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 11px 5px; border: 1.5px solid var(--ek-line, #e4e7ec); border-radius: 10px;
  background: #fff; color: #667085; cursor: pointer;
  transition: border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.ek-wc-shape svg { width: 44px; height: 31px; }
.ek-wc-shape span { font-size: 11px; font-weight: 500; line-height: 1.2; text-align: center; }
.ek-wc-shape:hover { border-color: #b2ddff; color: #0060cc; transform: translateY(-2px); }
.ek-wc-shape.is-active {
  border-color: var(--ek-accent, #ff6b00); color: var(--ek-accent, #ff6b00);
  background: rgba(255, 107, 0, .06);
  box-shadow: 0 4px 12px rgba(255, 107, 0, .16);
}

.ek-wc-title { margin: 0 0 14px; font-size: 16px; font-weight: 600; color: var(--ek-ink, #101828); }
.ek-wc-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.ek-wc-field label { display: block; margin-bottom: 4px; font-size: 12.5px; color: #475467; }
.ek-wc-field .form-control, .ek-wc-qty .form-control { height: 40px; font-size: 15px; }
.ek-wc-qty { margin-top: 12px; max-width: 170px; }
.ek-wc-qty label { display: block; margin-bottom: 4px; font-size: 12.5px; color: #475467; }

.ek-wc-result {
  margin-top: 18px; padding: 15px 18px; border-radius: 11px;
  background: linear-gradient(135deg, #eff8ff, #e8f1fb);
  border: 1px solid #b2ddff;
}
.ek-wc-result-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ek-wc-result-row + .ek-wc-result-row { margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(0, 65, 142, .12); }
.ek-wc-result-row span { font-size: 13.5px; color: #475467; }
.ek-wc-result-row b { font-size: 19px; font-weight: 700; color: #00418e; }
.ek-wc-result-row.is-total b { font-size: 25px; color: var(--ek-accent, #ff6b00); }

.ek-wc-note { margin: 12px 0 0; font-size: 12px; color: #98a2b3; line-height: 1.5; }

/* ---------- Таблицы ---------- */
.ek-weight-lead { margin: 0 0 14px; font-size: 14px; color: #475467; }
.ek-weight-table-wrap { max-height: 52vh; overflow-y: auto; border: 1px solid var(--ek-line, #e4e7ec); border-radius: 10px; }
.ek-weight-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 13.5px; }
.ek-weight-table th {
  position: sticky; top: 0; z-index: 1;
  padding: 11px 14px; background: #f7f9fc; text-align: left;
  font-weight: 600; color: #344054; border-bottom: 1px solid var(--ek-line, #e4e7ec);
}
.ek-weight-table td { padding: 9px 14px; border-bottom: 1px solid #f2f4f7; }
.ek-weight-table tbody tr:hover { background: #fbfcfe; }
.ek-weight-table td.is-empty { color: #d0d5dd; }

@media (max-width: 767px) {
  .ek-wc-layout { grid-template-columns: 1fr; }
  .ek-wc-shapes { grid-template-columns: repeat(4, 1fr); }
  .ek-weight-body { padding: 18px 16px 22px; }
  .ek-weight-tabs { padding: 0 12px; }
  .ek-wc-fields { grid-template-columns: 1fr 1fr; }
}


/* =====================================================================
   ==  КНОПКИ ДЕЙСТВИЙ В КАРТОЧКЕ ТОВАРА                              ==
   ==  «Купить в 1 клик» была ссылкой — стала кнопкой                 ==
   ===================================================================== */
.ek-action-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 16px; margin: 0 8px 8px 0;
  border: 1.5px solid var(--ek-line, #e4e7ec); border-radius: 9px;
  background: #fff; font-size: 13.5px; font-weight: 600; color: #344054;
  cursor: pointer; white-space: nowrap;
  transition: border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.ek-action-btn i { font-size: 15px; }
.ek-action-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16, 24, 40, .1); }

.ek-oneclick-btn { border-color: #abefc6; color: #067647; background: #f6fef9; }
.ek-oneclick-btn:hover { border-color: #067647; color: #05603a; }

.ek-weight-btn { border-color: #b2ddff; color: #00418e; background: #f5faff; }
.ek-weight-btn:hover { border-color: #00418e; color: #00306b; }


/* =====================================================================
   ==  БЕЙДЖИ ТОВАРА: АКЦИЯ, НОВИНКА, ХИТ                             ==
   ===================================================================== */
.ek-badges {
  position: absolute; top: 9px; left: 9px; z-index: 3;
  display: flex; flex-direction: column; gap: 5px; pointer-events: none;
}
.ek-badge-item {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .5px;
  color: #fff; text-transform: uppercase; line-height: 1.5;
  box-shadow: 0 2px 7px rgba(16, 24, 40, .22);
  animation: ek-badge-in .35s cubic-bezier(.4, 0, .2, 1);
}
.ek-badge-item i {
  font-style: normal; font-size: 11px; font-weight: 800;
  padding-left: 4px; border-left: 1px solid rgba(255, 255, 255, .45);
}
.ek-badge-item.is-sale { background: linear-gradient(135deg, #d92d20, #f04438); }
.ek-badge-item.is-new  { background: linear-gradient(135deg, #067647, #17b26a); }
.ek-badge-item.is-hit  { background: linear-gradient(135deg, #e04f16, #ff8a2b); }

@keyframes ek-badge-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* Карточка должна быть точкой отсчёта для бейджей */
.product-item .row-custom { position: relative; }

@media (max-width: 575px) {
  .ek-badges { top: 6px; left: 6px; gap: 4px; }
  .ek-badge-item { padding: 3px 8px; font-size: 9.5px; }
}


/* =====================================================================
   Аватар продавца в окне «Задать вопрос» — круглый.
   В теме Modesy стоит border-radius: 4px, из-за чего фото
   выглядит квадратом со скруглением.
   ===================================================================== */
.modal-send-message .user-contact-modal img,
.user-contact-modal img {
  width: 80px;
  height: 80px;
  border-radius: 100% !important;
  object-fit: cover;
}


/* =====================================================================
   Кнопка удаления товара из корзины.
   Была кнопкой со словом под позицией — стала крестиком в строке
   с товаром: не оттягивает внимание от кнопки покупки.
   ===================================================================== */
.ek-cart-remove {
  /*
   * Крестик СРАЗУ красный, а не серый до наведения.
   *
   * Прежний цвет #d0d5dd терялся на белом фоне, и кнопку просто
   * не находили. На телефоне наведения нет вовсе — там она
   * оставалась невидимой всегда.
   */
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #fecdc9;
  background: #fef3f2;
  color: #d92d20 !important;
  font-size: 15px;
  line-height: 1;
  text-decoration: none !important;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.ek-cart-remove:hover,
.ek-cart-remove:focus {
  background: #d92d20;
  border-color: #d92d20;
  color: #fff !important;
  transform: scale(1.06);
}

.ek-cart-remove:active { transform: scale(.96); }
.ek-cart-remove i { font-size: 13px; }

/*
 * Положение кнопки — как в версии 14.3.
 *
 * Крестик в правом верхнем углу строки товара, рядом с названием.
 * Своего места в строке ему не нужно, поэтому он ни на что
 * не наезжает и никуда не переносится — ни на широком экране,
 * ни на телефоне.
 */
.cart-item-details {
  position: relative;
  padding-right: 46px;
}

.cart-item-details .ek-cart-remove {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
}

@media (max-width: 767px) {
  .cart-item-details { padding-right: 42px; }
  .cart-item-details .ek-cart-remove {
    width: 32px;
    height: 32px;
  }
}

/*
 * Ставим крестик в правый верхний угол строки товара.
 *
 * Раньше опора была на класс .shopping-cart .item — его в разметке
 * нет вовсе, поэтому позиционирование не работало и кнопка терялась
 * где-то внизу блока.
 *
 * Настоящий контейнер называется .cart-item-details.
 */
/*
 * Количество и кнопка удаления в одной строке.
 *
 * Порядок: «минус — число — плюс», отступ, крестик.
 *
 * Жёстких ширин здесь нет: строка занимает всю доступную ширину
 * контейнера и подстраивается под неё. Прежняя версия задавала
 * размеры числом — на широком экране блок «Итого» наезжал
 * на кнопку, а на телефоне счётчик обрезался и кнопка уходила
 * за край экрана.
 */






















/* Предупреждение, когда ключ Новой Почты не задан */
.ek-np-warning {
  margin: 8px 0 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fffaeb;
  border: 1px solid #fedf89;
  color: #b54708;
  font-size: 12.5px;
  line-height: 1.5;
}


/* =====================================================================
   ==  ДОРАБОТКИ ВИТРИНЫ — v11.8                                      ==
   ===================================================================== */

/* ---------------------------------------------------------------------
   ЛОГОТИП В ПОДВАЛЕ

   Он уже есть в шапке на каждой странице — во втором месте только
   отнимает высоту, особенно на телефоне.
   --------------------------------------------------------------------- */
.footer-logo { display: none !important; }

/* ---------------------------------------------------------------------
   ПОДПИСКА НА РАССЫЛКУ

   Поле и кнопка стыкуются в одну фигуру: скругления остаются только
   по внешним краям.
   --------------------------------------------------------------------- */
.newsletter {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.newsletter .newsletter-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--ek-line, #e4e7ec);
  border-right: none;
  border-radius: 9px 0 0 9px;
  font-size: 14px;
  outline: none;
  transition: border-color .18s ease;
}
.newsletter .newsletter-input:focus {
  border-color: var(--ek-accent, #ff6b00);
}

.newsletter .newsletter-button {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 20px;
  border: 1.5px solid var(--ek-accent, #ff6b00);
  border-radius: 0 9px 9px 0;
  background: var(--ek-accent, #ff6b00);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: filter .18s ease;
}
.newsletter .newsletter-button:hover { filter: brightness(1.06); }

/* ---------------------------------------------------------------------
   ПОИСК НА ТЕЛЕФОНЕ

   Форма состоит из трёх частей: слева выпадающий выбор категорий
   (это кнопка, а не список), в середине поле, справа кнопка поиска.
   Разъезжалось всё: разная высота и отступы.
   --------------------------------------------------------------------- */
@media (max-width: 991px) {
  .mobile-search-form { padding: 10px 12px; }

  .mobile-search-form form {
    display: flex;
    align-items: stretch;
    width: 100%;
  }

  .mobile-search-form .left {
    flex: 0 0 auto;
    max-width: 44%;
    position: relative;
    display: flex;
  }

  .mobile-search-form .right {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    display: flex;
  }

  /* Три части — строго одной высоты */
  .mobile-search-form .search-select .dropdown-toggle,
  .mobile-search-form .input-search,
  .mobile-search-form .btn-search {
    height: 46px !important;
    min-height: 46px;
    margin: 0 !important;
    border: 1.5px solid var(--ek-line, #e4e7ec);
    font-size: 14px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
  }

  .mobile-search-form .search-select { display: flex; width: 100%; }

  .mobile-search-form .search-select .dropdown-toggle {
    width: 100%;
    padding: 0 26px 0 12px !important;
    border-right: none;
    border-radius: 9px 0 0 9px;
    background: #fff;
    color: var(--ek-ink-2, #475467);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
  }

  /* Значок-стрелка не должен вылезать за поле */
  .mobile-search-form .search-select-caret {
    position: absolute;
    top: 50%;
    right: 9px;
    transform: translateY(-50%);
    font-size: 11px;
    color: #98a2b3;
    pointer-events: none;
  }

  .mobile-search-form .input-search {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 12px !important;
    border-right: none;
    border-radius: 0;
    line-height: 1;
  }

  .mobile-search-form .btn-search {
    flex: 0 0 auto;
    width: 52px;
    padding: 0 !important;
    justify-content: center;
    border-color: var(--ek-accent, #ff6b00);
    border-radius: 0 9px 9px 0;
    background: var(--ek-accent, #ff6b00);
    color: #fff;
  }
  .mobile-search-form .btn-search i { font-size: 16px; }

  /* Выпадающий список категорий — под всей формой */
  .mobile-search-form .search-categories {
    max-height: 60vh;
    overflow-y: auto;
  }
}

/* ---------------------------------------------------------------------
   МОБИЛЬНОЕ МЕНЮ

   Синяя полоса с логотипом занимала верх панели. Логотип и так виден
   на странице, а место на телефоне дорого — оставляем только крестик.
   --------------------------------------------------------------------- */
.nav-mobile-topbar {
  background: transparent !important;
  background-image: none !important;
  border-bottom: 1px solid var(--ek-line, #e4e7ec);
  padding: 9px 12px !important;
  min-height: 50px;
  display: flex !important;
  align-items: center;
  justify-content: flex-end !important;
}

.nav-mobile-brand { display: none !important; }

.nav-mobile-close {
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  transition: background .18s ease;
}
.nav-mobile-close:hover { background: #f2f4f7; }

/* Крестик из двух полосок — тёмный, раз фон теперь светлый */
.nav-mobile-topbar .ek-x span { background: var(--ek-ink, #101828) !important; }


/* ---------------------------------------------------------------------
   АККОРДИОН В КАРТОЧКЕ ТОВАРА (телефон)

   Свой аккордион не строим: внутри вкладок уже лежит штатный,
   на card-header и collapse. Только прячем полосу вкладок
   и приводим разделы к общему виду.
   --------------------------------------------------------------------- */
@media (max-width: 991px) {
  /* Полоса вкладок и её следы */
  .nav-tabs-horizontal,
  .product-tabs .nav-tabs,
  .nav-tabs-horizontal + .tab-content > .tab-pane > .card > .card-header + .collapse.show {
    display: none !important;
  }

  /* Рамка вокруг области вкладок больше не нужна */
  .product-tabs,
  .tab-content#accordion {
    border: none !important;
    padding: 0 !important;
  }

  /* Разделы — карточками с рамкой */
  #accordion .card {
    border: 1px solid var(--ek-line, #e4e7ec) !important;
    border-radius: 11px !important;
    margin-bottom: 9px;
    overflow: hidden;
    background: #fff;
  }

  #accordion .card-header {
    padding: 0 !important;
    border: none !important;
    background: #fff !important;
  }

  #accordion .card-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px !important;
    font-size: 15px;
    font-weight: 600;
    color: var(--ek-ink, #101828) !important;
    text-decoration: none !important;
  }

  #accordion .card-link:not(.collapsed) {
    color: var(--ek-accent, #ff6b00) !important;
  }

  /* Стрелки: вниз у закрытого, вверх у открытого */
  #accordion .card-link .icon-arrow-down,
  #accordion .card-link .icon-arrow-up {
    flex: 0 0 auto;
    font-size: 12px;
    color: #98a2b3;
    transition: transform .25s ease;
  }
  #accordion .card-link.collapsed .icon-arrow-up,
  #accordion .card-link:not(.collapsed) .icon-arrow-down { display: none !important; }
  #accordion .card-link:not(.collapsed) .icon-arrow-up { color: var(--ek-accent, #ff6b00); }

  #accordion .card-body,
  #accordion .collapse > div {
    padding: 0 16px 16px !important;
    font-size: 14px;
    line-height: 1.65;
  }
}

/* ---------------------------------------------------------------------
   СЛАЙДЕР РЕКОМЕНДОВАННЫХ ТОВАРОВ (телефон)
   --------------------------------------------------------------------- */
.ek-slider { position: relative; }

.ek-slider-viewport { overflow: hidden; }

.ek-slider-track {
  display: flex;
  transition: transform .34s cubic-bezier(.4, 0, .2, 1);
}

.ek-slider-page {
  flex: 0 0 100%;
  display: grid;
  /* Число колонок задаётся ниже, для каждой ширины своё */
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 2px;
}

@media (min-width: 992px) and (max-width: 1199px) {
  .ek-slider-page { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (min-width: 1200px) {
  .ek-slider-page { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}

/* Карточка внутри слайдера занимает всю ячейку */
.ek-slider-page > * {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ek-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ek-line, #e4e7ec);
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  color: var(--ek-ink, #101828);
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 9px rgba(16, 24, 40, .12);
  cursor: pointer;
}
.ek-slider-prev { left: -6px; }
.ek-slider-next { right: -6px; }
.ek-slider-arrow:active { transform: translateY(-50%) scale(.94); }

@media (min-width: 992px) {
  /* Аккордион на большом экране не нужен — там вкладки */
  .ek-acc { display: none; }

  /* Слайдер, наоборот, нужен: карточки в одну строку с листанием */
  .ek-slider { padding: 0 6px; }
  .ek-slider-arrow { width: 44px; height: 44px; font-size: 27px; }
  .ek-slider-prev { left: -14px; }
  .ek-slider-next { right: -14px; }
}


/* =====================================================================
   ==  УСИЛЕННЫЕ ПРАВКИ МОБИЛЬНОЙ ВЕРСИИ — v11.9                      ==
   ==                                                                  ==
   ==  Прошлые правила перебивались темой: у неё свои объявления       ==
   ==  с !important и более длинными цепочками селекторов. Здесь       ==
   ==  специфичность выше и пометка стоит везде, где нужно.            ==
   ===================================================================== */

/* ---------------------------------------------------------------------
   ПАНЕЛЬ НАВИГАЦИИ: убрать фон, крестик — вправо
   --------------------------------------------------------------------- */
.nav-mobile .nav-mobile-inner .row .nav-mobile-topbar,
.nav-mobile .nav-mobile-topbar,
div.nav-mobile-topbar {
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  border-bottom: 1px solid #e4e7ec !important;
  padding: 9px 14px !important;
  min-height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-direction: row !important;
}

/* Логотип в панели не нужен — он есть в шапке страницы */
.nav-mobile .nav-mobile-brand,
.nav-mobile-topbar .nav-mobile-brand,
.nav-mobile-topbar img {
  display: none !important;
}

/* Крестик прижимаем вправо */
.nav-mobile .nav-mobile-close,
.nav-mobile-topbar .nav-mobile-close {
  margin-left: auto !important;
  margin-right: 0 !important;
  float: none !important;
  position: static !important;
  background: transparent !important;
  border: none !important;
  width: 42px !important;
  height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9px;
}
.nav-mobile .nav-mobile-close:hover { background: #f2f4f7 !important; }

/* Полоски крестика — тёмные, раз фон стал белым */
.nav-mobile-topbar .ek-x span,
.nav-mobile .nav-mobile-close .ek-x span {
  background: #101828 !important;
}

/* ---------------------------------------------------------------------
   ВЫПАДАЮЩАЯ ФОРМА ПОИСКА: всё в одну линию
   --------------------------------------------------------------------- */
@media (max-width: 991px) {
  .top-search-bar.mobile-search-form,
  div.mobile-search-form {
    padding: 10px 12px !important;
    background: #fff;
  }

  .mobile-search-form form,
  form#form_validate_search_mobile {
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .mobile-search-form form > .left {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 43% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
  }

  .mobile-search-form form > .right {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    position: relative;
  }

  .mobile-search-form .search-select {
    display: flex !important;
    width: 100% !important;
    position: relative;
  }

  /* Три части строго одной высоты — иначе и разъезжается */
  .mobile-search-form .search-select > .dropdown-toggle,
  .mobile-search-form .right > .input-search,
  .mobile-search-form .right > .btn-search {
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: 1.5px solid #e4e7ec !important;
    font-size: 14px !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    float: none !important;
    box-shadow: none !important;
  }

  .mobile-search-form .search-select > .dropdown-toggle {
    width: 100% !important;
    padding-left: 12px !important;
    padding-right: 26px !important;
    border-right: none !important;
    border-radius: 9px 0 0 9px !important;
    background: #fff !important;
    color: #475467 !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  /* Родная стрелка Bootstrap убирается — у нас своя */
  .mobile-search-form .search-select > .dropdown-toggle::after { display: none !important; }

  .mobile-search-form .search-select-caret {
    position: absolute !important;
    top: 50% !important;
    right: 9px !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    font-size: 11px !important;
    color: #98a2b3 !important;
    pointer-events: none !important;
    z-index: 2;
  }

  .mobile-search-form .right > .input-search {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    border-right: none !important;
    border-radius: 0 !important;
  }

  .mobile-search-form .right > .btn-search {
    flex: 0 0 52px !important;
    width: 52px !important;
    padding: 0 !important;
    justify-content: center !important;
    border-color: #ff6b00 !important;
    border-radius: 0 9px 9px 0 !important;
    background: #ff6b00 !important;
    color: #fff !important;
  }
  .mobile-search-form .right > .btn-search i { font-size: 16px !important; color: #fff !important; }

  /* Подсказки поиска — под всей формой, а не под полем */
  .mobile-search-form .search-results-ajax {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 20;
  }
}

/* ---------------------------------------------------------------------
   ПОДПИСКА В ПОДВАЛЕ: поле и кнопка одной фигурой
   --------------------------------------------------------------------- */
.widget-newsletter .newsletter,
.form-newsletter .newsletter,
div.newsletter {
  display: flex !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  gap: 0 !important;
}

.widget-newsletter .newsletter-input,
.form-newsletter .newsletter-input,
input.newsletter-input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1.5px solid #e4e7ec !important;
  border-right: none !important;
  border-radius: 9px 0 0 9px !important;
  font-size: 14px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}
.widget-newsletter .newsletter-input:focus,
input.newsletter-input:focus {
  border-color: #ff6b00 !important;
  outline: none !important;
}

.widget-newsletter .newsletter-button,
.form-newsletter .newsletter-button,
button.newsletter-button {
  flex: 0 0 auto !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  border: 1.5px solid #ff6b00 !important;
  border-radius: 0 9px 9px 0 !important;
  background: #ff6b00 !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  cursor: pointer;
}
.widget-newsletter .newsletter-button:hover { filter: brightness(1.06); }

/* Поле для ловли роботов остаётся невидимым */
.form-newsletter input[name="url"] { display: none !important; }


/* =====================================================================
   ==  АККОРДИОН НА ТЕЛЕФОНЕ — окончательно                           ==
   ==                                                                  ==
   ==  Секции держались открытыми моим же правилом для десктопа:       ==
   ==  display:block !important без ограничения по ширине. Оно         ==
   ==  перебивало и разметку, и скрипт.                                ==
   ==                                                                  ==
   ==  Здесь возвращаем обычное поведение Bootstrap: закрытая секция   ==
   ==  скрыта, открытая показана. Открывается ровно одна — за это      ==
   ==  отвечает data-parent="#accordion" в разметке.                   ==
   ===================================================================== */
@media (max-width: 991px) {
  /* Заголовки разделов видны и кликабельны */
  .product-description .tab-pane > .card > .card-header {
    display: block !important;
  }

  /* Закрытая секция — скрыта */
  .product-description .collapse-description-content,
  #accordion .collapse:not(.show) {
    display: none !important;
    height: auto !important;
  }

  /* Открытая — показана */
  .product-description .collapse-description-content.show,
  #accordion .collapse.show {
    display: block !important;
  }

  /* Во время анимации Bootstrap ставит класс collapsing */
  #accordion .collapsing {
    display: block !important;
    height: 0;
    overflow: hidden;
    transition: height .3s ease;
  }
}


/* ---------------------------------------------------------------------
   ЗАГОЛОВКИ ВНУТРИ СЕКЦИЙ АККОРДИОНА

   Внутри отзывов и комментариев есть свои подписи вида
   «Отзывы (7)» и «Комментарии (0)». В аккордионе они дублируют
   название секции, где количество теперь и показывается.

   Подписи форм — «Добавить комментарий», «Оставить отзыв» —
   не трогаем: они объясняют, что делать, а не повторяют название.
   --------------------------------------------------------------------- */
/*
 * Заголовок отзывов убран прямо в шаблоне _reviews.php.
 *
 * У комментариев файл лежит отдельно и мной не менялся, поэтому
 * прячем стилем. Различаем по контейнеру: заголовок секции лежит
 * в .comment-total (или .comments-total), а подпись формы
 * «Добавить комментарий» — в .row-comment-label. Её трогать нельзя,
 * она объясняет, что делать.
 */
#collapse_comments_content .comment-total,
#collapse_comments_content .comments-total,
#collapse_comments_content .comment-total label,
#collapse_comments_content .comments-total label,
#collapse_comments_content .comments-container > .row > .col-12 > .row-custom:first-child > label:not([for]),
#collapse_reviews_content .label-review {
  display: none !important;
}

/*
 * Пустой контейнер после скрытия заголовка не должен оставлять
 * отступ — иначе вверху секции повиснет пустая полоса.
 */
#collapse_comments_content .comment-total,
#collapse_comments_content .comments-total {
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

/* Подпись формы остаётся видимой */
#collapse_comments_content .row-comment-label label,
#collapse_comments_content .label-comment[for],
#collapse_comments_content .row-comment-label .label-comment {
  display: block !important;
  height: auto !important;
}


/* Подсветка непройденной капчи в окне входа */
#form_login .g-recaptcha.is-recaptcha-invalid {
  border: 1.5px solid #d92d20;
  border-radius: 6px;
  padding: 2px;
}
#form_login .g-recaptcha { display: inline-block; }


/* =====================================================================
   ==  ПОДВАЛ: ЧЕТЫРЕ КОЛОНКИ                                         ==
   ==                                                                  ==
   ==  Навигация (2) · Информация (3) · Соцсети (3) · Рассылка (4)     ==
   ==                                                                  ==
   ==  Рассылке отдана самая широкая: в неё должны поместиться поле    ==
   ==  и кнопка в одну строку, не переносясь и не сжимаясь.            ==
   ===================================================================== */
.footer-widget { margin-bottom: 26px; }

.footer-widget .footer-title {
  margin-bottom: 15px;
  font-size: 15px;
  font-weight: 600;
}

/* Колонка рассылки */
.footer-widget-newsletter .widget-newsletter { max-width: 100%; }

.footer-widget-newsletter .form-newsletter { width: 100%; }

/* Поле не должно сжиматься до нечитаемого */
.footer-widget-newsletter .newsletter-input { min-width: 0; }

@media (min-width: 992px) {
  /* Кнопка держит свою ширину, поле забирает остальное */
  .footer-widget-newsletter .newsletter-button { flex: 0 0 auto; }
}

@media (max-width: 991px) {
  /* На планшете — по две колонки в ряд */
  .footer-widget { margin-bottom: 22px; }
}

@media (max-width: 767px) {
  .footer-widget { margin-bottom: 20px; }
  .footer-widget .footer-title { margin-bottom: 11px; }

  /* Рассылка последней: сначала ссылки, потом форма */
  .footer-widget-newsletter { order: 4; }
}


/* =====================================================================
   ==  МОБИЛЬНАЯ ШАПКА И МЕНЮ — v13.1                                 ==
   ===================================================================== */

/* ---------------------------------------------------------------------
   ШАПКА: одинаковые отступы по краям

   Логотип стоял по центру, но справа три значка (поиск, корзина),
   а слева один бургер — центр получался смещённым, и слева
   оставалась широкая пустота.

   Убираем растяжку: логотип прижимается влево, сразу за бургером,
   с тем же отступом, что справа у лупы.
   --------------------------------------------------------------------- */
@media (max-width: 991px) {
  .nav-mobile-header-container > .d-flex {
    align-items: center;
    gap: 10px;
    padding: 0 10px;
  }

  .nav-mobile-header-container .flex-item-left {
    flex: 0 0 auto;
    padding: 0 !important;
    margin: 0 !important;
  }

  /*
   * Средний блок НЕ растягиваем.
   *
   * Прошлый заход задал ему flex: 1 — блок занял всё свободное
   * место, и логотип внутри оказался у его середины, то есть
   * визуально уехал вправо, к лупе.
   *
   * Теперь блок по ширине содержимого, а вправо всё остальное
   * оттесняет margin-right: auto.
   */
  .nav-mobile-header-container .flex-item-mid {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 auto 0 0 !important;   /* прижать влево */
    padding: 0 !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center;
  }

  .nav-mobile-header-container .mobile-logo {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    display: flex !important;
    align-items: center;
  }
  .nav-mobile-header-container .mobile-logo a { display: flex; align-items: center; }
  .nav-mobile-header-container .mobile-logo img { margin: 0 !important; }

  .nav-mobile-header-container .flex-item-right {
    flex: 0 0 auto;
    gap: 14px;
    padding: 0 !important;
    margin: 0 !important;
  }
  .nav-mobile-header-container .flex-item-right a { margin: 0 !important; }
}

/* ---------------------------------------------------------------------
   ПАНЕЛЬ НАВИГАЦИИ: крупнее шрифт, меньше отступы

   Вокруг меню оставалось много пустого места, а пункты были мелкими —
   на телефоне по ним неудобно попадать.
   --------------------------------------------------------------------- */
.nav-mobile .nav-mobile-inner,
.nav-mobile .nav-mobile-sc {
  padding-left: 5px !important;
  padding-right: 5px !important;
}

.nav-mobile .nav-mobile-inner > .row,
.nav-mobile .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.nav-mobile .col-sm-12 {
  padding-left: 5px !important;
  padding-right: 5px !important;
}

/* Пункты меню — крупнее и просторнее по высоте */
.nav-mobile .navbar-nav .nav-link {
  padding: 13px 8px !important;
  font-size: 16px !important;
  line-height: 1.35;
}

.nav-mobile .navbar-mobile-categories .nav-link {
  font-size: 16px !important;
  font-weight: 500;
}

/* Вложенные пункты — чуть мельче, чтобы видеть уровень */
.nav-mobile .navbar-nav .dropdown-menu .nav-link,
.nav-mobile .dropdown-menu a {
  padding: 11px 8px 11px 20px !important;
  font-size: 15px !important;
}

.nav-mobile .dropdown-menu {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}

/* Разделитель между пунктами вместо пустого места */
.nav-mobile .navbar-nav > li + li,
.nav-mobile .navbar-nav > .nav-item + .nav-item {
  border-top: 1px solid #f0f2f5;
}

/* Переключатель языка и кнопка выхода — в общем ритме */
.nav-mobile .ek-lang-mobile { padding: 8px 5px !important; }
.nav-mobile .btn-logout-mobile {
  padding: 12px 8px !important;
  font-size: 15px !important;
}


/* =====================================================================
   ==  ПОДВАЛ НА ТЕЛЕФОНЕ — v13.3                                     ==
   ==                                                                  ==
   ==  Раскладка: два столбца ссылок, под ними соцсети и подписка      ==
   ==  по центру. Ссылок много, и в один столбец подвал растягивался   ==
   ==  на два экрана.                                                  ==
   ===================================================================== */
@media (max-width: 767px) {
  .footer-widget { margin-bottom: 22px; }

  /* Навигация и Информация — рядом, по половине ширины */
  .footer-widget:nth-child(1),
  .footer-widget:nth-child(2) {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Соцсети и рассылка — во всю ширину, по центру */
  .footer-widget:nth-child(3),
  .footer-widget-newsletter {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    text-align: center;
  }

  .footer-widget:nth-child(3) .footer-title,
  .footer-widget-newsletter .footer-title {
    text-align: center;
  }

  /* Значки соцсетей — в ряд по центру */
  .footer-widget:nth-child(3) .footer-social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  .footer-widget:nth-child(3) .footer-social-links a { margin: 0 !important; }

  /* Форма подписки — не на всю ширину экрана, иначе теряется */
  .footer-widget-newsletter .newsletter-box,
  .footer-widget-newsletter .widget-newsletter {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Ссылки в столбцах — плотнее, их много */
  .footer-widget .nav-footer ul li { margin-bottom: 7px; }
  .footer-widget .nav-footer ul li a { font-size: 13.5px; }
}

@media (max-width: 400px) {
  /* На узком экране столбцы ещё теснее */
  .footer-widget:nth-child(1),
  .footer-widget:nth-child(2) { padding-left: 8px; padding-right: 8px; }
  .footer-widget .nav-footer ul li a { font-size: 13px; }
}


/* ---------------------------------------------------------------------
   АКТИВНЫЙ ПУНКТ МОБИЛЬНОГО МЕНЮ

   Фирменный оранжевый и полоска слева — видно, на какой странице
   находишься, не закрывая меню.
   --------------------------------------------------------------------- */
.nav-mobile .ek-nav-current,
.nav-mobile a.ek-nav-current {
  color: var(--ek-accent, #ff6b00) !important;
  font-weight: 600 !important;
  background: rgba(255, 107, 0, .07);
  border-left: 3px solid var(--ek-accent, #ff6b00);
  padding-left: 10px !important;
}

/* Раздел, внутри которого лежит открытая страница */
.nav-mobile .ek-nav-current-parent {
  color: var(--ek-accent, #ff6b00) !important;
  font-weight: 600 !important;
}

/* Значки внутри активного пункта — тем же цветом */
.nav-mobile .ek-nav-current i,
.nav-mobile .ek-nav-current-parent i {
  color: var(--ek-accent, #ff6b00) !important;
}


/* =====================================================================
   ==  ОКНО РЕКЛАМЫ TELEGRAM-МАГАЗИНА — v13.6                         ==
   ==                                                                  ==
   ==  Всплывает снизу слева, чтобы не перекрывать кнопку «наверх»     ==
   ==  справа и корзину. Появляется через несколько секунд после       ==
   ==  захода — сразу показывать бессмысленно, человек ещё не понял,   ==
   ==  куда попал.                                                     ==
   ===================================================================== */
.ek-tg-promo {
  position: fixed;
  left: 200px;
  bottom: 18px;
  z-index: 1040;
  width: 330px;
  max-width: calc(100vw - 36px);
  padding: 20px 20px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(16, 24, 40, .18);
  border: 1px solid #e4e7ec;

  /*
   * Появление: выезжает снизу и слегка «доезжает» на место.
   *
   * Путь длиннее, чем кажется нужным (32 пикселя вместо десятка):
   * короткое движение глаз не успевает заметить, и окно выглядит
   * так, будто просто моргнуло.
   *
   * Кривая с обратным ходом в конце (последнее значение больше
   * единицы) даёт лёгкое замедление у цели — движение читается
   * как «приехало и встало», а не «оборвалось».
   */
  opacity: 0;
  transform: translateY(32px) scale(.97);
  transition: opacity .38s ease,
              transform .46s cubic-bezier(.22, 1.2, .36, 1);
  will-change: transform, opacity;
}

.ek-tg-promo.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/*
 * Кто просил систему не анимировать — тому показываем сразу.
 * Для части людей движение на экране вызывает неприятные ощущения.
 */
@media (prefers-reduced-motion: reduce) {
  .ek-tg-promo {
    transition: opacity .2s ease;
    transform: none;
  }
  .ek-tg-promo.is-visible { transform: none; }
}

.ek-tg-promo-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #229ED9;          /* фирменный цвет Telegram */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ek-tg-promo-title {
  margin: 0 0 7px;
  font-size: 17px;
  font-weight: 700;
  color: #101828;
  line-height: 1.3;
}

.ek-tg-promo-text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: #475467;
}

.ek-tg-promo-btn {
  display: block;
  padding: 12px 18px;
  border-radius: 10px;
  background: #229ED9;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none !important;
  transition: filter .18s ease, transform .18s ease;
}
.ek-tg-promo-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.ek-tg-promo-btn:active { transform: translateY(0); }

.ek-tg-promo-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #98a2b3;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.ek-tg-promo-close:hover { background: #f2f4f7; color: #101828; }

@media (max-width: 575px) {
  /* На телефоне — во всю ширину внизу, но выше кнопки «наверх» */
  .ek-tg-promo {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    padding: 17px 17px 15px;
  }
  .ek-tg-promo-icon { width: 40px; height: 40px; margin-bottom: 10px; }
  .ek-tg-promo-title { font-size: 16px; }
  .ek-tg-promo-text { font-size: 13.5px; margin-bottom: 14px; }
}

/* Рядом с предупреждением о cookies окно поднимается выше */
.cookies-warning ~ .ek-tg-promo,
body:has(.cookies-warning) .ek-tg-promo {
  bottom: 120px;
}


/* Своя картинка в окне рекламы — обычно QR-код */
.ek-tg-promo-image {
  margin-bottom: 13px;
  text-align: center;
}
.ek-tg-promo-image img {
  max-width: 100%;
  max-height: 150px;
  width: auto;
  border-radius: 10px;
  background: #fff;
}

@media (max-width: 575px) {
  /* На телефоне QR-код бесполезен — камеры под рукой нет.
     Уменьшаем, чтобы не вытеснял текст и кнопку. */
  .ek-tg-promo-image img { max-height: 96px; }
}


/* =====================================================================
   ==  ТЕКСТОВЫЙ БЛОК НА ГЛАВНОЙ — v14.4                              ==
   ==                                                                  ==
   ==  Свёрнут до 180 пикселей, раскрывается по нажатию.               ==
   ==                                                                  ==
   ==  Текст НЕ прячется через display:none: поисковики считают        ==
   ==  скрытое содержимое менее весомым. Ограничена только высота,     ==
   ==  сам текст остаётся в разметке целиком.                          ==
   ===================================================================== */
.ek-seo-section { margin-top: 34px; }

.ek-seo-block {
  position: relative;
  padding: 26px 28px 22px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--ek-line, #e4e7ec);
}

.ek-seo-title {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ek-ink, #101828);
}

.ek-seo-body {
  position: relative;
  max-height: 180px;
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ek-ink-2, #475467);
  transition: max-height .45s cubic-bezier(.4, 0, .2, 1);
}

/* Плавное затухание к низу вместо резкого обрыва текста */
.ek-seo-body::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 88%);
  pointer-events: none;
  transition: opacity .3s ease;
}

.ek-seo-block.is-open .ek-seo-body { max-height: none; }
.ek-seo-block.is-open .ek-seo-body::after { opacity: 0; }

/* Оформление содержимого */
.ek-seo-body h2 { font-size: 19px; font-weight: 600; margin: 22px 0 10px; color: var(--ek-ink, #101828); }
.ek-seo-body h3 { font-size: 16.5px; font-weight: 600; margin: 18px 0 9px; color: var(--ek-ink, #101828); }
.ek-seo-body p { margin: 0 0 12px; }
.ek-seo-body ul,
.ek-seo-body ol { margin: 0 0 14px; padding-left: 22px; }
.ek-seo-body li { margin-bottom: 6px; }
.ek-seo-body a { color: var(--ek-accent, #ff6b00); text-decoration: underline; }
.ek-seo-body img { max-width: 100%; height: auto; border-radius: 9px; }
.ek-seo-body table { width: 100%; margin-bottom: 14px; border-collapse: collapse; }
.ek-seo-body table td,
.ek-seo-body table th { padding: 9px 11px; border: 1px solid var(--ek-line, #e4e7ec); }

/* Ссылка-кнопка «Подробнее» — пунктиром, как обычная текстовая ссылка */
.ek-seo-more {
  margin-top: 14px;
  padding: 0;
  border: none;
  background: none;
  color: var(--ek-accent, #ff6b00);
  font-size: 14.5px;
  font-weight: 600;
  border-bottom: 1px dashed currentColor;
  cursor: pointer;
  transition: color .18s ease;
}
.ek-seo-more:hover { color: #e05a00; }

.ek-seo-more-close { display: none; }
.ek-seo-block.is-open .ek-seo-more-open { display: none; }
.ek-seo-block.is-open .ek-seo-more-close { display: inline; }

/* Пока текст свёрнут, по всему блоку можно нажать */
.ek-seo-block:not(.is-open) .ek-seo-body { cursor: pointer; }

@media (max-width: 767px) {
  .ek-seo-block { padding: 20px 18px 18px; border-radius: 12px; }
  .ek-seo-title { font-size: 19px; }
  .ek-seo-body { font-size: 14px; max-height: 150px; }
  .ek-seo-body h2 { font-size: 17px; }
  .ek-seo-body h3 { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .ek-seo-body { transition: none; }
}





/* =====================================================================
   ==  КАРТИНКИ СТАТЕЙ В БЛОКЕ БЛОГА — v16.3                          ==
   ==                                                                  ==
   ==  Картинки, нарисованные ИИ, приходят квадратными 1024×1024       ==
   ==  и в разметке ничем не ограничены: они вылезали за карточку      ==
   ==  и наезжали на заголовок.                                        ==
   ==                                                                  ==
   ==  Задаём рамку с постоянными пропорциями, а картинку вписываем    ==
   ==  внутрь: любой размер и любые пропорции лягут одинаково.         ==
   ===================================================================== */
.blog-item {
  overflow: hidden;
}

.blog-item-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 11px;
  background: #f2f4f7;
  margin-bottom: 13px;
}

.blog-item-img a {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-item-img img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover;      /* обрезаем лишнее, а не сплющиваем */
  object-position: center;
  display: block;
  transition: transform .35s ease;
}

.blog-item:hover .blog-item-img img {
  transform: scale(1.04);
}

/*
 * Запасной вариант для старых браузеров без aspect-ratio.
 * Соотношение задаётся отступом снизу: 10/16 = 62.5%.
 */
@supports not (aspect-ratio: 16 / 10) {
  .blog-item-img {
    height: 0;
    padding-bottom: 62.5%;
  }
  .blog-item-img a {
    position: absolute;
    inset: 0;
  }
}

/* Заголовок не должен наезжать на картинку */
.blog-item .blog-post-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.4;
  clear: both;
}

.blog-item .blog-post-title a {
  color: var(--ek-ink, #101828);
  text-decoration: none;
}
.blog-item .blog-post-title a:hover { color: var(--ek-accent, #ff6b00); }

.blog-item .blog-post-description {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ek-ink-2, #475467);
  overflow-wrap: break-word;
}

@media (max-width: 767px) {
  .blog-item-img { border-radius: 10px; margin-bottom: 11px; }
  .blog-item .blog-post-title { font-size: 15px; }
}


/* =====================================================================
   ==  ОПИСАНИЕ ТОВАРА НА ТЕЛЕФОНЕ — v17.3                            ==
   ==                                                                  ==
   ==  Раздел открыт сразу, но текст свёрнут до 150 пикселей.          ==
   ==  Разворачивается нажатием, сворачивается повторным.              ==
   ===================================================================== */
@media (max-width: 991px) {

  .ek-pd-desc { position: relative; }

  .ek-pd-desc-body {
    position: relative;
    max-height: 150px;
    overflow: hidden;
    cursor: pointer;
    transition: max-height .42s cubic-bezier(.4, 0, .2, 1);
  }

  /*
   * Плавное затухание к низу вместо резкого обрыва.
   *
   * Обрезанная на полуслове строка выглядит ошибкой вёрстки —
   * растворение сразу читается как «здесь есть продолжение».
   */
  .ek-pd-desc-body::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 90%);
    pointer-events: none;
    transition: opacity .3s ease;
  }

  .ek-pd-desc.is-open .ek-pd-desc-body {
    max-height: none;
    cursor: pointer;   /* по раскрытому тоже можно нажать — свернётся */
  }
  .ek-pd-desc.is-open .ek-pd-desc-body::after { opacity: 0; }

  /* Ссылка пунктиром, как обычная текстовая */
  .ek-pd-desc-more {
    margin-top: 10px;
    padding: 0;
    border: none;
    background: none;
    color: var(--ek-accent, #ff6b00);
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px dashed currentColor;
    cursor: pointer;
  }

  .ek-pd-desc-close { display: none; }
  .ek-pd-desc.is-open .ek-pd-desc-open { display: none; }
  .ek-pd-desc.is-open .ek-pd-desc-close { display: inline; }

  /* Если текст короткий, кнопка не нужна — скрывается скриптом */
  .ek-pd-desc.is-short .ek-pd-desc-more { display: none; }
  .ek-pd-desc.is-short .ek-pd-desc-body {
    max-height: none;
    cursor: default;
  }
  .ek-pd-desc.is-short .ek-pd-desc-body::after { display: none; }
}

@media (min-width: 992px) {
  /* На большом экране описание показывается целиком */
  .ek-pd-desc-more { display: none; }
  .ek-pd-desc-body { max-height: none; }
  .ek-pd-desc-body::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ek-pd-desc-body { transition: none; }
}


/* =====================================================================
   ==  ФОРМА ВОПРОСА: ПОЧТА ИЛИ TELEGRAM — v17.8                      ==
   ===================================================================== */
.ek-ask-who { margin-bottom: 14px; }

/*
 * Выбор способа — переключателем, а не вкладками.
 *
 * Вкладки выглядели как разделы страницы, и было неочевидно,
 * что это выбор одного из двух. Точка выбора понятна сразу.
 */
.ek-ask-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.ek-ask-radio {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1.5px solid var(--ek-line, #e4e7ec);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  margin: 0;
  font-weight: normal;
  transition: border-color .18s ease, background .18s ease;
}

.ek-ask-radio:hover { border-color: #b2ddff; }

.ek-ask-radio input {
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--ek-accent, #ff6b00);
}

.ek-ask-radio span {
  font-size: 14px;
  color: var(--ek-ink-2, #475467);
}

.ek-ask-radio b {
  color: var(--ek-accent, #ff6b00);
  font-weight: 600;
}

.ek-ask-radio.is-active {
  border-color: var(--ek-accent, #ff6b00);
  background: #fff7ed;
}
.ek-ask-radio.is-active span { color: var(--ek-ink, #101828); }

.ek-ask-hint {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ek-ink-2, #475467);
  margin: 0 0 12px;
}

/* Подтверждённый Telegram */
.ek-ask-tg-ready {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #ecfdf3;
  border: 1px solid #abefc6;
  border-radius: 10px;
}

.ek-ask-tg-ready img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.ek-ask-tg-ready > div { flex: 1 1 auto; min-width: 0; }
.ek-ask-tg-ready b { display: block; font-size: 14.5px; color: #101828; }
.ek-ask-tg-ready span { font-size: 12.5px; color: #067647; }

.ek-ask-tg-ready a {
  font-size: 12.5px;
  color: var(--ek-ink-3, #667085);
  border-bottom: 1px dashed currentColor;
  text-decoration: none;
  flex: 0 0 auto;
}

/* Аватар в списке вопросов */
.comment-list .ek-q-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

/* Пометка «отвечено» */
.ek-q-answer {
  margin-top: 10px;
  padding: 11px 14px;
  background: #f7f9fc;
  border-left: 3px solid var(--ek-accent, #ff6b00);
  border-radius: 0 9px 9px 0;
}
.ek-q-answer b {
  display: block;
  font-size: 13px;
  color: var(--ek-accent, #ff6b00);
  margin-bottom: 4px;
}

@media (max-width: 575px) {
  .ek-ask-tab { flex: 1 1 auto; padding: 9px 12px; font-size: 13.5px; }
  .ek-ask-tg-ready { padding: 10px 12px; gap: 10px; }
  .ek-ask-tg-ready img { width: 38px; height: 38px; }
}


/* Кнопка подтверждения через бота */
.ek-tg-confirm {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  background: #229ED9;   /* фирменный цвет Telegram */
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, transform .15s ease;
}

.ek-tg-confirm:hover { background: #1c8ec2; }
.ek-tg-confirm:active { transform: scale(.98); }

.ek-tg-confirm:disabled {
  background: #98a2b3;
  cursor: default;
  transform: none;
}

.ek-tg-confirm svg { flex: 0 0 auto; }


/* Подтверждение Telegram при оформлении заказа */
.ek-order-tg { margin-bottom: 18px; }

.ek-order-tg-offer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: #eff8ff;
  border: 1px solid #b2ddff;
  border-radius: 11px;
}

.ek-order-tg-offer > div { flex: 1 1 260px; min-width: 0; }

.ek-order-tg-offer b {
  display: block;
  font-size: 14.5px;
  color: var(--ek-ink, #101828);
  margin-bottom: 3px;
}

.ek-order-tg-offer span {
  font-size: 13px;
  color: var(--ek-ink-2, #475467);
  line-height: 1.55;
}

.ek-order-tg-offer .ek-tg-confirm { flex: 0 0 auto; }

@media (max-width: 575px) {
  .ek-order-tg-offer { padding: 13px 14px; gap: 12px; }
  .ek-order-tg-offer .ek-tg-confirm { width: 100%; justify-content: center; }
}


/* =====================================================================
   ==  ЛЕНТА НОВОСТЕЙ НА ГЛАВНОЙ — v21.0                              ==
   ==                                                                  ==
   ==  Свёрнута до 200 пикселей, раскрывается нажатием по любому       ==
   ==  месту — так же, как описание в карточке товара.                 ==
   ===================================================================== */
/*
 * Виджет стоит в правом столбце блока «Новинки», а не отдельной
 * полосой: лента сбоку не разрывает поток товаров и занимает место,
 * которое иначе пустует.
 */
.ek-nl-widget {
  position: relative;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--ek-line, #e4e7ec);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.ek-nl-widget:hover {
  border-color: #b2ddff;
  box-shadow: 0 2px 14px rgba(0, 65, 142, .07);
}

.ek-nl-title {
  font-size: 17px;
  font-weight: 650;
  color: var(--ek-ink, #101828);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}

/* Точка-маячок: показывает, что лента живая */
.ek-nl-title::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ek-accent, #ff6b00);
  flex: 0 0 auto;
  animation: ek-nl-pulse 2.4s ease-in-out infinite;
}

@keyframes ek-nl-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* Свёрнутая часть */
.ek-nl-body {
  position: relative;
  max-height: 340px;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.4, 0, .2, 1);
}

/*
 * Растворение к низу вместо резкого обрыва.
 *
 * Обрезанная на полуслове строка выглядит ошибкой вёрстки,
 * а растворение сразу читается как «здесь есть продолжение».
 */
.ek-nl-body::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 92%);
  pointer-events: none;
  transition: opacity .3s ease;
}

.ek-nl-widget.is-open .ek-nl-body { max-height: none; }
.ek-nl-widget.is-open .ek-nl-body::after { opacity: 0; }

/* Список новостей */
.ek-nl-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ek-nl-item {
  padding: 8px 0 8px 15px;
  border-bottom: 1px solid #f2f4f7;
  position: relative;
  font-size: 13.5px;
  line-height: 1.5;
}

/* Заголовок без ссылки — когда включена очистка разметки */
.ek-nl-plain { color: var(--ek-ink-2, #475467); }

/*
 * Дата новости.
 *
 * Отдельным блоком над заголовком: слитая с текстом, она читается
 * как его часть — «…в Китае 24.09.2026». Отдельно сразу видно,
 * свежая новость или недельной давности.
 */
.ek-nl-date {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ek-accent, #ff6b00);
  margin-bottom: 3px;
  letter-spacing: .2px;
}

.ek-nl-text { display: block; }

.ek-nl-item:last-child { border-bottom: none; }

.ek-nl-item::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ek-ink-3, #98a2b3);
}

.ek-nl-item a {
  color: var(--ek-ink-2, #475467);
  text-decoration: none;
  transition: color .16s ease;
}

.ek-nl-item a:hover {
  color: var(--ek-accent, #ff6b00);
}

/* Ссылка раскрытия */
.ek-nl-toggle {
  margin-top: 14px;
  padding: 0;
  border: none;
  background: none;
  color: var(--ek-accent, #ff6b00);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px dashed currentColor;
  cursor: pointer;
}

.ek-nl-close { display: none; }
.ek-nl-widget.is-open .ek-nl-open { display: none; }
.ek-nl-widget.is-open .ek-nl-close { display: inline; }

/* Короткая лента — раскрывать нечего */
.ek-nl-widget.is-short { cursor: default; }
.ek-nl-widget.is-short .ek-nl-toggle { display: none; }
.ek-nl-widget.is-short .ek-nl-body { max-height: none; }
.ek-nl-widget.is-short .ek-nl-body::after { display: none; }

/*
 * На узком экране лента оказывается под товарами — столбцы
 * складываются. Даём отступ сверху и уменьшаем высоту: на телефоне
 * прокручивать длинный список новостей после товаров никто не станет.
 */
@media (max-width: 991px) {
  .ek-nl-widget { margin-top: 22px; }
  .ek-nl-body { max-height: 190px; }
}

@media (max-width: 575px) {
  .ek-nl-widget { padding: 16px 16px; }
  .ek-nl-title { font-size: 16px; }
  .ek-nl-item { font-size: 13.5px; padding: 7px 0 7px 14px; }
  .ek-nl-body { max-height: 165px; }
}

@media (prefers-reduced-motion: reduce) {
  .ek-nl-body { transition: none; }
  .ek-nl-title::before { animation: none; }
}


/* =====================================================================
   ==  СЛАЙДЕР НОВИНОК РЯДОМ С ЛЕНТОЙ — v21.7                         ==
   ==                                                                  ==
   ==  Товары одной строкой: видно два, остальные листаются.           ==
   ==  Так блок не растёт вниз и держит высоту ленты справа.           ==
   ===================================================================== */
.ek-new-slider {
  position: relative;
  overflow: hidden;
}

.ek-new-track {
  display: flex;
  gap: 14px;
  /*
   * Горизонтальная прокрутка вместо сдвига по счётчику:
   * пальцем на телефоне лента листается сама, без кода.
   */
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;

  /* Полосу прокрутки прячем: листают стрелками или пальцем */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ek-new-track::-webkit-scrollbar { display: none; }

.ek-new-slide {
  /*
   * Два товара в видимой части: половина ширины минус половина
   * промежутка между ними.
   */
  flex: 0 0 calc(50% - 7px);
  scroll-snap-align: start;
}

/* Карточка занимает всю высоту слайда */
.ek-new-slide .product-item {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ek-new-slide .item-details {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* Цена прижата к низу — карточки выравниваются по нижнему краю */
.ek-new-slide .item-meta { margin-top: auto; }

/* Стрелки */
.ek-new-nav {
  position: absolute;
  top: 38%;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ek-line, #e4e7ec);
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  color: var(--ek-ink-2, #475467);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(16, 24, 40, .1);
  transition: background .16s ease, color .16s ease, opacity .2s ease;
  z-index: 3;
}

.ek-new-nav:hover {
  background: var(--ek-accent, #ff6b00);
  border-color: var(--ek-accent, #ff6b00);
  color: #fff;
}

.ek-new-prev { left: 4px; }
.ek-new-next { right: 4px; }

/* Скрываем стрелку, когда листать в эту сторону некуда */
.ek-new-nav.is-hidden {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 991px) {
  /* На узком экране лента уходит вниз, товары снова в сетке —
     слайдер здесь ни к чему */
  .ek-new-nav { display: none; }
  .ek-new-slide { flex: 0 0 calc(50% - 7px); }
}

@media (max-width: 575px) {
  .ek-new-slide { flex: 0 0 calc(62% - 7px); }
}

@media (prefers-reduced-motion: reduce) {
  .ek-new-track { scroll-behavior: auto; }
}
