/* =========================================================
   Main CSS: base LTR/RTL-neutral styling and component layout
   ---------------------------------------------------------
   Purpose: production stylesheet for 2.gofast.co.il.
   Structure: base/theme rules first, then components and page-level blocks.
   Mobile policy: all max-width responsive overrides are collected at the
   bottom of this file so future maintenance does not depend on scattered
   mobile fixes hidden between desktop sections.
   RTL/swipe safety: gallery, Swiper and Fancybox rules are intentionally
   kept with explicit direction/touch-action comments; do not simplify them
   without checking Hebrew RTL desktop and mobile swipes in a browser.
   ========================================================= */

body {
  width: 100%;
  height: 100%;
  background: #F7F7FB;
}

/* Цвета темы из настроек админки */
:root {
  --site-primary-color: #2e4559;
  --site-secondary-color: #36546d;
  --site-header-color: #263747;
  --site-button-gradient: linear-gradient(180deg, var(--site-primary-color), var(--site-secondary-color));
  --icom-primary: var(--site-primary-color);
  --icom-primary-dark: var(--site-secondary-color);
}

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 у кнопок */
button:focus {
  outline: none !important;
}
/* Общий контейнер страницы */
#container {
  width: 100%;
  min-height: 100%;
  position: absolute;
  margin-bottom: 300px;
}
/* Ширина сайта из настроек темы */
@media (min-width: 768px) {
  body.site-width-90 .container {
    max-width: 90%;
  }

  body.site-width-95 .container {
    max-width: 95%;
  }

  body.site-width-100 .container {
    max-width: 100%;
  }
}
/* Основная область контента */
#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: 400px;
  margin-left: -200px;
}
@media (min-width: 992px) {
  #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.site-topbar {
  position: relative;
  z-index: 1100;
  background: var(--site-header-background, var(--site-header-color, #263747));
  background-attachment: fixed;
  background-position: top center;
  background-size: 100% 620px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0;
  color: #c9d3df;
  font-size: 13px;
}

.site-topbar__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-topbar__links,
.site-topbar__tools {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.site-topbar a,
.site-topbar .dropdown > a {
  color: #edf3f8;
  text-decoration: none;
}

.site-topbar a:hover,
.site-topbar .dropdown > a:hover {
  color: #fff;
}

.site-topbar .dropdown-menu {
  z-index: 1120;
  min-width: 170px;
  padding: 8px;
  border: 1px solid #dce4eb;
  border-radius: 6px;
  background: #f7f7fb;
  box-shadow: 0 14px 30px rgba(17, 32, 46, 0.16);
}

.site-topbar .dropdown-menu .dropdown-item {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--site-header-color, #263747) !important;
  font-size: 13px;
  font-weight: 600;
  opacity: 1;
}

.site-topbar .dropdown-menu .dropdown-item:hover {
  background: #eef3f7;
  color: #172636 !important;
}

.site-topbar__support {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.site-header {
  position: relative;
  z-index: 1000;
  background: var(--site-header-background, var(--site-header-color, #263747));
  background-attachment: fixed;
  background-position: top center;
  background-size: 100% 620px;
  padding: 12px 0 10px;
}

/* Единый отступ между шапкой и контентом */
.site-header + main {
  padding-top: 18px;
}

.site-header__inner {
  display: grid;
  grid-template-columns: 210px minmax(280px, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding-bottom: 14px;
}

#logo.site-header__logo {
  margin: 0;
  text-align: inherit;
}

#logo.site-header__logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: var(--site-logo-width, 180px);
  max-height: var(--site-logo-height, 72px);
  object-fit: contain;
}

#logo.site-header__logo h1 {
  margin: 0;
  font-size: 26px;
}

.site-header__search {
  min-width: 0;
}

.site-header__search form.input-group {
  position: relative;
  height: 44px;
  flex-wrap: nowrap;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 24px rgba(14, 25, 38, 0.16);
}

.site-header__search form.input-group:focus-within {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 10px 24px rgba(14, 25, 38, 0.16);
}

.site-header__search .form-control {
  width: 100%;
  height: 44px;
  min-height: 44px;
  border: 0;
  border-right: 0;
  background: rgba(0, 0, 0, 0.16);
  color: #fff;
  font-size: 14px;
  padding-right: 104px;
  box-shadow: none;
}

.site-header__search .form-control::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.site-header__search .btn {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  min-width: 88px;
  height: 36px;
  border: 0;
  border-radius: 5px !important;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  text-shadow: none;
  box-shadow: none;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

/* Кнопка поиска встроена в поле, как единый элемент шапки */
.site-header__search .btn i {
  display: none;
}

.site-header__search .search-button-text {
  display: inline-block;
  line-height: 1;
}

.site-header__search .btn:hover,
.site-header__search .btn:focus {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  outline: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.site-header__actions > .dropdown {
  position: relative;
  z-index: 1145;
}

.site-header__actions > .dropdown.show,
.site-header__actions > .dropdown:focus-within {
  z-index: 1145;
}

.site-header__actions > .dropdown > .dropdown-menu {
  z-index: 1155;
}

.site-header__icon {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: var(--site-header-background, var(--site-header-color, #263747));
  background-attachment: fixed;
  background-position: top center;
  background-size: 100% 620px;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.site-header__icon i {
  color: #fff;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.site-header__icon:hover {
  background: var(--site-header-background, var(--site-header-color, #263747));
  background-attachment: fixed;
  background-position: top center;
  background-size: 100% 620px;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.82);
}

.site-header__icon:focus {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.82);
}

.site-header__icon.dropdown-toggle::after {
  display: none;
}

.site-header__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--site-header-color, #263747);
  border-radius: 999px;
  background: #d94d42;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.24);
}

#cart.site-header__cart {
  position: relative;
  z-index: 1160;
  margin: 0;
  min-width: 178px;
}

@media (min-width: 768px) {
  /* Header Cart Drawer */
  body.header-cart-open {
    overflow: hidden;
  }

  #cart.site-header__cart .header-cart__button {
    width: 100%;
    height: 44px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.08);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  }

  /* Header mini cart desktop: trigger button */
  #cart.site-header__cart .header-cart__button:hover,
  #cart.site-header__cart .header-cart__button:focus {
    background: rgba(0, 0, 0, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.82);
  }

  #cart.site-header__cart .header-cart__button i {
    font-size: 18px;
    line-height: 1;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
  }

  /* Header mini cart desktop: overlay and drawer shell */
  #cart.site-header__cart .header-cart__overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.62);
    opacity: 0;
    transition: opacity 0.22s ease;
  }

  #cart.site-header__cart .header-cart__drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 3010;
    width: min(504px, 100vw);
    height: 100vh;
    background: #f4f5fa;
    color: #171d24;
    transform: translateX(100%);
    transition: transform 0.24s ease;
    box-shadow: -24px 0 50px rgba(0, 0, 0, 0.18);
  }

  #cart.site-header__cart.is-open .header-cart__overlay,
  body.header-cart-open #cart.site-header__cart .header-cart__overlay {
    pointer-events: auto;
    opacity: 1;
  }

  #cart.site-header__cart.is-open .header-cart__drawer,
  body.header-cart-open #cart.site-header__cart .header-cart__drawer {
    transform: translateX(0);
  }

  #cart.site-header__cart .header-cart__scroll {
    height: 100%;
    padding: 112px 40px 40px;
    overflow-y: auto;
  }

  /* Header mini cart desktop: close button */
  #cart.site-header__cart .header-cart__close {
    position: absolute;
    top: 44px;
    left: 40px;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  #cart.site-header__cart .header-cart__close::before,
  #cart.site-header__cart .header-cart__close::after {
    content: "";
    position: absolute;
    top: 27px;
    left: 2px;
    width: 52px;
    height: 1px;
    background: #171d24;
    transform-origin: center;
  }

  #cart.site-header__cart .header-cart__close::before {
    transform: rotate(45deg);
  }

  #cart.site-header__cart .header-cart__close::after {
    transform: rotate(-45deg);
  }

  /* Header mini cart desktop: drawer header and clear action */
  #cart.site-header__cart .header-cart__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
  }

  #cart.site-header__cart .header-cart__head h2 {
    margin: 0;
    color: #171d24;
    font-size: 25px;
    font-weight: 700;
  }

  #cart.site-header__cart .header-cart__clear-form {
    margin: 0;
  }

  #cart.site-header__cart .header-cart__clear {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #258ec2;
    font-size: 13px;
    line-height: 1;
  }

  #cart.site-header__cart .header-cart__clear span {
    color: #ff3158;
    font-size: 22px;
    line-height: 1;
  }

  /* Header mini cart desktop: product card */
  #cart.site-header__cart .header-cart__list {
    display: grid;
    gap: 10px;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
  }

  #cart.site-header__cart .header-cart__item {
    position: relative;
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) 26px;
    gap: 20px;
    padding: 20px;
    border: 1px solid rgba(39, 49, 61, 0.06);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(39, 49, 61, 0.04);
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
  }

  #cart.site-header__cart .header-cart__item.cart-item-updating {
    opacity: 0.72;
    box-shadow: 0 14px 32px rgba(179, 122, 21, 0.14);
  }

  #cart.site-header__cart .header-cart__image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 92px;
    border: 1px solid #e4e8f0;
    border-radius: 4px;
    background: #fff;
  }

  #cart.site-header__cart .header-cart__image img {
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
  }

  #cart.site-header__cart .header-cart__model {
    margin-bottom: 5px;
    color: #a7afc2;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
  }

  #cart.site-header__cart .header-cart__name {
    display: inline-block;
    color: #151b22;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
  }

  #cart.site-header__cart .header-cart__name:hover {
    color: #0b8fcf;
  }

  #cart.site-header__cart .header-cart__meta {
    margin: 7px 0 0;
    padding: 0;
    color: #5c6675;
    font-size: 12px;
    line-height: 1.5;
    list-style: none;
  }

  /* Header mini cart desktop: quantity control and live price */
  #cart.site-header__cart .header-cart__buy-row {
    grid-column: 1 / 4;
    display: grid;
    grid-template-columns: minmax(190px, 250px) minmax(100px, 1fr);
    gap: 20px;
    align-items: center;
    margin-top: 2px;
  }

  #cart.site-header__cart .header-cart__qty {
    display: grid;
    grid-template-columns: 50px minmax(72px, 1fr) 50px;
    align-items: center;
    min-height: 50px;
    margin: 0;
    border: 1px solid #dfe5ee;
    border-radius: 4px;
    background: #fff;
  }

  #cart.site-header__cart .header-cart__qty-btn,
  #cart.site-header__cart .header-cart__qty-input {
    width: 100%;
    height: 50px;
    border: 0;
    background: transparent;
    color: #1f2933;
    text-align: center;
  }

  #cart.site-header__cart .header-cart__qty-btn {
    font-size: 12px;
    transition: color 0.18s ease, background-color 0.18s ease;
  }

  #cart.site-header__cart .header-cart__qty-btn:hover {
    color: #b37a15;
    background: #f8f5ee;
  }

  #cart.site-header__cart .header-cart__qty-input {
    padding: 0;
    font-weight: 700;
    outline: none;
    appearance: textfield;
  }

  #cart.site-header__cart .header-cart__qty-input::-webkit-outer-spin-button,
  #cart.site-header__cart .header-cart__qty-input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
  }

  #cart.site-header__cart .header-cart__price {
    color: #1f2933;
    text-align: start;
  }

  #cart.site-header__cart .header-cart__price strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  #cart.site-header__cart .header-cart__price strong.is-price-changing,
  #cart.site-header__cart .header-cart__summary strong.is-price-changing {
    color: #000;
    transform: translateY(-2px) scale(1.04);
  }

  #cart.site-header__cart .header-cart__price small {
    display: block;
    margin-top: 4px;
    color: #a7afc2;
    font-size: 12px;
  }

  /* Header mini cart desktop: product action menu */
  #cart.site-header__cart .header-cart__action {
    position: relative;
    z-index: 2;
  }

  #cart.site-header__cart .header-cart__action-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1f2933;
    font-size: 18px;
  }

  #cart.site-header__cart .header-cart__action-toggle:hover,
  #cart.site-header__cart .header-cart__action.is-open .header-cart__action-toggle {
    color: #b37a15;
  }

  #cart.site-header__cart .header-cart__action-menu {
    position: absolute;
    top: 34px;
    right: 0;
    z-index: 20;
    width: 210px;
    padding: 6px 0;
    border: 1px solid #e4e8f0;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(23, 29, 36, 0.14);
  }

  #cart.site-header__cart .header-cart__action-menu[hidden] {
    display: none;
  }

  #cart.site-header__cart .header-cart__action-menu form {
    margin: 0;
  }

  #cart.site-header__cart .header-cart__action-link {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: 0;
    background: transparent;
    color: #171d24;
    font-size: 14px;
    line-height: 1.25;
    text-align: start;
    text-decoration: none;
  }

  #cart.site-header__cart .header-cart__action-link:hover {
    background: #f4f6fa;
    color: #b37a15;
  }

  /* Header mini cart desktop: totals and navigation actions */
  #cart.site-header__cart .header-cart__summary {
    margin-top: 10px;
    padding: 36px 40px 30px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(39, 49, 61, 0.04);
  }

  #cart.site-header__cart .header-cart__summary h3 {
    margin: 0 0 22px;
    color: #1f2933;
    font-size: 22px;
    font-weight: 700;
  }

  #cart.site-header__cart .header-cart__summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 0;
    color: #1f2933;
    font-size: 14px;
  }

  #cart.site-header__cart .header-cart__summary-row--total {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 700;
  }

  #cart.site-header__cart .header-cart__checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    margin-top: 26px;
    border-radius: 4px;
    background: var(--site-button-gradient, linear-gradient(180deg, var(--site-primary-color, #2e4559), var(--site-secondary-color, #36546d)));
    background-color: var(--site-primary-color, #2e4559);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  }

  #cart.site-header__cart .header-cart__checkout:hover {
    background: linear-gradient(180deg, var(--site-secondary-color, #36546d), var(--site-primary-color, #2e4559));
    background-color: var(--site-secondary-color, #36546d);
    color: #fff;
  }

  #cart.site-header__cart .header-cart__cart-link {
    display: block;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e6eaf1;
    color: #171d24;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
  }

  #cart.site-header__cart .header-cart__note {
    margin: 28px 0 0;
    color: #b6bfd1;
    font-size: 14px;
    text-align: center;
  }

  /* Header mini cart desktop: empty state */
  #cart.site-header__cart .header-cart__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    text-align: center;
  }

  #cart.site-header__cart .header-cart__empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    margin-bottom: 28px;
    border-radius: 50%;
    background: #fff;
    color: #b37a15;
    font-size: 34px;
    box-shadow: 0 18px 45px rgba(39, 49, 61, 0.05);
  }

  #cart.site-header__cart .header-cart__empty p {
    margin: 0;
    color: #1f2933;
    font-size: 18px;
    font-weight: 700;
  }

  #cart.site-header__cart .cart-qty-updated {
    animation: cartQtyPulse 0.28s ease;
  }

  #cart.site-header__cart .cart-price-updated {
    animation: cartPriceUpdate 0.45s ease;
  }
}

/* Главное меню под шапкой */
.mobile-bottom-nav {
  display: none;
}

.site-menu-sticky {
  position: relative;
  z-index: 1030;
  background: var(--site-header-background, var(--site-header-color, #263747));
  background-attachment: fixed;
  background-position: top center;
  background-size: 100% 620px;
}

.site-fixed-menu {
  display: none;
}

@media (min-width: 992px) {
  .site-fixed-menu {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 2050;
    display: block;
    padding: 10px 0;
    background: var(--site-header-background, var(--site-header-color, #263747));
    background-attachment: fixed;
    background-position: top center;
    background-size: 100% 620px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .site-fixed-menu.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-fixed-menu__inner {
    display: grid;
    grid-template-columns: minmax(120px, 170px) auto minmax(280px, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .site-fixed-menu .site-header__logo {
    margin: 0;
  }

  .site-fixed-menu .site-header__logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 150px;
    max-height: 52px;
    object-fit: contain;
  }

  .site-fixed-menu .site-header__logo h1 {
    margin: 0;
    font-size: 22px;
  }

  .site-fixed-menu .site-menu__category-wrap {
    margin: 0;
  }

  .site-fixed-menu .site-menu__category {
    background: rgba(0, 0, 0, 0.08);
  }

  .site-fixed-menu .site-header__search {
    min-width: 0;
  }

  .site-fixed-menu .site-header__actions {
    justify-content: flex-end;
  }

  .site-fixed-menu .site-header__cart {
    margin: 0;
    min-width: 150px;
  }

  .site-fixed-menu .site-header__cart .header-cart__button {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.08);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  }

  .site-fixed-menu .site-header__cart .header-cart__button:hover,
  .site-fixed-menu .site-header__cart .header-cart__button:focus {
    background: rgba(0, 0, 0, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.82);
  }

  .site-fixed-menu .site-header__cart .header-cart__button i {
    font-size: 18px;
    line-height: 1;
    color: #fff;
  }
}

#menu.site-menu {
  min-height: 48px;
  margin-bottom: 0;
  padding: 0;
  background: var(--site-header-background, var(--site-header-color, #263747)) !important;
  background-attachment: fixed !important;
  background-position: top center !important;
  background-size: 100% 620px !important;
  border: 0;
  border-radius: 0;
}

.site-menu__category-wrap {
  position: relative;
  align-items: center;
}

.site-menu__category {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: 0;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  cursor: default;
}

.site-menu__category:hover,
.site-menu__category:focus {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.82);
}

/* Отступ после кнопки категорий в русской версии */
html[dir="ltr"] .site-menu__category-wrap,
body[dir="ltr"] .site-menu__category-wrap {
  margin-right: 28px;
}

.site-menu-category-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 1110;
  display: none;
  min-width: 280px;
  max-width: min(920px, calc(100vw - 48px));
  padding: 10px 0;
  background: #f7f7fb;
  background-color: #f7f7fb;
  border: 1px solid #dce4eb;
  border-radius: 6px;
  box-shadow: 0 16px 36px rgba(17, 32, 46, 0.18);
}

.site-menu-category-panel::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 10px;
}

.site-menu__category-wrap:hover .site-menu-category-panel,
.site-menu__category-wrap:focus-within .site-menu-category-panel {
  display: block;
}

.site-menu-category-panel__list {
  min-width: 280px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-menu-category-panel__item {
  position: relative;
}

.site-menu-category-panel__link {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 18px;
  color: #22303d;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

.site-menu-category-panel__item.has-children > .site-menu-category-panel__link::after {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #8a98a8;
}

.site-menu-category-panel__item > .site-menu-category-panel__list {
  position: absolute;
  top: -11px;
  left: 100%;
  z-index: 1120;
  display: none;
  padding: 10px 0;
  background: #f7f7fb;
  background-color: #f7f7fb;
  border: 1px solid #dce4eb;
  border-radius: 6px;
  box-shadow: 0 16px 36px rgba(17, 32, 46, 0.18);
}

.site-menu-category-panel__item:hover > .site-menu-category-panel__list,
.site-menu-category-panel__item:focus-within > .site-menu-category-panel__list {
  display: block;
}

.site-menu-vertical-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 1130;
  display: none;
  min-width: 280px;
  max-width: min(900px, calc(100vw - 48px));
  padding: 10px 0;
  background: #f7f7fb;
  background-color: #f7f7fb;
  border: 1px solid #dce4eb;
  border-radius: 6px;
  box-shadow: 0 16px 36px rgba(17, 32, 46, 0.18);
}

.site-menu-vertical-panel::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 10px;
}

.site-menu__category-wrap:hover .site-menu-vertical-panel,
.site-menu__category-wrap:focus-within .site-menu-vertical-panel {
  display: block;
}

.site-menu-vertical-panel__list,
.site-menu-vertical-panel__quick-links,
.site-menu-vertical-panel__products {
  min-width: 280px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-menu-vertical-panel__item {
  position: relative;
}

.site-menu-vertical-panel__link {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 18px;
  color: #22303d;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

.site-menu-vertical-panel__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-menu-vertical-panel__icon img {
  max-width: 22px;
  max-height: 22px;
}

.site-menu-vertical-panel__item.has-children > .site-menu-vertical-panel__link::after {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #8a98a8;
}

.site-menu-vertical-panel__item > .site-menu-vertical-panel__list,
.site-menu-vertical-panel__mega {
  position: absolute;
  top: -11px;
  left: 100%;
  z-index: 1140;
  display: none;
  padding: 10px 0;
  background: #f7f7fb;
  background-color: #f7f7fb;
  border: 1px solid #dce4eb;
  border-radius: 6px;
  box-shadow: 0 16px 36px rgba(17, 32, 46, 0.18);
}

.site-menu-vertical-panel__item:hover > .site-menu-vertical-panel__mega,
.site-menu-vertical-panel__item:focus-within > .site-menu-vertical-panel__mega {
  display: flex;
}

.site-menu-vertical-panel__item:hover > .site-menu-vertical-panel__list,
.site-menu-vertical-panel__item:focus-within > .site-menu-vertical-panel__list {
  display: block;
}

.site-menu-vertical-panel__mega {
  min-width: 280px;
  max-width: min(900px, calc(100vw - 380px));
  gap: 0;
}

.site-menu-vertical-panel__mega.has-additional {
  min-width: 620px;
  gap: 20px;
}

.site-menu-vertical-panel__mega-main {
  min-width: 280px;
  flex: 0 0 auto;
}

.site-menu-vertical-panel__mega.has-additional .site-menu-vertical-panel__mega-main {
  flex: 1 1 auto;
}

.site-menu-vertical-panel__additional {
  width: 260px;
  flex: 0 0 260px;
  padding: 8px 18px 12px;
  border-left: 1px solid #e4ebf1;
}

.site-menu-vertical-panel__additional-title {
  margin-bottom: 10px;
  color: #172636;
  font-size: 15px;
  font-weight: 700;
}

.site-menu-vertical-panel__quick-links a,
.site-menu-vertical-panel__products a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  color: #22303d;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.site-menu-vertical-panel__products img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 42px;
}

.site-menu-vertical-panel__html {
  color: #22303d;
  font-size: 13px;
  line-height: 1.45;
}

.site-menu-horizontal-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 7px;
}

.site-menu-horizontal-icon img {
  max-width: 20px;
  max-height: 20px;
  object-fit: contain;
}

#menu.site-menu .site-menu-horizontal-mega {
  display: none;
  gap: 18px;
  min-width: 620px;
  max-width: min(900px, calc(100vw - 48px));
}

#menu.site-menu .dropdown:hover .site-menu-horizontal-mega,
#menu.site-menu .dropdown.show .site-menu-horizontal-mega {
  display: flex !important;
}

.site-menu-horizontal-additional {
  width: 260px;
  flex: 0 0 260px;
  padding: 10px 16px;
  border-left: 1px solid #e4ebf1;
}

.site-menu-horizontal-additional__title {
  margin-bottom: 8px;
  color: #172636;
  font-size: 15px;
  font-weight: 700;
}

.site-menu-horizontal-additional__products .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: normal;
}

