body {
  width: 100%;
  height: 100%;
}

h1, h2, h3, h4, h5, h6 {
  color: #444;
}

legend {
  padding: 7px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
}

label {
  font-size: 12px;
  font-weight: normal;
}

/* Chrome border line */
button:focus {
  outline: none !important;
}

/* container */
#container {
  width: 100%;
  min-height: 100%;
  position: absolute;
  margin-bottom: 300px;
}

/* content */
#content, #column-left, #column-right {
  padding-bottom: 730px;
}

@media (min-width: 576px) {
  #content, #column-left, #column-right {
    padding-bottom: 400px;
  }
}
#alert {
  z-index: 9999;
  position: fixed;
  top: 30%;
  left: 50%;
  width: 320px;
  margin-left: -160px;
}

@media (min-width: 992px) {
  #alert {
    width: 600px;
    margin-left: -300px;
  }
}
@media (min-width: 1140px) {
  #alert {
    width: 600px;
    margin-left: -300px;
  }
}
@media (min-width: 1320px) {
  #alert {
    width: 600px;
    margin-left: -300px;
  }
}
#alert .alert {
  margin-bottom: 15px;
}

#alert .alert-primary {
  box-shadow: 0 0 0 5px rgb(var(--bs-primary-rgb), 0.1);
}

#alert .alert-secondary {
  box-shadow: 0 0 0 5px rgb(var(--bs-secondary-rgb), 0.1);
}

#alert .alert-success {
  box-shadow: 0 0 0 5px rgb(var(--bs-success-rgb), 0.1);
}

#alert .alert-warning {
  box-shadow: 0 0 0 5px rgb(var(--bs-warning-rgb), 0.1);
}

#alert .alert-danger {
  box-shadow: 0 0 0 5px rgb(var(--bs-danger-rgb), 0.1);
}

#alert .alert-info {
  box-shadow: 0 0 0 5px rgb(var(--bs-info-rgb), 0.1);
}

#alert .alert-light {
  box-shadow: 0 0 0 5px rgb(var(--bs-light-rgb), 0.1);
}

#alert .alert-dark {
  box-shadow: 0 0 0 5px rgb(var(--bs-dark-rgb), 0.1);
}

/* top */
#top {
  background-color: var(--bs-tertiary-bg);
  border-bottom: 1px solid var(--bs-border-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 5px;
}

#top ul.list-inline {
  margin-bottom: 0;
}

#top .list-inline-item > a, #top .list-inline-item .dropdown > a, #top .list-inline-item .dropdown > span {
  font-size: 1.1em;
  color: var(--bs-gray-600);
  line-height: 40px;
  vertical-align: middle;
  padding: 10px 0px 5px 0px;
}

/* logo */
#logo {
  text-align: center;
  margin: 7px 0 7px 0;
}

#logo img {
  max-width: 100%;
}

@media (min-width: 768px) {
  #logo {
    text-align: left;
  }
}
/* search */
#search {
  margin-bottom: 10px;
}

#search .form-control-lg {
  height: 40px;
  font-size: 12px;
  line-height: 20px;
  padding: 0 10px;
}

#search .btn-lg {
  font-size: 15px;
  line-height: 18px;
  padding: 0.57rem 35px;
  text-shadow: 0 1px 0 #FFF;
}

/* cart */
#cart {
  margin-bottom: 10px;
}

#cart .img-thumbnail {
  min-width: 100px;
}

#cart .btn-lg {
  font-size: 15px;
  line-height: 18px;
  padding: 14px 35px;
}

#cart .dropdown-menu {
  background: #eee;
}

#cart .dropdown-menu li {
  min-width: 300px;
}

@media (max-width: 768px) {
  #cart .dropdown-menu li {
    min-width: 100%;
  }
}
/* menu */
#menu {
  background-color: #229ac8;
  background-image: linear-gradient(to bottom, #23a1d1, #1f90bb);
  background-repeat: repeat-x;
  border: 1px solid #1f90bb;
  border-color: #1f90bb #1f90bb #145e7a;
  min-height: 40px;
  border-radius: 4px;
  padding: 0 1rem;
  margin-bottom: 20px;
}

#menu .navbar-nav > li > a {
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  padding: 10px 15px 10px 15px;
  background-color: transparent;
}

#menu .navbar-nav > li > a:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

#menu .dropdown-menu {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

#menu .dropdown-inner {
  display: flex;
  flex-direction: column;
}

#menu .dropdown-inner ul {
  width: 100%;
  min-width: 200px;
}

