/* ============================================================================
   modern.css — современный слой поверх темы genious · konsensus.com.ua
   ----------------------------------------------------------------------------
   Подключается ПОСЛЕДНИМ в catalog/view/theme/genious/template/common/header.twig
   и переопределяет stylesheet.css / new.css / adaptiv.css, не трогая их.
   Откат: убрать 3 строки <link> из header.twig (+ Модификаторы → Обновить).
   Шрифт: Inter (Google Fonts), подключён там же. Версия: v2 (2026-10-07).
   ============================================================================ */

/* ---------- 1. Токены ---------- */
:root {
  --brand: #ec6504;
  --brand-600: #cf5600;
  --brand-50: #fff4ec;
  --brand-100: #ffe3cc;
  --navy: #1f2a3a;
  --ink: #1b1f24;
  --text: #2b3340;
  --muted: #6b7280;
  --line: #e6e8ec;
  --surface: #f5f6f8;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 10px 30px -14px rgba(16,24,40,.16);
  --shadow-hover: 0 6px 14px rgba(16,24,40,.08), 0 26px 52px -20px rgba(16,24,40,.22);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- 2. База ---------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font) !important;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .btn, button, input, select, textarea, .home-title, .main-title, .sub-title, .banner-title, .banner-subtitle, .page-title {
  font-family: var(--font) !important;
}
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); transition: color .15s; }
a:hover, a:focus { color: var(--brand-600); text-decoration: none; }
::selection { background: var(--brand-100); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- 3. Кнопки и формы ---------- */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 10px 18px;
  line-height: 1.3;
  border: 1px solid transparent;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
  transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn-primary,
#button-cart,
.box_bttn_cart .btn,
.product-thumb button,
.product-thumb .button-group button,
.slider-btn span,
.banner-btn span,
.banner-btn a,
#button-search, #button-coupon, #button-voucher, #button-login, #button-register, #button-confirm, #button-review,
.buttons .btn-primary {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
  text-shadow: none;
}
.btn-primary:hover, .btn-primary:focus,
#button-cart:hover, .box_bttn_cart .btn:hover,
.product-thumb button:hover, .product-thumb .button-group button:hover,
.slider-btn span:hover, .banner-btn span:hover, .banner-btn a:hover {
  background: var(--brand-600) !important;
  border-color: var(--brand-600) !important;
  color: #fff !important;
}
.btn-default { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-default:hover { background: var(--surface); border-color: #d6d9df; color: var(--ink); }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }

.form-control {
  height: 42px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  box-shadow: none;
  font-size: 15px;
  color: var(--ink);
  padding: 8px 14px;
}
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(236,101,4,.15); }
textarea.form-control { height: auto; }
.input-group .form-control { height: 42px; }
label { font-weight: 600; color: var(--ink); }
.alert { border-radius: var(--radius-sm); }

/* ---------- 4. Шапка ----------
   Структура темы: #header > .header_top_menu (верхняя полоса ссылок)
                            > .header-height > .header-top (логотип / «Каталог» / иконки)
                            > .header-nav (на главной внутри него слайдер, подтянутый вверх на -223px)
   Делаем: белая шапка в потоке, слайдер под ней, тёмный логотип из logo_footer.png. */
#header {
  background-color: #fff !important;
  background-image: none !important;
  color: var(--ink);
  box-shadow: none;
  height: auto !important;
  min-height: 0 !important;
}
#header .header-top, #header .home-header-top, #header .header-bottom, #header .header-nav,
#header .header-height, #header .header-bottom-height {
  background: transparent !important;
  background-image: none !important;
}
#header .header-height, #header .header-bottom-height { height: auto !important; min-height: 0 !important; }
#header a { color: var(--ink); }
#header a:hover { color: var(--brand); }

/* верхняя полоса ссылок */
#header .header_top_menu {
  height: auto !important;
  min-height: 0 !important;
  padding: 0;
  background: var(--surface) !important;
  border-bottom: 1px solid var(--line);
  box-shadow: none !important;
}
#header .header-block, #header .link_container { background: transparent !important; box-shadow: none !important; margin: 0; }
#header .link_container { padding: 0; height: auto !important; }
#header .link_container li { display: inline-block; float: none; }
#header .link_container li a {
  display: inline-block;
  font-weight: 500;
  font-size: 13.5px;
  color: var(--muted);
  padding: 11px 14px;
  line-height: 1.2;
  text-transform: none;
}
#header .link_container li a:hover { color: var(--brand); }
#header .language-selector .btn, #header .currency-selector .btn { background: transparent; border: 0; box-shadow: none; padding: 6px 8px; }

/* ряд с логотипом */
#header .header-top { position: relative; padding: 12px 0 14px !important; border-bottom: 1px solid var(--line); z-index: 5; }
#header .header-top .row { display: flex; align-items: center; }
#header .header-top .row:before, #header .header-top .row:after { display: none; }
#header #box_logo, #header .desktop-logo, #header #_desktop_cart { float: none; }
#header #box_logo { text-align: center; }

/* логотип: в logo.png буквы белые, на белой шапке их не видно — подменяем на тёмную версию */
#header #logo { display: inline-block; vertical-align: middle; }
#header #logo a {
  display: inline-block;
  width: 170px;
  height: 66px;
  background: url('/image/catalog/logo_footer.png') center / contain no-repeat;
}
#header #logo img { opacity: 0 !important; width: 1px !important; height: 1px !important; position: absolute; }

/* кнопка «Каталог продукції» с мегаменю */
#header #_desktop_top_menu { margin: 0; }
#header h2.home-title, #header .home-title {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  height: 46px;
  margin: 0 !important;
  padding: 0 18px !important;
  background: var(--brand) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
  cursor: pointer;
  width: auto;
}
#header .home-title img { filter: brightness(0) invert(1); width: 18px; height: auto; }
#header .home-title span { line-height: 0; }
#header .top-menu { border-radius: var(--radius-sm); box-shadow: var(--shadow-hover); border: 1px solid var(--line); background: #fff; }
#header .top-menu > li > a { font-weight: 500; color: var(--ink); padding: 10px 16px; }
#header .top-menu > li > a:hover { color: var(--brand); background: var(--brand-50); }
#header .top-menu .sub-menu { border-radius: var(--radius-sm); box-shadow: var(--shadow-hover); border: 1px solid var(--line); }
#header .top-menu .sub-menu a { color: var(--text); }
#header .top-menu .sub-menu a:hover { color: var(--brand); }
#header .dropdown-menu { border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: var(--shadow-hover); }

/* иконки поиска / аккаунта / корзины — белые svg-фоны, на белой шапке затемняем */
#header .search-widget .dropdown-toggle,
#header .user-info .dropdown-toggle,
#header .blockcart .dropdown-toggle,
#header .search_box_close,
#header #_mobile_seach_widget a,
#header #_mobile_seach_widget img,
#header .box_search img { filter: brightness(0.15); cursor: pointer; }
/* мобильный: #menu-icon > .nav-icon — это обёртка кнопки «Каталог продукції» (с белой рамкой), а не иконка */
#header .menu-icon, #header #menu-icon .nav-icon { filter: none !important; border: 0 !important; background: transparent !important; width: auto !important; height: auto !important; }
#header #menu-icon .nav-icon svg { stroke: #fff; fill: #fff; width: 18px; height: 18px; }
/* гамбургер слева (#_mobile_link_menu): три белые линии .line-menu — на белой шапке делаем тёмными */
#header #header_ishiheaderlinks .wrapper-menu .line-menu,
#header #header_ishiheaderlinks .wrapper-menu .line-menu:after,
#header .wrapper-menu .line-menu, #header .wrapper-menu .line-menu:after { background-color: var(--ink) !important; }
#header #header_ishiheaderlinks { border: 1px solid var(--line); border-radius: 10px; }
/* иконку-гамбургер <span class="link-icon"> дописывает theme.js; в теме она белая */
#header #header_ishiheaderlinks .link-icon { filter: brightness(0.15); color: var(--ink); display: block; cursor: pointer; }
#header #header_ishiheaderlinks .link_container.small { background: #fff !important; border: 1px solid var(--line) !important; border-radius: var(--radius-sm); box-shadow: var(--shadow-hover); }
#header #header_ishiheaderlinks .link_container.small li a { display: block; padding: 9px 14px; color: var(--ink); }
#header .cart-dropdown { min-width: 320px; padding: 12px; }

/* слайдер на главной — возвращаем в поток под шапку */
#header .header-nav { height: auto !important; min-height: 0 !important; }
.ishislider { margin-top: 0 !important; top: auto !important; position: relative !important; height: auto !important; z-index: 1; }
main.home-page #header .header-top { border-bottom: 0; }

/* ---- шапка в ОДНУ строку (≥1200px): [логотип] [Каталог] … ссылки + флаг … [поиск] [аккаунт] [корзина]
   В разметке ссылки (.header_top_menu) лежат отдельным блоком НАД рядом с логотипом, поэтому
   блок выводится из потока и ставится абсолютно в промежуток между кнопкой каталога и иконками.
   Геометрия считается от центра: контейнер Bootstrap 1170/1200px, колонки переставлены через order. */