.site-menu-horizontal-additional__products img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 42px;
}

.site-menu-horizontal-additional__html {
  color: #22303d;
  font-size: 13px;
  line-height: 1.45;
}

#menu.site-menu .navbar-collapse {
  min-width: 0;
}

#menu.site-menu .navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#menu.site-menu .navbar-nav > li > a {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #fff;
  border: 0;
  border-radius: 5px;
  background: var(--site-header-background, var(--site-header-color, #263747));
  background-attachment: fixed;
  background-position: top center;
  background-size: 100% 620px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: none;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

#menu.site-menu .navbar-nav > li > a:hover,
#menu.site-menu .navbar-nav > li.show > a {
  background: var(--site-header-background, var(--site-header-color, #263747));
  background-attachment: fixed;
  background-position: top center;
  background-size: 100% 620px;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.82);
}

#menu.site-menu .navbar-nav > li.site-menu-home > a {
  width: 44px;
  justify-content: center;
  padding: 0;
}

#menu.site-menu .navbar-nav > li.site-menu-home > a i {
  font-size: 15px;
}

#menu.site-menu .dropdown-menu {
  margin-top: 10px;
  min-width: 240px;
  background: #f7f7fb;
  background-color: #f7f7fb;
  border: 1px solid #dce4eb;
  border-radius: 6px;
  box-shadow: 0 16px 36px rgba(17, 32, 46, 0.16);
}

#menu.site-menu .dropdown-menu .dropdown-item {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 9px 18px;
  color: #22303d;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  background: transparent;
  background-color: transparent;
}

#menu.site-menu .site-menu-horizontal-list,
#menu.site-menu .site-menu-horizontal-additional ul {
  margin: 0;
  padding: 0;
  background: #f7f7fb;
  background-color: #f7f7fb;
}

.site-menu-category-panel__link,
.site-menu-vertical-panel__link,
#menu.site-menu .site-menu-horizontal-list > li > .dropdown-item,
#menu.site-menu .site-menu-horizontal-additional li > .dropdown-item {
  background: #f7f7fb !important;
  background-color: #f7f7fb !important;
}

.site-menu-category-panel__item:nth-child(even),
.site-menu-vertical-panel__item:nth-child(even),
#menu.site-menu .site-menu-horizontal-list > li.is-even,
#menu.site-menu .site-menu-horizontal-additional li:nth-child(even) {
  background: #dfe3ec !important;
  background-color: #dfe3ec !important;
}

.site-menu-category-panel__item:nth-child(even) > .site-menu-category-panel__link,
.site-menu-vertical-panel__item:nth-child(even) > .site-menu-vertical-panel__link,
#menu.site-menu .site-menu-horizontal-list > li.is-even > .dropdown-item,
#menu.site-menu .site-menu-horizontal-additional li:nth-child(even) > .dropdown-item {
  background: #dfe3ec !important;
  background-color: #dfe3ec !important;
}

.site-menu-category-panel__link:hover,
.site-menu-category-panel__item:hover > .site-menu-category-panel__link,
.site-menu-vertical-panel__link:hover,
.site-menu-vertical-panel__item:hover > .site-menu-vertical-panel__link,
#menu.site-menu .dropdown-menu .dropdown-item:hover,
#menu.site-menu .dropdown-menu .dropdown-item:focus {
  background: #eef3f7 !important;
  background-color: #eef3f7 !important;
  color: #172636;
}

#menu.site-menu .navbar-nav > .dropdown > .dropdown-menu::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 10px;
}

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

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

#category {
  float: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 44px;
  color: #fff;
  text-shadow: none;
}

#menu.site-menu .navbar-toggler {
  margin-left: auto;
  border-color: var(--site-primary-color, #33495d);
  color: #fff;
}

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

@media (min-width: 960px) {
  #menu.site-menu .dropdown:hover .dropdown-menu {
    display: block;
  }

  #menu.site-menu .dropdown-inner {
    flex-direction: row;
  }
}
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 {
  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 {
  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;
  color: var(--site-primary-color, #2e4559);
}
.breadcrumb > li.breadcrumb-item {
  text-shadow: 0 1px 0 #FFF;
  padding: 0 20px;
  position: relative;
  white-space: nowrap;
}
.breadcrumb > li.breadcrumb-item > a {
  color: #000;
  text-decoration: none;
}

.breadcrumb > li.breadcrumb-item > a:hover,
.breadcrumb > li.breadcrumb-item > a:focus {
  color: #000;
}
.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 {
  position: relative;
  height: 100%;
  border: 0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  container-type: inline-size;
  --product-thumb-title-lines: 2;
  --product-thumb-title-line-height: 1.22;
}
/* Линии выбора изображения в карточке товара */
.product-thumb .product-thumb-image-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px 0;
}

.product-thumb .product-thumb-image-nav button {
  flex: 1 1 auto;
  height: 2px;
  padding: 0;
  border: 0;
  background: #e4e8ee;
  cursor: pointer;
}

.product-thumb .product-thumb-image-nav button.active,
.product-thumb .product-thumb-image-nav button:hover {
  background: #253447;
}
/* Невидимые зоны наведения по картинке товара */
.product-thumb .product-thumb-image-link {
  position: relative;
  display: block;
}

.product-thumb .product-thumb-hover-zones {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
}

.product-thumb .product-thumb-hover-zone {
  flex: 1 1 0;
}
/* Форма оборачивает всю карточку, чтобы верхние кнопки тоже работали через formaction */
.product-thumb > form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ???????? ??????: ??????????? ?????? ? ???? ??????? ??????. */
.product-thumb .image {
  position: relative;
  text-align: center;
}

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

/* Описание карточки */
.product-thumb .description {
  flex: 1 1 auto;
  padding: 15px;
  margin-bottom: 45px;
}

.product-thumb .description h4 {
  font-weight: bold;
  min-height: calc(var(--product-thumb-title-lines) * 1em * var(--product-thumb-title-line-height));
  margin-bottom: 8px;
  line-height: var(--product-thumb-title-line-height);
}

.product-thumb .description h4,
.product-thumb .description h4 a {
  color: #000;
}

.product-thumb .description h4 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--product-thumb-title-lines);
  line-clamp: var(--product-thumb-title-lines);
  overflow-wrap: anywhere;
}

.product-thumb .description h4 a:hover,
.product-thumb .description h4 a:focus {
  color: #000;
}
/* Код товара и бренд в карточке товара */
.product-thumb .product-thumb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 8px;
  color: #97a1b5;
  font-size: 12px;
  line-height: 1.35;
}

.product-thumb .product-thumb-meta div {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.product-thumb .product-thumb-meta strong {
  color: #111;
  font-weight: 600;
}
/* Статус наличия в карточке товара */
.product-thumb .product-thumb-stock {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.product-thumb .product-thumb-stock span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #14c85b;
  flex: 0 0 auto;
}
/* Красная точка, если товара нет в наличии */
.product-thumb .product-thumb-stock.product-thumb-stock-out span {
  background: #e53935;
}
/* Цена в карточке товара: LTR */
html[dir="ltr"] .product-thumb .price,
body[dir="ltr"] .product-thumb .price {
  text-align: right;
}
/* Нижняя панель карточки товара: быстрый просмотр, количество, купить */
.product-thumb .product-thumb-buy-row {
  margin-top: auto;
  padding: 16px 14px 18px;
  display: grid;
  grid-template-columns: 46px 78px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  background: transparent;
  border-top: 0;
  min-width: 0;
}

/* Кнопка быстрого просмотра */
.product-thumb .product-thumb-quickview {
  width: 46px;
  height: 46px;
  border: 1px solid #dfe5ec;
  border-radius: 5px;
  background: #fff;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
}

.product-thumb .product-thumb-quickview:hover {
  color: #229ac8;
  background: #fff;
  text-decoration: none;
}

/* Количество товара в карточке: число слева, кнопки + и - справа.
   Высота равна кнопкам "Быстрый просмотр" и "Купить", чтобы нижняя панель была ровной. */
.product-thumb .product-thumb-quantity {
  width: 78px;
  min-width: 78px;
  height: 46px;
  display: grid;
  grid-template-columns: 48px 30px;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid #dfe5ec;
  border-radius: 9px;
  background: #fff;
  box-sizing: border-box;
}

/* Поле с числом занимает всю левую часть счётчика */
.product-thumb .product-thumb-qty-input {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 48px;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-right: 1px solid #dfe5ec;
  border-radius: 0;
  background: #fff;
  color: #111;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 44px;
  box-shadow: none;
  box-sizing: border-box;
  appearance: textfield;
}

/* Кнопки + и - сделаны светлыми, без синего цвета.
   Обе кнопки получают одинаковую высоту автоматически через grid-template-rows: 1fr 1fr. */
.product-thumb .product-thumb-quantity button {
  width: 30px;
  height: 100%;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #f7f8fa;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

/* Плюс находится справа сверху */
.product-thumb .product-thumb-qty-plus {
  grid-column: 2;
  grid-row: 1;
  border-bottom: 1px solid #dfe5ec !important;
}

/* Минус находится справа снизу */
.product-thumb .product-thumb-qty-minus {
  grid-column: 2;
  grid-row: 2;
}

.product-thumb .product-thumb-quantity button:hover {
  background: #eef1f4;
  color: #111;
}

.product-thumb .product-thumb-quantity button:active {
  background: #e3e7eb;
}

.product-thumb .product-thumb-qty-input::-webkit-outer-spin-button,
.product-thumb .product-thumb-qty-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

/* Кнопка купить в карточке */
.product-thumb .product-thumb-cart {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: var(--site-button-gradient);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  box-shadow: none;
  white-space: nowrap;
}

.product-thumb .product-thumb-cart i {
  font-size: 17px;
  line-height: 1;
  flex: 0 0 auto;
  color: #fff;
}

.product-thumb .product-thumb-cart span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-thumb .product-thumb-cart:hover {
  background: linear-gradient(180deg, var(--site-secondary-color), var(--site-primary-color));
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.product-thumb .product-thumb-cart.is-in-cart,
#product-info #button-cart.is-in-cart,
.product-quickview-cart.is-in-cart {
  position: relative;
}

.product-thumb .product-thumb-cart.is-in-cart .is-in-cart-icon,
#product-info #button-cart.is-in-cart .is-in-cart-icon,
.product-quickview-cart.is-in-cart .is-in-cart-icon {
  color: #16b957 !important;
}

.product-cart-action-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #16b957;
  color: #fff;
  font-size: 8px;
  line-height: 1;
  flex: 0 0 auto;
}
/* Кнопка "Купить", когда товара нет в наличии:
   кнопка остаётся на месте, но выглядит неактивной и не нажимается. */
.product-thumb .product-thumb-cart:disabled,
.product-thumb .product-thumb-cart.is-disabled {
  background: #dfe4ea !important;
  color: #8b95a1 !important;
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none !important;
}

.product-thumb .product-thumb-cart:disabled i,
.product-thumb .product-thumb-cart.is-disabled i {
  color: #8b95a1 !important;
}
/* Страница товара: кнопка "Купить", когда товара нет в наличии */
#product-info #button-cart:disabled,
#product-info #button-cart.is-disabled {
  background: #dfe4ea !important;
  border-color: #dfe4ea !important;
  color: #8b95a1 !important;
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none !important;
}

/* Основные кнопки витрины используют цветовую схему темы */
.btn-primary,
#product-info #button-cart {
  background: var(--site-button-gradient);
  background-color: var(--site-primary-color, #2e4559);
  border-color: var(--site-primary-color, #2e4559);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
#product-info #button-cart:hover,
#product-info #button-cart:focus {
  background: linear-gradient(180deg, var(--site-secondary-color), var(--site-primary-color));
  background-color: var(--site-secondary-color, #36546d);
  border-color: var(--site-secondary-color, #36546d);
  color: #fff;
}

/* Узкие карточки: главная страница с 4 товарами в ряд.
   Счётчик оставляем красивым, а место экономим на отступах и кнопке покупки. */

/* Очень узкие карточки: если места совсем мало, прячем текст покупки и оставляем понятную иконку корзины. */

/* Верхние иконки: понравившиеся и сравнение */
.product-thumb .product-thumb-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-thumb .product-thumb-actions button {
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 18px;
  line-height: 1;
  box-shadow: none;
}

.product-thumb .product-thumb-actions button:hover {
  color: #229ac8;
  background: transparent;
}

.product-thumb .product-thumb-actions button.is-wishlist,
.product-thumb .product-thumb-actions button.is-wishlist:hover {
  color: #d93636;
}

.product-thumb .product-thumb-actions button.is-compared,
.product-thumb .product-thumb-actions button.is-compared:hover {
  color: #16b957;
}

.product-thumb .product-thumb-actions button[data-product-action="compare"] {
  position: relative;
}

.product-thumb .product-thumb-actions .product-thumb-action-check {
  position: absolute;
  right: -7px;
  bottom: -7px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #16b957;
  color: #fff;
  font-size: 8px;
  line-height: 1;
}

/* Вид списком: красивая горизонтальная карточка товара */
@media (min-width: 960px) {
  .product-list .product-thumb {
    height: auto;
    margin-bottom: 18px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(20, 30, 45, 0.06);
  }

  .product-list .product-thumb > form {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 230px;
  }

  /* Левая часть: изображение товара */
  .product-list .product-thumb .image {
    padding: 24px 26px;
    border-right: 1px solid #edf0f5;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .product-list .product-thumb .image img {
    max-height: 160px;
    object-fit: contain;
  }

  .product-list .product-thumb .product-thumb-image-nav {
    padding: 18px 0 0;
  }

  /* Правая часть: описание и покупка */
  .product-list .product-thumb .content {
    min-width: 0;
    padding: 24px 26px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
    align-items: center;
  }

  .product-list .product-thumb .description {
    padding: 0;
    margin: 0;
  }

  .product-list .product-thumb .description h4 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
  }

  .product-list .product-thumb .product-thumb-stock {
    margin-bottom: 14px;
  }

  .product-list .product-thumb .price {
    margin-top: 10px;
    text-align: left;
  }

  .product-list .product-thumb .price-new {
    font-size: 24px;
  }

  /* Правая колонка: быстрый просмотр, количество, купить */
  .product-list .product-thumb .product-thumb-buy-row {
    width: 100%;
    padding: 0;
    grid-template-columns: 46px 78px minmax(120px, 1fr);
    gap: 10px;
    align-self: center;
  }

  .product-list .product-thumb .product-thumb-actions {
    top: 18px;
    right: 18px;
  }
}
.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;
}
/* Список товаров */
.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-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;
}
/* Пользовательские правки темы */
#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;
}


:root {
  --icom-primary: var(--site-primary-color, #229ac8);
  --icom-primary-dark: var(--site-secondary-color, #1f90bb);
  --icom-border: #d9e1e7;
  --icom-radius: 6px;
  --icom-control-height: 42px;
}

html[dir="ltr"] body,
body[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .dropdown-menu,
body[dir="ltr"] .dropdown-menu {
  text-align: left;
}

/* Направление меню для русского языка */
html[dir="ltr"] #menu,
html[dir="ltr"] #menu .navbar-nav,
html[dir="ltr"] #menu .dropdown-menu,
body[dir="ltr"] #menu,
body[dir="ltr"] #menu .navbar-nav,
body[dir="ltr"] #menu .dropdown-menu {
  direction: ltr;
  text-align: left;
}
/* Анимация изменения цены в карточке товара */
.product-thumb .price-new {
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #111;
  transition: color 0.2s ease, transform 0.2s ease;
}

.product-thumb .price-new.is-price-changing {
  color: #000;
  transform: translateY(-2px) scale(1.04);
}
/* Панель категории: сортировка, лимит, вид, сравнение */
#content > .row:has(#button-grid):has(#input-sort),
#content > .row:has(#button-list):has(#input-sort) {
  align-items: center !important;
  margin-bottom: 18px !important;
}

/* Он меняет количество по + / - и пересчитывает цену на странице. */
.product-quantity-group .quantity-minus,
.product-quantity-group .quantity-plus {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  font-size: 20px;
  font-weight: 600;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.product-quantity-group #input-quantity {
  text-align: center !important;
}

/* Страница товара: количество и кнопка покупки для русского LTR */
html[dir="ltr"] #product-info #form-product .product-quantity-group,
body[dir="ltr"] #product-info #form-product .product-quantity-group {
  direction: ltr !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
}

html[dir="ltr"] #product-info #form-product .product-quantity-group > .input-group-text,
body[dir="ltr"] #product-info #form-product .product-quantity-group > .input-group-text {
  order: 1 !important;
  height: 42px !important;
  margin: 0 !important;
  border-right: 0 !important;
  border-radius: 6px 0 0 6px !important;
}

html[dir="ltr"] #product-info #form-product .quantity-minus,
body[dir="ltr"] #product-info #form-product .quantity-minus {
  order: 2 !important;
  border-radius: 0 !important;
}

html[dir="ltr"] #product-info #form-product #input-quantity,
body[dir="ltr"] #product-info #form-product #input-quantity {
  order: 3 !important;
  height: 42px !important;
  margin: 0 !important;
  text-align: center !important;
  border-radius: 0 !important;
}

html[dir="ltr"] #product-info #form-product .quantity-plus,
body[dir="ltr"] #product-info #form-product .quantity-plus {
  order: 4 !important;
  border-radius: 0 !important;
}

html[dir="ltr"] #product-info #form-product #button-cart,
body[dir="ltr"] #product-info #form-product #button-cart {
  order: 5 !important;
  height: 42px !important;
  margin: 0 !important;
  border-radius: 0 6px 6px 0 !important;
}

/* Страница товара: базовая сетка галереи и правого блока */
#product-info .product-page-top {
  align-items: stretch;
}

#product-info .product-gallery-column,
#product-info .product-summary-column {
  min-width: 0;
}

#product-info .product-summary-panel {
  height: 100%;
  background: #fff;
  border: 1px solid var(--icom-border, #dee2e6);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(35, 44, 58, 0.05);
}

#product-info .product-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--icom-border, #dee2e6);
}

#product-info .product-title {
  margin: 0;
  color: #263242;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
}

#product-info .product-action-form {
  flex: 0 0 auto;
}

.product-quickview .product-action-buttons,
#product-info .product-action-buttons {
  display: inline-flex;
  gap: 8px;
}

.product-quickview .product-action-buttons .btn,
#product-info .product-action-buttons .btn {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-color: var(--icom-border, #dee2e6);
  border-radius: 6px !important;
  background: #fff;
  color: #263242;
  font-size: 13px;
  white-space: nowrap;
}

.product-quickview .product-action-buttons .btn:hover,
#product-info .product-action-buttons .btn:hover {
  background: #f3f6f9;
  color: #229ac8;
}

#product-info .product-meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 0 0 22px;
  color: #1f2933;
  font-size: 14px;
}

#product-info .product-meta-list li {
  min-width: 0;
}

#product-info .product-meta-list li > span:first-child:not(.product-stock-dot) {
  display: block;
  margin-bottom: 3px;
  color: #8a94a6;
  font-size: 12px;
}

#product-info .product-stock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: #1f2933;
}

#product-info .product-stock-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #1dbf73;
}

#product-info .product-stock-out .product-stock-dot {
  background: #dc3545;
}

#product-info .product-price-list {
  margin: 0 0 22px;
  padding-top: 2px;
}

#product-info .product-price-list h2 {
  margin: 0;
}

#product-info .product-price-list .price-new {
  color: #111;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
}