@media (min-width: 960px) {
  #menu .dropdown:hover .dropdown-menu {
    display: block;
  }
  #menu .dropdown-inner {
    flex-direction: row;
  }
  #menu .nav-item + .nav-item + .nav-item .dropdown-column-3 {
    left: -200px;
  }
  #menu .nav-item + .nav-item + .nav-item .dropdown-column-4 {
    left: -400px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-2 {
    left: -200px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-3 {
    left: -400px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-4 {
    left: -600px;
  }
}
#category {
  float: left;
  font-size: 16px;
  font-weight: 700;
  line-height: 40px;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

#menu .navbar-toggler i {
  color: #fff;
  border-color: #fff;
  font-size: 0.9em;
}

/* default boostrap changes */
div.required .col-form-label:before, div.required .form-label:before {
  content: "* ";
  color: #F00;
  font-weight: bold;
}

.form-switch-lg {
  font-size: 20px;
  min-height: 30px;
  line-height: 30px;
}

.nav-tabs {
  margin-bottom: 15px;
}

.form-check .form-check-input {
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .col-form-label {
    text-align: right;
  }
}
/* footer */
footer {
  border: 1px solid #000000;
  position: absolute;
  bottom: -1px;
  width: 100%;
  padding-top: 30px;
  background-color: #303030;
  border-top: 1px solid #ddd;
  color: #e2e2e2;
}

footer hr {
  border-top: none;
  border-bottom: 1px solid #666;
}

footer a {
  color: #ccc;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

footer h5 {
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* breadcrumb */
.breadcrumb {
  margin: 0 0 20px 0;
  padding: 8px 0;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  background-color: var(--bs-tertiary-bg);
}
.breadcrumb i {
  font-size: 15px;
}
.breadcrumb > li.breadcrumb-item {
  text-shadow: 0 1px 0 #FFF;
  padding: 0 20px;
  position: relative;
  white-space: nowrap;
}
.breadcrumb > li.breadcrumb-item > a {
  text-decoration: none;
}
.breadcrumb > li.breadcrumb-item:after {
  content: "";
  display: block;
  position: absolute;
  top: -3px;
  right: -5px;
  width: 29px;
  height: 29px;
  border-right: 1px solid var(--bs-border-color);
  border-bottom: 1px solid var(--bs-border-color);
  transform: rotate(-45deg);
}
.breadcrumb > li.breadcrumb-item + li:before {
  content: "";
  padding: 0;
}

.product-thumb {
  border: 1px solid #ddd;
  position: relative;
  height: 100%;
}

.product-thumb .image {
  text-align: center;
}

.product-thumb .image a:hover {
  opacity: 0.8;
}

.product-thumb .description {
  padding: 15px;
  margin-bottom: 45px;
}

.product-thumb .description h4 {
  font-weight: bold;
}

.product-thumb .button {
  display: flex;
  position: absolute;
  width: 100%;
  bottom: 0;
}

.product-thumb .button button {
  width: 33.33%;
  border: none;
  border-top: 1px solid var(--bs-border-color);
  background-color: var(--bs-tertiary-bg);
  color: var(--bs-gray-600);
  line-height: 38px;
  text-align: center;
}

.product-thumb .button button:hover {
  color: var(--bs-gray-600);
  background-color: #ddd;
  text-decoration: none;
  cursor: pointer;
}

.product-thumb .button button + button {
  border-left: 1px solid var(--bs-border-color);
}

@media (min-width: 960px) {
  .product-list .product-thumb {
    display: flex;
  }
  .product-list .product-thumb .image {
    flex-direction: column;
    margin-bottom: 0px;
  }
  .product-list .product-thumb .content {
    flex-direction: column;
    flex: 75%;
    position: relative;
  }
  .product-list .product-thumb .button {
    border-left: 1px solid #ddd;
    width: calc(100% - 15px);
    margin-left: 15px;
  }
}
.rating .fa-stack {
  width: 20px;
}

.rating .fa-star {
  color: #999;
  font-size: 15px;
}

.rating .fa-star {
  color: #FC0;
  font-size: 15px;
}

.rating .fa-star + .fa-star {
  color: #E69500;
}

/* product list */
.price {
  color: #444;
}

.price-new {
  font-weight: 600;
}

.price-old {
  color: #dc512c;
  text-decoration: line-through;
}

.price-tax {
  color: #999;
  font-size: 12px;
  display: block;
}

/* blog */
.blog-thumb {
  border: 1px solid #ddd;
  margin-bottom: 15px;
}

.blog-thumb h4 {
  font-weight: bold;
}

.blog-thumb .image {
  text-align: center;
  margin-bottom: 15px;
}

.blog-thumb .image a:hover {
  opacity: 0.8;
}

.blog-thumb .description {
  padding: 15px;
}

/* Theme Custom CSS */
#cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  z-index: 9999;
  opacity: 0.95;
  color: #ecf0f1;
  background: #343a40;
}

#cookie div {
  font-size: 16px;
  color: #FFFFFF;
}