@media (min-width: 1200px) {
  #header { position: relative; }
  #header .header-top { padding: 10px 0 !important; }
  #header .header-top .row { min-height: 66px; }
  #header .header-top .row > #box_logo        { order: 1; width: auto !important; flex: 0 0 auto; text-align: left; padding-right: 0; }
  #header .header-top .row > #_desktop_logo   { order: 2; width: auto !important; flex: 0 0 auto; margin-left: 10px; }
  #header .header-top .row > #_desktop_cart   { order: 3; width: auto !important; flex: 0 0 auto; margin-left: auto; text-align: right; }
  #header #logo a { width: 140px; height: 54px; }
  #header h2.home-title, #header .home-title { height: 44px; padding: 0 12px !important; font-size: 14.5px; }

  /* .container темы: width 100%, max-width 1200 (≥992) и 1500 (≥1500) → левый край = 50% − 600px / 50% − 750px.
     Смещение 413px = 15 (pad) + 140 (логотип) + 10 + 15 (pad) + 219 (кнопка) + 14 (зазор). */
  #header .header_top_menu {
    position: absolute;
    top: 10px;
    left: calc(50% - 600px + 413px);
    height: 66px !important;           /* базовое правило выше ставит height:auto !important */
    width: auto;
    display: flex;
    align-items: center;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    z-index: 7;
  }
  #header .header_top_menu .nav-full-width,
  #header .header_top_menu .container { width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
  #header .header_top_menu .row { display: flex; align-items: center; margin: 0; gap: 6px; }
  #header .header_top_menu .row:before, #header .header_top_menu .row:after { display: none; }
  #header #_desktop_link_menu, #header .header_top_menu .language-selector { float: none !important; width: auto !important; position: static !important; margin: 0; padding: 0; }
  #header .header_top_menu .header-block, #header .link_container { background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0; }
  #header .link_container { white-space: nowrap; }
  #header .link_container li a { padding: 8px 7px; font-size: 13px; }
  #header .header_top_menu .language-selector .btn { padding: 4px 2px; }
}
/* от 1500px контейнер 1500 — места много, отступы свободнее */
@media (min-width: 1500px) {
  #header .header_top_menu { left: calc(50% - 750px + 413px); }
  #header .link_container li a { padding: 8px 12px; font-size: 13.5px; }
  #header .header_top_menu .language-selector .btn { padding: 4px 8px; }
}

/* мобильная шапка (< 992: тема переключается на header-bottom + компактный header-top) */
@media (max-width: 991px) {
  #header .header-bottom-height { padding-top: 0 !important; height: auto !important; }
  #header .header-bottom { padding: 6px 0 !important; height: auto !important; border-bottom: 1px solid var(--line); }
  #header .header-top { padding: 10px 0 12px !important; }
  #header .header-top .row { display: block; }
  #header .header-top .row:after { display: table; content: ""; clear: both; }
  #header #_mobile_logo, #header #logo { display: block; text-align: center; height: auto !important; }
  #header #logo a { width: 140px; height: 54px; }
  #header h2.home-title, #header .home-title {
    display: flex !important;
    justify-content: center;
    width: calc(100% - 30px) !important;
    margin: 10px auto 0 !important;
    height: 44px;
  }
  #_mobile_link_menu .menu-icon { border: 1px solid var(--line) !important; border-radius: 10px; background: transparent !important; }
  #header .header-top .menu-icon { border: 0 !important; background: transparent !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
}

/* ---------- 5. Слайдер на главной ---------- */
.ishislider .item { position: relative; }
.ishislider .owl-item img, .ishislider .item > a > img, .ishislider .item img.img-responsive {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  object-fit: cover;
  display: block;
}
.ishislider .slider-content {
  background: rgba(17,21,27,.58);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 30px 34px;
  max-width: 560px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
}
.ishislider .main-title {
  font-size: 38px !important;
  font-weight: 800;
  line-height: 1.12 !important;
  letter-spacing: -.02em;
  color: #fff !important;
  text-transform: none !important;
  border: 0;
  padding: 0;
  margin: 0 0 12px;
}
.ishislider .sub-title { font-size: 17px; line-height: 1.5; color: rgba(255,255,255,.92) !important; margin: 0 0 20px; border: 0; }
.ishislider .slider-btn { border: 0 !important; padding: 0 !important; margin: 0 !important; text-align: left; background: none !important; width: auto !important; }
.ishislider .slider-btn:before, .ishislider .slider-btn:after { display: none !important; }
.ishislider .slider-btn span {
  display: inline-block;
  padding: 12px 22px;
  font-size: 15px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  text-transform: none;
}
.ishislider .owl-dots { bottom: 14px; }
.ishislider .owl-dot span { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.55); margin: 0 4px; transition: .2s; }
.ishislider .owl-dot.active span { background: #fff; width: 24px; }
.ishislider .owl-nav [class*="owl-"] {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.ishislider .owl-nav [class*="owl-"]:hover { background: var(--brand); color: #fff; }
/* мобильный: картинка 220px (cover), текст — карточкой ПОД картинкой, а не поверх */
@media (max-width: 767px) {
  .ishislider .item > a, .ishislider .item > a.slideshow__link { display: block; position: static !important; }
  .ishislider .owl-item img, .ishislider .item > a > img { position: static !important; height: 220px !important; object-fit: cover; }
  .ishislider .item > a > .container { position: static !important; width: auto !important; padding: 0 !important; transform: none !important; }
  .ishislider .main-title { font-size: 21px !important; color: var(--ink) !important; }
  .ishislider .slider-content, .ishislider .slider-content-left {
    position: static !important;
    transform: none !important;
    max-width: none;
    margin: 0 !important;
    padding: 18px 20px 20px;
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--surface);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    border: 0;
    color: var(--ink);
    text-align: left !important;
  }
  .ishislider .main-title { font-size: 21px; color: var(--ink) !important; }
  .ishislider .sub-title { font-size: 14px; color: var(--text) !important; margin-bottom: 14px; }
  .ishislider .slider-btn span { padding: 9px 16px; font-size: 14px; }
  .ishislider .owl-dots { bottom: auto; top: 196px; }
}

/* ---------- 6. Главная: «О компании» и преимущества ---------- */
#common-home #top_home > .box_html:first-child,
#common-home .box_html:not(:has(.box_main_perf)) {
  display: grid;
  grid-template-columns: minmax(260px, 440px) 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 24px;
  text-align: left;
}
#common-home .box_html > img { width: 100% !important; max-width: 445px; height: auto; justify-self: center; }
#common-home .box_html p, #common-home .box_html p span {
  white-space: normal !important;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}
#common-home .box_html p { margin: 0 0 14px; }
@media (max-width: 991px) {
  #common-home #top_home > .box_html:first-child,
  #common-home .box_html:not(:has(.box_main_perf)) { grid-template-columns: 1fr; gap: 24px; padding: 32px 0 8px; }
  #common-home .box_html > img { max-width: 360px; }
}

#common-home .box_html:has(.box_main_perf) { display: block; padding: 24px 0 40px; }
.box_main_perf { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; width: auto !important; }
/* иконка каждого блока в теме — background-image на самом <div>; шорткат background не трогаем */
.box_main_perf > div {
  background-color: var(--surface) !important;
  background-repeat: no-repeat !important;
  background-position: center 26px !important;
  background-size: 56px auto !important;
  border-radius: var(--radius);
  padding: 100px 22px 26px !important;
  width: auto !important;
  margin: 0 !important;
  display: block !important;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  transition: transform .2s, box-shadow .2s, background-color .2s;
}
.box_main_perf > div:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); background-color: #fff; }
.box_main_perf strong { display: block; font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 8px; line-height: 1.3; text-align: inherit; }
@media (max-width: 991px) { .box_main_perf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 575px) {
  .box_main_perf { grid-template-columns: 1fr; }
  .box_main_perf > div { text-align: left; padding: 18px 18px 18px 92px !important; background-position: 18px 18px !important; background-size: 52px auto !important; }
  .box_main_perf strong { margin-bottom: 4px; }
}

/* ---------- 7. Заголовки секций и блок товаров на главной ---------- */
.ishiproductsblock { padding: 12px 0 44px; }
.ishiproductsblock .home-title, h3.home-title {
  display: block;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 6px;
  background: none;
  border: 0;
  text-transform: none;
}
.ishiproductstab.nav-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; border: 0; margin: 0 0 28px; text-align: center; float: none; }
.ishiproductstab.nav-tabs > li { float: none; margin: 0; }
.ishiproductstab.nav-tabs > li > a {
  border: 0 !important;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 16px;
  margin: 0;
  text-transform: none;
}
.ishiproductstab.nav-tabs > li.active > a, .ishiproductstab.nav-tabs > li > a:hover { background: var(--brand-50); color: var(--brand); }