#product-info .product-price-list .price-old {
  display: inline-block;
  margin-bottom: 6px;
}

#product-info .product-summary-panel #product {
  padding-top: 4px;
}

#product-info .product-summary-panel .product-quantity-group {
  max-width: 640px;
}

#content .input-group:has(#input-sort),
#content .input-group:has(#input-limit) {
  width: auto !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
}

#content .input-group:has(#input-sort) .input-group-text,
#content .input-group:has(#input-limit) .input-group-text {
  height: var(--icom-control-height) !important;
  margin: 0 !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid var(--icom-border) !important;
  background: #f8f9fa !important;
  color: #444 !important;
  font-size: 14px !important;
  white-space: nowrap !important;
}

#content .input-group:has(#input-sort) select.form-select,
#content .input-group:has(#input-limit) select.form-select,
#input-sort,
#input-limit {
  height: var(--icom-control-height) !important;
  margin: 0 !important;
  border: 1px solid var(--icom-border) !important;
  box-shadow: none !important;
  background-color: #fff !important;
  font-size: 14px !important;
}

#input-sort {
  width: 190px !important;
  min-width: 190px !important;
  max-width: 230px !important;
}

#input-limit {
  width: 90px !important;
  min-width: 90px !important;
  max-width: 110px !important;
}

#button-grid,
#button-list {
  width: var(--icom-control-height) !important;
  min-width: var(--icom-control-height) !important;
  height: var(--icom-control-height) !important;
  padding: 0 !important;
  border-radius: var(--icom-radius) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

#button-grid.btn-primary,
#button-list.btn-primary {
  background-color: var(--icom-primary);
  border-color: var(--icom-primary);
  color: #fff;
}

/* Кнопка сравнения товаров в панели категории */
#compare-total {
  height: var(--icom-control-height) !important;
  min-width: 0;
  width: auto;
  padding: 0 18px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--icom-radius) !important;
  white-space: nowrap;
}

html[dir="ltr"] #content .input-group:has(#input-sort),
html[dir="ltr"] #content .input-group:has(#input-limit),
body[dir="ltr"] #content .input-group:has(#input-sort),
body[dir="ltr"] #content .input-group:has(#input-limit) {
  direction: ltr !important;
  flex-direction: row !important;
}

html[dir="ltr"] #content .input-group:has(#input-sort) .input-group-text,
html[dir="ltr"] #content .input-group:has(#input-limit) .input-group-text,
body[dir="ltr"] #content .input-group:has(#input-sort) .input-group-text,
body[dir="ltr"] #content .input-group:has(#input-limit) .input-group-text {
  border-right: 0 !important;
  border-radius: var(--icom-radius) 0 0 var(--icom-radius) !important;
}

html[dir="ltr"] #content .input-group:has(#input-sort) select.form-select,
html[dir="ltr"] #content .input-group:has(#input-limit) select.form-select,
body[dir="ltr"] #content .input-group:has(#input-sort) select.form-select,
body[dir="ltr"] #content .input-group:has(#input-limit) select.form-select {
  direction: ltr !important;
  text-align: left !important;
  border-radius: 0 var(--icom-radius) var(--icom-radius) 0 !important;
}

/* Выравнивание кнопок вида с элементами панели категории */
#content > .row:has(#button-grid):has(#input-sort) .btn-group:has(#button-grid),
#content > .row:has(#button-grid):has(#input-sort) .btn-group:has(#button-list),
#content > .row:has(#button-list):has(#input-sort) .btn-group:has(#button-grid),
#content > .row:has(#button-list):has(#input-sort) .btn-group:has(#button-list) {
  position: relative !important;
  top: -8px !important;
}

html[dir="ltr"] .breadcrumb,
body[dir="ltr"] .breadcrumb {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .product-thumb,
body[dir="ltr"] .product-thumb {
  text-align: left;
}

html[dir="ltr"] label,
html[dir="ltr"] .form-label,
html[dir="ltr"] .col-form-label,
body[dir="ltr"] label,
body[dir="ltr"] .form-label,
body[dir="ltr"] .col-form-label {
  text-align: left;
}

input[type="email"],
input[type="tel"],
input[type="number"],
.sku,
.model,
.product-model,
.product-sku {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] footer,
body[dir="ltr"] footer {
  direction: ltr;
  text-align: left;
}
/* =========================================================
   Категория: количество карточек товара в ряд
   Управляется из админки: 1, 2, 3 или 4 товара в ряд.
   Перебиваем Bootstrap row-cols и JS-переключатель сетки.
   ========================================================= */
@media (min-width: 992px) {
  #product-list.category-product-grid-1:not(.product-list) > .col {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #product-list.category-product-grid-2:not(.product-list) > .col {
    flex: 0 0 auto !important;
    width: 50% !important;
    max-width: 50% !important;
  }

  #product-list.category-product-grid-3:not(.product-list) > .col {
    flex: 0 0 auto !important;
    width: 33.333333% !important;
    max-width: 33.333333% !important;
  }

  #product-list.category-product-grid-4:not(.product-list) > .col {
    flex: 0 0 auto !important;
    width: 25% !important;
    max-width: 25% !important;
  }
}

/* Мобильная адаптация для телефонов: общие правки каталога и карточек товара. */
/* =========================================================
   Мобильная панель сортировки и лимита товаров
   На реальных телефонах длинные подписи могут не помещаться в одну строку,
   поэтому на мобильной версии делаем сортировку и лимит отдельными строками.
   ========================================================= */

/* Страница товара: компоновка правого блока для русского LTR */
/* Лайтбокс товара без Fancybox: одна активная картинка без внутренних переходов галереи. */
html[dir="ltr"] #product-info .product-summary-panel,
body[dir="ltr"] #product-info .product-summary-panel {
  padding: 24px 28px;
}

/* Название товара в правом блоке */
html[dir="ltr"] #product-info .product-title,
body[dir="ltr"] #product-info .product-title {
  margin: 0 0 18px;
  color: #172333;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
}

/* Верхняя строка: кнопки закладок/сравнения слева, производитель справа */
html[dir="ltr"] #product-info .product-summary-head,
body[dir="ltr"] #product-info .product-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--icom-border, #dee2e6);
}

/* Форма с кнопками "В закладки" и "В сравнение" */
html[dir="ltr"] #product-info .product-action-form,
body[dir="ltr"] #product-info .product-action-form {
  order: 1;
}

/* Группа кнопок закладок и сравнения */
html[dir="ltr"] #product-info .product-action-buttons,
body[dir="ltr"] #product-info .product-action-buttons,
html[dir="ltr"] .product-quickview .product-action-buttons,
body[dir="ltr"] .product-quickview .product-action-buttons {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 10px;
}

/* Внешний вид кнопок закладок и сравнения */
html[dir="ltr"] #product-info .product-action-buttons .btn,
body[dir="ltr"] #product-info .product-action-buttons .btn,
html[dir="ltr"] .product-quickview .product-action-buttons .btn,
body[dir="ltr"] .product-quickview .product-action-buttons .btn {
  min-width: 128px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--icom-border, #dee2e6);
  border-radius: 6px !important;
  background: #fff;
  color: #172333;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

/* Блок производителя в правой части верхней строки */
html[dir="ltr"] #product-info .product-manufacturer-box,
body[dir="ltr"] #product-info .product-manufacturer-box {
  order: 2;
  margin-left: auto;
  text-align: right;
  line-height: 1.25;
}

/* Название производителя */
html[dir="ltr"] #product-info .product-manufacturer-box a,
body[dir="ltr"] #product-info .product-manufacturer-box a {
  display: block;
  color: #172333;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* Подпись "Производитель" под названием бренда */
html[dir="ltr"] #product-info .product-manufacturer-box span,
body[dir="ltr"] #product-info .product-manufacturer-box span {
  display: block;
  margin-top: 4px;
  color: #a7b0c4;
  font-size: 12px;
}

/* Строка с наличием, кодом товара и дополнительными кодами */
html[dir="ltr"] #product-info .product-meta-list,
body[dir="ltr"] #product-info .product-meta-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 0 0 10px;
  color: #172333;
  font-size: 14px;
}

/* Каждый пункт строки метаданных товара */
html[dir="ltr"] #product-info .product-meta-list li,
body[dir="ltr"] #product-info .product-meta-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

/* Подписи вроде "Код товара" внутри строки метаданных */
html[dir="ltr"] #product-info .product-meta-list li > span:first-child:not(.product-stock-dot),
body[dir="ltr"] #product-info .product-meta-list li > span:first-child:not(.product-stock-dot) {
  display: inline;
  margin: 0;
  color: #9aa4ba;
  font-size: 13px;
}

/* Наличие товара: точка и текст как в карточках товара */
html[dir="ltr"] #product-info .product-stock,
body[dir="ltr"] #product-info .product-stock {
  font-weight: 700;
}

/* Список цены, налогов, баллов и скидок */
html[dir="ltr"] #product-info .product-price-list,
body[dir="ltr"] #product-info .product-price-list {
  margin: 0 0 18px;
}

/* Основная цена крупным шрифтом */
html[dir="ltr"] #product-info .product-price-list .price-new,
body[dir="ltr"] #product-info .product-price-list .price-new {
  font-size: 34px;
  font-weight: 800;
}

/* Строка покупки: купить, плюс, количество, минус */
html[dir="ltr"] #product-info #form-product .product-quantity-group,
body[dir="ltr"] #product-info #form-product .product-quantity-group {
  width: auto !important;
  max-width: none !important;
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  direction: ltr !important;
}

/* Скрываем подпись "Кол-во", чтобы строка совпадала с примером */
html[dir="ltr"] #product-info #form-product .product-quantity-group > .input-group-text,
body[dir="ltr"] #product-info #form-product .product-quantity-group > .input-group-text {
  display: none !important;
}

/* Кнопка "Купить" в строке покупки */
html[dir="ltr"] #product-info #form-product #button-cart,
body[dir="ltr"] #product-info #form-product #button-cart {
  order: 1 !important;
  width: 190px !important;
  min-width: 190px !important;
  height: 46px !important;
  margin: 0 20px 0 0 !important;
  padding: 0 18px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

/* Кнопка плюс рядом с количеством */
html[dir="ltr"] #product-info #form-product .quantity-plus,
body[dir="ltr"] #product-info #form-product .quantity-plus {
  order: 2 !important;
  width: 46px !important;
  min-width: 46px !important;
  height: 46px !important;
  border-radius: 6px 0 0 6px !important;
}

/* Поле количества */
html[dir="ltr"] #product-info #form-product #input-quantity,
body[dir="ltr"] #product-info #form-product #input-quantity {
  order: 3 !important;
  width: 70px !important;
  max-width: 70px !important;
  height: 46px !important;
  border-radius: 0 !important;
  text-align: center !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

/* Кнопка минус рядом с количеством */
html[dir="ltr"] #product-info #form-product .quantity-minus,
body[dir="ltr"] #product-info #form-product .quantity-minus {
  order: 4 !important;
  width: 46px !important;
  min-width: 46px !important;
  height: 46px !important;
  border-radius: 0 6px 6px 0 !important;
}

/* Мобильная версия правого блока товара */

/* Страница товара: соединяем галерею и правый блок в один общий блок для русского LTR */
html[dir="ltr"] #product-info .product-page-top,
body[dir="ltr"] #product-info .product-page-top {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  gap: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background: #fff;
  border: 1px solid var(--icom-border, #dee2e6);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(35, 44, 58, 0.05);
  overflow: hidden;
}

/* Убираем внутренние отступы колонок Bootstrap, чтобы две части соприкасались */
html[dir="ltr"] #product-info .product-page-top > .product-gallery-column,
html[dir="ltr"] #product-info .product-page-top > .product-summary-column,
body[dir="ltr"] #product-info .product-page-top > .product-gallery-column,
body[dir="ltr"] #product-info .product-page-top > .product-summary-column {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Левая часть общего блока: галерея товара */
html[dir="ltr"] #product-info .product-page-top > .product-gallery-column,
body[dir="ltr"] #product-info .product-page-top > .product-gallery-column {
  flex: 0 0 50% !important;
  max-width: 50% !important;
  align-self: flex-start !important;
  border-right: 1px solid var(--icom-border, #dee2e6);
}

/* Правая часть общего блока: информация и покупка */
html[dir="ltr"] #product-info .product-page-top > .product-summary-column,
body[dir="ltr"] #product-info .product-page-top > .product-summary-column {
  flex: 0 0 50% !important;
  max-width: 50% !important;
  display: flex !important;
}

/* Внутренний отступ галереи */
html[dir="ltr"] #product-info .product-gallery-column .image,
body[dir="ltr"] #product-info .product-gallery-column .image {
  height: auto !important;
  padding: 24px;
}

/* Страница товара: галерея не растягивается вниз из-за длинного блока опций справа. */
html[dir="ltr"] #product-info .product-gallery-column .product-gallery,
body[dir="ltr"] #product-info .product-gallery-column .product-gallery {
  align-self: flex-start !important;
  height: auto !important;
}

/* Страница товара: вертикальная галерея слева и главная картинка по центру */
html[dir="ltr"] #product-info .product-gallery,
body[dir="ltr"] #product-info .product-gallery {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  min-height: 560px;
}

html[dir="ltr"] #product-info .product-gallery-thumbs-panel,
body[dir="ltr"] #product-info .product-gallery-thumbs-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--icom-border, #dee2e6);
}

html[dir="ltr"] #product-info .product-gallery-thumbs,
body[dir="ltr"] #product-info .product-gallery-thumbs {
  flex: 1 1 auto;
  max-height: 448px;
  overflow: hidden;
}

html[dir="ltr"] #product-info .product-gallery-thumb,
body[dir="ltr"] #product-info .product-gallery-thumb {
  width: 100%;
  height: 112px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--icom-border, #dee2e6);
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

html[dir="ltr"] #product-info .product-gallery-thumb.swiper-slide-thumb-active,
body[dir="ltr"] #product-info .product-gallery-thumb.swiper-slide-thumb-active {
  background: #f7f7fb;
  box-shadow: inset 0 0 0 1px #d9e1e7;
}

html[dir="ltr"] #product-info .product-gallery-thumb img,
body[dir="ltr"] #product-info .product-gallery-thumb img {
  max-width: 100%;
  max-height: 86px;
  object-fit: contain;
}

html[dir="ltr"] #product-info .product-gallery-thumb-nav,
body[dir="ltr"] #product-info .product-gallery-thumb-nav {
  flex: 0 0 72px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--icom-border, #dee2e6);
}

html[dir="ltr"] #product-info .product-gallery-nav-button,
body[dir="ltr"] #product-info .product-gallery-nav-button {
  height: 72px;
  border: 0;
  border-right: 1px solid var(--icom-border, #dee2e6);
  background: #fff;
  color: #172333;
  font-size: 18px;
}

html[dir="ltr"] #product-info .product-gallery-nav-button:last-child,
body[dir="ltr"] #product-info .product-gallery-nav-button:last-child {
  border-right: 0;
}

html[dir="ltr"] #product-info .product-gallery-main,
body[dir="ltr"] #product-info .product-gallery-main {
  width: 100%;
  min-height: 512px;
  padding: 28px;
  background: #fff;
  border: 0;
  cursor: zoom-in;
  overflow: hidden;
}

html[dir="ltr"] #product-info .product-gallery-main .swiper-wrapper,
body[dir="ltr"] #product-info .product-gallery-main .swiper-wrapper {
  align-items: center;
}

html[dir="ltr"] #product-info .product-gallery-main .swiper-slide,
body[dir="ltr"] #product-info .product-gallery-main .swiper-slide {
  min-height: 456px;
  display: flex;
  align-items: center;
  justify-content: center;
}

html[dir="ltr"] #product-info .product-gallery-main-link,
body[dir="ltr"] #product-info .product-gallery-main-link {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

html[dir="ltr"] #product-info .product-gallery-main img,
body[dir="ltr"] #product-info .product-gallery-main img {
  max-width: 100%;
  max-height: 460px;
  object-fit: contain;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

html[dir="ltr"] #product-info .product-gallery-main img.is-changing,
body[dir="ltr"] #product-info .product-gallery-main img.is-changing {
  animation: productGallerySlideIn 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes productGallerySlideIn {
  from {
    opacity: 0;
    transform: translateX(-46px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Мобильные карточки: компактные боковые отступы в узкой сетке */

.fancybox-container {
  z-index: 1080;
}

.fancybox-bg {
  background: #000;
}

.fancybox-is-open .fancybox-bg {
  opacity: 0.78;
}

/* Увеличенная галерея товара: одна ширина для большой картинки и нижних миниатюр */
.fancybox-container {
  --product-lightbox-width: min(700px, calc(100vw - 180px));
}

.fancybox-show-thumbs .fancybox-inner {
  right: 0 !important;
}

.fancybox-show-thumbs .fancybox-stage {
  right: 0 !important;
  bottom: 118px !important;
}

/* Лайтбокс товара: место под собственную ленту миниатюр без RTL-сбоя индексов */
.product-fancybox-open .fancybox-stage {
  right: 0 !important;
  bottom: 118px !important;
}

.fancybox-slide--image {
  padding: 64px 80px 34px !important;
  overflow: hidden;
}

.fancybox-slide--image .fancybox-content {
  background: transparent !important;
  overflow: visible !important;
}

.fancybox-image {
  background: transparent !important;
}

.fancybox-can-zoomIn .fancybox-content {
  cursor: zoom-in;
}

.fancybox-can-zoomOut .fancybox-content {
  cursor: zoom-out;
}

.fancybox-close {
  top: 38px !important;
  right: 44px !important;
  width: 48px !important;
  height: 48px !important;
  color: #fff !important;
  background: transparent !important;
}

.fancybox-close svg {
  width: 30px;
  height: 30px;
}

.fancybox-toolbar {
  top: 34px !important;
  right: 42px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.fancybox-button--close,
.fancybox-close-small {
  width: 52px !important;
  height: 52px !important;
  padding: 10px !important;
  color: #fff !important;
  background: rgba(0, 0, 0, 0.18) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.fancybox-button--close svg,
.fancybox-close-small svg {
  width: 32px !important;
  height: 32px !important;
}

.fancybox-navigation .fancybox-button {
  width: 44px !important;
  height: 56px !important;
  padding: 0 !important;
  background: rgba(0, 0, 0, 0.28) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.fancybox-navigation .fancybox-button--arrow_left {
  left: calc(50% - 470px) !important;
}

.fancybox-navigation .fancybox-button--arrow_right {
  right: calc(50% - 470px) !important;
}

.fancybox-thumbs {
  background: transparent !important;
  /* Лайтбокс: миниатюры держим слева направо, чтобы в RTL не сбивались индексы Fancybox. */
  direction: ltr !important;
}

.fancybox-show-thumbs .fancybox-thumbs {
  left: 50%;
  right: auto;
  bottom: 24px;
  top: auto;
  width: var(--product-lightbox-width);
  height: 86px;
  transform: translateX(-50%);
  padding: 0;
}

.fancybox-thumbs__list {
  display: flex;
  gap: 6px;
  justify-content: center;
  direction: ltr !important;
}

.fancybox-thumbs__list a {
  width: 116px !important;
  height: 72px !important;
  margin: 0 !important;
  border: 2px solid transparent;
  border-radius: 4px;
  background-color: #050505;
  background-size: contain;
}

.fancybox-thumbs__list a::before {
  border: 0 !important;
}

.fancybox-thumbs__list a.fancybox-thumbs-active {
  border-color: #fff;
}

/* Лайтбокс товара: миниатюры строятся из реального порядка картинок товара */

/* Увеличенная галерея на телефоне: миниатюры листаются пальцем, стрелки не нужны */

/* Правый блок больше не отдельная карточка: рамку даёт общий контейнер */
html[dir="ltr"] #product-info .product-summary-panel,
body[dir="ltr"] #product-info .product-summary-panel {
  width: 100%;
  min-height: 560px;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* На планшетах и телефонах галерея и информация становятся друг под другом */

/* Страница товара: заголовок товара над хлебными крошками */
html[dir="ltr"] #product-info .product-page-title,
body[dir="ltr"] #product-info .product-page-title {
  margin: 0 0 4px;
  color: #172333;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

/* Страница товара: плавный переход к полному блоку характеристик */
html {
  scroll-behavior: smooth;
}

/* Страница товара: краткие характеристики внутри правого блока */
html[dir="ltr"] #product-info .product-summary-specs,
body[dir="ltr"] #product-info .product-summary-specs {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--icom-border, #dee2e6);
}

html[dir="ltr"] #product-info .product-summary-specs h3,
body[dir="ltr"] #product-info .product-summary-specs h3,
html[dir="ltr"] #product-info .product-short-description h3,
body[dir="ltr"] #product-info .product-short-description h3 {
  margin: 0 0 18px;
  color: #172333;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

/* Страница товара: сетка кратких характеристик в 3 колонки */
html[dir="ltr"] #product-info .product-summary-specs-grid,
body[dir="ltr"] #product-info .product-summary-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 34px;
}

html[dir="ltr"] #product-info .product-summary-spec,
body[dir="ltr"] #product-info .product-summary-spec {
  min-width: 0;
}

html[dir="ltr"] #product-info .product-summary-spec span,
body[dir="ltr"] #product-info .product-summary-spec span {
  display: block;
  margin-bottom: 7px;
  color: #a7b0c4;
  font-size: 12px;
  line-height: 1.25;
}

html[dir="ltr"] #product-info .product-summary-spec strong,
body[dir="ltr"] #product-info .product-summary-spec strong {
  display: block;
  color: #172333;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

/* Страница товара: ссылка "Все характеристики" */
html[dir="ltr"] #product-info .product-all-specs-link,
body[dir="ltr"] #product-info .product-all-specs-link {
  display: inline-block;
  margin-top: 18px;
  color: #0d6efd;
  font-size: 13px;
  text-decoration: none;
}

html[dir="ltr"] #product-info .product-all-specs-link:hover,
body[dir="ltr"] #product-info .product-all-specs-link:hover {
  text-decoration: underline;
}