/* ===== Магазин техники: стиль поверх стандартной темы OpenCart 4 ===== */
/* Все цвета в переменных — меняются в одном месте */
:root {
  --ui-navy: #14224b;
  --ui-navy-soft: #24356b;
  --ui-accent: #2b6be6;
  --ui-cta: #2b6be6;
  --ui-cta-hover: #1f56c4;
  --ui-red: #e5392f;
  --ui-ink: #1b2233;
  --ui-muted: #7b869f;
  --ui-line: #e2e7f1;
  --ui-bg: #f3f5fa;
  --ui-radius: 14px;

  --bs-link-color-rgb: 43, 107, 230;
  --bs-link-hover-color-rgb: 29, 79, 184;

  /* РАЗМЕРЫ ШАПКИ — меняйте только эти три числа */
  --logo-h: 56px;   /* высота логотипа (на компьютере) */
  --bar-pad: 6px;   /* отступ сверху и снизу в синей планке */
  --ctl-h: 44px;    /* высота поиска и кнопки корзины */
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ui-ink);
  background: var(--ui-bg);
}

:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; }

/* ---------- Верхняя полоса ---------- */
#top {
  background: #fff;
  border-bottom: 1px solid var(--ui-line);
  font-weight: 500;
}
#top a, #top .dropdown-toggle { color: var(--ui-ink); }
#top a:hover { color: var(--ui-accent); }

/* ---------- Шапка: логотип, поиск, корзина ---------- */
header {
  background: var(--ui-navy);
  padding: var(--bar-pad) 0;
  margin: 0;
}
header .row { align-items: center; }
header #logo {
  margin: 0 !important;
  display: flex;
  align-items: center;
}
header #logo img {
  display: block;
  height: var(--logo-h);
  width: auto;
  max-width: 100%;
  max-height: none;
  filter: none;
}
header #search { margin: 0 !important; }
header #search .form-control {
  height: var(--ctl-h);
  border: 0;
  border-radius: 999px 0 0 999px;
  padding-left: 22px;
  background: #fff;
}
header #search .btn {
  height: var(--ctl-h);
  border: 0;
  border-radius: 0 999px 999px 0;
  padding: 0 22px;
  background: var(--ui-cta);
  color: #fff;
}
header #search .btn:hover { background: var(--ui-cta-hover); }

header #cart { margin: 0 !important; }
header #cart > .btn {
  height: var(--ctl-h);
  border: 0;
  border-radius: 12px;
  background: var(--ui-navy-soft);
  color: #fff;
  font-weight: 600;
}
header #cart > .btn:hover { background: #30438a; color: #fff; }

/* ---------- Меню категорий ---------- */
#menu {
  background: #fff !important;
  background-image: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ui-line) !important;
  border-radius: 0 !important;
  margin: 0 0 20px !important;
  padding: 0;
}
#menu .nav-link {
  color: var(--ui-ink) !important;
  font-weight: 600;
  padding: .8rem 1rem;
}
#menu .nav-link:hover,
#menu .nav-item.show > .nav-link { color: var(--ui-accent) !important; }
#menu .dropdown-menu {
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(20, 34, 75, .16);
  padding: 8px;
}
#menu .dropdown-item { border-radius: 8px; padding: .5rem .75rem; }
#menu .dropdown-item:hover { background: var(--ui-bg); color: var(--ui-accent); }