/* ---------- 8. Карточка товара (главная, категория, поиск) ---------- */
.product-thumb {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  margin: 0;
}
.product-thumb:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: transparent; }
.product-thumb .image {
  position: relative;
  aspect-ratio: 1 / 1;
  height: auto !important;
  min-height: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: #fff;
  overflow: hidden;
  border: 0;
}
.product-thumb .image a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.product-thumb .image img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .35s; }
.product-thumb:hover .image img { transform: scale(1.04); }
.product-thumb .caption { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0 !important; text-align: left; }
.product-thumb .caption h4, .product-thumb h4 {
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  text-align: left;
  text-transform: none;
}
.product-thumb .caption h4 a, .product-thumb h4 a { color: var(--ink); }
.product-thumb .caption h4 a:hover, .product-thumb h4 a:hover { color: var(--brand); }
.product-thumb .box_item_price, .product-thumb .price { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0; text-align: left; }
.product-thumb .price-old { font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: line-through; margin-left: 6px; }
.product-thumb .price-new { color: var(--brand); }
.product-thumb .price-tax { display: none; }
.product-thumb .rating { margin: 0; line-height: 1; }
.product-thumb .rating .fa-stack { width: 14px; height: 14px; line-height: 14px; font-size: 7px; }
.product-thumb .rating .fa-star.gray { color: #d7dbe1; }
.product-thumb .rating .fa-star:not(.gray) { color: #f5b301; }
.product-thumb .button-group, .product-thumb .caption > div:last-child { margin-top: auto; border: 0; background: transparent; padding: 0; }
.product-thumb button, .product-thumb .button-group button {
  width: 100%;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  text-transform: none;
  margin: 0;
}
.product-thumb .product-img-extra { pointer-events: none; }

/* ---------- 9. Категория ---------- */
.breadcrumb-container { background: transparent; padding: 0; margin: 0; }
.breadcrumb { background: transparent; padding: 16px 0 4px; margin: 0; font-size: 13px; color: var(--muted); border-radius: 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb > li + li:before { color: #c3c8d0; content: "/\00a0"; padding: 0 6px; }
.breadcrumb > li:last-child a { color: var(--ink); }
/* заголовок страницы: в категории это h2.page-title ВНЕ #content, в товаре — h1.product-title */
#content > h1, #content h1.page-title, h1.page-title, #content > h2:first-of-type, #content .page-title,
#content h1.page-title, h1.page-title,
.breadcrumb-container h2.page-title, h2.page-title:not(#column-left *):not(.box_html *) {
  font-size: 28px !important;
  font-weight: 800 !important;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 6px 0 18px;
  text-transform: none !important;
  color: var(--ink);
  text-align: left;
}
@media (max-width: 767px) { .breadcrumb-container h2.page-title, h2.page-title:not(#column-left *):not(.box_html *) { font-size: 22px !important; } }

/* левая колонка: фильтр FilterVier и список категорий */
#column-left, #column-right { margin-bottom: 24px; }
#block_filter_vier { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; padding: 16px 18px 8px; }
#block_filter_vier #filter_vier, #block_filter_vier .box-filter, #block_filter_vier .panel-default { border: 0; border-radius: 0; box-shadow: none; padding: 0; background: transparent; }
#block_filter_vier #name_filter, #block_filter_vier #head_filter { font-weight: 700; font-size: 16px; color: var(--ink); margin: 0 0 8px; background: transparent; padding: 0; }
#block_filter_vier .title_filter { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 0; background: transparent; padding: 0; }
#block_filter_vier .blok { background: transparent; }
#block_filter_vier .text_input.form-control { height: 38px; font-size: 14px; text-align: center; }
#block_filter_vier .btn_fv, #block_filter_vier .botton_fv {
  display: inline-block;
  min-width: 0;
  padding: 7px 16px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  background: #fff;
  cursor: pointer;
}
#block_filter_vier .btn_fv:empty { display: none; }   /* пустая кнопка-заглушка у ценового слайдера */
.irs-line { background: var(--line) !important; border: 0 !important; height: 4px !important; border-radius: 999px; }
.irs-bar { background: var(--brand) !important; border: 0 !important; height: 4px !important; }
.irs-slider { width: 18px !important; height: 18px !important; background: #fff !important; border: 2px solid var(--brand) !important; border-radius: 50% !important; box-shadow: 0 1px 4px rgba(0,0,0,.15); cursor: pointer; }
.irs-from, .irs-to, .irs-single { background: var(--ink) !important; border-radius: 6px; font-size: 11px; }

#column-left .box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
#column-left .box h2.page-title, #column-left .box .block-title {
  background: var(--surface) !important;
  color: var(--ink) !important;
  font-size: 13px !important;
  font-weight: 700;
  text-transform: uppercase !important;
  text-align: left;
  letter-spacing: .08em;
  margin: 0 !important;
  padding: 13px 16px !important;
  border-bottom: 1px solid var(--line);
}
#column-left .box .block-title .page-title { font-size: 13px; }
#column-left .box ul, #column-left .box .list-group { margin: 0; padding: 6px 0; }
#column-left .box ul li a, #column-left .list-group-item { display: block; padding: 8px 16px; color: var(--text); border: 0; font-size: 14px; }
#column-left .box ul li a:hover, #column-left .list-group-item:hover { color: var(--brand); background: var(--brand-50); }
#column-left .box ul li.active > a, #column-left .list-group-item.active { color: var(--brand); font-weight: 600; background: var(--brand-50); }

/* модули в боковой колонке (section.featured-products: Хіт продажів, Нові надходження) — та же карточка, что и «Категорії» */
#column-left section.featured-products, #column-right section.featured-products {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 20px;
  padding: 0;
}
#column-left section.featured-products > h3, #column-right section.featured-products > h3,
#column-left section.featured-products .block-title, #column-right section.featured-products .block-title {
  background: var(--surface) !important;
  color: var(--ink) !important;
  font-size: 13px !important;
  font-weight: 700;
  text-transform: uppercase !important;
  letter-spacing: .08em;
  text-align: left;
  margin: 0 !important;
  padding: 13px 16px !important;
  border: 0;
  border-bottom: 1px solid var(--line);
}
#column-left section.featured-products .block-title .page-title { font-size: 13px; }
/* товары в боковой колонке (Хіт продажів, Новинки) — компактный список, а не карточки сетки */
#column-left .product-thumb, #column-right .product-thumb {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 14px;
  height: auto;
  box-shadow: none !important;
  transform: none !important;
}
#column-left .product-thumb:last-child, #column-right .product-thumb:last-child { border-bottom: 0; }
/* у модуля «Нові надходження» картинка и подпись завёрнуты в .product-container — grid вешаем на него */
#column-left .product-thumb:has(> .product-container), #column-right .product-thumb:has(> .product-container) { display: block; }
#column-left .product-thumb > .product-container, #column-right .product-thumb > .product-container {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  width: auto !important;
}
#column-left .product-thumb .image, #column-right .product-thumb .image { aspect-ratio: auto; width: 64px; height: 64px !important; padding: 0; }
#column-left .product-thumb .image img, #column-right .product-thumb .image img { max-height: 64px; }
#column-left .product-thumb .caption, #column-right .product-thumb .caption { padding: 0; gap: 4px; min-width: 0; display: flex !important; }
#column-left .product-thumb .caption h4, #column-right .product-thumb .caption h4,
#column-left .product-thumb .caption h4 a, #column-right .product-thumb .caption h4 a { font-size: 13px !important; line-height: 1.35 !important; min-height: 0; font-weight: 500 !important; white-space: normal; overflow-wrap: anywhere; }
#column-left .product-thumb .button-group, #column-right .product-thumb .button-group,
#column-left .product-thumb .rating, #column-right .product-thumb .rating { display: none !important; }
#column-left .box .owl-carousel .owl-item, #column-left .box .product-layout { width: auto !important; float: none !important; }

/* панель сортировки (серый фон в теме — на .product-list-top) */
.product-list-top { background: transparent !important; padding: 0 !important; margin: 0 0 8px !important; border: 0 !important; }
.pagination-right { margin: 0 0 16px !important; width: auto !important; background: transparent !important; padding: 0 !important; }
.categ_sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: transparent !important; padding: 0 !important; margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.categ_sort a, .categ_sort button, .categ_sort .btn, .categ_sort span.sort_item, .categ_sort label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  text-transform: none;
  transition: .15s;
}
.categ_sort a:hover, .categ_sort button:hover, .categ_sort .btn:hover { border-color: var(--brand); color: var(--brand); }
.categ_sort a.active, .categ_sort .active, .categ_sort .btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* сетка товаров: вместо фиксированных 270px-плавающих блоков — CSS grid */
.product-list-js, .freeloadind { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; width: auto !important; max-width: none !important; }
.product-list-js > .freeloadind { grid-column: 1 / -1; }
.product-list-js:has(.product-list) { display: block !important; }
.product-layout, .product-layout.product-grid { width: auto !important; max-width: none !important; min-width: 0 !important; float: none !important; padding: 0 !important; margin: 0 !important; display: block; }
@media (max-width: 1199px) { .product-list-js, .freeloadind { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .product-list-js, .freeloadind { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-thumb .image { padding: 12px; }
  .product-thumb .caption { padding: 12px 12px 14px; }
  .product-thumb .caption h4 { font-size: 14px; }
}
@media (max-width: 360px) { .product-list-js, .freeloadind { grid-template-columns: 1fr; } }

.category-pagination { margin-top: 28px; }
.pagination { margin: 0; gap: 4px; display: inline-flex; }
.pagination > li > a, .pagination > li > span { border-radius: var(--radius-xs) !important; border: 1px solid var(--line); color: var(--ink); margin: 0; min-width: 38px; text-align: center; font-weight: 500; }
.pagination > li > a:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.pagination > .active > a, .pagination > .active > span { background: var(--brand) !important; border-color: var(--brand) !important; color: #fff !important; }
.pagination-desc { color: var(--muted); font-size: 13px; padding-top: 8px; }

/* ---------- 10. Страница товара ---------- */
#product-product h1.product-title, #product-product h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 14px; text-transform: none; text-align: left; }
.product-image.thumbnails_horizontal, .product-image { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; overflow: hidden; box-shadow: none; }
.product-image .thumbnail, .product-image a.thumbnail { border: 0 !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; border-radius: 0 !important; background: transparent !important; }
.product-image img { width: 100%; height: auto; object-fit: contain; box-shadow: none !important; border: 0 !important; }
.product-image .carousel-container, .product-image .thumbnails_horizontal { box-shadow: none !important; border: 0 !important; background: transparent !important; }
.product-image .image-additional img, .product-image .carousel-container .image-additional a { border-radius: var(--radius-xs); border: 1px solid var(--line); }
.box_price { font-size: 30px; font-weight: 800; color: var(--ink); margin: 14px 0 18px; letter-spacing: -.02em; }
.box_price .price-old { font-size: 16px; font-weight: 500; color: var(--muted); text-decoration: line-through; }
.box_price .price-tax { font-size: 13px; color: var(--muted); font-weight: 400; }
.product_option { margin-bottom: 12px; }
.product_option label, #product .control-label { font-weight: 600; font-size: 14px; color: var(--ink); }
#product .form-group { margin-bottom: 12px; }
.box_qty { display: inline-flex; align-items: center; gap: 10px; }
.box_qty .control-label { margin: 0; }
#input-quantity, #product .form-control[name="quantity"] { height: 46px; width: 84px; text-align: center; font-weight: 600; }
.box_bttn_cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 10px 0 20px; }
#button-cart, .box_bttn_cart .btn { padding: 13px 28px; font-size: 16px; font-weight: 700; border-radius: 12px; min-width: 220px; height: 46px; }
.btn-group .btn-default, .btn-group .btn { border-radius: var(--radius-sm); }

/* характеристики: в теме имя атрибута — span фиксированной ширины, длинные имена наезжают на значение */
#tab-specification .inlne_item_attr {
  display: flex !important;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
  font-size: 15px;
  color: var(--ink);
}
#tab-specification .inlne_item_attr:last-child { border-bottom: 0; }
#tab-specification .inlne_item_attr > span {
  flex: 0 0 42%;
  max-width: 42%;
  width: auto !important;
  min-width: 0 !important;
  display: block !important;
  color: var(--muted);
  overflow-wrap: anywhere;
}
#tab-specification > div, .box_description_tab { background: transparent !important; padding: 0 !important; }
#tab-specification:empty, .box_description_tab:empty { display: none; }