/* Страница товара: краткое описание внутри правого блока */
html[dir="ltr"] #product-info .product-short-description,
body[dir="ltr"] #product-info .product-short-description {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--icom-border, #dee2e6);
}

html[dir="ltr"] #product-info .product-short-description,
body[dir="ltr"] #product-info .product-short-description {
  color: #172333;
  font-size: 13px;
  line-height: 1.6;
}

html[dir="ltr"] #product-info .product-short-description p:last-child,
body[dir="ltr"] #product-info .product-short-description p:last-child {
  margin-bottom: 0;
}

/* Страница товара: раскрывающееся полное описание в едином стиле темы. */
html[dir="ltr"] #product-info .product-description-accordion,
body[dir="ltr"] #product-info .product-description-accordion {
  margin: 44px 0 30px;
  background: #fff;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  overflow: hidden;
}

html[dir="ltr"] #product-info .product-description-accordion-toggle,
body[dir="ltr"] #product-info .product-description-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 94px;
  padding: 0 40px;
  color: #172333;
  background: #fff;
  border: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  text-align: inherit;
  cursor: pointer;
}

html[dir="ltr"] #product-info .product-description-accordion-arrow,
body[dir="ltr"] #product-info .product-description-accordion-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: #2f4357;
  font-size: 20px;
  transition: transform 0.24s ease;
}

html[dir="ltr"] #product-info .product-description-accordion.is-active .product-description-accordion-arrow,
body[dir="ltr"] #product-info .product-description-accordion.is-active .product-description-accordion-arrow {
  transform: rotate(180deg);
}

html[dir="ltr"] #product-info .product-description-accordion-collapse,
body[dir="ltr"] #product-info .product-description-accordion-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

html[dir="ltr"] #product-info .product-description-accordion-body,
body[dir="ltr"] #product-info .product-description-accordion-body {
  padding: 0 40px 36px;
  color: #172333;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.75;
}

html[dir="ltr"] #product-info .product-description-accordion-body p,
body[dir="ltr"] #product-info .product-description-accordion-body p {
  margin: 0 0 20px;
}

html[dir="ltr"] #product-info .product-description-accordion-body p:last-child,
body[dir="ltr"] #product-info .product-description-accordion-body p:last-child {
  margin-bottom: 0;
}

/* Страница товара: центрированный полный блок характеристик с точками между значением и названием. */
html[dir="ltr"] #product-info .product-full-specification,
body[dir="ltr"] #product-info .product-full-specification {
  width: 50%;
  margin: 30px auto 40px;
  padding: 0;
  scroll-margin-top: 24px;
}

html[dir="ltr"] #product-info .product-full-specification h2,
body[dir="ltr"] #product-info .product-full-specification h2 {
  margin: 0 0 24px;
  color: #172333;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

html[dir="ltr"] #product-info .product-full-specification h3,
body[dir="ltr"] #product-info .product-full-specification h3 {
  margin: 0 0 16px;
  color: #172333;
  font-size: 14px;
  font-weight: 800;
}

html[dir="ltr"] #product-info .product-full-specification-list,
body[dir="ltr"] #product-info .product-full-specification-list {
  margin: 0;
}

/* Страница товара: строки характеристик с аккуратными разделителями без изменения порядка текста. */
html[dir="ltr"] #product-info .product-full-specification-row,
body[dir="ltr"] #product-info .product-full-specification-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 12px;
  align-items: center;
  position: relative;
  margin-bottom: 12px;
}

html[dir="ltr"] #product-info .product-full-specification-row::before,
body[dir="ltr"] #product-info .product-full-specification-row::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  background-image: radial-gradient(circle, #d7dbe9 1px, transparent 1.2px);
  background-position: left center;
  background-repeat: repeat-x;
  background-size: 6px 1px;
  pointer-events: none;
}

html[dir="ltr"] #product-info .product-full-specification-row dt,
body[dir="ltr"] #product-info .product-full-specification-row dt {
  order: 2;
  position: relative;
  z-index: 1;
  justify-self: end;
  min-width: 0;
  margin: 0;
  padding-left: 8px;
  color: #a7b0c4;
  background: #f7f7fb;
  font-size: 12px;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

html[dir="ltr"] #product-info .product-full-specification-row dd,
body[dir="ltr"] #product-info .product-full-specification-row dd {
  order: 1;
  position: relative;
  z-index: 1;
  justify-self: start;
  min-width: 0;
  margin: 0;
  padding-right: 8px;
  color: #172333;
  background: #f7f7fb;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

/* Страница товара: блок отзывов после характеристик */
html[dir="ltr"] #product-info .product-review-block,
body[dir="ltr"] #product-info .product-review-block {
  width: 50%;
  margin-left: 50%;
  padding-left: 28px;
}

/* Модуль "Рекомендуемые": общий контейнер для сетки и горизонтальной ленты */
.featured-products {
  --featured-gap: 24px;
  margin-bottom: 24px;
}

.featured-products__item {
  min-width: 0;
}

.featured-products__item .product-thumb {
  height: 100%;
}

/* Модуль "Рекомендуемые": сетка на обычной версии сайта */
@media (min-width: 576px) {
  .featured-products--desktop-grid {
    display: grid;
    grid-template-columns: repeat(var(--featured-columns), minmax(0, 1fr));
    gap: var(--featured-gap);
  }

  /* Модуль "Рекомендуемые": горизонтальная лента на обычной версии сайта */
  .featured-products--desktop-carousel {
    display: flex;
    gap: var(--featured-gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .featured-products--desktop-carousel .featured-products__item {
    flex: 0 0 var(--featured-card-width);
    scroll-snap-align: start;
  }
}

/* Модуль "Рекомендуемые": нативный ползунок горизонтальной ленты */
.featured-products--desktop-carousel::-webkit-scrollbar,
.featured-products--mobile-carousel::-webkit-scrollbar {
  height: 6px;
}

.featured-products--desktop-carousel::-webkit-scrollbar-track,
.featured-products--mobile-carousel::-webkit-scrollbar-track {
  background: #eef2f6;
}

.featured-products--desktop-carousel::-webkit-scrollbar-thumb,
.featured-products--mobile-carousel::-webkit-scrollbar-thumb {
  background: #c8d1dc;
  border-radius: 10px;
}

/* Product blocks module: shared layout for tabbed product sections and optional horizontal carousel. */
.product-blocks {
  --product-blocks-gap: 24px;
  margin-bottom: 28px;
}

.product-blocks__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.product-blocks__tab {
  border: 1px solid #d8dee8;
  background: #fff;
  color: #1f2937;
  border-radius: 6px;
  padding: 9px 14px;
  font-weight: 600;
  line-height: 1.2;
}

.product-blocks__tab.is-active {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

.product-blocks__block {
  margin-bottom: 26px;
}

.product-blocks__block[hidden] {
  display: none;
}

.product-blocks__title {
  margin: 0 0 16px;
}

.product-blocks__title--category {
  text-align: center;
}

.product-blocks__title-link {
  color: inherit;
  text-decoration: none;
}

.product-blocks__title-link:hover {
  color: #0d6efd;
  text-decoration: none;
}

.product-blocks__items {
  display: grid;
  grid-template-columns: repeat(var(--product-blocks-columns), minmax(190px, 1fr));
  gap: var(--product-blocks-gap);
}

.product-blocks__items--carousel {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: var(--product-blocks-gap);
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}

.product-blocks__items--carousel.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.product-blocks__items--carousel .product-blocks__item {
  flex: 0 0 max(220px, calc((100% - (var(--product-blocks-columns) - 1) * var(--product-blocks-gap)) / var(--product-blocks-columns)));
  scroll-snap-align: start;
}

.product-blocks__item .product-thumb {
  height: 100%;
}

.product-blocks__item.is-hidden-by-limit {
  display: none;
}

.product-blocks__more {
  margin-top: 18px;
  text-align: center;
}

.product-blocks__more-button {
  border: 1px solid #0d6efd;
  background: #0d6efd;
  color: #fff;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 600;
}

.product-blocks__items--carousel::-webkit-scrollbar {
  height: 6px;
}

.product-blocks__items--carousel::-webkit-scrollbar-track {
  background: #eef2f6;
}

.product-blocks__items--carousel::-webkit-scrollbar-thumb {
  background: #c8d1dc;
  border-radius: 10px;
}

/* Страница товара: в русской LTR-версии цена прижата к правому краю */
html[dir="ltr"] #product-info .product-price-list,
body[dir="ltr"] #product-info .product-price-list {
  width: 100% !important;
  text-align: right !important;
}

html[dir="ltr"] #product-info .product-price-list li,
body[dir="ltr"] #product-info .product-price-list li,
html[dir="ltr"] #product-info .product-price-list h2,
body[dir="ltr"] #product-info .product-price-list h2,
html[dir="ltr"] #product-info #product-price,
body[dir="ltr"] #product-info #product-price {
  text-align: right !important;
}

.main-slider-shell {
  background: var(--site-header-background, var(--site-header-color, #263847));
  background-attachment: fixed;
  background-position: top center;
  background-size: 100% 620px;
  box-shadow: none;
  padding: 18px 0 20px;
  margin: -1px 0 46px;
  color: #fff;
}

.main-slider-shell .container-fluid {
  max-width: var(--site-container-width, 90%);
}

.main-slider-row {
  align-items: stretch;
}

.main-slider-box {
  position: relative;
  height: 370px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.12);
}

.main-slider-swiper,
.main-slider-side {
  width: 100%;
  height: 100%;
}

.main-slider-swiper .swiper-wrapper,
.main-slider-side .swiper-wrapper {
  height: 100%;
}

.main-slider-swiper .swiper-slide,
.main-slider-side .swiper-slide {
  height: 100%;
}

.main-slider-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 40px 56px 48px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}

.main-slider-item:hover {
  color: #fff;
  text-decoration: none;
}

.main-slider-text {
  position: relative;
  z-index: 2;
  width: min(48%, 520px);
  color: #fff;
}

.main-slider-text-dark {
  color: #172330;
}

.main-slider-kicker {
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
}

.main-slider-title {
  max-width: 100%;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
}

.main-slider-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 24px;
  padding: 8px 18px;
  border-radius: 4px;
  border: 1px solid currentColor;
  color: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.main-slider-button:hover {
  color: inherit;
  text-decoration: none;
}

.main-slider-image {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  height: 100%;
}

.main-slider-image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.main-slider-image-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0.72;
}

.main-slider-image-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-slider-image-cover + .main-slider-text,
.main-slider-item:has(.main-slider-image-cover) .main-slider-text {
  width: min(56%, 560px);
}

.main-slider-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  transform: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-slider-arrow:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.main-slider-prev {
  left: 0;
}

.main-slider-next {
  right: 0;
}

.main-slider-pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13px;
  z-index: 3;
  display: flex;
  gap: 10px;
  padding: 0 3px;
  pointer-events: auto;
}

.main-slider-pagination .swiper-pagination-bullet {
  flex: 1 1 auto;
  height: 1px;
  border-radius: 0;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.38);
  opacity: 1;
}

.main-slider-pagination .swiper-pagination-bullet-active {
  background: #fff;
}

.main-slider-side-box .main-slider-item {
  justify-content: center;
  padding: 28px 34px 44px;
}

.main-slider-item-side .main-slider-text {
  position: absolute;
  left: 34px;
  right: 34px;
  top: 50%;
  width: auto;
  text-align: center;
  transform: translateY(-50%);
}

.main-slider-item-side .main-slider-title {
  font-size: 20px;
}

.main-slider-item-side .main-slider-image {
  width: 100%;
}

.main-slider-side-pagination {
  left: 34px;
  right: 34px;
}


/* Главный слайдер: полноширинная посадка под шапкой и чистые эффекты Swiper */
.main-slider-shell {
  width: 100%;
  margin: -1px 0 46px;
  background: var(--site-header-background, var(--site-header-color, #263847));
  background-attachment: fixed;
  background-position: top center;
  background-size: 100% 620px;
  box-shadow: none;
}

.main-slider-box {
  background: rgba(255, 255, 255, 0.035);
}

.main-slider-arrow {
  background: transparent;
}

.main-slider-arrow:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.main-slider-shell .swiper-slide-shadow-left,
.main-slider-shell .swiper-slide-shadow-right,
.main-slider-shell .swiper-slide-shadow-top,
.main-slider-shell .swiper-slide-shadow-bottom,
.main-slider-shell .swiper-slide-shadow-cube,
.main-slider-shell .swiper-slide-shadow-coverflow {
  display: none !important;
  background: transparent !important;
}


/* Главный слайдер: убираем зазор под меню и видимость соседних слайдов */
.main-slider-shell {
  margin-top: -23px;
  padding-top: 22px;
}

.main-slider-swiper {
  overflow: hidden;
}

.main-slider-swiper .swiper-slide:not(.swiper-slide-active):not(.swiper-slide-duplicate-active) {
  opacity: 0 !important;
  visibility: hidden !important;
}

.main-slider-swiper .swiper-slide-active,
.main-slider-swiper .swiper-slide-duplicate-active {
  opacity: 1 !important;
  visibility: visible !important;
}

.main-slider-text {
  overflow-wrap: anywhere;
}


/* Главный слайдер: логичное расположение текста и картинки для LTR/RTL */
.main-slider-swiper .main-slider-item:not(.main-slider-item-side) {
  flex-direction: row-reverse;
}


.product-quickview-modal .modal-dialog {
  max-width: min(1500px, calc(100vw - 72px));
  margin-top: clamp(48px, 8vh, 92px);
  margin-bottom: 24px;
}

.product-quickview-modal .modal-content {
  border: 0;
  border-radius: 4px;
  background: #fff;
  max-height: calc(100vh - clamp(72px, 12vh, 116px));
  overflow: hidden;
}

.product-quickview-close-bar {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 12;
  pointer-events: none;
}

html[dir="ltr"] .product-quickview-modal .product-quickview-close-bar,
body[dir="ltr"] .product-quickview-modal .product-quickview-close-bar,
html[lang^="ru"] .product-quickview-modal .product-quickview-close-bar {
  left: calc(50% - 78px);
  right: auto;
  width: 52px;
}

html[dir="rtl"] .product-quickview-modal .product-quickview-close-bar,
body[dir="rtl"] .product-quickview-modal .product-quickview-close-bar,
html[lang^="he"] .product-quickview-modal .product-quickview-close-bar {
  right: calc(50% - 110px);
  left: auto;
  width: 52px;
}

.product-quickview-close {
  position: static;
  width: 52px;
  height: 52px;
  margin: 0;
  transform: none;
  filter: none;
  opacity: 0.9;
  pointer-events: auto;
  background-size: 20px 20px;
}

.product-quickview-modal .modal-content > .product-quickview-close {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  margin-right: auto;
  margin-left: auto;
  transform: none;
  z-index: 12;
}

html[dir="ltr"] .product-quickview-modal .modal-content > .product-quickview-close,
body[dir="ltr"] .product-quickview-modal .modal-content > .product-quickview-close,
html[lang^="ru"] .product-quickview-modal .modal-content > .product-quickview-close {
  left: calc(50% - 78px);
  right: auto;
  margin-left: 0;
  margin-right: 0;
}

html[dir="rtl"] .product-quickview-modal .modal-content > .product-quickview-close,
body[dir="rtl"] .product-quickview-modal .modal-content > .product-quickview-close,
html[lang^="he"] .product-quickview-modal .modal-content > .product-quickview-close {
  right: calc(50% - 110px);
  left: auto;
  margin-left: 0;
  margin-right: 0;
}

.product-quickview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48%;
  min-height: 0;
  max-height: calc(100vh - clamp(72px, 12vh, 116px));
}

.product-quickview-info {
  padding: 24px 34px 28px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.product-quickview-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8edf4;
}

.product-quickview-actions {
  width: auto;
  justify-self: start;
}

.product-quickview-brand {
  display: grid;
  justify-items: end;
  color: #b6bfce;
  font-size: 13px;
}

.product-quickview-brand a {
  color: #333;
  font-weight: 700;
  text-transform: none;
}

.product-quickview-stock-row {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 20px 0 12px;
  color: #b6bfce;
  font-size: 13px;
}

.product-quickview-stock {
  color: #333;
  font-weight: 700;
}

.product-quickview-stock i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-inline-end: 6px;
  border-radius: 50%;
  background: #1dbf73;
}

.product-quickview-stock.is-out i {
  background: #dc3545;
}

.product-quickview h2 {
  max-width: 760px;
  margin: 0 0 14px;
  color: #1f2933;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}

.product-quickview-price {
  margin: 8px 0 16px;
  color: #333;
  font-size: 32px;
  font-weight: 800;
}

.product-quickview-price .price-new {
  display: inline-block;
  color: #111;
  font-weight: 800;
  transition: color 0.2s ease, transform 0.2s ease;
}

.product-quickview-price .price-new.is-price-changing {
  color: #000;
  transform: translateY(-2px) scale(1.04);
}

.product-quickview-price .price-old {
  margin-inline-start: 10px;
  color: #9aa5b5;
  font-size: 18px;
  text-decoration: line-through;
}

.product-quickview-cart {
  min-width: 210px;
  min-height: 50px;
  font-weight: 700;
}

.product-quickview-buy {
  display: flex;
  gap: 16px;
  align-items: center;
}

.product-quickview-quantity {
  display: grid;
  grid-template-columns: 48px 58px 48px;
  overflow: hidden;
  border: 1px solid #dfe5ee;
  border-radius: 5px;
}

.product-quickview-quantity button,
.product-quickview-quantity input {
  width: 100%;
  height: 50px;
  color: #111;
  background: #fff;
  border: 0;
  font-size: 20px;
  text-align: center;
  font-weight: 800;
  line-height: 50px;
}

.product-quickview-quantity input {
  border-inline: 1px solid #dfe5ee;
  -moz-appearance: textfield;
  padding: 0;
}

.product-quickview-quantity input::-webkit-outer-spin-button,
.product-quickview-quantity input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.product-quickview-attrs,
.product-quickview-description {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e8edf4;
}

.product-quickview-attrs h3,
.product-quickview-description h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
}

.product-quickview-attrs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 28px;
}

.product-quickview-attrs-grid span {
  display: block;
  margin-bottom: 8px;
  color: #b6bfce;
  font-weight: 700;
}

.product-quickview-attrs-grid strong {
  color: #333;
  font-weight: 400;
}

.product-quickview-description p {
  margin: 0;
  color: #333;
  font-weight: 700;
}

.product-quickview-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 238px;
  margin-top: 20px;
  padding: 14px 24px;
  font-weight: 700;
  text-align: center;
}

.product-quickview-gallery {
  min-width: 0;
  min-height: 0;
  border-inline-start: 1px solid #e8edf4;
}

@media (min-width: 768px) {
  html[dir="ltr"] .product-quickview-gallery,
  body[dir="ltr"] .product-quickview-gallery {
    order: -1;
    border-inline-start: 0;
    border-inline-end: 1px solid #e8edf4;
  }

  html[dir="ltr"] .product-quickview-info,
  body[dir="ltr"] .product-quickview-info {
    order: 0;
  }

  html[dir="ltr"] .product-quickview-price,
  body[dir="ltr"] .product-quickview-price {
    text-align: right;
  }

  html[dir="ltr"] .product-quickview-open,
  body[dir="ltr"] .product-quickview-open {
    display: flex;
    width: max-content;
    margin-left: auto;
    margin-right: 0;
  }
}

.product-quickview-product-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  height: 100%;
  min-height: 0;
}

.product-quickview-product-gallery .product-gallery-thumbs-panel {
  order: 2;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-inline-start: 1px solid #e8edf4;
}

.product-quickview-product-gallery .product-gallery-thumbs {
  flex: 1 1 auto;
  max-height: 100%;
  overflow: hidden;
}

.product-quickview-product-gallery .product-gallery-thumb {
  width: 100%;
  height: 110px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-bottom: 1px solid #e8edf4;
  cursor: pointer;
}

.product-quickview-product-gallery .product-gallery-thumb.swiper-slide-thumb-active {
  background: #f7f8fb;
}

.product-quickview-product-gallery .product-gallery-thumb img {
  max-width: 86px;
  max-height: 86px;
  object-fit: contain;
}

.product-quickview-product-gallery .product-gallery-thumb-nav {
  flex: 0 0 72px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #e8edf4;
}

.product-quickview-product-gallery .product-gallery-nav-button {
  height: 72px;
  color: #172333;
  background: #fff;
  border: 0;
  border-inline-end: 1px solid #e8edf4;
}