/* ---------- Кнопки и поля ---------- */
.btn { border-radius: 10px; font-weight: 600; }
.btn-primary {
  --bs-btn-bg: var(--ui-cta);
  --bs-btn-border-color: var(--ui-cta);
  --bs-btn-hover-bg: var(--ui-cta-hover);
  --bs-btn-hover-border-color: var(--ui-cta-hover);
  --bs-btn-active-bg: #1a49a8;
  --bs-btn-active-border-color: #1a49a8;
  --bs-btn-disabled-bg: var(--ui-cta);
  --bs-btn-disabled-border-color: var(--ui-cta);
}
.form-control, .form-select { border-radius: 10px; border-color: #d3daea; }
.form-control:focus, .form-select:focus {
  border-color: var(--ui-accent);
  box-shadow: 0 0 0 .2rem rgba(43, 107, 230, .18);
}
.breadcrumb { font-size: .9rem; }

/* ---------- Карточки товаров ---------- */
.product-thumb {
  background: #fff;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.product-thumb:hover {
  border-color: #c6d1ea;
  box-shadow: 0 10px 28px rgba(20, 34, 75, .10);
}
.product-thumb .image { padding: 14px 14px 0; }
.product-thumb .content { padding: 0; }
.product-thumb .description { padding: 12px 16px 8px; }
.product-thumb h4 { font-size: .95rem; line-height: 1.35; margin-bottom: .5rem; }
.product-thumb h4 a { color: var(--ui-ink); font-weight: 600; text-decoration: none; }
.product-thumb h4 a:hover { color: var(--ui-accent); }
.product-thumb .price { font-size: 1.2rem; font-weight: 700; color: var(--ui-navy); }
.price-new { color: var(--ui-red); }
.price-old { color: var(--ui-muted); font-weight: 500; font-size: .9rem; }
.price-tax { display: none; }

.product-thumb .button,
.product-thumb .button-group {
  border-top: 1px solid var(--ui-line);
  background: #fff;
}
.product-thumb .button button,
.product-thumb .button-group button {
  color: var(--ui-navy);
  background: transparent;
  border: 0;
}
.product-thumb .button button:first-child,
.product-thumb .button-group button:first-child {
  color: #fff;
  background: var(--ui-cta);
}
.product-thumb .button button:first-child:hover,
.product-thumb .button-group button:first-child:hover { background: var(--ui-cta-hover); }

/* ---------- Подвал ---------- */
footer {
  background: var(--ui-navy) !important;
  color: #c7d0ea;
  margin-top: 40px;
  padding-top: 32px;
  border: 0 !important;
}
footer h5 { color: #fff; font-weight: 700; }
footer a { color: #c7d0ea; text-decoration: none; }
footer a:hover { color: #fff; }
footer hr { border-color: rgba(255, 255, 255, .15); }
footer p { color: #9aa6c9; }

/* ---------- Мобильные ---------- */
@media (max-width: 767.98px) {
  header { padding: 6px 0; }
  header #logo { justify-content: center; margin-bottom: 6px !important; }
  header #logo img { height: 44px; }
  header #search { margin-bottom: 6px !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Фиксированная синяя шапка при прокрутке */
header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
}

.dropdown-menu {
    z-index: 10000 !important;
}
.subcats{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px}
.subcat{display:inline-block;padding:9px 16px;background:#fff;border:1px solid #dfe3ec;border-radius:10px;color:#14214d;font-size:14px;font-weight:500;text-decoration:none;transition:all .15s ease}
.subcat:hover{background:#2b63e6;border-color:#2b63e6;color:#fff;transform:translateY(-1px);box-shadow:0 4px 12px rgba(43,99,230,.25)}

/* мобильное меню категорий: белое на белом → тёмное */
#category {
  color: var(--ui-navy) !important;
  text-shadow: none !important;
}
#menu .navbar-toggler {
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  margin: 6px 0;
  background: #fff;
}
#menu .navbar-toggler i {
  color: var(--ui-navy) !important;
  border-color: var(--ui-navy);
}
@media (max-width: 991.98px) {
  #menu .navbar-nav { padding: 6px 0; }
  #menu .nav-link { border-top: 1px solid var(--ui-line); }
}
/* ===== SEO-описание категории ===== */
.category-seo {
  background: #fff;
  border-radius: 8px;
  padding: 40px 22px 30px;
  margin: 30px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
}
.category-seo__title {
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: #222;
}
.category-seo__text {
  position: relative;
  max-height: 60px;              /* высота в свёрнутом виде */
  overflow: hidden;
  color: #888;
  font-size: 14px;
  line-height: 1.65;
  transition: max-height .4s ease;
}
.category-seo__text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
  transition: opacity .3s;
}
.category-seo__text.is-open::after {
  opacity: 0;
}
.category-seo__text b,
.category-seo__text strong {
  color: #666;
}
.category-seo__text h2,
.category-seo__text h3 {
  font-size: 17px;
  color: #444;
  margin: 16px 0 8px;
}
.category-seo__text p:last-child {
  margin-bottom: 0;
}
.category-seo__toggle {
  margin-top: 12px;
  padding: 0;
  background: none;
  border: 0;
  color: #2b6de5 !important;
  font-weight: 500;
  cursor: pointer;
}
.category-seo__toggle:hover {
  color: #1f56c0 !important;
  text-decoration: underline;
}
/* ===== Нет в наличии в карточке ===== */
.product-thumb .price-out-of-stock {
  color: #999;
  font-size: 16px;
  font-weight: 600;
}
.product-thumb.is-out-of-stock .button button[disabled] {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}
.product-thumb.is-out-of-stock .image img {
  opacity: .6;
}
/* ===== BREADCRUMBS (custom) — start ===== */
#container .breadcrumb {
  background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  padding: 0 !important; margin: 14px 0 18px !important;
  display: flex; flex-wrap: nowrap; align-items: center;
  overflow-x: auto; white-space: nowrap; font-size: 13px; line-height: 1.2;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
#container .breadcrumb::-webkit-scrollbar { display: none; }
#container .breadcrumb .breadcrumb-item {
  display: flex; align-items: center; flex: 0 0 auto;
  padding: 0 !important; margin: 0 !important; background: none !important; border: 0 !important;
}
#container .breadcrumb .breadcrumb-item::before,
#container .breadcrumb .breadcrumb-item::after,
#container .breadcrumb .breadcrumb-item a::before,
#container .breadcrumb .breadcrumb-item a::after { content: none !important; display: none !important; }
#container .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: '' !important; display: inline-block !important; float: none !important;
  width: 6px; height: 6px; padding: 0 !important; background: none !important;
  border-top: 1.5px solid #b5bcc8; border-right: 1.5px solid #b5bcc8;
  transform: rotate(45deg); margin: 0 12px 0 8px;
}
#container .breadcrumb a {
  color: #6b7280 !important; text-decoration: none !important;
  padding: 4px 0 !important; background: none !important; border: 0 !important;
  transition: color .15s, background-color .15s;
}
#container .breadcrumb a:hover { color: #2b6be6 !important; }
#container .breadcrumb .breadcrumb-item:first-child a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0 !important; border-radius: 50% !important;
  background: #eef3fd !important; color: #2b6be6 !important; font-size: 13px;
}
#container .breadcrumb .breadcrumb-item:first-child a:hover { background: #2b6be6 !important; color: #fff !important; }
#container .breadcrumb .breadcrumb-item:last-child:not(:first-child) a {
  color: #111827 !important; font-weight: 600; pointer-events: none;
  display: inline-block; max-width: 360px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle;
}
@media (max-width: 767.98px) {
  #container .breadcrumb { margin: 10px 0 14px !important; font-size: 12px; }
  #container .breadcrumb .breadcrumb-item:last-child:not(:first-child) a { max-width: 200px; }
}
/* ===== BREADCRUMBS (custom) — end ===== */
/* Выравнивание карточек товаров */
.product-thumb {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-thumb .content,
.product-thumb .description {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Название: максимум 3 строки, высота всегда одинаковая */
.product-thumb h4 {
  line-height: 1.4;
  min-height: calc(1.4em * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Описание: максимум 3 строки */
.product-thumb .description p {
  line-height: 1.5;
  min-height: calc(1.5em * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Цена всегда внизу, на одной линии во всех карточках */
.product-thumb .price {
  margin-top: auto;
}
/* =========================================
   КАРТОЧКИ ТОВАРОВ В КАТАЛОГЕ И НА ГЛАВНОЙ
   ========================================= */
.product-thumb {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-thumb .content,
.product-thumb .description {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Название: максимум 3 строки, одинаковая высота */
.product-thumb h4 {
  line-height: 1.4;
  min-height: calc(1.4em * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Описание: максимум 3 строки */
.product-thumb .description p {
  line-height: 1.5;
  min-height: calc(1.5em * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Цена всегда внизу карточки */
.product-thumb .price {
  margin-top: auto;
}

/* =========================================
   СТРАНИЦА ТОВАРА
   ========================================= */

/* Белая карточка под фото и информацией */
#product-info #content > .row:first-of-type {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 30px 20px;
  margin: 0 0 24px 0;
}

/* Главное фото — без рамки */
#product-info .image > a > .img-thumbnail {
  border: none;
  background: transparent;
}

/* Миниатюры — отдельные карточки с рамкой */
#product-info .image > div > a > .img-thumbnail {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 6px;
  background: #fff;
  margin: 0 6px 6px 0;
  transition: border-color .2s, box-shadow .2s;
}

/* При наведении на миниатюру — синяя рамка */
#product-info .image > div > a:hover > .img-thumbnail {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .15);
}

/* Вкладки «Описание / Отзывы» — склеиваем с белым блоком */
#product-info .nav-tabs {
  margin-bottom: 0 !important;
  border-bottom: 1px solid #e5e7eb;
}
#product-info .nav-tabs .nav-link.active {
  background: #fff;
  border-color: #e5e7eb #e5e7eb #fff;
}

/* Белый блок под вкладками */
#product-info .nav-tabs + .tab-content {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 16px 16px 16px;
  padding: 24px;
  margin-top: 0;
}

/* На телефоне отступы поменьше */
@media (max-width: 767px) {
  #product-info #content > .row:first-of-type {
    padding: 16px 10px;
    border-radius: 12px;
  }
  #product-info .nav-tabs + .tab-content {
    padding: 16px;
  }
}
/* ===== Font Awesome: show text immediately, icons as soon as the font arrives ===== */
@font-face { font-family: "Font Awesome 6 Free"; font-style: normal; font-weight: 900; font-display: swap;
  src: url("fonts/fontawesome/webfonts/fa-solid-900.woff2") format("woff2"); }
@font-face { font-family: "Font Awesome 6 Free"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/fontawesome/webfonts/fa-regular-400.woff2") format("woff2"); }
@font-face { font-family: "Font Awesome 6 Brands"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/fontawesome/webfonts/fa-brands-400.woff2") format("woff2"); }
  /* =========================================
   КАТАЛОГ ТОВАРОВ (вертикальное меню)
   ========================================= */
/* Полоса меню на всю ширину, продолжает тёмную шапку */
#catmenu {
  position: relative;
  z-index: 1000;
  background: #1c2b5a;
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: 16px;
}
#catmenu .catmenu-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}
#catmenu .catmenu-wrap {
  position: relative;
  display: inline-block;
}

/* Кнопка «Каталог товаров» */
#catmenu .catmenu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #2563eb;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
#catmenu .catmenu-btn:hover,
#catmenu.open .catmenu-btn { background: #1d4ed8; }

/* Быстрые ссылки справа от кнопки */
#catmenu .catmenu-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0 0 0 12px;
  padding: 0;
}
#catmenu .catmenu-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s, color .2s;
}
#catmenu .catmenu-links a:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
#catmenu .catmenu-links .catmenu-hot { color: #fbbf24; }
#catmenu .catmenu-links .catmenu-hot i { margin-right: 4px; }

/* Выпадающая панель со списком категорий */
#catmenu .catmenu-panel {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: 300px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
}
/* Невидимый «мостик», чтобы меню не закрывалось при переходе мыши от кнопки к списку */
#catmenu .catmenu-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
#catmenu.open .catmenu-panel { display: block; }