.product-tab, .nav-tabs { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 2px; margin: 28px 0 0; }
.nav-tabs > li { float: none; margin-bottom: -1px; }
.nav-tabs > li > a { border: 0 !important; border-radius: 0 !important; padding: 12px 18px; color: var(--muted); font-weight: 600; font-size: 15px; background: transparent !important; text-transform: none; }
.nav-tabs > li.active > a, .nav-tabs > li > a:hover { color: var(--brand) !important; box-shadow: inset 0 -2px 0 var(--brand); }
.tab-content { padding: 22px 0 0; font-size: 15px; line-height: 1.75; }
.tab-content .table { border: 1px solid var(--line); border-radius: var(--radius-xs); overflow: hidden; }
.tab-content .table > thead > tr > td, .tab-content .table > tbody > tr > td { border-color: var(--line); padding: 10px 14px; vertical-align: middle; }
.tab-content .table > tbody > tr > td:first-child { color: var(--muted); width: 40%; }
.tab-content .table > thead > tr > td { background: var(--surface); font-weight: 700; color: var(--ink); }
/* заголовки «Характеристики:» / «Опис:» в теме — div.title_attr, крупный uppercase */
#product-product .title_attr, .title_attr {
  font-size: 19px !important;
  font-weight: 700;
  color: var(--ink);
  text-transform: none !important;
  letter-spacing: -.01em;
  margin: 28px 0 12px;
  padding: 0;
  background: transparent;
}
/* «УВАГА!!» внутри html-вставки — не заголовок страницы */
#content .box_html h2.page-title, #content .box_html h2, #content .box_html h3 {
  font-size: 16px !important;
  font-weight: 700;
  margin: 0 0 8px !important;
  text-transform: none !important;
}
@media (max-width: 767px) {
  #product-product h1 { font-size: 22px; }
  .box_price { font-size: 26px; }
  #button-cart, .box_bttn_cart .btn, .box_bttn_cart button, .box_bttn_cart input[type="button"], .box_bttn_cart > div:not(.box_qty) { width: 100% !important; min-width: 0; display: block; }
  .box_qty { width: 100%; }
  .box_qty #input-quantity { width: 100%; }
  #tab-specification .inlne_item_attr { flex-direction: column; gap: 2px; }
  #tab-specification .inlne_item_attr > span { flex-basis: auto; max-width: none; font-size: 13px; }
}

/* ---------- 11. Баннеры ---------- */
.bannerblock .item, .ishitwobannerblock .item, .ishibannerblock .item { border-radius: var(--radius); overflow: hidden; }
.bannerblock img { border-radius: var(--radius); }
.banner-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; text-transform: none; }
.banner-subtitle { font-size: 15px; }
@media (max-width: 767px) { .banner-title { font-size: 20px; } }