.product-quickview-product-gallery .product-gallery-nav-button:last-child {
  border-inline-end: 0;
}

.product-quickview-product-gallery .product-gallery-main {
  width: 100%;
  min-height: 0;
  padding: 24px;
  background: #fff;
  overflow: hidden;
}

.product-quickview-product-gallery .product-gallery-main .swiper-wrapper {
  align-items: center;
}

.product-quickview-product-gallery .product-gallery-main .swiper-slide {
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-quickview-product-gallery .product-gallery-main-link {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-quickview-product-gallery .product-gallery-main img {
  max-width: 100%;
  max-height: min(500px, calc(100vh - 250px));
  object-fit: contain;
}

@media (min-width: 768px) {
  html[dir="ltr"] .product-quickview-gallery,
  body[dir="ltr"] .product-quickview-gallery {
    padding: 24px;
  }

  html[dir="ltr"] .product-quickview-product-gallery,
  body[dir="ltr"] .product-quickview-product-gallery {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 24px;
    min-height: 470px;
  }

  html[dir="ltr"] .product-quickview-product-gallery .product-gallery-thumbs-panel,
  body[dir="ltr"] .product-quickview-product-gallery .product-gallery-thumbs-panel {
    order: -1;
    border-inline-start: 0;
    border-inline-end: 1px solid #e8edf4;
  }

  html[dir="ltr"] .product-quickview-product-gallery .product-gallery-thumbs,
  body[dir="ltr"] .product-quickview-product-gallery .product-gallery-thumbs {
    max-height: 424px;
  }

  html[dir="ltr"] .product-quickview-product-gallery .product-gallery-thumb,
  body[dir="ltr"] .product-quickview-product-gallery .product-gallery-thumb {
    height: 112px;
    padding: 12px;
  }

  html[dir="ltr"] .product-quickview-product-gallery .product-gallery-main,
  body[dir="ltr"] .product-quickview-product-gallery .product-gallery-main {
    min-height: 424px;
    padding: 22px;
  }

  html[dir="ltr"] .product-quickview-product-gallery .product-gallery-main .swiper-slide,
  body[dir="ltr"] .product-quickview-product-gallery .product-gallery-main .swiper-slide {
    min-height: 380px;
  }

  html[dir="ltr"] .product-quickview-product-gallery .product-gallery-main img,
  body[dir="ltr"] .product-quickview-product-gallery .product-gallery-main img {
    max-height: 380px;
  }
}


/* Модуль "Рекомендуемые": мобильная сетка или горизонтальная лента с прокруткой пальцем. */
/* Страница товара: нижние секции всегда идут под общей карточкой товара на всю ширину. */
#product-info .product-page-top + .product-below-section,
#product-info .product-below-section {
  position: relative !important;
  clear: both !important;
  float: none !important;
  display: block !important;
  flex: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}


/* Корзина покупок: карточная компоновка фирменной темы. */
#checkout-cart .cart-theme-heading {
  margin: 22px 0 18px;
  font-size: 28px;
  font-weight: 700;
  color: #27313d;
}

#checkout-cart .cart-theme {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

#checkout-cart .cart-theme-section-title,
#checkout-cart .cart-theme-summary-title,
#checkout-simple-builder .cart-theme-section-title,
#checkout-simple-builder .cart-theme-summary-title {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
  color: #1f2933;
}

#checkout-cart .cart-theme-list,
#checkout-simple-builder .cart-theme-list {
  display: grid;
  gap: 14px;
}

#checkout-cart .cart-theme-item,
#checkout-simple-builder .cart-theme-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 120px 150px 34px;
  gap: 20px;
  align-items: center;
  min-height: 138px;
  padding: 24px 18px;
  background: #fff;
  border: 1px solid rgba(39, 49, 61, 0.06);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(39, 49, 61, 0.04);
}

#checkout-cart .cart-theme-image,
#checkout-simple-builder .cart-theme-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 86px;
}

#checkout-cart .cart-theme-image img,
#checkout-simple-builder .cart-theme-image img {
  max-width: 86px;
  max-height: 86px;
  object-fit: contain;
}

#checkout-cart .cart-theme-model,
#checkout-simple-builder .cart-theme-model {
  margin-bottom: 5px;
  color: #a7afc2;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

#checkout-cart .cart-theme-name,
#checkout-simple-builder .cart-theme-name {
  display: inline-block;
  color: #151b22;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

#checkout-cart .cart-theme-name:hover,
#checkout-simple-builder .cart-theme-name:hover {
  color: #0b8fcf;
}

#checkout-cart .cart-theme-meta,
#checkout-simple-builder .cart-theme-meta {
  margin: 8px 0 0;
  padding: 0;
  color: #5c6675;
  font-size: 12px;
  line-height: 1.5;
  list-style: none;
}

#checkout-cart .cart-theme-qty,
#checkout-simple-builder .cart-theme-qty {
  display: grid;
  grid-template-columns: 36px 42px 36px;
  align-items: center;
  justify-content: center;
  width: 114px;
  min-height: 50px;
  border: 1px solid #dfe5ee;
  border-radius: 4px;
  background: #fff;
}

#checkout-cart .cart-theme-qty-btn,
#checkout-cart .cart-theme-qty-input,
#checkout-simple-builder .cart-theme-qty-btn,
#checkout-simple-builder .cart-theme-qty-input {
  width: 100%;
  height: 48px;
  border: 0;
  background: transparent;
  color: #1f2933;
  text-align: center;
}

#checkout-cart .cart-theme-qty-btn,
#checkout-simple-builder .cart-theme-qty-btn {
  font-size: 13px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

#checkout-cart .cart-theme-qty-btn:hover,
#checkout-simple-builder .cart-theme-qty-btn:hover {
  color: #b37a15;
  background: #f8f5ee;
}

#checkout-cart .cart-theme-qty-input,
#checkout-simple-builder .cart-theme-qty-input {
  padding: 0;
  font-weight: 700;
  outline: none;
}

#checkout-cart .cart-theme-price,
#checkout-simple-builder .cart-theme-price {
  color: #1f2933;
  text-align: start;
}

#checkout-cart .cart-theme-price strong,
#checkout-simple-builder .cart-theme-price strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

#checkout-cart .cart-theme-price strong.is-price-changing,
#checkout-simple-builder .cart-theme-price strong.is-price-changing {
  color: #000;
  transform: translateY(-2px) scale(1.04);
}

#checkout-cart .cart-theme-price small,
#checkout-simple-builder .cart-theme-price small {
  display: block;
  margin-top: 4px;
  color: #a7afc2;
  font-size: 12px;
}

#checkout-cart .cart-theme-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #d9534f;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 18px;
  text-decoration: none;
  box-shadow: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

#checkout-cart .cart-theme-remove:hover {
  color: #c9302c;
  background: transparent;
  transform: scale(1.08);
}

#checkout-cart .cart-theme-sidebar,
#checkout-simple-builder .cart-theme-sidebar {
  padding: 36px 40px 40px;
  background: #fff;
  border: 1px solid rgba(39, 49, 61, 0.06);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(39, 49, 61, 0.04);
}

#checkout-cart .cart-theme-summary-row,
#checkout-cart .cart-theme-total-row,
#checkout-simple-builder .cart-theme-summary-row,
#checkout-simple-builder .cart-theme-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 0;
  color: #1f2933;
  font-size: 14px;
}

#checkout-cart .cart-theme-summary-row strong,
#checkout-cart .cart-theme-total-row strong,
#checkout-simple-builder .cart-theme-summary-row strong,
#checkout-simple-builder .cart-theme-total-row strong {
  transition: color 0.2s ease, transform 0.2s ease;
}

#checkout-cart .cart-theme-summary-row strong.is-price-changing,
#checkout-cart .cart-theme-total-row strong.is-price-changing,
#checkout-simple-builder .cart-theme-summary-row strong.is-price-changing,
#checkout-simple-builder .cart-theme-total-row strong.is-price-changing {
  color: #000;
  transform: translateY(-2px) scale(1.04);
}

#checkout-cart .cart-theme-summary-row mark {
  padding: 0;
  color: #b8bfd0;
  background: transparent;
}

#checkout-cart .cart-theme-totals,
#checkout-simple-builder .cart-theme-totals {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #edf0f5;
}

#checkout-cart .cart-theme-total-row-final,
#checkout-simple-builder .cart-theme-total-row-final {
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid #edf0f5;
  font-size: 16px;
  font-weight: 700;
}

#checkout-cart .cart-theme-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  margin-top: 28px;
  border-radius: 4px;
  font-weight: 700;
}

#checkout-cart .cart-theme-modules {
  margin-top: 20px;
}

#checkout-cart .cart-theme-actions {
  margin-top: 22px;
}

#checkout-cart .cart-theme-empty,
#common-success .checkout-theme-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 430px;
  padding: 54px 20px 72px;
  text-align: center;
}

#checkout-cart .cart-theme-empty-image,
#common-success .checkout-theme-success .cart-theme-empty-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  margin-bottom: 36px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 18px 45px rgba(39, 49, 61, 0.05);
}

#checkout-cart .cart-theme-empty-image img,
#common-success .checkout-theme-success .cart-theme-empty-image img {
  width: 168px;
  max-width: 84%;
  height: auto;
}

#checkout-cart .cart-theme-empty h1,
#common-success .checkout-theme-success h1 {
  margin: 0 0 28px;
  color: #1f2933;
  font-size: 26px;
  font-weight: 700;
}

#checkout-cart .cart-theme-empty-button,
#common-success .checkout-theme-success .cart-theme-empty-button {
  min-width: 190px;
}

#common-success .checkout-theme-success-message {
  max-width: 720px;
  margin: 0 auto 28px;
  color: #1f2933;
  font-size: 18px;
  line-height: 1.65;
  text-align: center;
}

#common-success .checkout-theme-success-message p {
  margin: 0 0 18px;
}

#checkout-cart .cart-theme-item.cart-item-updating,
#checkout-simple-builder .cart-theme-item.cart-item-updating {
  opacity: 0.72;
  box-shadow: 0 14px 32px rgba(179, 122, 21, 0.14);
}

#checkout-cart .cart-theme-qty-input.cart-qty-updated,
#checkout-simple-builder .cart-theme-qty-input.cart-qty-updated {
  animation: cartQtyPulse 0.28s ease;
}

#checkout-cart .cart-price-updated,
#checkout-simple-builder .cart-price-updated {
  animation: cartPriceUpdate 0.45s ease;
}

@keyframes cartQtyPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
    color: #b37a15;
  }
  100% {
    transform: scale(1);
  }
}

@keyframes cartPriceUpdate {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Live Search */
.site-live-search {
  position: relative;
  width: 100%;
}

.site-live-search__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 1060;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 340px;
  gap: 14px;
  min-width: min(980px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  align-items: start;
  color: #2f3742;
}

.site-live-search__close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #d54d43;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.site-live-search__close:hover,
.site-live-search__close:focus {
  color: #b9362d;
}

.site-live-search__results-shell {
  position: relative;
  min-width: 0;
}

.site-fixed-menu .site-live-search__panel {
  top: calc(100% + 10px);
}

.site-live-search__results,
.site-live-search__preview {
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(33, 48, 64, 0.18);
  overflow: hidden;
}

.site-live-search__preview {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.site-live-search.has-preview .site-live-search__preview {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.site-live-search__list {
  display: block;
  max-height: min(590px, calc(100vh - 170px));
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.site-live-search__row {
  border-bottom: 1px solid #e8edf5;
}

.site-live-search__row:last-child {
  border-bottom: 0;
}

.site-live-search__row > a {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  color: #323941;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, padding 0.18s ease;
}

.site-live-search__row > a:hover,
.site-live-search__row > a:focus {
  background: #f7f9fc;
  color: #243e56;
}

.site-live-search__row--product > a:hover,
.site-live-search__row--product > a:focus {
  padding-right: 24px;
}

.site-live-search__search-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  color: #b8c0cc;
  font-size: 16px;
}

.site-live-search__thumb {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
}

.site-live-search__thumb img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.site-live-search__desc {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.site-live-search__name {
  display: block;
  min-width: 0;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 500;
}

.site-live-search__model {
  display: block;
  margin-top: 4px;
  color: #b3bbca;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
}

.site-live-search__mark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 4px;
  background: #e7eaf2;
  color: #4d5664;
  font-size: 12px;
  line-height: 1;
}

.site-live-search__price {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 8px;
  color: #2e4559;
  font-size: 16px;
  line-height: 1.1;
  white-space: nowrap;
}

.site-live-search__price-old {
  color: #99a3b2;
  font-size: 13px;
  text-decoration: line-through;
}

.site-live-search__arrow {
  display: inline-flex;
  width: 24px;
  flex: 0 0 24px;
  justify-content: flex-end;
  color: #2e4559;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.site-live-search__row--product > a:hover .site-live-search__arrow,
.site-live-search__row--product > a:focus .site-live-search__arrow {
  opacity: 1;
}

.site-live-search__more,
.site-live-search__empty {
  min-height: 46px;
  padding: 14px 18px;
  text-align: center;
  font-size: 14px;
}

.site-live-search__more a {
  color: #246fb4;
  font-weight: 600;
  text-decoration: none;
}

.site-live-search__empty {
  color: #818b9a;
}

.site-live-search__preview .product-thumb {
  min-height: 430px;
  border: 0;
  box-shadow: none;
}

.site-live-search__preview .product-thumb .image {
  padding: 18px 28px 0;
}

.site-live-search__preview .product-thumb .product-thumb-image-link {
  display: flex;
  height: 205px;
  align-items: center;
  justify-content: center;
}

.site-live-search__preview .product-thumb .product-thumb-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.site-live-search__preview .product-thumb .product-thumb-image-nav {
  padding: 12px 0 0;
}

.site-live-search__preview .product-thumb .description {
  padding: 16px 22px 0;
  margin-bottom: 8px;
}

.site-live-search__preview .product-thumb .description h4 {
  min-height: 44px;
  margin-bottom: 14px;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.25;
}

.site-live-search__preview .product-thumb .price {
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 20px;
}

.site-live-search__preview .product-thumb .product-thumb-buy-row {
  grid-template-columns: 46px 78px minmax(0, 1fr);
  padding: 14px 22px 22px;
}


/* Simple checkout: reuse cart product cards and order summary styles */
#checkout-simple-builder .simple-checkout-cart-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 24px 0;
}

#checkout-simple-builder .cart-theme-section-title,
#checkout-simple-builder .cart-theme-summary-title {
  margin: 0 0 14px;
}

#checkout-simple-builder .cart-theme-item,
#checkout-simple-builder .cart-theme-sidebar {
  border: 1px solid rgba(39, 49, 61, 0.08);
  border-radius: 8px;
}

#checkout-simple-builder .cart-theme-item {
  grid-template-columns: 96px minmax(0, 1fr) 124px 120px;
  min-height: 122px;
  padding: 18px;
}

#checkout-simple-builder .cart-theme-price strong.is-price-changing,
#checkout-simple-builder .cart-theme-total-row strong.is-price-changing {
  color: #000;
  transform: translateY(-2px) scale(1.04);
}

/* Checkout confirmation: final product and totals cards loaded by checkout/confirm.twig. */
#checkout-confirm .checkout-confirm {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

#checkout-confirm .checkout-confirm-products,
#checkout-confirm .checkout-confirm-summary {
  background: #fff;
  border: 1px solid rgba(39, 49, 61, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(39, 49, 61, 0.04);
}

#checkout-confirm .checkout-confirm-products {
  padding: 28px 40px;
}

#checkout-confirm .checkout-confirm-summary {
  padding: 30px 40px 34px;
}

#checkout-confirm .checkout-confirm-title {
  margin: 0 0 18px;
  color: #1f2933;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

#checkout-confirm .checkout-confirm-product-list {
  display: grid;
  gap: 14px;
}

#checkout-confirm .checkout-confirm-product {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 116px 110px;
  gap: 22px;
  align-items: center;
  min-height: 96px;
}

#checkout-confirm .checkout-confirm-product__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  min-height: 76px;
}

#checkout-confirm .checkout-confirm-product__image img {
  max-width: 76px;
  max-height: 76px;
  object-fit: contain;
}

#checkout-confirm .checkout-confirm-product__model {
  margin-bottom: 6px;
  color: #a7afc2;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

#checkout-confirm .checkout-confirm-product__name {
  display: inline-block;
  color: #151b22;
  font-weight: 700;
  line-height: 1.35;
}

#checkout-confirm .checkout-confirm-product__name:hover {
  color: #0b8fcf;
}

#checkout-confirm .checkout-confirm-product__meta {
  margin: 8px 0 0;
  padding: 0;
  color: #5c6675;
  font-size: 12px;
  line-height: 1.5;
  list-style: none;
}

#checkout-confirm .checkout-confirm-product__qty {
  display: grid;
  grid-template-columns: 36px 42px 36px;
  align-items: center;
  justify-content: center;
  width: 114px;
  min-height: 50px;
  border: 1px solid #dfe5ee;
  border-radius: 4px;
  background: #fff;
  color: #1f2933;
  direction: ltr;
  text-align: center;
}

#checkout-confirm .checkout-confirm-product__qty span,
#checkout-confirm .checkout-confirm-product__qty strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}

#checkout-confirm .checkout-confirm-product__qty strong {
  font-size: 15px;
  font-weight: 700;
}

#checkout-confirm .checkout-confirm-product__qty i {
  font-size: 12px;
}

#checkout-confirm .checkout-confirm-product__price {
  color: #1f2933;
  text-align: start;
}

#checkout-confirm .checkout-confirm-product__price strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
}

#checkout-confirm .checkout-confirm-product__price small {
  display: block;
  margin-top: 5px;
  color: #a7afc2;
  font-size: 12px;
}

#checkout-confirm .checkout-confirm-summary__rows {
  display: grid;
  gap: 16px;
}

#checkout-confirm .checkout-confirm-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #1f2933;
}

#checkout-confirm .checkout-confirm-summary__row strong {
  font-weight: 700;
  white-space: nowrap;
}

#checkout-confirm .checkout-confirm-summary__row--final {
  margin-top: 2px;
  padding-top: 16px;
  border-top: 1px solid #e5eaf0;
  font-size: 17px;
  font-weight: 700;
}

/* =========================================================
   Mobile and small viewport overrides
   ---------------------------------------------------------
   This section is intentionally last. Every rule below is guarded by
   max-width media queries and may override earlier component/page rules.
   Keep phone-specific quickview, cart, category drawer, header and RTL
   corrections here so desktop styling remains readable above.
   ========================================================= */

/* =========================================================
   Стили для мобильных устройств и адаптивных экранов
   Собраны внизу файла, чтобы не смешивать мобильные правки с базовыми стилями.
========================================================= */
/* Шапка и верхние элементы: адаптация ширины, поиска, меню и нижней мобильной панели. */
@media (max-width: 1199.98px) and (min-width: 992px) {
  .product-blocks__items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-blocks__items--carousel .product-blocks__item {
    flex-basis: calc((100% - 2 * var(--product-blocks-gap)) / 3);
  }
}

@media (max-width: 1199.98px) {
  .site-header__inner {
    grid-template-columns: 170px minmax(240px, 1fr) auto;
    gap: 18px;
  }

  #logo.site-header__logo img {
    max-width: 150px;
  }

  #cart.site-header__cart {
    min-width: 150px;
  }

  #menu.site-menu .navbar-nav {
    gap: 6px;
  }

  #menu.site-menu .navbar-nav > li > a {
    padding: 0 12px;
    font-size: 13.5px;
  }
}

@media (max-width: 991.98px) {
  .site-header__inner {
    grid-template-columns: 150px 1fr;
    gap: 14px;
  }

  .site-header__search {
    grid-column: 1 / -1;
    order: 3;
  }

  .site-header__search .btn {
    width: 58px;
    min-width: 58px;
  }

  .site-header__search .form-control {
    padding-right: 74px;
  }

  .site-header__search .btn i {
    display: inline-block;
  }

  .site-header__search .search-button-text {
    display: none;
  }

  .site-header__actions {
    justify-content: flex-end;
  }

  #menu.site-menu {
    padding: 0 12px 10px;
  }

  #menu.site-menu .navbar-collapse {
    width: 100%;
  }

  #menu.site-menu .navbar-nav {
    display: block;
    padding: 8px 0 12px;
  }

  #menu.site-menu .navbar-nav > li > a {
    height: auto;
    padding: 12px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: 70px;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 64px;
    padding: 6px 4px max(6px, env(safe-area-inset-bottom));
    background: var(--site-header-background, var(--site-header-color, #263747));
    background-attachment: fixed;
    background-position: top center;
    background-size: 100% 620px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
  }

  .mobile-bottom-nav__item {
    min-width: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: none;
    -webkit-font-smoothing: auto;
    text-rendering: auto;
  }

  .mobile-bottom-nav__item i {
    font-size: 19px;
    line-height: 1;
    color: #fff;
  }

  .mobile-bottom-nav__item > span:last-child {
    display: block;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
  }

  .mobile-bottom-nav__item:hover,
  .mobile-bottom-nav__item:focus {
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
  }

  .mobile-bottom-nav__icon-wrap {
    position: relative;
    display: inline-flex;
  }

  .mobile-bottom-nav__icon-wrap b {
    position: absolute;
    top: -8px;
    inset-inline-end: -11px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--site-primary-color, #f39c12);
    color: #fff;
    font-size: 10px;
    line-height: 15px;
  }
}