#catmenu .catmenu-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
#catmenu .catmenu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  color: #1f2937;
  font-size: 14px;
  text-decoration: none;
}
#catmenu .catmenu-icon {
  width: 20px;
  text-align: center;
  font-size: 16px;
  color: #64748b;
}
#catmenu .catmenu-arrow {
  margin-left: auto;
  font-size: 12px;
  color: #94a3b8;
  transition: transform .2s;
}
#catmenu .catmenu-item:hover > .catmenu-link {
  background: #eff6ff;
  color: #2563eb;
}
#catmenu .catmenu-item:hover > .catmenu-link .catmenu-icon { color: #2563eb; }

/* Панель подкатегорий справа */
#catmenu .catmenu-sub {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  min-height: 100%;
  width: 560px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0 12px 12px 0;
  padding: 18px 24px;
  box-shadow: 12px 12px 30px rgba(15, 23, 42, .10);
}
#catmenu .catmenu-sub-title a {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
}
#catmenu .catmenu-sub-list {
  list-style: none;
  margin: 12px 0;
  padding: 0;
  columns: 2;
  column-gap: 24px;
}
#catmenu .catmenu-sub-list li {
  break-inside: avoid;
  padding: 4px 0;
}
#catmenu .catmenu-sub-list a {
  color: #374151;
  font-size: 14px;
  text-decoration: none;
}
#catmenu .catmenu-sub-list a:hover { color: #2563eb; }
#catmenu .catmenu-all {
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