/* ---------- 12. Контентные страницы и общие элементы ---------- */
#content { line-height: 1.7; }
#content p { margin-bottom: 14px; }
/* информационная вставка «УВАГА!!» (html-модуль над контентом) — как заметка, а не как заголовок страницы */
main.other-page #content > .box_html, main.other-page .content_top > .box_html, main.other-page #content > div > .box_html:first-child {
  background: var(--brand-50);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-xs);
  padding: 14px 18px;
  margin: 12px 0 20px;
  font-size: 14px;
  line-height: 1.6;
}
main.other-page .box_html h1, main.other-page .box_html h2, main.other-page .box_html h3 { font-size: 16px; margin: 0 0 8px; text-transform: none; }
/* html-вставка, в которой только заголовок и ничего больше (модуль «subscribe» на инфостраницах) — не показываем */
#content > .box_html:has(> h2:only-child), #content > .box_html:has(> .page-title:only-child) { display: none !important; }
main.other-page .box_html p { margin: 0 0 6px; }
main.other-page .box_html p:last-child { margin: 0; }
.table-bordered { border-radius: var(--radius-xs); overflow: hidden; }
.well { background: var(--surface); border: 0; border-radius: var(--radius); box-shadow: none; }
.panel { border-radius: var(--radius); box-shadow: none; border: 1px solid var(--line); }
.panel-heading { border-radius: var(--radius) var(--radius) 0 0; background: var(--surface); font-weight: 700; }
.list-group-item { border-color: var(--line); }
.list-group-item:first-child { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.list-group-item:last-child { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }

/* ---------- 13. Футер ---------- */
#footer, #footer.home-footer { background: var(--surface); color: var(--text); border-top: 1px solid var(--line); margin-top: 56px; font-size: 14px; }
#footer .footer-before { padding: 48px 0 24px; background: transparent; }
#footer .footer-block { margin-bottom: 24px; }
#footer .footer-block h5 { color: var(--ink); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 16px; cursor: default; }
#footer .footer-block h5:after, #footer .footer-block h5:before { display: none !important; }
#footer .footer-dropdown, #footer .footer-dropdown.collapse { display: block !important; height: auto !important; visibility: visible !important; }
#footer ul.list-unstyled li { margin: 0; }
#footer ul.list-unstyled li a { color: var(--text); line-height: 2.1; font-size: 14px; }
#footer ul.list-unstyled li a:hover { color: var(--brand); }
#footer .block_phone a { color: var(--ink); font-size: 18px; font-weight: 700; line-height: 1.3; }
#footer .block_address { margin-top: 10px; color: var(--muted); white-space: pre-line; line-height: 1.6; }
#footer .block_email a { color: var(--brand); }
#footer .footer_logo img { max-height: 52px; width: auto; }
#footer .box_social { display: none; }                   /* статичная картинка без ссылок */
#footer .footer-after { background: transparent; border-top: 1px solid var(--line); padding: 18px 0; font-size: 13px; color: var(--muted); }
#footer .footer-after img { max-height: 36px; width: auto; }
/* новый футер (2026-10): слоган, строка про заказы, копирайт */
#footer .footer_logo #logo { margin-bottom: 14px; }
#footer .footer-tagline { font-size: 14px; line-height: 1.55; color: var(--text); margin: 0 0 8px; max-width: 260px; }
#footer .footer-orders { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; max-width: 260px; }
#footer .block_email { margin-top: 8px; }
#footer .block_email a { color: var(--ink); font-weight: 500; }
#footer .block_email a:hover { color: var(--brand); }
#footer .footer-copyright { color: var(--muted); }
#footer .footer-after .row { display: flex; align-items: center; flex-wrap: wrap; }
#footer .footer-after_extra { text-align: right; }
@media (max-width: 767px) { #footer .footer-after_extra { text-align: left; margin-top: 8px; } }
@media (max-width: 767px) {
  #footer { margin-top: 36px; }
  #footer .footer-before { padding: 32px 0 8px; }
  #footer .footer-block { width: 50% !important; float: left; }
  #footer .footer-block h5 { margin-bottom: 10px; }
}
@media (max-width: 575px) {
  #footer .footer-block, #footer .footer-before section.footer-block, #footer .footer-before .information, #footer .footer-before .catalog, #footer .footer-before .contacts { width: 100% !important; float: none; display: block !important; }
  #footer .footer-tagline, #footer .footer-orders { max-width: none; }
}
/* тема прячет блок логотипа в футере на мобильном — теперь там слоган и строка про заказы, показываем */
@media (max-width: 991px) { #footer .footer_logo { display: block !important; } }

/* ---------- 15. Замечания заказчика (2026-10-07, вечер) ---------- */

/* 15.1 Выпадающее меню «Каталог продукції»: в одну строку шапки колонка ужата до кнопки,
   а меню берёт её ширину → узкое, названия переносятся, стрелка уезжает вниз. */
#header #top-menu, #header .top-menu { width: 300px !important; min-width: 300px; padding: 6px 0; }
#header .top-menu > li { border-bottom: 1px solid var(--line); }
#header .top-menu > li:last-child { border-bottom: 0; }
#header .top-menu > li > a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px !important;
  font-size: 14.5px;
  text-transform: none !important;
  white-space: nowrap;
}
#header .top-menu > li > a i.fa { float: none !important; position: static !important; margin: 0 !important; font-size: 14px; color: var(--muted); }
#header .top-menu > li > a:hover i.fa { color: var(--brand); }
#header .top-menu .sub-menu a { text-transform: none !important; }

/* 15.2 Иконки поиск / аккаунт / корзина: один стиль (контурные, 26px), одна линия, счётчик на корзине */
#header #_desktop_cart { display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
#header .box_search, #header .user-info, #header .blockcart {
  position: relative;
  width: 28px; height: 28px;
  margin: 0 !important; padding: 0 !important;
  float: none !important;
  display: block;
  top: auto !important;
}
#header .box_search {
  background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231b1f24' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") center / 26px 26px no-repeat;
}
#header .box_search img { opacity: 0 !important; position: absolute; inset: 0; width: 100% !important; height: 100% !important; cursor: pointer; filter: none !important; }
#header .user-info .dropdown-toggle {
  display: block; width: 28px; height: 28px; padding: 0 !important; filter: none !important;
  background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231b1f24' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E") center / 26px 26px no-repeat !important;
  cursor: pointer;
}
#header .user-info .expand-more, #header .user-info .fa-angle-down { display: none !important; }
#header .blockcart #cart { width: 28px; height: 28px; }
#header .blockcart .btn.dropdown-toggle {
  width: 28px !important; height: 28px !important; padding: 0 !important; margin: 0 !important;
  border: 0 !important; box-shadow: none !important; border-radius: 0;
  background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231b1f24' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E") center / 26px 26px no-repeat !important;
  filter: none !important;
}
#header .blockcart .cart-img { display: none !important; }
#header .blockcart .cart-link { display: block !important; width: 28px; height: 28px; }
#header .blockcart .cart-content { display: block !important; position: absolute; top: -7px; right: -9px; line-height: 1; width: auto !important; height: auto !important; }
#header .blockcart .cart-products-count.hidden-sm { display: none !important; }      /* «0 товар» — длинно */
#header .blockcart .cart-products-count.hidden-lg {
  display: inline-flex !important;
  align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700;
}
#header .user-info .dropdown-menu, #header .blockcart .cart-dropdown { right: 0; left: auto; margin-top: 10px; }
/* мобильный: тема переносит иконки в .mobile-width-right (#_mobile_seach_widget, #_mobile_cart, флаг) — держим их в одну строку */
@media (max-width: 991px) {
  /* позиционирование .mobile-width-right оставляем теме; в ряд ставим только содержимое #_mobile_cart */
  #header #_mobile_cart { display: inline-flex !important; align-items: center; gap: 16px; vertical-align: middle; }
  #header #_mobile_cart > * { float: none !important; margin: 0 !important; }
  #header .header-bottom .language-selector { vertical-align: middle; }
}
#header .user-info .dropdown-menu li a { display: block; padding: 8px 14px; color: var(--ink); }
#header .user-info .dropdown-menu li a:hover { background: var(--brand-50); color: var(--brand); }

/* 15.3 Поиск: вместо чёрного оверлея на весь экран — белая полоса под шапкой.
   Тема по клику на иконку вешает .active на .search_box (fixed, 100vh, фон 0.8). */
#header { position: relative; }
#header .search_box.active {
  display: block !important;
  position: absolute !important;
  top: 100%; left: 0; right: 0;
  width: auto !important; height: auto !important;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 32px -18px rgba(16,24,40,.3);
  padding: 14px 0;
  z-index: 60;
}
#header .search_box .box_search_bg { display: none !important; }
/* пустой контейнер мегаменю на внутренних страницах (внутри только пустой выбор валюты) — 36px зазора под шапкой */
/* на внутрішніх сторінках ховаємо лише правий блок (валюта); сам .nav-full-width лишається — у ньому живе мобільне меню #mobile_top_menu_wrapper */
#header .nav-full-width.other-menu { padding: 0 !important; margin: 0 !important; min-height: 0 !important; height: auto !important; border: 0 !important; background: transparent !important; }
#header .nav-full-width.other-menu .right-nav { display: none !important; }
#header .search_box.active { top: 87px; }                                  /* высота шапки в одну строку */
@media (min-width: 992px) and (max-width: 1199px) { #header .search_box.active { top: 127px; } }  /* две строки */
#header .search_box .search_box_close, #header .search-widget.search_box.active .search_box_close {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 36px !important; min-width: 36px !important; max-width: 36px !important; height: 36px !important; max-height: 36px !important; margin: 0; padding: 0 !important;
  background: #fff !important; background-image: none !important; border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer; text-indent: 0; font-size: 0; color: transparent;
}
#header .search_box .search_box_close:before, #header .search_box .search_box_close:after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; background: var(--ink);
  transform: translate(-50%, -50%) rotate(45deg);
}
#header .search_box .search_box_close:after { transform: translate(-50%, -50%) rotate(-45deg); }
#header .search_box .search_box_close:hover { border-color: var(--brand); }
#header .search_box .search_box_close:hover:before, #header .search_box .search_box_close:hover:after { background: var(--brand); }
#header .search_box > div { padding: 0 72px 0 16px; }
#header .search_box form.dropdown-menu {
  position: static !important; display: block !important; float: none !important;
  max-width: 820px; margin: 0 auto !important; padding: 0 !important;
  border: 0 !important; box-shadow: none !important; background: transparent !important;
}
#header .search_box #search.input-group { display: flex !important; width: 100% !important; align-items: stretch; }
#header .search_box .searchboxform { position: static !important; width: auto !important; }
#header .search_box .ishicategory-select {
  height: 46px; min-width: 170px; max-width: 240px;
  border: 1px solid var(--line); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 0 34px 0 14px; font-size: 14px; color: var(--ink); background-color: var(--surface);
}
#header .search_box #ajax-search-text.form-control { height: 46px; flex: 1 1 auto; border-radius: 0; font-size: 15px; padding: 0 16px !important; box-shadow: none; }
#header .search_box #ajax-search-text.form-control:focus { border-color: var(--brand); position: relative; z-index: 2; }
#header .search_box #ajax-search-btn {
  position: static !important; height: 46px; padding: 0 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--brand) !important; border-color: var(--brand) !important; color: #fff !important;
  font-weight: 600; font-size: 14px; text-transform: none; box-shadow: none;
}
#header .search_box #ajax-search-btn:hover { background: var(--brand-600) !important; }
#header .search_box .ajaxishi-search { border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: var(--shadow-hover); }
@media (max-width: 991px) {
  #header .search_box.active { position: fixed !important; top: 0; padding: 12px 0; }
  #header .search_box > div { padding: 0 60px 0 12px; }
  #header .search_box .search_box_close { right: 12px; }
}

/* 15.3а Дропдауны аккаунта и мини-корзины не нужны: иконки — прямые ссылки (header.twig / cart.twig), меню прячем */
#header .user-info .dropdown-menu, #header .blockcart .cart-dropdown { display: none !important; }
#header .blockcart .btn.dropdown-toggle { cursor: pointer; }