@media (max-width: 575.98px) {
  .site-topbar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px 0;
  }

  .site-topbar__links,
  .site-topbar__tools {
    justify-content: space-between;
    gap: 12px;
  }

  #form-language .d-none.d-md-inline {
    display: inline !important;
  }

  #form-language .dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
  }

  .site-header__inner {
    grid-template-columns: 1fr;
  }


  .site-header__actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .site-header__icon {
    width: 42px;
    height: 42px;
  }

  #cart.site-header__cart {
    flex: 1 1 100%;
    min-width: 0;
  }

}

@media (max-width: 1399px) {
  .product-thumb .product-thumb-buy-row {
    padding-left: 10px;
    padding-right: 10px;
    grid-template-columns: 40px 78px minmax(0, 1fr);
    gap: 6px;
  }

  .product-thumb .product-thumb-quickview {
    width: 40px;
    height: 42px;
  }

  .product-thumb .product-thumb-cart {
    height: 42px;
    padding: 0 8px;
    gap: 6px;
    font-size: 13px;
  }

  .product-thumb .product-thumb-cart i {
    font-size: 16px;
  }

  /* Узкие карточки: счётчик по высоте равен кнопкам рядом */
  .product-thumb .product-thumb-quantity {
    height: 42px;
  }

  .product-thumb .product-thumb-qty-input {
    line-height: 40px;
  }
}

@media (max-width: 1199px) {
  .product-thumb .product-thumb-buy-row {
    grid-template-columns: 40px 78px minmax(46px, 1fr);
  }

  .product-thumb .product-thumb-cart {
    padding: 0;
    gap: 0;
  }

  .product-thumb .product-thumb-cart span {
    display: none;
  }
}

@media (max-width: 991.98px) {
  #product-info .product-summary-panel {
    margin-top: 18px;
  }
}

@media (max-width: 575.98px) {
  #product-info .product-summary-panel {
    padding: 18px;
  }

  #product-info .product-summary-head {
    display: block;
  }

  #product-info .product-title {
    margin-bottom: 14px;
    font-size: 26px;
  }

  #product-info .product-action-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #product-info .product-action-buttons .btn {
    width: 100%;
    padding: 0 10px;
  }

  #product-info .product-meta-list {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  #product-info .product-price-list .price-new {
    font-size: 30px;
  }

  #product-info .product-summary-panel .product-quantity-group {
    flex-wrap: wrap !important;
  }

  html[dir="ltr"] #product-info #form-product #button-cart,
  body[dir="ltr"] #product-info #form-product #button-cart {
    flex: 1 0 100% !important;
    width: 100% !important;
    margin-top: 10px !important;
    border-radius: 6px !important;
  }
}

@media (max-width: 767px) {
#content > .row:has(#button-grid):has(#input-sort) {
    flex-wrap: wrap !important;
    row-gap: 8px !important;
  }

  #content > .row:has(#button-grid):has(#input-sort) > div {
    margin-bottom: 8px !important;
  }

  #input-sort,
  #input-limit {
    max-width: none !important;
  }


  .product-thumb .product-thumb-buy-row {
    grid-template-columns: 40px 78px minmax(0, 1fr);
    gap: 8px;
    padding: 14px 12px 16px;
  }

  .product-thumb .product-thumb-quickview,
  .product-thumb .product-thumb-cart {
    height: 44px;
  }

  .product-thumb .product-thumb-quickview {
    width: 44px;
  }

  .product-thumb .product-thumb-cart {
    padding-left: 8px;
    padding-right: 8px;
  }
  /* Мобильная версия: кнопка сравнения компактная, не растягивается на всю ширину */
  #compare-total {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 42px !important;
    padding: 0 16px !important;
    margin-left: auto;
    display: inline-flex !important;
    border-radius: 6px !important;
    font-size: 14px;
  }

}

@media (max-width: 575px) {
  #content > .row:has(#button-grid):has(#input-sort) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #content > .row:has(#button-grid):has(#input-sort) > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
  }

  #content .input-group:has(#input-sort),
  #content .input-group:has(#input-limit) {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(120px, auto) minmax(0, 1fr) !important;
  }

  #content .input-group:has(#input-sort) .input-group-text,
  #content .input-group:has(#input-limit) .input-group-text {
    justify-content: center !important;
    white-space: nowrap !important;
    font-size: 14px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  #content .input-group:has(#input-sort) .form-select,
  #content .input-group:has(#input-limit) .form-select {
    min-width: 0 !important;
    width: 100% !important;
    font-size: 14px !important;
  }
}

@media (max-width: 575.98px) {
  /* На телефоне верхняя строка становится вертикальной */
  html[dir="ltr"] #product-info .product-summary-head,
  body[dir="ltr"] #product-info .product-summary-head {
    display: block;
  }

  /* Производитель на телефоне выравнивается слева */
  html[dir="ltr"] #product-info .product-manufacturer-box,
  body[dir="ltr"] #product-info .product-manufacturer-box {
    margin-top: 12px;
    margin-left: 0;
    text-align: left;
  }

  /* Строка покупки занимает всю ширину */
  html[dir="ltr"] #product-info #form-product .product-quantity-group,
  body[dir="ltr"] #product-info #form-product .product-quantity-group {
    width: 100% !important;
  }

  /* Кнопка покупки сжимается, чтобы рядом поместились +, количество и - */
  html[dir="ltr"] #product-info #form-product #button-cart,
  body[dir="ltr"] #product-info #form-product #button-cart {
    width: calc(100% - 162px) !important;
    min-width: 140px !important;
    flex: 1 1 auto !important;
    margin: 0 20px 0 0 !important;
  }
}

@media (max-width: 575.98px) {
  #content > .row > [class*="col-"]:has(.product-thumb),
  .featured-products__grid > [class*="col-"]:has(.product-thumb),
  .featured-products__item {
    padding-left: 7px;
    padding-right: 7px;
  }

  #content > .row:has(.product-thumb),
  .featured-products__grid {
    margin-left: -7px;
    margin-right: -7px;
  }

  .product-thumb .description {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 1100px) {
  .fancybox-navigation .fancybox-button--arrow_left {
    left: 24px !important;
  }

  .fancybox-navigation .fancybox-button--arrow_right {
    right: 24px !important;
  }
}

@media (max-width: 575.98px) {
  .fancybox-container {
    --product-lightbox-width: calc(100vw - 44px);
  }

  .fancybox-show-thumbs .fancybox-stage {
    bottom: 104px !important;
  }

  .product-fancybox-open .fancybox-stage {
    bottom: 104px !important;
  }

  .fancybox-slide--image {
    padding: 74px 22px 24px !important;
  }

  .fancybox-toolbar {
    top: 18px !important;
    right: 50% !important;
    transform: translateX(50%);
  }

  .fancybox-button--close,
  .fancybox-close-small {
    width: 54px !important;
    height: 54px !important;
    background: rgba(0, 0, 0, 0.22) !important;
  }

  .fancybox-navigation .fancybox-button {
    display: none !important;
  }

  .fancybox-show-thumbs .fancybox-thumbs {
    left: 50%;
    bottom: 18px;
    width: calc(100vw - 36px);
    height: 76px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .fancybox-show-thumbs .fancybox-thumbs::-webkit-scrollbar {
    display: none;
  }

  .fancybox-thumbs__list {
    justify-content: flex-start;
    gap: 8px;
    min-width: max-content;
  }

  .fancybox-thumbs__list a {
    flex: 0 0 76px !important;
    width: 76px !important;
    height: 58px !important;
    background-size: contain;
  }

}

@media (max-width: 767.98px) {
  html[dir="ltr"] #product-info .product-page-top,
  body[dir="ltr"] #product-info .product-page-top {
    display: block !important;
  }

  /* На мобильных обе части занимают всю ширину */
  html[dir="ltr"] #product-info .product-page-top > .product-gallery-column,
  html[dir="ltr"] #product-info .product-page-top > .product-summary-column,
  body[dir="ltr"] #product-info .product-page-top > .product-gallery-column,
  body[dir="ltr"] #product-info .product-page-top > .product-summary-column {
    max-width: 100% !important;
    border-right: 0 !important;
  }

  /* Между галереей и информацией появляется горизонтальная линия */
  html[dir="ltr"] #product-info .product-page-top > .product-summary-column,
  body[dir="ltr"] #product-info .product-page-top > .product-summary-column {
    border-top: 1px solid var(--icom-border, #dee2e6);
  }

  /* Убираем фиксированную высоту правого блока на мобильных */
  html[dir="ltr"] #product-info .product-summary-panel,
  body[dir="ltr"] #product-info .product-summary-panel {
    min-height: 0;
  }

  html[dir="ltr"] #product-info .product-gallery,
  body[dir="ltr"] #product-info .product-gallery {
    display: flex;
    flex-direction: column-reverse;
    min-height: 0;
    gap: 12px;
  }

  html[dir="ltr"] #product-info .product-gallery-thumbs-panel,
  body[dir="ltr"] #product-info .product-gallery-thumbs-panel {
    border-right: 0;
    border-top: 1px solid var(--icom-border, #dee2e6);
  }

  html[dir="ltr"] #product-info .product-gallery-thumbs,
  body[dir="ltr"] #product-info .product-gallery-thumbs {
    width: 100%;
    max-height: none;
    overflow: hidden;
  }

  html[dir="ltr"] #product-info .product-gallery-thumb,
  body[dir="ltr"] #product-info .product-gallery-thumb {
    width: 96px;
    height: 82px;
    flex: 0 0 96px;
    border-bottom: 0;
    border-right: 1px solid var(--icom-border, #dee2e6);
  }

  html[dir="ltr"] #product-info .product-gallery-thumb-nav,
  body[dir="ltr"] #product-info .product-gallery-thumb-nav {
    display: none;
  }

  html[dir="ltr"] #product-info .product-gallery-main,
  body[dir="ltr"] #product-info .product-gallery-main {
    min-height: 320px;
    padding: 18px;
  }

  html[dir="ltr"] #product-info .product-gallery-main .swiper-slide,
  body[dir="ltr"] #product-info .product-gallery-main .swiper-slide {
    min-height: 284px;
  }

  html[dir="ltr"] #product-info .product-gallery-main img,
  body[dir="ltr"] #product-info .product-gallery-main img {
    max-height: 300px;
  }
}

@media (max-width: 575.98px) {
  .featured-products {
    --featured-gap: 16px;
  }

  .featured-products--mobile-grid {
    display: grid;
    grid-template-columns: repeat(var(--featured-mobile-columns), minmax(0, 1fr));
    gap: var(--featured-gap);
  }

  .featured-products--mobile-carousel {
    display: flex;
    gap: var(--featured-gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .featured-products--mobile-carousel .featured-products__item {
    flex: 0 0 var(--featured-mobile-card-width);
    scroll-snap-align: start;
  }
}

@media (max-width: 991.98px) {
  html[dir="ltr"] #product-info .product-summary-specs-grid,
  body[dir="ltr"] #product-info .product-summary-specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[dir="ltr"] #product-info .product-full-specification,
  body[dir="ltr"] #product-info .product-full-specification,
  html[dir="ltr"] #product-info .product-review-block,
  body[dir="ltr"] #product-info .product-review-block {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 575.98px) {
  html[dir="ltr"] #product-info .product-page-title,
  body[dir="ltr"] #product-info .product-page-title {
    font-size: 22px;
  }

  html[dir="ltr"] #product-info .product-summary-specs-grid,
  body[dir="ltr"] #product-info .product-summary-specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Страница товара: компактный мобильный блок кратких характеристик над описанием. */
  html[dir="ltr"] #product-info .product-summary-specs,
  body[dir="ltr"] #product-info .product-summary-specs {
    margin-top: 22px;
    padding: 18px 0 16px;
    border-top: 1px solid #dfe5ee;
    border-bottom: 0;
  }

  html[dir="ltr"] #product-info .product-summary-specs h3,
  body[dir="ltr"] #product-info .product-summary-specs h3 {
    margin-bottom: 16px;
    font-size: 18px;
    line-height: 1.25;
  }

  html[dir="ltr"] #product-info .product-summary-specs-grid,
  body[dir="ltr"] #product-info .product-summary-specs-grid {
    gap: 14px 18px;
  }

  html[dir="ltr"] #product-info .product-summary-spec,
  body[dir="ltr"] #product-info .product-summary-spec {
    min-width: 0;
  }

  html[dir="ltr"] #product-info .product-summary-spec span,
  body[dir="ltr"] #product-info .product-summary-spec span {
    margin-bottom: 5px;
    font-size: 12px;
    line-height: 1.25;
    white-space: normal;
  }

  html[dir="ltr"] #product-info .product-summary-spec strong,
  body[dir="ltr"] #product-info .product-summary-spec strong {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  html[dir="ltr"] #product-info .product-all-specs-link,
  body[dir="ltr"] #product-info .product-all-specs-link {
    margin-top: 16px;
    font-size: 13px;
  }

  html[dir="ltr"] #product-info .product-description-accordion,
  body[dir="ltr"] #product-info .product-description-accordion {
    margin: 28px 0 24px;
  }

  html[dir="ltr"] #product-info .product-description-accordion-toggle,
  body[dir="ltr"] #product-info .product-description-accordion-toggle {
    min-height: 76px;
    padding: 0 20px;
    font-size: 18px;
  }

  html[dir="ltr"] #product-info .product-description-accordion-body,
  body[dir="ltr"] #product-info .product-description-accordion-body {
    padding: 0 20px 26px;
    font-size: 13px;
    line-height: 1.65;
  }

  html[dir="ltr"] #product-info .product-full-specification-row,
  body[dir="ltr"] #product-info .product-full-specification-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  html[dir="ltr"] #product-info .product-full-specification-row::before,
  body[dir="ltr"] #product-info .product-full-specification-row::before {
    display: none;
  }

  html[dir="ltr"] #product-info .product-full-specification-row dt,
  body[dir="ltr"] #product-info .product-full-specification-row dt {
    order: 1;
    text-align: left;
    white-space: normal;
  }

  html[dir="ltr"] #product-info .product-full-specification-row dd,
  body[dir="ltr"] #product-info .product-full-specification-row dd {
    order: 2;
  }
}

@media (max-width: 575.98px) {
  html[dir="ltr"] #product-info #form-product #input-quantity,
  body[dir="ltr"] #product-info #form-product #input-quantity {
    display: block !important;
    flex: 0 0 56px !important;
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    height: 46px !important;
    padding: 0 !important;
    color: #0b1320 !important;
    background: #fff !important;
    opacity: 1 !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 46px !important;
    border-radius: 0 !important;
    overflow: visible !important;
    -webkit-text-fill-color: #0b1320 !important;
  }
}

@media (max-width: 575.98px) {
  .product-thumb .product-thumb-buy-row {
    display: grid !important;
    grid-template-columns: minmax(34px, 1fr) minmax(70px, 1.15fr) minmax(34px, 1fr) !important;
    gap: 4px !important;
    padding: 12px 6px 14px !important;
    align-items: center !important;
    justify-content: stretch !important;
  }

  .product-thumb .product-thumb-quickview,
  .product-thumb .product-thumb-cart {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 42px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .product-thumb .product-thumb-quantity {
    width: 100% !important;
    min-width: 70px !important;
    max-width: none !important;
    height: 42px !important;
    grid-template-columns: minmax(40px, 1fr) 30px !important;
  }

  .product-thumb .product-thumb-qty-input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
  }
}

@media (max-width: 575.98px) {
  @container (min-width: 260px) {
    .product-thumb .product-thumb-buy-row {
      grid-template-columns: minmax(72px, 1fr) minmax(96px, 1.15fr) minmax(72px, 1fr) !important;
      gap: 8px !important;
      padding: 16px 18px 18px !important;
    }

    .product-thumb .product-thumb-quickview,
    .product-thumb .product-thumb-cart,
    .product-thumb .product-thumb-quantity {
      height: 46px !important;
    }

    .product-thumb .product-thumb-quantity {
      min-width: 96px !important;
      grid-template-columns: minmax(56px, 1fr) 34px !important;
    }

    .product-thumb .product-thumb-quantity button {
      width: 34px !important;
      min-width: 34px !important;
      max-width: 34px !important;
    }
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  #product-list.row-cols-lg-4 > .col {
    flex: 0 0 auto;
    width: 33.333333%;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  #product-list > .col {
    min-width: 0;
  }

  #product-list .product-thumb {
    min-width: 0;
  }
}

/* Главная страница: товарные модули не сжимаем до разрушения карточек на очень узких экранах. */
@media (max-width: 991.98px) {
  .product-blocks {
    --product-blocks-gap: 16px;
  }

  .product-blocks__items {
    grid-template-columns: repeat(var(--product-blocks-mobile-columns), minmax(0, 1fr));
  }

  .product-blocks__items--carousel .product-blocks__item {
    flex-basis: calc((100% - (var(--product-blocks-mobile-columns) - 1) * var(--product-blocks-gap)) / var(--product-blocks-mobile-columns));
  }
}
@media (max-width: 575.98px) {
  .product-blocks--carousel .product-blocks__items--carousel {
    overscroll-behavior-x: contain;
  }

  .product-blocks--carousel .product-blocks__items--carousel .product-blocks__item {
    flex-basis: max(160px, calc((100% - (var(--product-blocks-mobile-columns, 2) - 1) * var(--product-blocks-gap, 16px)) / var(--product-blocks-mobile-columns, 2))) !important;
    min-width: 160px !important;
  }

  .product-blocks--carousel .product-thumb,
  .product-blocks--carousel .product-thumb > form,
  .product-blocks--carousel .product-thumb .content {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* Категории: удерживаем карточки в ряд, но не сжимаем их до разрушения на очень узких экранах. */
@media (max-width: 575.98px) {
  #product-list.row-cols-1 {
    display: grid !important;
    grid-template-columns: minmax(160px, 1fr) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  #product-list.row-cols-1 > .col {
    flex: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 160px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #product-list.row-cols-1 .product-thumb,
  #product-list.row-cols-1 .product-thumb > form,
  #product-list.row-cols-1 .product-thumb .content {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #product-list.row-cols-2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(160px, 1fr)) !important;
    column-gap: var(--bs-gutter-x, 1.5rem) !important;
    row-gap: 1rem !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  #product-list.row-cols-2 > .col {
    flex: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 160px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #product-list.row-cols-2 .product-thumb,
  #product-list.row-cols-2 .product-thumb > form,
  #product-list.row-cols-2 .product-thumb .content {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* Главный слайдер: мобильные размеры, отступы и линии пагинации Swiper. */
@media (max-width: 1199.98px) {
  .main-slider-shell {
    margin-bottom: 34px;
  }
}

@media (max-width: 767.98px) {
  .main-slider-shell {
    padding: 12px 0 28px;
    margin-bottom: 34px;
  }

  .main-slider-shell .container-fluid {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .main-slider-box {
    height: 365px;
  }

  .main-slider-item {
    flex-direction: column;
    justify-content: flex-start;
    gap: 18px;
    padding: 30px 24px 46px;
    text-align: center;
  }

  .main-slider-text {
    width: 100%;
  }

  .main-slider-title {
    font-size: 20px;
  }

  .main-slider-image {
    width: 100%;
    height: 220px;
  }

  .main-slider-arrow {
    display: none;
  }

  .main-slider-pagination {
    left: 24px;
    right: 24px;
    bottom: 12px;
  }

  .main-slider-swiper.swiper-container-horizontal > .main-slider-pagination.swiper-pagination-bullets {
    left: 24px !important;
    right: 24px !important;
    width: auto !important;
  }
}

@media (max-width: 767.98px) {
  .main-slider-shell {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 767.98px) {
  .main-slider-swiper .main-slider-item:not(.main-slider-item-side) {
    flex-direction: column;
  }
}

@media (max-width: 1199px) {
  #checkout-cart .cart-theme {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  #checkout-cart .cart-theme-item {
    grid-template-columns: 96px minmax(0, 1fr) 116px 132px 34px;
    gap: 14px;
  }
}

@media (max-width: 991px) {
  #checkout-cart .cart-theme {
    grid-template-columns: 1fr;
  }

  #checkout-cart .cart-theme-sidebar {
    padding: 28px;
  }
}

@media (max-width: 767px) {
  #checkout-cart .cart-theme-heading {
    margin-top: 16px;
    font-size: 24px;
  }

  #checkout-cart .cart-theme-item {
    grid-template-columns: 76px minmax(0, 1fr) 34px;
    gap: 12px;
    padding: 16px 14px;
  }

  #checkout-cart .cart-theme-image {
    min-height: 72px;
  }

  #checkout-cart .cart-theme-image img {
    max-width: 68px;
    max-height: 68px;
  }

  #checkout-cart .cart-theme-qty {
    grid-column: 2 / 3;
    justify-self: start;
    width: 112px;
    margin-top: 8px;
  }

  #checkout-cart .cart-theme-price {
    grid-column: 2 / 4;
    margin-top: 6px;
  }

  #checkout-cart .cart-theme-remove {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    align-self: start;
  }

  #checkout-cart .cart-theme-sidebar {
    padding: 24px 18px;
  }

  #checkout-cart .cart-theme-empty,
  #common-success .checkout-theme-success {
    min-height: 360px;
    padding: 38px 16px 56px;
  }

  #checkout-cart .cart-theme-empty-image,
  #common-success .checkout-theme-success .cart-theme-empty-image {
    width: 160px;
    height: 160px;
    margin-bottom: 28px;
  }

  #checkout-cart .cart-theme-empty h1,
  #common-success .checkout-theme-success h1 {
    font-size: 24px;
  }

  #common-success .checkout-theme-success-message {
    font-size: 16px;
  }

  .product-quickview-modal .modal-dialog {
    max-width: 100%;
    min-height: 100%;
    margin: 0;
  }

  .product-quickview-modal .modal-content {
    min-height: 100vh;
    border-radius: 0;
  }

  .product-quickview {
    grid-template-columns: 1fr;
  }

  .product-quickview-gallery {
    order: -1;
    grid-template-columns: 1fr;
    border: 0;
  }

  .product-quickview-info {
    padding: 22px 18px 36px;
  }

  .product-quickview-top {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .product-quickview-brand {
    grid-column: 1 / -1;
    justify-items: start;
  }

  .product-quickview h2 {
    font-size: 22px;
  }

  .product-quickview-price {
    font-size: 30px;
  }

  .product-quickview-attrs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
  }

  .product-quickview-attrs {
    margin-top: 22px;
    padding: 18px 0 16px;
  }

  .product-quickview-attrs h3 {
    margin-bottom: 16px;
    font-size: 18px;
    line-height: 1.25;
  }

  .product-quickview-attrs-grid div {
    min-width: 0;
  }

  .product-quickview-attrs-grid span {
    margin-bottom: 5px;
    font-size: 12px;
    line-height: 1.25;
    white-space: normal;
  }

  .product-quickview-attrs-grid strong {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 767px) {
  .product-quickview-modal .modal-content {
    background: #f7f8fb;
  }

  .product-quickview {
    min-height: 0;
  }

  .product-quickview-gallery {
    display: block;
    background: #fff;
  }

  .product-quickview-info {
    margin: 0 12px 24px;
    padding: 28px 28px 34px;
    background: #fff;
    border: 1px solid #dfe5ee;
    border-radius: 5px;
  }

  .product-quickview-top {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 0;
  }

  .product-quickview-actions {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-quickview-actions .btn {
    width: 100%;
    min-width: 0;
    padding: 0 10px;
  }

  .product-quickview-brand {
    grid-column: 1 / -1;
    justify-items: start;
    padding: 2px 0 14px;
    border-bottom: 1px solid #dfe5ee;
  }

  .product-quickview-brand a {
    color: #111;
    text-transform: none;
  }

  .product-quickview-stock-row {
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 18px 0 8px;
  }

  .product-quickview h2 {
    margin: 12px 0 8px;
    font-size: 22px;
    line-height: 1.25;
  }

  .product-quickview-price {
    margin: 8px 0 20px;
    text-align: end;
    font-size: 34px;
    line-height: 1.1;
  }

  .product-quickview-buy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 148px;
    gap: 18px;
    padding-bottom: 22px;
    border-bottom: 1px solid #dfe5ee;
  }

  .product-quickview-cart {
    width: 100%;
    min-width: 0;
    min-height: 46px;
  }

  .product-quickview-quantity {
    grid-template-columns: 46px 54px 46px;
  }

  .product-quickview-quantity button,
  .product-quickview-quantity input {
    height: 46px;
    font-size: 17px;
  }

  .product-quickview-attrs,
  .product-quickview-description {
    margin-top: 22px;
    padding-top: 0;
    border-top: 0;
  }

  .product-quickview-attrs h3,
  .product-quickview-description h3 {
    margin-bottom: 16px;
    font-size: 20px;
    line-height: 1.25;
  }

  .product-quickview-attrs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
  }

  .product-quickview-open {
    width: 100%;
    min-width: 0;
    margin-top: 22px;
  }
}