/* Компьютер: открытие при наведении */
@media (min-width: 992px) {
  #catmenu .catmenu-wrap:hover .catmenu-panel { display: block; }
  #catmenu .catmenu-item:hover > .catmenu-sub { display: block; }
}

/* Телефон и планшет: список на всю ширину, подкатегории раскрываются по тапу */
@media (max-width: 991px) {
  #catmenu .catmenu-bar { flex-wrap: wrap; }
  #catmenu .catmenu-wrap { display: block; width: 100%; }
  #catmenu .catmenu-btn {
    width: 100%;
    justify-content: center;
  }
  #catmenu .catmenu-panel {
    position: static;
    width: 100%;
    box-shadow: none;
    max-height: 70vh;
    overflow-y: auto;
    margin-top: 8px;
  }
  #catmenu .catmenu-panel::before { display: none; }
  #catmenu .catmenu-links {
    width: 100%;
    margin: 0;
    justify-content: center;
  }
  #catmenu .catmenu-sub {
    position: static;
    width: auto;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0 16px 10px 48px;
  }
  #catmenu .catmenu-item.expanded > .catmenu-sub { display: block; }
  #catmenu .catmenu-item.expanded .catmenu-arrow { transform: rotate(90deg); }
  #catmenu .catmenu-sub-title { display: none; }
  #catmenu .catmenu-sub-list { columns: 1; margin: 0 0 6px; }
}
/* =========================================
   ТЕЛЕФОН В ШАПКЕ
   ========================================= */