/* 15.5 Баннер на главной: вместо фото гор — своя композиция ёмкостей (image/catalog/banner/bak.png,
   прозрачный PNG 940×392) на светлом фоне. Картинку слайда прячем, фон и композицию рисуем на ссылке слайда. */
.ishislider .item > a, .ishislider .item > a.slideshow__link { display: block; position: relative; }
.ishislider .item > a > img, .ishislider .owl-item .item > a > img { display: none !important; }
.ishislider .item > a:before {
  content: "";
  display: block;
  height: 520px;
  background:
    url('/image/catalog/banner/bak.png') right 6% bottom 36px / auto 74% no-repeat,
    radial-gradient(60% 80% at 78% 50%, #fff4ec 0%, rgba(255,244,236,0) 70%),
    linear-gradient(90deg, #f5f6f8 0%, #ffffff 100%);
}
.ishislider .slider-content {
  background: rgba(255,255,255,.9) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
/* положение карточки: тема на широких экранах ставит .container на top:520px (под баннер, где его режет overflow).
   Берём на себя: контейнер — на весь баннер, карточка — слева по краю сетки, по центру по вертикали. */
@media (min-width: 768px) {
  .ishislider .item > a > .container {
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: auto !important;
    height: 100% !important; width: auto !important; max-width: none !important;
    margin: 0 !important; padding: 0 !important; transform: none !important;
    display: flex; align-items: center;
  }
  .ishislider .slider-content, .ishislider .slider-content-left, .ishislider .slider-content-right, .ishislider .slider-content-center {
    position: static !important;
    top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
    transform: none !important;
    margin: 0 0 0 calc(50% - 600px + 8px) !important;    /* левый край контейнера 1200 + отступ колонки (−7px: смещение owl-stage) */
    text-align: left !important;
  }
}
@media (min-width: 1500px) {
  .ishislider .slider-content, .ishislider .slider-content-left, .ishislider .slider-content-right, .ishislider .slider-content-center { margin-left: calc(50% - 750px + 8px) !important; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .ishislider .slider-content, .ishislider .slider-content-left, .ishislider .slider-content-right, .ishislider .slider-content-center { margin-left: 30px !important; max-width: 460px; }
}
.ishislider .main-title { color: var(--ink) !important; }
.ishislider .sub-title { color: var(--text) !important; }
.ishislider .owl-dot span { background: #c9ced6; }
.ishislider .owl-dot.active span { background: var(--brand); }
@media (max-width: 1199px) { .ishislider .item > a:before { height: 440px; background-size: auto 66%, auto, auto; } }
@media (max-width: 767px) {
  .ishislider .item > a:before { height: 220px; background-position: center bottom 10px, center, center; background-size: auto 80%, auto, auto; }
  .ishislider .slider-content { background: var(--surface) !important; border: 0 !important; box-shadow: none; }
}

/* 15.4 Страница категории */
/* подкатегории — списком в левой колонке (модуль «Категорії» в макете Category), плитки с картинками не нужны */
#product-category .refine-search { display: none; }
/* блок преимуществ в content_bottom: тема даёт ему float/inline-block → grid схлопывался в 0px */
.box_main_perf { width: 100% !important; float: none !important; position: static !important; }
main.other-page .box_html:has(> .box_main_perf) { background: transparent; border: 0; padding: 32px 0 0; margin: 24px 0 0; }
.category_description { padding: 24px 15px 0; color: var(--text); }
.category_description p:last-child { margin: 0; }

/* ---------- 16. Кошик (checkout/cart) ---------- */
/* блок преимуществ внизу — прямой потомок #content, правило заметки его перехватывало */
main.other-page #content > .box_html:has(> .box_main_perf) { background: transparent !important; border: 0 !important; padding: 32px 0 0 !important; margin: 24px 0 0 !important; }
/* плашка «УВАГА» сверху — компактно */
#checkout-cart #content > .box_html:first-child { font-size: 13px; line-height: 1.5; padding: 10px 16px; margin: 10px 0 18px; }
#checkout-cart #content > .box_html:first-child h2 { font-size: 13px !important; margin: 0 0 4px !important; }
#checkout-cart #content > .box_html:first-child p { margin: 0 0 2px !important; }
#checkout-cart .alert-info { background: #eef5fc; border: 1px solid #cfe0f3; color: #1f4b73; border-radius: var(--radius-sm); padding: 12px 16px; }
#checkout-cart .alert-info a { color: var(--brand); font-weight: 600; }
#checkout-cart h1.page-title { margin-bottom: 14px; }
/* таблица товаров */
#checkout-cart .table-responsive { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
#checkout-cart .table-responsive .table { margin: 0; border: 0; }
#checkout-cart .table > thead > tr > td, #checkout-cart .table > thead > tr > th {
  background: var(--surface); border: 0; border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 14px;
}
#checkout-cart .table > tbody > tr > td { border: 0; border-bottom: 1px solid var(--line); vertical-align: middle; padding: 14px; font-size: 15px; }
#checkout-cart .table > tbody > tr:last-child > td { border-bottom: 0; }
#checkout-cart .table td.text-center img { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
#checkout-cart .table td.text-left a { color: var(--ink); font-weight: 600; }
#checkout-cart .table td.text-left a:hover { color: var(--brand); }
#checkout-cart .table td:nth-child(3) { color: var(--muted); font-size: 14px; }
#checkout-cart .unit-price, #checkout-cart .total-price { font-weight: 600; white-space: nowrap; }
#checkout-cart .total-price { color: var(--ink); }
/* количество: поле + обновить + удалить */
#checkout-cart .input-group.btn-block { display: inline-flex; width: auto; }
#checkout-cart .input-group .form-control { width: 64px; height: 40px; text-align: center; font-weight: 600; border-radius: 8px 0 0 8px; }
#checkout-cart .input-group-btn { display: inline-flex; }
#checkout-cart .input-group-btn .btn { height: 40px; padding: 0 12px; border-radius: 0; box-shadow: none; }
#checkout-cart .input-group-btn .btn-primary { background: #fff !important; color: var(--ink) !important; border: 1px solid var(--line) !important; border-left: 0 !important; }
#checkout-cart .input-group-btn .btn-primary:hover { color: var(--brand) !important; }
#checkout-cart .input-group-btn .btn-danger { background: #fff; color: #c0392b; border: 1px solid var(--line); border-left: 0; border-radius: 0 8px 8px 0; }
#checkout-cart .input-group-btn .btn-danger:hover { background: #fdecea; }
/* «Що б ви хотіли зробити далі?» */
#checkout-cart .cart-next h2 { font-size: 18px; margin: 28px 0 6px; }
#checkout-cart .cart-next p { color: var(--muted); margin: 0 0 16px; }
/* итоги — справа */
#checkout-cart .sub-total-table { float: right !important; margin-left: auto; padding: 0; }
#checkout-cart .sub-total-table .table { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin: 0; }
#checkout-cart .sub-total-table .table td { border: 0; border-bottom: 1px solid var(--line); padding: 10px 16px; text-align: right; }
#checkout-cart .sub-total-table .table tr:last-child td { border-bottom: 0; font-weight: 800; font-size: 18px; }
#checkout-cart .sub-total-table .table td:first-child { color: var(--muted); font-weight: 500; }
/* мінімальна сума замовлення (cart.twig: minimum_order_warning / minimum_order_button) */
#checkout-cart .min-order-alert { background: #fff6e5; border: 1px solid #f3d9a4; color: #7a4b00; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; line-height: 1.5; }
#checkout-cart .min-order-alert .fa { color: var(--brand); margin-right: 4px; }
#checkout-cart .buttons .pull-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
#checkout-cart .buttons .btn.disabled { opacity: .45; cursor: not-allowed; }
#checkout-cart .min-order-hint { color: var(--muted); font-size: 12px; }
/* гість без цін (config_customer_price): колонки «Ціна»/«Всього» порожні — ховаємо */
#checkout-cart .cart-no-prices td:nth-child(5), #checkout-cart .cart-no-prices td:nth-child(6) { display: none; }
/* кнопки */
#checkout-cart .buttons { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); clear: both; }
#checkout-cart .buttons .pull-left, #checkout-cart .buttons .pull-right { float: none !important; }
#checkout-cart .buttons .btn { padding: 12px 22px; font-size: 15px; }
@media (max-width: 767px) {
  #checkout-cart .table td:nth-child(3), #checkout-cart .table th:nth-child(3), #checkout-cart .table thead td:nth-child(3) { display: none; }
  #checkout-cart .table > thead > tr > td { padding: 10px 8px; font-size: 11px; }
  #checkout-cart .table > tbody > tr > td { padding: 10px 8px; font-size: 14px; }
  #checkout-cart .table td.text-center img { width: 56px; height: 56px; }
  #checkout-cart .sub-total-table { float: none !important; width: 100%; }
  #checkout-cart .buttons .pull-left, #checkout-cart .buttons .pull-right, #checkout-cart .buttons .btn { width: 100%; }
  #checkout-cart .buttons .pull-right { align-items: stretch; text-align: center; }
}

/* ---------- 14. Мелочи ---------- */
#spin-wrapper, #siteloader { background: #fff; }
.table > tbody > tr > td, .table > thead > tr > td, .table > thead > tr > th { border-color: var(--line); }
.dropdown-menu { border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: var(--shadow-hover); }
.modal-content { border-radius: var(--radius); border: 0; box-shadow: var(--shadow-hover); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 17. Кабінет, тип клієнта, адреси, платник (2026-10) ---------- */
/* плитки кабінету (account.twig) */
.account-hello { margin: 4px 0 18px; }
.account-hello-name { font-size: 20px; font-weight: 700; color: var(--ink); }
.account-hello-type { color: var(--muted); font-size: 14px; margin-top: 2px; }
.account-hello-type a { color: var(--brand); }
.account-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.account-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: box-shadow .15s, border-color .15s; }
.account-tile:hover, .account-tile:focus { border-color: var(--brand); box-shadow: var(--shadow-hover); color: var(--ink); text-decoration: none; }
.account-tile .fa { font-size: 22px; color: var(--brand); }
.account-tile-title { font-weight: 700; font-size: 16px; }
.account-tile-desc { color: var(--muted); font-size: 13px; line-height: 1.4; }
.account-tile-logout .fa { color: var(--muted); }
@media (max-width: 991px) { .account-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .account-tiles { grid-template-columns: 1fr; } }
/* тип клієнта — перемикач (edit.twig / register.twig) */
.customer-type-options { display: flex; flex-wrap: wrap; gap: 8px; }
.customer-type-option { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 500; }
.customer-type-option.is-active { border-color: var(--brand); background: #fff3e8; color: var(--brand); }
.customer-type-option input { margin: 0; }
/* адреси: лише Україна — селект країни прихований, значення «Ukraine» у формі лишається */
.form-group:has(> div > select[name="country_id"]) { display: none !important; }
/* платник в оформленні (payment_address.twig) */
.payer-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; }
.payer-summary-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.payer-summary-head a { font-size: 13px; color: var(--brand); white-space: nowrap; }
.payer-summary dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: 14px; }
.payer-summary dt { color: var(--muted); font-weight: 500; }
.payer-summary dd { margin: 0; }
.payer-address-title { font-size: 15px; font-weight: 700; margin: 0 0 12px; }
@media (max-width: 575px) { .payer-summary dl { grid-template-columns: 1fr; gap: 2px; } .payer-summary dt { margin-top: 6px; } }
/* тип клієнта на реєстрації та в оформленні (стандартні радіо теми) — в один рядок */
fieldset#account > .form-group:first-of-type .radio, #collapse-checkout-option .form-group .radio { display: inline-block; margin: 0 18px 4px 0; }
/* блок «Умови замовлення» (модуль konsensus_terms) — нейтральна картка, не помаранчева плашка */
main.other-page .box_html.terms-block, #checkout-cart .box_html.terms-block, #content > .box_html.terms-block { background: #fff !important; border: 1px solid var(--line) !important; border-radius: var(--radius-sm); padding: 14px 18px !important; margin: 0 0 18px !important; font-size: 14px; line-height: 1.5; }
.terms-block h2.page-title { font-size: 15px !important; margin: 0 0 8px !important; }
.terms-block .terms-main { font-weight: 600; margin: 0 0 8px; }
.terms-block .terms-sub { margin: 10px 0 4px; font-weight: 600; }
.terms-list { list-style: none; padding: 0; margin: 0; }
.terms-list li { position: relative; padding-left: 22px; margin: 4px 0; }
.terms-list li:before { content: '\2714'; position: absolute; left: 0; color: var(--brand); font-size: 13px; }
.terms-tiers li { padding-left: 34px; }
.terms-tiers li:before { content: '\2022'; left: 14px; }

/* ---------- 18. Оформлення замовлення (checkout.twig + checkout/summary) ---------- */
#checkout-checkout .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
#checkout-checkout .checkout-aside { position: sticky; top: 16px; }
@media (max-width: 991px) { #checkout-checkout .checkout-layout { grid-template-columns: 1fr; } #checkout-checkout .checkout-aside { position: static; } }
/* кроки: номер у кружечку; активний — помаранчевий, виконаний — галочка і «олівець» (заголовок стає посиланням, його ставить JS теми) */
#checkout-checkout .panel-group { counter-reset: step; margin-bottom: 0; }
#checkout-checkout .panel { border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: none; margin: 0 0 10px; overflow: hidden; }
#checkout-checkout .panel.is-hidden { display: none; }
#checkout-checkout .panel-heading { background: #fff; border: 0; padding: 0; }
#checkout-checkout .panel-title { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--muted); padding: 14px 16px; margin: 0; }
#checkout-checkout .panel-title::before { counter-increment: step; content: counter(step); flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
#checkout-checkout .panel-title a { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; flex: 1; }
#checkout-checkout .panel-title a .fa-caret-down { display: none; }
#checkout-checkout .panel:has(> .panel-collapse.in) .panel-title { color: var(--ink); background: #fff7f0; }
#checkout-checkout .panel:has(> .panel-collapse.in) .panel-title::before { background: var(--brand); border-color: var(--brand); color: #fff; }
#checkout-checkout .panel:has(.panel-title a):not(:has(> .panel-collapse.in)) .panel-title::before { content: '\2713'; background: #e8f5ea; border-color: #bfe3c6; color: #1f7a3a; }
#checkout-checkout .panel:has(.panel-title a):not(:has(> .panel-collapse.in)) .panel-title a::after { content: '\f040'; font-family: FontAwesome; font-weight: normal; color: var(--muted); margin-left: auto; font-size: 14px; }
#checkout-checkout .panel-body { padding: 18px 16px 16px; border-top: 1px solid var(--line); }
#checkout-checkout .panel-body > p:first-child { margin-top: 0; color: var(--muted); }
#checkout-checkout .panel-body textarea.form-control { height: 90px; resize: vertical; }
#checkout-checkout .panel-body .radio { margin: 6px 0; }
#checkout-checkout .panel-body .radio label { font-size: 15px; padding-left: 24px; }
#checkout-checkout .panel-body .buttons { margin-top: 14px; }
/* сводка */
.checkout-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 14px; }
.checkout-summary-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.checkout-summary-head h3 { font-size: 16px; font-weight: 700; margin: 0; }
.checkout-summary-head a { font-size: 13px; color: var(--brand); }
.checkout-summary-items { list-style: none; margin: 0 0 10px; padding: 0; max-height: 260px; overflow: auto; }
.checkout-summary-items li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.checkout-summary-items .name { color: var(--ink); flex: 1; }
.checkout-summary-items .qty { color: var(--muted); white-space: nowrap; }
.checkout-summary-items .sum { white-space: nowrap; font-weight: 600; }
.checkout-summary-totals div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 4px 0; }
.checkout-summary-totals div:last-child { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; font-size: 17px; font-weight: 800; }
.checkout-summary-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
/* «УВАГА» і «Умови замовлення» в боковій колонці — компактно */
.checkout-aside-blocks .box_html { font-size: 13px !important; padding: 12px 14px !important; margin: 0 0 12px !important; }
.checkout-aside-blocks .box_html h2 { font-size: 13px !important; margin: 0 0 6px !important; }
.checkout-aside-blocks .box_html p { margin: 0 0 4px !important; }
.checkout-aside-blocks .terms-list li { margin: 2px 0; }

/* ---------- 19. Опція «Колір» обов'язкова (2026-10-08) ---------- */
#product-product .form-group.required .control-label:after { content: ' *'; color: #c0392b; }
#product-product .form-group.required .control-label:before { content: none; }
#product-product .form-group.required .text-danger { display: block; margin-top: 6px; padding: 8px 12px; background: #fdecea; border-radius: 8px; font-weight: 600; }
#product-product .form-group.required:has(.text-danger) { outline: 2px solid #f1b0a9; outline-offset: 6px; border-radius: 8px; }

/* ---------- 20. Спливаюче «доданий в кошик» (bootstrap-notify з common.js) ---------- */
/* тема вмикає анімацію fadeInDown з animate.css: контейнер стартує зсунутим на −100% і в частини браузерів
   (фонова вкладка, енергозбереження) так і лишається — видно лише нижній рядок. Показуємо одразу, без анімації. */
[data-notify="container"].alert { animation: none !important; transform: none !important; opacity: 1 !important; position: fixed !important; top: 12px !important; left: 12px !important; right: 12px !important; width: auto !important; margin: 0 !important; padding: 12px 40px 12px 16px !important; text-align: left; font-size: 14px; line-height: 1.4; border-radius: var(--radius-sm); box-shadow: var(--shadow-hover); }
[data-notify="container"].alert-success { background: #e8f5ea; border: 1px solid #bfe3c6; color: #1f4a2c; }
[data-notify="container"].alert-success a { color: var(--brand); font-weight: 600; }
[data-notify="container"] [data-notify="dismiss"], [data-notify="container"] .close { position: absolute !important; top: 8px !important; right: 12px !important; margin: 0 !important; font-size: 22px; line-height: 1; opacity: .5; }
@media (min-width: 768px) { [data-notify="container"].alert { left: auto !important; right: 24px !important; top: 100px !important; max-width: 420px; } }

/* ---------- 21. Мобільна шапка: кнопка «Каталог продукції» має бути КЛІКАБЕЛЬНОЮ ---------- */
/* кнопка виходить за межі ряду з іконками (.header-bottom-height, z-index 2 у теми) і накривалась прозорим рядом
   логотипа .header-top (z-index 5) — тап потрапляв у нього. Піднімаємо ряд з кнопкою над логотипом. */
@media (max-width: 1199px) {
  #header .header-bottom-height { z-index: 6; }
}
/* висувне меню і його затемнення — завжди над шапкою (тема давала затемненню z-index 3, рядок з кнопкою тепер 6) */
#menu_wrapper { z-index: 100000 !important; }
#mobile_top_menu_wrapper { z-index: 100001 !important; }

/* ---------- 22. Мобільна бокова колонка: згорнуті блоки «Категорії» тощо (#_mobile_column_left) ---------- */
/* тема фарбує заголовок згорнутого блоку в синій (.block-title .page-title) — робимо як заголовок картки на десктопі */
#_mobile_column_left .box, #_mobile_column_left section { margin-bottom: 14px; overflow: hidden; }
#_mobile_column_left .block-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px !important; background: var(--surface) !important; border-bottom: 1px solid var(--line); cursor: pointer; }
#_mobile_column_left .block-title .page-title { display: inline !important; background: transparent !important; color: var(--ink) !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: .06em; text-transform: uppercase; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; }
#_mobile_column_left .block-title .collapse-icons { color: var(--muted); font-size: 18px; line-height: 1; }
#_mobile_column_left .block-title.collapsed .remove, #_mobile_column_left .block-title:not(.collapsed) .add { display: none; }
#_mobile_column_left .collapse, #_mobile_column_left .collapsing { padding: 6px 16px 10px; }
#_mobile_column_left .collapse ul { margin: 0; }

/* ---------- 23. Мобільний: нічого не вилазить за правий край (інакше браузер розширює сторінку і все «ховається справа») ---------- */
@media (max-width: 991px) {
  body { overflow-x: hidden; }                                         /* страховка: жоден елемент не розширює viewport (лише body — з html ламається прокрутка) */
  .tooltip { display: none !important; }                              /* підказки «Купити» після тапу лишались висіти */
  #checkout-checkout .checkout-layout { grid-template-columns: minmax(0, 1fr); }
  #checkout-checkout .checkout-steps, #checkout-checkout .checkout-aside, #checkout-checkout .panel-body { min-width: 0; }
  #checkout-checkout .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #checkout-checkout .wrapper_container.row { margin-left: 0; margin-right: 0; }
}
@media (max-width: 767px) {
  .pagination { display: flex !important; flex-wrap: wrap; gap: 6px; }
  .pagination > li > a, .pagination > li > span { min-width: 36px; padding: 6px 8px !important; text-align: center; }
  [data-notify="container"].alert { max-width: calc(100% - 24px); }
}
/* при прокрутці тема прибиває ряд з кнопкою «Каталог» до верху (fixed-header) з величезним z-index зі скрипта —
   висувне меню і затемнення мають бути вище за будь-що */
#menu_wrapper { z-index: 2147483645 !important; }
#mobile_top_menu_wrapper { z-index: 2147483646 !important; }
/* футер: .row з мінусовими полями в контейнері без відступів вилазив на 15px праворуч */
@media (max-width: 991px) { #footer .footer-after .row, #footer .footer-before .row { margin-left: 0; margin-right: 0; } }
/* форма зворотного зв'язку (модуль FormCreator): поля і кнопка мали фіксовані 440px — наїжджали на textarea на десктопі і вилазили за екран на телефоні */
.form-creator .form-control { width: 100% !important; max-width: 100%; }
.form-creator .btn { max-width: 100%; white-space: normal; }
@media (max-width: 767px) {
  .form-creator .btn { width: 100% !important; }
  /* обгортки полів у темі фіксовані 380px, textarea спливає праворуч з margin -99px — на телефоні все в один стовпчик */
  #form-formcreator132 > .form-group.required:nth-child(1), #form-formcreator132 > .form-group.required:nth-child(2) { width: 100%; }
  #form-formcreator132 .form-group.required:nth-child(3) { width: 100%; float: none; margin: 0 0 15px; }
  #form-formcreator132 .form-group.text-center { text-align: center; }
  .box_mail_form > div:nth-child(1), .box_contact > div:nth-child(1) { width: auto; display: block; }
  /* блок двох банерів на головній: .row з мінусовими полями в контейнері без відступів */
  .content_bottom_home .ishibannerblock .row { margin-left: 0; margin-right: 0; }
  .ishibannerblock .banner-desc { max-width: calc(100% - 20px); }
}
/* §24. Кошик на телефоні: таблиця не влазила, а обгортка з overflow:hidden (§16) відрізала кількість/ціну/суму без прокрутки —
   нижче 768px кожен рядок стає карткою: фото | назва+опції / артикул / кількість / ціна за шт. / всього.
   Тема ховає колонку «Модель» на телефоні і ставить nowrap + capitalize на комірки — повертаємо. */
#checkout-cart .table td, #checkout-cart .table td a { text-transform: none; }
@media (max-width: 767px) {
  #checkout-cart .table-responsive { overflow: visible; }
  #checkout-cart .table thead { display: none; }
  #checkout-cart .table, #checkout-cart .table > tbody { display: block; width: 100%; }
  #checkout-cart .table > tbody > tr { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); }
  #checkout-cart .table > tbody > tr:last-child { border-bottom: 0; }
  #checkout-cart .table > tbody > tr > td { display: block !important; grid-column: 2; padding: 0 !important; border: 0 !important; min-width: 0; white-space: normal; overflow-wrap: anywhere; text-align: left; }
  #checkout-cart .table > tbody > tr > td a { white-space: normal; }
  #checkout-cart .table > tbody > tr > td:nth-child(1) { grid-column: 1; grid-row: 1 / span 5; align-self: start; }
  #checkout-cart .table > tbody > tr > td:nth-child(2) { grid-row: 1; line-height: 1.35; }
  #checkout-cart .table > tbody > tr > td:nth-child(3) { grid-row: 2; font-size: 13px; }
  #checkout-cart .table > tbody > tr > td:nth-child(3):empty { display: none !important; }
  #checkout-cart .table > tbody > tr > td:nth-child(4) { grid-row: 3; }
  #checkout-cart .table > tbody > tr > td:nth-child(5) { grid-row: 4; font-size: 14px; font-weight: 500; }
  #checkout-cart .table > tbody > tr > td:nth-child(6) { grid-row: 5; font-size: 17px; }
  #checkout-cart .table > tbody > tr > td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 500; font-size: 13px; }
  #checkout-cart .input-group.btn-block { max-width: none !important; }
  #checkout-cart .sub-total-table { float: none !important; width: 100%; margin-top: 8px; }
  #checkout-cart .buttons { display: flex; flex-direction: column-reverse; }
  #checkout-cart .buttons .pull-left, #checkout-cart .buttons .pull-right { float: none !important; width: 100%; }
  #checkout-cart .buttons .pull-left { margin-top: 10px; }
  #checkout-cart .buttons .btn { display: block; width: 100%; }
}
/* §25. Поки відкрите мобільне меню (клас ставить скрипт у footer.twig), кнопку «Каталог продукції» ховаємо — вона не може опинитися над меню */
body.menu-open .header-bottom-height { visibility: hidden; }
#mobile_top_menu_wrapper, #menu_wrapper { z-index: 2147483646 !important; }
#menu_wrapper { z-index: 2147483645 !important; }
/* §26. Кількість у кошику: [−][ 10 ][+]  [×] — без кнопки «оновити», значення застосовується само (скрипт у cart.twig) */
#checkout-cart .cart-qty { display: inline-flex; align-items: stretch; width: auto; }
#checkout-cart .cart-qty .input-group-btn { display: inline-flex; width: auto; }
#checkout-cart .cart-qty .btn-default { height: 40px; width: 40px; padding: 0; background: #fff !important; color: var(--ink) !important; border: 1px solid var(--line) !important; box-shadow: none; display: inline-flex; align-items: center; justify-content: center; }
#checkout-cart .cart-qty .btn-default:hover { color: var(--brand) !important; background: #fff7f0 !important; }
#checkout-cart .cart-qty .cart-qty-minus { border-radius: 8px 0 0 8px !important; }
#checkout-cart .cart-qty .form-control { width: 56px; height: 40px; border-left: 0; border-right: 0; border-radius: 0; text-align: center; font-weight: 600; }
#checkout-cart .cart-qty .cart-qty-plus { border-radius: 0 8px 8px 0 !important; }
#checkout-cart .cart-qty .cart-remove { margin-left: 10px; height: 40px; width: 40px; padding: 0; border: 1px solid var(--line) !important; border-radius: 8px !important; display: inline-flex; align-items: center; justify-content: center; }
#checkout-cart .cart-qty.updating { opacity: .55; pointer-events: none; }
#checkout-cart tr.updating .total-price, #checkout-cart .sub-total-table.updating .total-amount { opacity: .35; transition: opacity .2s; }