@media (max-width: 767px) {
  .product-quickview-price .price-new {
    font-weight: 800;
  }

  .product-quickview-gallery {
    border-inline-start: 0;
  }

  .product-quickview-product-gallery {
    display: flex;
    flex-direction: column-reverse;
    min-height: 0;
    gap: 12px;
    background: #fff;
  }

  .product-quickview-product-gallery .product-gallery-thumbs-panel {
    order: 0;
    display: block;
    border-inline-start: 0;
    border-top: 1px solid #dfe5ee;
  }

  .product-quickview-product-gallery .product-gallery-thumbs {
    width: 100%;
    max-height: none;
    overflow: hidden;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .product-quickview-product-gallery .product-gallery-thumb {
    width: 96px;
    height: 82px;
    flex: 0 0 96px;
    border-bottom: 0;
    border-inline-end: 1px solid #dfe5ee;
  }

  .product-quickview-product-gallery .product-gallery-thumb-nav {
    display: none;
  }

  .product-quickview-product-gallery .product-gallery-main {
    min-height: 300px;
    padding: 12px;
    touch-action: pan-y;
  }

  .product-quickview-product-gallery .product-gallery-main .swiper-slide {
    min-height: 276px;
    touch-action: pan-y;
  }

  .product-quickview-product-gallery .product-gallery-main img {
    max-height: 276px;
    user-select: none;
    -webkit-user-drag: none;
  }

  .product-quickview-product-gallery .product-gallery-main .swiper-wrapper,
  .product-quickview-product-gallery .product-gallery-main-link {
    touch-action: pan-y;
  }
}

@media (max-width: 767px) {
  .product-quickview-product-gallery:not(.is-swiper-ready) .product-gallery-main .swiper-wrapper {
    display: block;
    transform: none !important;
  }

  .product-quickview-product-gallery:not(.is-swiper-ready) .product-gallery-main .swiper-slide {
    display: none;
  }

  .product-quickview-product-gallery:not(.is-swiper-ready) .product-gallery-main .swiper-slide:first-child {
    display: flex;
  }

  .product-quickview-product-gallery:not(.is-swiper-ready) .product-gallery-thumbs .swiper-wrapper {
    display: flex;
    overflow-x: auto;
    transform: none !important;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 767px) {
  .product-quickview-modal .product-gallery-main-link {
    cursor: default;
  }
}

@media (max-width: 767px) {
  .product-quickview-modal .product-quickview-close-bar {
    top: 12px;
    z-index: 1070;
  }

  .product-quickview-modal .modal-content > .product-quickview-close {
    position: absolute !important;
    top: 12px !important;
    left: 0 !important;
    right: 0 !important;
    width: 32px !important;
    height: 32px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    transform: none !important;
    z-index: 1070;
  }

  .product-quickview-modal .product-quickview-close {
    position: static !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    transform: none !important;
    filter: none;
  }
}

@media (max-width: 767px) {
  html[dir="ltr"] .product-quickview-product-gallery,
  body[dir="ltr"] .product-quickview-product-gallery {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  html[dir="ltr"] .product-quickview-product-gallery .product-gallery-main,
  body[dir="ltr"] .product-quickview-product-gallery .product-gallery-main {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  html[dir="ltr"] .product-quickview-product-gallery .product-gallery-main .swiper-wrapper,
  body[dir="ltr"] .product-quickview-product-gallery .product-gallery-main .swiper-wrapper {
    align-items: center;
  }

  html[dir="ltr"] .product-quickview-product-gallery .product-gallery-main .swiper-slide,
  body[dir="ltr"] .product-quickview-product-gallery .product-gallery-main .swiper-slide {
    width: 100%;
    min-width: 100%;
    flex: 0 0 100%;
    overflow: hidden;
  }

  html[dir="ltr"] .product-quickview-product-gallery .product-gallery-main-link,
  body[dir="ltr"] .product-quickview-product-gallery .product-gallery-main-link {
    width: 100%;
    overflow: hidden;
  }

  html[dir="ltr"] .product-quickview-product-gallery .product-gallery-main img,
  body[dir="ltr"] .product-quickview-product-gallery .product-gallery-main img {
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }
}

@media (max-width: 767px) {
  #product-info .product-full-specification-row {
    position: relative;
  }

  #product-info .product-full-specification-row::before {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    top: 50%;
    display: block;
    height: 1px;
    background-image: radial-gradient(circle, #d7dbe9 1px, transparent 1.2px);
    background-position: left center;
    background-repeat: repeat-x;
    background-size: 6px 1px;
    pointer-events: none;
  }

  #product-info .product-full-specification-row dt,
  #product-info .product-full-specification-row dd {
    position: relative;
    z-index: 1;
    background: #f7f7fb;
  }
}

@media (max-width: 767px) {
  html[dir="ltr"] #product-info .product-full-specification-row,
  body[dir="ltr"] #product-info .product-full-specification-row {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
    gap: 0;
    align-items: center;
  }

  html[dir="ltr"] #product-info .product-full-specification-row::before,
  body[dir="ltr"] #product-info .product-full-specification-row::before {
    top: 50%;
    display: block;
  }

  html[dir="ltr"] #product-info .product-full-specification-row dt,
  body[dir="ltr"] #product-info .product-full-specification-row dt {
    order: 1;
    grid-column: 1;
    justify-self: start;
    padding-right: 8px;
    padding-left: 0;
    text-align: left;
    white-space: nowrap;
  }

  html[dir="ltr"] #product-info .product-full-specification-row dd,
  body[dir="ltr"] #product-info .product-full-specification-row dd {
    order: 3;
    grid-column: 3;
    justify-self: end;
    padding-right: 0;
    padding-left: 8px;
    text-align: right;
  }
}

@media (max-width: 767px) {
  html[dir="ltr"] #product-info .product-full-specification-row,
  body[dir="ltr"] #product-info .product-full-specification-row {
    display: grid !important;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto) !important;
    gap: 0 !important;
    align-items: center !important;
  }

  html[dir="ltr"] #product-info .product-full-specification-row::before,
  body[dir="ltr"] #product-info .product-full-specification-row::before {
    top: 50% !important;
    display: block !important;
  }

  html[dir="ltr"] #product-info .product-full-specification-row dt,
  body[dir="ltr"] #product-info .product-full-specification-row dt {
    order: 1 !important;
    grid-column: 1 !important;
    justify-self: start !important;
    padding-right: 8px !important;
    padding-left: 0 !important;
    text-align: left !important;
    white-space: nowrap !important;
  }

  html[dir="ltr"] #product-info .product-full-specification-row dd,
  body[dir="ltr"] #product-info .product-full-specification-row dd {
    order: 3 !important;
    grid-column: 3 !important;
    justify-self: end !important;
    padding-right: 0 !important;
    padding-left: 8px !important;
    text-align: right !important;
  }
}

@media (max-width: 767px) {
  html[dir="ltr"] #product-info .product-full-specification-row dt,
  body[dir="ltr"] #product-info .product-full-specification-row dt {
    order: 3 !important;
    grid-column: 3 !important;
    justify-self: end !important;
    padding-right: 0 !important;
    padding-left: 8px !important;
    text-align: right !important;
  }

  html[dir="ltr"] #product-info .product-full-specification-row dd,
  body[dir="ltr"] #product-info .product-full-specification-row dd {
    order: 1 !important;
    grid-column: 1 !important;
    justify-self: start !important;
    padding-right: 8px !important;
    padding-left: 0 !important;
    text-align: left !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 767.98px) {
  /* Header mini cart mobile: theme drawer shell */
  body.header-cart-open {
    overflow: hidden;
  }

  #cart.site-header__cart .header-cart__button {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.08);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  }

  #cart.site-header__cart .header-cart__button i {
    color: #fff;
    font-size: 18px;
    line-height: 1;
  }

  #cart.site-header__cart .header-cart__overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.62);
    opacity: 0;
    transition: opacity 0.22s ease;
  }

  #cart.site-header__cart .header-cart__drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 3010;
    width: min(420px, 100vw);
    height: 100vh;
    background: #f4f5fa;
    color: #171d24;
    transform: translateX(100%);
    transition: transform 0.24s ease;
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.18);
  }

  #cart.site-header__cart.is-open .header-cart__overlay,
  body.header-cart-open #cart.site-header__cart .header-cart__overlay {
    pointer-events: auto;
    opacity: 1;
  }

  #cart.site-header__cart.is-open .header-cart__drawer,
  body.header-cart-open #cart.site-header__cart .header-cart__drawer {
    transform: translateX(0);
  }

  #cart.site-header__cart .header-cart__scroll {
    height: 100%;
    padding: 86px 20px 28px;
    overflow-y: auto;
  }

  #cart.site-header__cart .header-cart__close {
    position: absolute;
    top: 22px;
    left: 20px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  #cart.site-header__cart .header-cart__close::before,
  #cart.site-header__cart .header-cart__close::after {
    content: "";
    position: absolute;
    top: 23px;
    left: 2px;
    width: 44px;
    height: 1px;
    background: #171d24;
    transform-origin: center;
  }

  #cart.site-header__cart .header-cart__close::before {
    transform: rotate(45deg);
  }

  #cart.site-header__cart .header-cart__close::after {
    transform: rotate(-45deg);
  }

  /* Header mini cart mobile: title and clear action */
  #cart.site-header__cart .header-cart__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
  }

  #cart.site-header__cart .header-cart__head h2 {
    margin: 0;
    color: #171d24;
    font-size: 25px;
    font-weight: 700;
  }

  #cart.site-header__cart .header-cart__clear-form {
    margin: 0;
  }

  #cart.site-header__cart .header-cart__clear {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #258ec2;
    font-size: 13px;
    line-height: 1;
  }

  #cart.site-header__cart .header-cart__clear span {
    color: #ff3158;
    font-size: 22px;
    line-height: 1;
  }

  /* Header mini cart mobile: product card */
  #cart.site-header__cart .header-cart__list {
    display: grid;
    gap: 12px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
  }

  #cart.site-header__cart .header-cart__item {
    position: relative;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) 24px;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(39, 49, 61, 0.06);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(39, 49, 61, 0.04);
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
  }

  #cart.site-header__cart .header-cart__item.cart-item-updating {
    opacity: 0.72;
    box-shadow: 0 14px 32px rgba(179, 122, 21, 0.14);
  }

  #cart.site-header__cart .header-cart__image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border: 1px solid #e4e8f0;
    border-radius: 4px;
    background: #fff;
  }

  #cart.site-header__cart .header-cart__image img {
    max-width: 62px;
    max-height: 62px;
    object-fit: contain;
  }

  #cart.site-header__cart .header-cart__model {
    margin-bottom: 4px;
    color: #a7afc2;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
  }

  #cart.site-header__cart .header-cart__name {
    display: inline-block;
    color: #151b22;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
  }

  #cart.site-header__cart .header-cart__meta {
    margin: 7px 0 0;
    padding: 0;
    color: #5c6675;
    font-size: 12px;
    line-height: 1.5;
    list-style: none;
  }

  /* Header mini cart mobile: quantity, price and item menu */
  #cart.site-header__cart .header-cart__buy-row {
    grid-column: 1 / 4;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 6px;
  }

  #cart.site-header__cart .header-cart__price {
    color: #1f2933;
  }

  #cart.site-header__cart .header-cart__price strong {
    display: inline-block;
    font-size: 17px;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  #cart.site-header__cart .header-cart__price strong.is-price-changing,
  #cart.site-header__cart .header-cart__summary strong.is-price-changing {
    color: #000;
    transform: translateY(-2px) scale(1.04);
  }

  #cart.site-header__cart .header-cart__price small {
    display: inline-block;
    margin-inline-start: 4px;
    color: #a7afc2;
    font-size: 12px;
  }

  #cart.site-header__cart .header-cart__qty {
    display: grid;
    grid-template-columns: 50px minmax(72px, 1fr) 50px;
    align-items: center;
    min-height: 46px;
    margin: 0;
    border: 1px solid #dfe5ee;
    border-radius: 4px;
    background: #fff;
  }

  #cart.site-header__cart .header-cart__qty-btn,
  #cart.site-header__cart .header-cart__qty-input {
    width: 100%;
    height: 46px;
    border: 0;
    background: transparent;
    color: #1f2933;
    text-align: center;
  }

  #cart.site-header__cart .header-cart__qty-btn {
    font-size: 12px;
  }

  #cart.site-header__cart .header-cart__qty-input {
    padding: 0;
    font-weight: 700;
    outline: none;
    appearance: textfield;
  }

  #cart.site-header__cart .header-cart__qty-input::-webkit-outer-spin-button,
  #cart.site-header__cart .header-cart__qty-input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
  }

  #cart.site-header__cart .header-cart__action {
    position: relative;
    z-index: 2;
  }

  #cart.site-header__cart .header-cart__action-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1f2933;
    font-size: 18px;
  }

  #cart.site-header__cart .header-cart__action-menu {
    position: absolute;
    top: 34px;
    right: 0;
    z-index: 20;
    width: 190px;
    padding: 6px 0;
    border: 1px solid #e4e8f0;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(23, 29, 36, 0.14);
  }

  #cart.site-header__cart .header-cart__action-menu[hidden] {
    display: none;
  }

  #cart.site-header__cart .header-cart__action-menu form {
    margin: 0;
  }

  #cart.site-header__cart .header-cart__action-link {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: 0;
    background: transparent;
    color: #171d24;
    font-size: 14px;
    line-height: 1.25;
    text-align: start;
    text-decoration: none;
  }

  /* Header mini cart mobile: totals */
  #cart.site-header__cart .header-cart__summary {
    margin-top: 10px;
    padding: 30px 20px 24px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(39, 49, 61, 0.04);
  }

  #cart.site-header__cart .header-cart__summary h3 {
    margin: 0 0 22px;
    color: #1f2933;
    font-size: 22px;
    font-weight: 700;
  }

  #cart.site-header__cart .header-cart__summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 0;
    color: #1f2933;
    font-size: 14px;
  }

  #cart.site-header__cart .header-cart__summary-row--total {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 700;
  }

  #cart.site-header__cart .header-cart__checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    margin-top: 24px;
    border-radius: 4px;
    background: var(--site-button-gradient, linear-gradient(180deg, var(--site-primary-color, #2e4559), var(--site-secondary-color, #36546d)));
    background-color: var(--site-primary-color, #2e4559);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
  }

  #cart.site-header__cart .header-cart__cart-link {
    display: block;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e6eaf1;
    color: #171d24;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
  }

  #cart.site-header__cart .header-cart__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
  }

  #cart.site-header__cart .header-cart__empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    margin-bottom: 24px;
    border-radius: 50%;
    background: #fff;
    color: #b37a15;
    font-size: 30px;
    box-shadow: 0 18px 45px rgba(39, 49, 61, 0.05);
  }

  #cart.site-header__cart .header-cart__empty p {
    margin: 0;
    color: #1f2933;
    font-size: 18px;
    font-weight: 700;
  }
}