header [class*="col"]:has(> #logo) {
  display: flex;
  align-items: center;
  gap: 28px;
}
#header-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
#header-phone .hp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(37, 99, 235, .25);
  color: #60a5fa;
  font-size: 15px;
}
#header-phone .hp-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
#header-phone .hp-text a {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
#header-phone .hp-text a:hover { color: #60a5fa; }
#header-phone .hp-text span {
  color: #94a3b8;
  font-size: 12px;
}

/* На средних экранах — только номер, без часов */
@media (max-width: 1199px) {
  #header-phone .hp-text span { display: none; }
}
/* На телефоне — только круглая иконка-кнопка звонка */
@media (max-width: 767px) {
  header [class*="col"]:has(> #logo) { justify-content: space-between; }
  #header-phone .hp-text { display: none; }
}
/* =========================================
   ЛЕВОЕ МЕНЮ КАТЕГОРИЙ
   ========================================= */
#column-left .list-group,
#column-right .list-group {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 8px;
  overflow: hidden;
}
#column-left .list-group-item,
#column-right .list-group-item {
  border: 0;
  border-radius: 10px !important;
  padding: 9px 14px;
  margin-bottom: 2px;
  font-size: 14px;
  color: #1f2937;
  background: transparent;
  transition: background .2s, color .2s;
}
#column-left .list-group-item:hover,
#column-right .list-group-item:hover {
  background: #eff6ff;
  color: #2563eb;
}
#column-left .list-group-item.active,
#column-right .list-group-item.active {
  background: #2563eb;
  color: #fff;
  font-weight: 600;
}

/* =========================================
   ПЕРЕКЛЮЧАТЕЛЬ СТРАНИЦ (1, 2, 3...)
   ========================================= */
.pagination {
  gap: 6px;
  flex-wrap: wrap;
}
.pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 10px !important;
  background: #fff;
  color: #1f2937;
  font-weight: 500;
}
.pagination .page-link:hover {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
}
.pagination .page-item.active .page-link {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.pagination .page-link:focus {
  box-shadow: none;
}
/* =========================================
   ЖИВОЙ ПОИСК
   ========================================= */
.ls-box {
  position: relative;
}
.ls-box .live-search {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0 !important;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
  z-index: 1100;
}
.ls-box .live-search.show {
  display: block;
}
.ls-box .ls-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1f2937;
  text-decoration: none;
  transition: background .15s;
}
.ls-box .ls-item:hover {
  background: #eff6ff;
}
.ls-box .ls-item img {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}
.ls-box .ls-name {
  flex: 1;
  font-size: 14px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ls-box .ls-price {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  color: #dc2626;
}
.ls-box .ls-all {
  display: block;
  padding: 12px;
  background: #f8fafc;
  color: #2563eb;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.ls-box .ls-all:hover {
  background: #eff6ff;
}
.ls-box .ls-empty {
  padding: 16px;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

/* На телефоне — цена переносится под название */
@media (max-width: 575px) {
  .ls-box .ls-item { flex-wrap: wrap; }
  .ls-box .ls-price { width: 100%; padding-left: 60px; }
  /* =========================================
   ГАЛЕРЕЯ ТОВАРА
   ========================================= */
#product-info .image > a > img {
  transition: opacity .15s;
  cursor: zoom-in;
}
#product-info .image > div > a > .img-thumbnail {
  cursor: pointer;
}
/* Активная миниатюра — синяя рамка */
#product-info .image > div > a.gal-active > .img-thumbnail {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .25);
}
}