@media (max-width: 767px) {
  .product-quickview-modal .modal-content,
  .product-quickview {
    background: #f7f8fb;
  }

  .product-quickview-gallery,
  .product-quickview-product-gallery {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    margin-right: auto;
    margin-left: auto;
    background: #fff;
    overflow: hidden;
  }

  .product-quickview-info {
    box-sizing: border-box;
    width: calc(100% - 44px);
    max-width: calc(100% - 44px);
    margin-right: auto;
    margin-left: auto;
  }

  html[dir="ltr"] .product-quickview-gallery,
  body[dir="ltr"] .product-quickview-gallery,
  html[dir="ltr"] .product-quickview-product-gallery,
  body[dir="ltr"] .product-quickview-product-gallery {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    margin-right: auto;
    margin-left: auto;
  }

  html[dir="ltr"] .product-quickview-product-gallery .product-gallery-main,
  body[dir="ltr"] .product-quickview-product-gallery .product-gallery-main {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .product-quickview-info {
    padding-right: 20px;
    padding-left: 20px;
    border-radius: 8px;
  }
}

@media (max-width: 767px) {
  .product-quickview-modal .modal-content,
  .product-quickview-modal .product-quickview {
    background: #f7f8fb !important;
  }

  .product-quickview-modal .product-quickview {
    height: auto;
    max-height: none;
  }

  .product-quickview-modal .product-quickview-info {
    background: #fff !important;
  }
}

@media (max-width: 767px) {
  .breadcrumb > li.breadcrumb-item:last-child {
    display: none;
  }

  .breadcrumb > li.breadcrumb-item:nth-last-child(2)::after {
    display: none;
  }
}

@media (max-width: 767px) {
  body.mobile-search-open {
    overflow: hidden;
  }

  .site-header__search,
  .site-fixed-menu .site-header__search {
    display: none !important;
  }

  .mobile-search-panel[hidden] {
    display: none !important;
  }

  .mobile-search-panel {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: block;
  }

  .mobile-search-panel__overlay {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(0, 0, 0, 0.46);
    opacity: 0;
    transition: opacity 0.22s ease;
  }

  .mobile-search-panel__drawer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    height: 100dvh;
    max-height: 100dvh;
    flex-direction: column;
    background: #f5f6fb;
    color: #111827;
    transform: translateY(100%);
    transition: transform 0.24s ease;
  }

  .mobile-search-panel.is-open .mobile-search-panel__overlay {
    opacity: 1;
  }

  .mobile-search-panel.is-open .mobile-search-panel__drawer {
    transform: translateY(0);
  }

  .mobile-search-panel__head {
    position: relative;
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 52px;
    border-bottom: 1px solid #e2e6ef;
    background: #fff;
    font-size: 16px;
    line-height: 1.2;
  }

  .mobile-search-panel__close {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #000;
    font-size: 24px;
    line-height: 1;
  }

  .mobile-search-panel__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    background: #f5f6fb;
  }

  .mobile-search-panel .site-live-search {
    position: static;
    padding: 10px 0 0;
  }

  .mobile-search-panel .site-live-search form.input-group {
    position: relative;
    display: block;
    height: 42px;
    margin: 0 14px 10px;
    overflow: hidden;
    border-radius: 6px;
    background: #ebeef6;
    box-shadow: none;
  }

  .mobile-search-panel .site-live-search .form-control {
    width: 100%;
    height: 42px;
    min-height: 42px;
    border: 0;
    background: transparent;
    color: #111827;
    font-size: 16px;
    padding: 0 46px 0 14px;
    box-shadow: none;
  }

  .mobile-search-panel .site-live-search .form-control::placeholder {
    color: #6f7785;
  }

  .mobile-search-panel .site-live-search .btn {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: inline-flex;
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    height: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0 !important;
    background: transparent;
    color: #b7beca;
    box-shadow: none;
  }

  .mobile-search-panel .site-live-search .search-button-text {
    display: none;
  }

  .mobile-search-panel .site-live-search .btn i {
    display: inline-block;
    font-size: 18px;
  }

  .mobile-search-panel .site-live-search__panel {
    position: relative;
    display: block;
    min-width: 0;
    max-width: none;
    color: #111827;
  }

  .mobile-search-panel .site-live-search__close {
    display: none !important;
  }

  .mobile-search-panel .site-live-search__preview {
    display: none !important;
  }

  .mobile-search-panel .site-live-search__results {
    border: 0;
    border-top: 1px solid #e2e6ef;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .mobile-search-panel .site-live-search__list {
    max-height: none;
    overflow: visible;
    background: transparent;
  }

  .mobile-search-panel .site-live-search__row {
    border-bottom: 1px solid #e2e6ef;
    background: transparent;
  }

  .mobile-search-panel .site-live-search__row > a {
    min-height: 84px;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    color: #111827;
  }

  .mobile-search-panel .site-live-search__thumb {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 4px;
    background: #fff;
  }

  .mobile-search-panel .site-live-search__name {
    color: #111827;
    font-size: 15px;
    line-height: 1.28;
    font-weight: 500;
  }

  .mobile-search-panel .site-live-search__model {
    color: #b5bdcf;
    font-size: 12px;
    text-align: end;
  }

  .mobile-search-panel .site-live-search__mark {
    background: #e7eaf4;
    color: #111827;
  }

  .mobile-search-panel .site-live-search__price {
    display: block;
    margin-top: 6px;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
  }

  .mobile-search-panel .site-live-search__arrow {
    display: none;
  }

  .mobile-search-panel .site-live-search__more,
  .mobile-search-panel .site-live-search__empty {
    border-bottom: 1px solid #e2e6ef;
    background: transparent;
  }
}

@media (max-width: 767px) {
  html[dir="ltr"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"],
  body[dir="ltr"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] {
    position: relative !important;
    display: block !important;
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    box-sizing: border-box !important;
    margin-right: 14px !important;
    margin-left: 14px !important;
    direction: ltr !important;
    overflow: hidden !important;
  }

  html[dir="ltr"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] input,
  html[dir="ltr"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] .form-control,
  body[dir="ltr"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] input,
  body[dir="ltr"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] .form-control {
    width: 100% !important;
    padding-right: 52px !important;
    padding-left: 14px !important;
    border-radius: 6px !important;
    text-align: left !important;
  }

  html[dir="ltr"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] button,
  html[dir="ltr"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] .btn,
  body[dir="ltr"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] button,
  body[dir="ltr"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] .btn {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
    background: transparent !important;
  }

  html[dir="ltr"] .mobile-search-panel .site-live-search__row:not(.site-live-search__row--product) .site-live-search__search-icon,
  body[dir="ltr"] .mobile-search-panel .site-live-search__row:not(.site-live-search__row--product) .site-live-search__search-icon {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .mobile-bottom-nav__item {
    color: #fff !important;
    font-weight: 700;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  .mobile-bottom-nav__item i {
    color: #fff !important;
    font-size: 21px;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
  }

  .mobile-bottom-nav__item > span:last-child {
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
  }
}

@media (max-width: 767px) {
  .site-header__actions {
    display: none !important;
  }
}

@media (max-width: 767px) {
  #menu.site-menu {
    display: none !important;
  }
}

/* Mobile category menu: bottom drawer and drilldown navigation for phones */
@media (max-width: 767px) {
  body.mobile-category-open {
    overflow: hidden;
  }

  .mobile-category-panel[hidden] {
    display: none !important;
  }

  .mobile-category-panel {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: block;
  }

  .mobile-category-panel__overlay {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(0, 0, 0, 0.46);
    opacity: 0;
    transition: opacity 0.22s ease;
  }

  .mobile-category-panel__drawer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    height: 100dvh;
    max-height: 100dvh;
    flex-direction: column;
    background: #f5f6fb;
    color: #111827;
    transform: translateY(100%);
    transition: transform 0.24s ease;
  }

  .mobile-category-panel.is-open .mobile-category-panel__overlay {
    opacity: 1;
  }

  .mobile-category-panel.is-open .mobile-category-panel__drawer {
    transform: translateY(0);
  }

  .mobile-category-panel__head {
    position: relative;
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 52px;
    border-bottom: 1px solid #e2e6ef;
    background: #fff;
    font-size: 16px;
    line-height: 1.2;
  }

  .mobile-category-panel__close {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #000;
    font-size: 24px;
    line-height: 1;
  }

  .mobile-category-panel__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    background: #f5f6fb;
  }

  .mobile-category-panel .navbar-nav {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-category-panel .nav-item,
  .mobile-category-panel .dropdown {
    display: block;
    width: 100%;
    margin: 0;
    border-bottom: 1px solid #e2e6ef;
  }

  .mobile-category-panel .nav-link,
  .mobile-category-panel .dropdown-item {
    display: flex;
    min-height: 50px;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0 18px;
    background: transparent;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    white-space: normal;
  }

  .mobile-category-panel .nav-link i,
  .mobile-category-panel .dropdown-item i {
    width: 22px;
    flex: 0 0 22px;
    color: var(--site-primary-color, #2e4559);
    text-align: center;
    font-size: 18px;
  }

  .mobile-category-panel .dropdown-toggle::after {
    display: none;
  }

  .mobile-category-panel .dropdown-menu {
    position: static !important;
    display: block !important;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .mobile-category-panel .dropdown-menu .dropdown-item {
    min-height: 44px;
    padding-inline-start: 34px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
  }

  .mobile-category-panel .site-menu-horizontal-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
  }

  .mobile-category-panel .site-menu-horizontal-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .mobile-category-panel .site-menu-horizontal-additional {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .mobile-category-view {
    display: none;
  }

  .mobile-category-view.is-active {
    display: block;
  }

  .mobile-category-row,
  .mobile-category-subhead {
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 28px;
    border: 0;
    border-bottom: 1px solid #e2e6ef;
    background: #fff;
    color: #111827;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    text-align: start;
    text-decoration: none;
  }

  .mobile-category-row__text {
    min-width: 0;
    flex: 1 1 auto;
  }

  .mobile-category-row__arrow {
    flex: 0 0 auto;
    color: #111827;
    font-size: 15px;
  }

  .mobile-category-subhead {
    justify-content: flex-start;
    color: #000;
    font-size: 22px;
    font-weight: 800;
  }

  .mobile-category-subhead i {
    width: 18px;
    flex: 0 0 18px;
    color: #111827;
    font-size: 17px;
  }

  .mobile-category-row--show-all {
    color: #111827;
    font-weight: 800;
  }
}

@media (max-width: 767px) {
  .mobile-category-view .mobile-category-row:nth-child(even) {
    background: #f4f6fb;
  }

  .mobile-category-view .mobile-category-row:nth-child(odd) {
    background: #fff;
  }

  .mobile-category-view .mobile-category-subhead + .mobile-category-row:nth-child(odd) {
    background: #f4f6fb;
  }

  .mobile-category-view .mobile-category-subhead + .mobile-category-row:nth-child(even) {
    background: #fff;
  }

  .mobile-category-view .mobile-category-row--show-all {
    background: #fff;
  }
}

@media (max-width: 767px) {
  .mobile-category-view .mobile-category-row:nth-child(odd) {
    background: #f7f7fb;
  }

  .mobile-category-view .mobile-category-row:nth-child(even) {
    background: #dfe3ec;
  }

  .mobile-category-view .mobile-category-subhead + .mobile-category-row:nth-child(odd) {
    background: #dfe3ec;
  }

  .mobile-category-view .mobile-category-subhead + .mobile-category-row:nth-child(even) {
    background: #f7f7fb;
  }

  .mobile-category-view .mobile-category-row:hover,
  .mobile-category-view .mobile-category-row:focus {
    background: #eef3f7;
  }

  .mobile-category-view .mobile-category-row--show-all {
    background: #f7f7fb;
  }
}

@media (max-width: 767px) {
  /* Mobile topbar: hide standard OpenCart links here; phone and language stay visible, links move into the mobile catalog drawer. */
  .site-topbar__nav-link {
    display: none !important;
  }

  .site-topbar__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
  }

  .site-topbar__links,
  .site-topbar__tools {
    width: auto;
    min-width: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }

  .site-topbar__tools {
    margin-inline-start: auto;
  }
}

@media (max-width: 767.98px) {
  #checkout-simple-builder .cart-theme-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
  }

  #checkout-simple-builder .cart-theme-qty,
  #checkout-simple-builder .cart-theme-price {
    grid-column: 1 / -1;
  }

#checkout-simple-builder .cart-theme-qty {
    width: 100%;
    grid-template-columns: 48px 1fr 48px;
  }

  #checkout-confirm .checkout-confirm {
    margin-top: 18px;
  }

  #checkout-confirm .checkout-confirm-products,
  #checkout-confirm .checkout-confirm-summary {
    padding: 22px 18px;
  }

  #checkout-confirm .checkout-confirm-product {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  #checkout-confirm .checkout-confirm-product__image {
    width: 76px;
    min-height: 68px;
  }

  #checkout-confirm .checkout-confirm-product__image img {
    max-width: 68px;
    max-height: 68px;
  }

  #checkout-confirm .checkout-confirm-product__qty,
  #checkout-confirm .checkout-confirm-product__price {
    grid-column: 1 / -1;
  }

  #checkout-confirm .checkout-confirm-product__qty {
    width: 100%;
    grid-template-columns: 48px 1fr 48px;
  }

  #checkout-confirm .checkout-confirm-product__price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }
}

/* Mobile product cards: keep title and action rows aligned. */
@media (max-width: 767.98px) {
  .product-thumb {
    --product-thumb-title-lines: 2;
  }

  @container (max-width: 239px) {
    .product-thumb {
      --product-thumb-title-lines: 1;
    }

    .product-thumb .product-thumb-meta {
      min-height: 36px;
      align-content: flex-start;
    }
  }

  @container (min-width: 240px) {
    .product-thumb {
      --product-thumb-title-lines: 3;
    }
  }
}

/* Mobile header logo: keep mobile overrides at the end of the CSS file. */
@media (max-width: 575.98px) {
  #logo.site-header__logo {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  #logo.site-header__logo a {
    width: min(96vw, 350px);
    max-width: 100%;
    display: flex;
    justify-content: center;
  }

  #logo.site-header__logo img {
    width: min(96vw, 350px) !important;
    max-width: 100% !important;
    max-height: 96px !important;
    height: auto !important;
  }
}

/* Mobile quickview gallery: keep mobile overrides at the end of the CSS file. */
@media (max-width: 767.98px) {
  .product-quickview-modal .product-quickview-product-gallery {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  .product-quickview-modal .product-quickview-product-gallery .product-gallery-main {
    order: 1 !important;
    width: 100% !important;
    min-height: 260px !important;
    padding: 16px 12px !important;
  }

  .product-quickview-modal .product-quickview-product-gallery .product-gallery-main .swiper-slide {
    min-height: 240px !important;
  }

  .product-quickview-modal .product-quickview-product-gallery .product-gallery-main img {
    max-height: 240px !important;
  }

  .product-quickview-modal .product-quickview-product-gallery .product-gallery-thumbs-panel {
    order: 2 !important;
    width: 100% !important;
    height: 74px !important;
    min-height: 74px !important;
    display: block !important;
    border-top: 1px solid #dfe5ee !important;
    border-inline-start: 0 !important;
    overflow: hidden !important;
  }

  .product-quickview-modal .product-quickview-product-gallery .product-gallery-thumbs {
    width: 100% !important;
    height: 74px !important;
    max-height: 74px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  .product-quickview-modal .product-quickview-product-gallery .product-gallery-thumbs .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: max-content !important;
    height: 74px !important;
    transform: none !important;
  }

  .product-quickview-modal .product-quickview-product-gallery .product-gallery-thumb {
    width: 92px !important;
    height: 74px !important;
    flex: 0 0 92px !important;
    padding: 8px !important;
    border-bottom: 0 !important;
    border-inline-end: 1px solid #dfe5ee !important;
  }

  .product-quickview-modal .product-quickview-product-gallery .product-gallery-thumb img {
    max-width: 70px !important;
    max-height: 58px !important;
  }

  .product-quickview-modal .product-quickview-product-gallery .product-gallery-thumb-nav {
    display: none !important;
  }
}

/* Mobile quickview close: keep mobile overrides at the end of the CSS file. */
@media (max-width: 767.98px) {
  .product-quickview-modal .product-quickview-close-bar {
    top: 8px !important;
    z-index: 1080 !important;
  }

  .product-quickview-modal .product-quickview-close,
  .product-quickview-modal .modal-content > .product-quickview-close {
    top: 8px !important;
    width: 56px !important;
    height: 56px !important;
    background-size: 22px 22px !important;
    opacity: 0.95 !important;
    z-index: 1080 !important;
  }

  html[dir="ltr"] .product-quickview-modal .modal-content > .product-quickview-close,
  body[dir="ltr"] .product-quickview-modal .modal-content > .product-quickview-close,
  html[lang^="ru"] .product-quickview-modal .modal-content > .product-quickview-close {
    left: 50% !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: translateX(-50%) !important;
  }

  html[dir="rtl"] .product-quickview-modal .modal-content > .product-quickview-close,
  body[dir="rtl"] .product-quickview-modal .modal-content > .product-quickview-close,
  html[lang^="he"] .product-quickview-modal .modal-content > .product-quickview-close {
    right: 50% !important;
    left: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: translateX(50%) !important;
  }
}

/* Admin quick edit button */
.site-quick-edit {
  position: fixed;
  bottom: 28px;
  z-index: 1094;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  color: #fff;
  background: var(--site-button-gradient, linear-gradient(180deg, var(--site-primary-color, #2e4559), var(--site-secondary-color, #36546d)));
  background-color: var(--site-primary-color, #2e4559);
  box-shadow: 0 14px 34px rgba(37, 56, 77, 0.28);
  font-size: 22px;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.site-quick-edit--bottom_left {
  left: 28px;
}

.site-quick-edit--bottom_right {
  right: 28px;
}

.site-quick-edit:hover,
.site-quick-edit:focus {
  color: #fff;
  background: linear-gradient(180deg, var(--site-secondary-color, #36546d), var(--site-primary-color, #2e4559));
  background-color: var(--site-secondary-color, #36546d);
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(37, 56, 77, 0.34);
  text-decoration: none;
}

body.has-quick-edit-bottom_left .site-messenger-widget--bottom_left,
body.has-quick-edit-bottom_right .site-messenger-widget--bottom_right {
  bottom: 96px;
}

/* Theme cookie notice */
.theme-cookie-notice {
  position: fixed;
  right: 50%;
  bottom: 16px;
  z-index: 1086;
  width: min(1090px, calc(100vw - 32px));
  transform: translateX(50%);
  transition: opacity 200ms ease, transform 200ms ease;
}

.theme-cookie-notice.is-hiding {
  opacity: 0;
  transform: translateX(50%) translateY(10px);
}

.theme-cookie-notice__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 16px 20px;
  border-radius: 6px;
  color: #fff;
  background: rgba(47, 47, 47, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.theme-cookie-notice__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}

.theme-cookie-notice__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.theme-cookie-notice__button {
  min-width: 98px;
  min-height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 5px;
  color: #202020;
  background: #fff;
  font-weight: 700;
  transition: background-color 160ms ease, transform 160ms ease;
}

.theme-cookie-notice__button:hover,
.theme-cookie-notice__button:focus {
  background: #f1f3f5;
  transform: translateY(-1px);
}

.site-messenger-widget {
  position: fixed;
  bottom: 28px;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 56px);
  box-sizing: border-box;
}

.site-messenger-widget--bottom_right {
  right: 28px;
}

.site-messenger-widget--bottom_left {
  left: 28px;
}

.site-messenger-widget__panel {
  position: absolute;
  bottom: calc(100% + 12px);
  display: grid;
  gap: 10px;
  width: 190px;
  max-width: calc(100vw - 56px);
  padding: 10px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.18);
  transform: translateY(8px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-messenger-widget.is-open .site-messenger-widget__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.site-messenger-widget__panel[hidden] {
  display: none;
}

.site-messenger-widget--bottom_right .site-messenger-widget__panel {
  right: 0;
}

.site-messenger-widget--bottom_left .site-messenger-widget__panel {
  left: 0;
}

.site-messenger-widget__link {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  min-height: 54px;
  border-radius: 8px;
  color: #182230;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.site-messenger-widget__link:hover,
.site-messenger-widget__link:focus {
  color: #182230;
  background: #f5f7fb;
  transform: translateY(-1px);
  text-decoration: none;
}

.site-messenger-widget__link i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
}

.site-messenger-widget__link--whatsapp i {
  background: #25d366;
}

.site-messenger-widget__link--telegram i {
  background: #229ed9;
}

.site-messenger-widget__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--site-button-gradient, linear-gradient(180deg, var(--site-primary-color, #2e4559), var(--site-secondary-color, #36546d)));
  background-color: var(--site-primary-color, #2e4559);
  box-shadow: 0 14px 34px rgba(37, 56, 77, 0.28);
  font-size: 25px;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.site-messenger-widget__toggle:hover,
.site-messenger-widget__toggle:focus {
  background: linear-gradient(180deg, var(--site-secondary-color, #36546d), var(--site-primary-color, #2e4559));
  background-color: var(--site-secondary-color, #36546d);
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(37, 56, 77, 0.34);
}

.site-messenger-widget__toggle .fa-xmark {
  display: none;
}

.site-messenger-widget.is-open .site-messenger-widget__toggle .fa-message {
  display: none;
}

.site-messenger-widget.is-open .site-messenger-widget__toggle .fa-xmark {
  display: inline-block;
}

@media (max-width: 767.98px) {
  .site-messenger-widget {
    bottom: 86px;
    max-width: calc(100vw - 32px);
  }

  .site-messenger-widget--bottom_right {
    right: 16px;
  }

  .site-messenger-widget--bottom_left {
    left: 16px;
  }

  .site-messenger-widget__panel {
    width: 176px;
    max-width: calc(100vw - 32px);
  }

  .site-messenger-widget__toggle {
    width: 58px;
    height: 58px;
    font-size: 23px;
  }
}

.site-back-to-top {
  position: fixed;
  bottom: 108px;
  z-index: 1088;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--site-button-gradient, linear-gradient(180deg, var(--site-primary-color, #2e4559), var(--site-secondary-color, #36546d)));
  background-color: var(--site-primary-color, #2e4559);
  box-shadow: 0 12px 28px rgba(37, 56, 77, 0.24);
  font-size: 20px;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.site-messenger-widget .site-back-to-top {
  position: static;
  flex: 0 0 auto;
}

.site-back-to-top[hidden] {
  display: none;
}

.site-back-to-top--bottom_right {
  right: 28px;
}

.site-back-to-top--bottom_left {
  left: 28px;
}

.site-back-to-top:hover,
.site-back-to-top:focus {
  color: #fff;
  background: linear-gradient(180deg, var(--site-secondary-color, #36546d), var(--site-primary-color, #2e4559));
  background-color: var(--site-secondary-color, #36546d);
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(37, 56, 77, 0.32);
}

@media (max-width: 767.98px) {
  .site-back-to-top {
    bottom: 156px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .site-back-to-top--bottom_right {
    right: 16px;
  }

  .site-back-to-top--bottom_left {
    left: 16px;
  }
}

@media (max-width: 767.98px) {
  .theme-cookie-notice {
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .theme-cookie-notice__inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .theme-cookie-notice__text {
    font-size: 14px;
  }

  .theme-cookie-notice__button {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .site-quick-edit {
    bottom: 16px;
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .site-quick-edit--bottom_left {
    left: 16px;
  }

  .site-quick-edit--bottom_right {
    right: 16px;
  }

  body.has-quick-edit-bottom_left .site-messenger-widget--bottom_left,
  body.has-quick-edit-bottom_right .site-messenger-widget--bottom_right {
    bottom: 78px;
  }
}