/* =========================================
   COOKIE-СОГЛАСИЕ
   ========================================= */
/* Стандартный баннер OpenCart прячем — вместо него наш */
#cookie { display: none !important; }

#cc-root { display: none; }
#cc-root.cc-show { display: block; }

#cc-root .cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 20px 24px;
  background: #fff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .25);
  font-size: 14px;
  line-height: 1.5;
}
#cc-root .cc-body { flex: 1; min-width: 0; }
#cc-root .cc-title { display: block; font-size: 16px; margin-bottom: 4px; color: #111827; }
#cc-root .cc-body p { margin: 0; color: #4b5563; }
#cc-root .cc-body a { color: #2563eb; }

/* Кнопки — одинаковые по размеру и цвету (требование: отказ не сложнее согласия) */
#cc-root .cc-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
#cc-root .cc-btn {
  min-width: 140px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
#cc-root .cc-btn:hover { background: #1d4ed8; }
#cc-root .cc-save { display: none; }

/* Панель категорий (открывается по «Настроить») */
#cc-root .cc-panel { display: none; margin-top: 14px; }
#cc-root.cc-open .cc-panel { display: block; }
#cc-root.cc-open .cc-save { display: inline-block; }
#cc-root.cc-open [data-act="settings"] { display: none; }
#cc-root.cc-open .cc-banner { flex-direction: column; align-items: stretch; }
#cc-root.cc-open .cc-btns { justify-content: flex-end; }

#cc-root .cc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid #f1f5f9;
  cursor: pointer;
  margin: 0;
}
#cc-root .cc-row-text b { display: block; color: #111827; }
#cc-root .cc-row-text small { color: #6b7280; font-size: 13px; }
#cc-root .cc-always { color: #16a34a; font-size: 13px; font-weight: 600; white-space: nowrap; }

/* Переключатель */
#cc-root .cc-switch { position: relative; flex-shrink: 0; width: 44px; height: 24px; }
#cc-root .cc-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
#cc-root .cc-switch i {
  position: absolute; inset: 0;
  background: #cbd5e1; border-radius: 24px; transition: background .2s;
}
#cc-root .cc-switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; background: #fff; border-radius: 50%;
  transition: transform .2s;
}
#cc-root .cc-switch input:checked + i { background: #2563eb; }
#cc-root .cc-switch input:checked + i::after { transform: translateX(20px); }
#cc-root .cc-switch input:focus-visible + i { outline: 2px solid #2563eb; outline-offset: 2px; }

/* Телефон */
@media (max-width: 767px) {
  #cc-root .cc-banner {
    left: 8px; right: 8px; bottom: 8px;
    flex-direction: column; align-items: stretch;
    padding: 16px;
    max-height: 85vh; overflow-y: auto;
  }
  #cc-root .cc-btn { flex: 1 1 45%; min-width: 0; }
}
/* =========================================
   ОПИСАНИЕ ТОВАРА
   ========================================= */
#product-info .tab-content {
  font-size: 14px;
  line-height: 1.65;
  color: #1f2937;
}
#product-info .tab-content > .tab-pane {
  max-width: 980px;
}
#product-info .tab-content p {
  margin: 0 0 10px;
}
#product-info .tab-content h2,
#product-info .tab-content h3,
#product-info .tab-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 18px 0 6px;
}
#product-info .tab-content ul,
#product-info .tab-content ol {
  padding-left: 20px;
  margin: 0 0 10px;
}
#product-info .tab-content li {
  margin-bottom: 4px;
}
/* =========================================
   ГЛАВНОЕ ФОТО ТОВАРА — постоянный размер
   ========================================= */
#product-info .image > a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 520px;
  margin-bottom: 16px;
}
#product-info .image > a > img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 !important;
}

/* Планшет */
@media (max-width: 991px) {
  #product-info .image > a { height: 420px; }
}
/* Телефон */
@media (max-width: 575px) {
  #product-info .image > a { height: 320px; }
}
/* Карточки товаров на странице товара — возвращаем обычный размер картинок */
#product-info .product-thumb .image > a {
  display: block;
  height: auto;
  margin-bottom: 0;
}
#product-info .product-thumb .image > a > img {
  width: 100%;
  height: auto;
  max-height: none;
}