.choices__item input{
    display: none;
}

.product__buy-v2{
    background: none;
  border: 1px solid #ececec;
  border-radius: 50%;
  color: #898c8e;
  cursor: pointer;
  display: flex;
  font-size: 24px;
  padding: 6px;
  transition: all .3s ease-in-out;
}

.navbar__item > .nav-list ul{
  list-style: none;
}
.radio-tag.selected .radio-tag__label{
	background: #757b7e;
  border-color: #757b7e;
  color: #fff;
}
.star-empty{
  color: gray;
}
/* ---- Сортировка: как в макете — текст со стрелкой, без рамки ---- */
.catalog-sort { display: flex; align-items: center; margin: 0; }
.catalog-sort__label { display: none; }
.catalog-sort__select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 6px 22px 6px 4px;
  font-size: 15px;
  color: #212121;
  cursor: pointer;
  max-width: 100%;
  text-align: right;
  text-align-last: right;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23212121' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}
.catalog-sort__select:focus { outline: none; }
.catalog-sort__select:focus-visible { outline: 2px solid #757b7e; outline-offset: 2px; border-radius: 4px; }
@media (max-width: 575.98px) {
  .catalog-sort__select { font-size: 14px; padding-right: 20px; }
  .catalog-filter-btn { font-size: 14px; padding: 6px 12px; }
}

/* ---- Видеоблоки в SEO-тексте раздела ---- */
.ksv {
  background-color: #f2f2f2;
  border-radius: 24px;
  padding: 24px;
  margin: 30px 0;
}

/* 1-блок: Видео и текст рядом (компактный видео блок) */
.ksv:has(.ksv__row),
.ksv--b1 {
  background-color: #f2f2f2;
  border-radius: 20px;
  padding: 20px 24px;
  margin: 28px 0;
}
.ksv:has(.ksv__row) .ksv__title,
.ksv--b1 .ksv__title {
  display: none !important;
}
.ksv__row {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 24px 30px;
}
.ksv__col { min-width: 0; }
.ksv__col--video {
  flex: 0 0 340px;
  max-width: 340px;
  width: 100%;
}
.ksv__col--text {
  flex: 1 1 300px;
  font-size: 14px;
  line-height: 1.6;
  color: #4a4a4a;
}
.ksv__col--text p:last-child {
  margin-bottom: 0;
}

.ksv-video {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #242424;
  line-height: 0;
}
.ksv-video:focus-visible { outline: 3px solid #757b7e; outline-offset: 3px; }

/* 1-блок: видео 16:11 и прямоугольная кнопка play */
.ksv__col--video .ksv-video {
  aspect-ratio: 16 / 11;
  border-radius: 16px;
}
.ksv__col--video .ksv-video__preview {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 11;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.ksv__col--video .ksv-video__play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 38px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  transition: transform 0.18s ease, background 0.18s ease;
}
.ksv__col--video .ksv-video:hover .ksv-video__play {
  transform: translate(-50%, -50%) scale(1.06);
  background: #ffffff;
}
.ksv__col--video .ksv-video__play svg {
  width: 32px;
  height: 32px;
}

/* 7-блок: "Больше наших видео" */
.ksv__title {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: #333333;
  margin: 0 0 18px 0;
}
.ksv__text {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.ksv__slider { position: relative; }
.ksv__strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.ksv__strip::-webkit-scrollbar { display: none; }

/* Квадратные карточки 1:1 — все надписи видны полностью */
.ksv__strip .ksv__item {
  flex: 0 0 280px;
  max-width: 280px;
  width: 280px;
  scroll-snap-align: start;
}
.ksv__strip .ksv-video {
  aspect-ratio: 1 / 1 !important;
  border-radius: 22px;
  background-color: #242424;
}
.ksv__strip .ksv-video__preview {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1 !important;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-color: #242424;
}

/* Круглая белая кнопка play как на скриншоте */
.ksv__strip .ksv-video__play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  transition: transform 0.18s ease, background 0.18s ease;
}
.ksv__strip .ksv-video:hover .ksv-video__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #ffffff;
}
.ksv__strip .ksv-video__play svg {
  width: 36px;
  height: 36px;
  margin-left: 3px;
}

.ksv-video__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  color: #fff; font-size: 14px;
}

.ksv-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.94); box-shadow: 0 2px 10px rgba(0,0,0,.2);
  cursor: pointer; display: none;
}
.ksv__slider.is-scrollable .ksv-nav { display: block; }
.ksv-nav[disabled] { opacity: .3; cursor: default; }
.ksv-nav--prev { left: -8px; }
.ksv-nav--next { right: -8px; }
.ksv-nav::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid #212121; border-bottom: 2px solid #212121;
}
.ksv-nav--next::before { transform: translate(-70%, -50%) rotate(-45deg); }
.ksv-nav--prev::before { transform: translate(-30%, -50%) rotate(135deg); }

@media (max-width: 767px) {
  .ksv { border-radius: 18px; padding: 18px 14px; margin: 20px 0; }
  .ksv__title { font-size: 22px; margin-bottom: 14px; }
  .ksv__row { flex-direction: column; gap: 16px; }
  .ksv__col--video { flex: 0 0 100%; max-width: 100%; }
  .ksv__strip .ksv__item { flex-basis: 75vw; max-width: 75vw; width: 75vw; }
  .ksv__strip .ksv-video__play { width: 52px; height: 52px; }
  .ksv__strip .ksv-video__play svg { width: 18px; height: 18px; }
}

/* окно просмотра: видео сразу открывается крупно */
.ksv-modal {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,.88);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.ksv-modal[hidden] { display: none; }
.ksv-modal__box { width: min(1200px, 94vw); }
.ksv-modal__box video {
  width: 100%; max-height: 88vh; display: block;
  border-radius: 16px; background: #000;
}
.ksv-modal__close {
  position: absolute; top: 18px; right: 22px;
  width: 42px; height: 42px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.14);
  cursor: pointer;
}
.ksv-modal__close::before, .ksv-modal__close::after {
  content: ""; position: absolute; left: 11px; top: 20px;
  width: 20px; height: 2px; background: #fff;
}
.ksv-modal__close::before { transform: rotate(45deg); }
.ksv-modal__close::after  { transform: rotate(-45deg); }
body.ksv-lock { overflow: hidden; }

/* ---- Панель управления: фильтр слева, сортировка справа ---- */
.catalog-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin: 0 0 16px;
}
.catalog-toolbar .catalog-sort { margin-left: auto; }
.catalog-filter-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; line-height: 1.2; color: #212121;
  background: none; border: 0; border-radius: 6px;
  padding: 7px 0; cursor: pointer;
}
.catalog-filter-btn:hover { opacity: .7; }
.catalog-filter-btn__icon { display: inline-flex; }

/* теги посадочных — одной строкой с горизонтальной прокруткой */
.tags {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.tags::-webkit-scrollbar { display: none; }
.tags .tag { flex: 0 0 auto; white-space: nowrap; }

/* ---- Боковая панель фильтра ---- */
.offcanvas.catalog-filter {
  --offcanvas-width: 340px; width: 340px; max-width: 88vw;
  display: flex; flex-direction: column; background: #fff;
}
@media (max-width: 575.98px) {
  .offcanvas.catalog-filter { --offcanvas-width: 300px; width: 300px; max-width: 85vw; }
}
.catalog-filter .offcanvas-header {
  display: flex !important; align-items: center; justify-content: space-between;
  flex: 0 0 auto; padding: 16px 18px; border-bottom: 1px solid #ececec;
}
.catalog-filter .offcanvas-title {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 18px; font-weight: 600; line-height: 1.2; margin: 0;
}
.catalog-filter .offcanvas-title__icon { display: inline-flex; color: #757b7e; }
.catalog-filter .btn-close {
  width: 28px; height: 28px; border: 0; border-radius: 6px;
  background: transparent; cursor: pointer; position: relative; flex: 0 0 auto; opacity: .7;
}
.catalog-filter .btn-close:hover { opacity: 1; background: #f3f3f3; }
.catalog-filter .btn-close::before, .catalog-filter .btn-close::after {
  content: ""; position: absolute; left: 7px; top: 13px;
  width: 14px; height: 1.6px; background: #212121;
}
.catalog-filter .btn-close::before { transform: rotate(45deg); }
.catalog-filter .btn-close::after  { transform: rotate(-45deg); }
.catalog-filter .offcanvas-body {
  display: block !important; flex: 1 1 auto !important; flex-grow: 1 !important;
  overflow-y: auto !important; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 14px 18px 24px !important; background: #fff !important;
}

/* ---- Содержимое фильтра ---- */
.ksf { font-size: 14px; color: #212121; }
.ksf form { margin: 0; }
.ksf-block { border-bottom: 1px solid #efefef; }
.ksf-block:last-of-type { border-bottom: 0; }
.ksf-block__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; background: none; border: 0; padding: 14px 0;
  font-size: 15px; font-weight: 600; color: #212121; text-align: left; cursor: pointer;
}
.ksf-block__caret {
  width: 9px; height: 9px;
  border-right: 1.6px solid #9a9a9a; border-bottom: 1.6px solid #9a9a9a;
  transform: rotate(45deg); transition: transform .2s ease; flex: 0 0 auto; margin-bottom: 3px;
}
.ksf-block.is-open .ksf-block__caret { transform: rotate(-135deg); margin-bottom: -3px; }
.ksf-block__body { display: none; padding: 0 0 16px; }
.ksf-block.is-open .ksf-block__body { display: block; }
.ksf-price { display: flex; gap: 10px; }
.ksf-price__input {
  width: 50%; min-width: 0; font-size: 14px; color: #212121; background: #fff;
  border: 1px solid #e4e4e4; border-radius: 6px; padding: 9px 11px;
}
.ksf-price__input::placeholder { color: #a5a5a5; }
.ksf-price__input:focus { outline: none; border-color: #b5b5b5; }
.ksf-slider { position: relative; height: 18px; margin: 18px 4px 0; }
.ksf-slider__rail { position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 2px; background: #ececec; }
.ksf-slider__bar { position: absolute; top: 7px; height: 4px; border-radius: 2px; left: 0; right: 0; }
.ksf-slider__bar--vd { background: #f0f0f0; }
.ksf-slider__bar--vn { background: #e4e4e4; }
.ksf-slider__bar--v  { background: #212121; }
.ksf-slider__range { position: absolute; top: 0; height: 18px; }
.ksf-slider__handle {
  position: absolute; top: 0; width: 18px; height: 18px; background: #fff;
  border: 2px solid #212121; border-radius: 50%; cursor: pointer; display: block;
}
.ksf-slider__handle--left  { margin-left: -9px; }
.ksf-slider__handle--right { margin-right: -9px; }
.ksf-slider__legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: #8f8f8f; }
.ksf-list { display: flex; flex-direction: column; gap: 2px; }
.ksf-check { display: flex; align-items: center; gap: 10px; padding: 6px 0; margin: 0; cursor: pointer; font-size: 14px; }
.ksf-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.ksf-check__box { flex: 0 0 auto; width: 18px; height: 18px; border: 1.5px solid #d5d5d5; border-radius: 4px; background: #fff; position: relative; }
.ksf-check input:checked + .ksf-check__box { background: #212121; border-color: #212121; }
.ksf-check input:checked + .ksf-check__box::after {
  content: ""; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 10px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg);
}
.ksf-check__text { flex: 1 1 auto; }
.ksf-check__count { color: #a5a5a5; font-size: 12px; }
.ksf-check.is-disabled { opacity: .45; cursor: default; }
.ksf-actions {
  position: sticky; bottom: -24px; margin: 4px -18px -24px; padding: 14px 18px;
  background: #fff; border-top: 1px solid #ececec; z-index: 3;
}
.ksf-btn { display: block; width: 100%; font-size: 15px; padding: 12px 14px; border-radius: 6px; cursor: pointer; text-align: center; }
.ksf-btn--main { background: #212121; border: 1px solid #212121; color: #fff; margin-bottom: 8px; }
.ksf-btn--main:hover { background: #000; }
.ksf-btn--ghost { background: #fff; border: 1px solid #e4e4e4; color: #6a6a6a; }
.ksf-btn--ghost:hover { background: #f6f6f6; }
.ksf-result { display: none !important; }

/* «Сортировка» — подпись со стрелкой, сам select прозрачный сверху */
.catalog-sort { position: relative; display: inline-flex; align-items: center; margin: 0; }
.catalog-sort__label { display: none; }
.catalog-sort__face {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; color: #212121; white-space: nowrap; pointer-events: none;
}
.catalog-sort__caret {
  width: 8px; height: 8px;
  border-right: 1.5px solid #212121; border-bottom: 1.5px solid #212121;
  transform: rotate(45deg); margin-bottom: 3px;
}
.catalog-sort__select {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: pointer; border: 0; padding: 0;
  appearance: none; -webkit-appearance: none;
}
.catalog-sort:focus-within .catalog-sort__face { outline: 2px solid #757b7e; outline-offset: 3px; border-radius: 4px; }
@media (max-width: 575.98px) {
  .catalog-sort__face { font-size: 14px; }
  .catalog-filter-btn { font-size: 14px; padding: 6px 12px; }
}


/* ============================================================
   Task 3: Catalog Product Cards, Sizes & Mini-Cart
   ============================================================ */

/* ---- SKU Sizes Overlay on Product Card ---- */
.product {
  position: relative;
}

.product__preview {
  position: relative;
  border-radius: 16px;
}

/* Catalog Card Hover & Bottom Sizes Dropdown - Exact Image 2 Match */
@media (min-width: 768px) {
  .product {
    position: relative;
    border-radius: 8px;
    padding: 8px;
    margin: -8px;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
  }

  .product:hover {
    z-index: 35;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .product__sizes-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 8px 12px 14px 12px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 14px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-2px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 36;
    margin-top: -1px;
  }

  .product:hover .product__sizes-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.product__sizes-title {
  font-size: 12px;
  font-weight: 400;
  color: #898c8e;
  margin: 4px 0 8px 0;
  text-align: left;
  line-height: 1.2;
}

.product__sizes-current {
  color: #898c8e;
  font-weight: 400;
}

.product__sizes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  align-items: center;
}

.product__size-pill {
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff;
  border: 1px solid #dce0e4;
  border-radius: 4px;
  color: #4a5568;
  font-size: 11.5px;
  font-weight: 400;
  padding: 3px 7px;
  cursor: pointer;
  line-height: 1.3;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.product__size-pill:hover {
  border-color: #718096;
  color: #2d3748;
  background: #f8fafc;
}

.product__size-pill.active {
  background: #718096;
  border-color: #718096;
  color: #ffffff;
  font-weight: 500;
}

/* Always 2 columns on mobile catalog grid */
.grid-5 {
  --columns: 2 !important;
  --gap: 10px !important;
}

@media (min-width: 768px) {
  .grid-5 {
    --gap: 1.5rem !important;
    --columns: 3 !important;
  }
}

@media (min-width: 992px) {
  .grid-5 {
    --columns: 4 !important;
  }
}

@media (min-width: 1200px) {
  .grid-5 {
    --columns: 5 !important;
  }
}

/* Hide sizes on mobile completely - only show on desktop hover */
@media (max-width: 991.98px) {
  .product {
    padding: 0 !important;
    margin: 0 !important;
  }
  .product__sizes-dropdown {
    display: none !important;
  }
}

@media (hover: none) {
  .product__sizes-dropdown {
    display: none !important;
  }
}

/* ---- Header Mobile Layout ---- */
@media (max-width: 991.98px) {
  .header {
    padding-top: 10px;
    margin-bottom: 10px;
  }
  .header__content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
  .header__logo {
    display: block;
    width: 130px;
    margin-left: 6px;
    flex-shrink: 0;
  }
  .bx-basket {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
  }
  .header__actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
  }
  .action-btn {
    padding: 6px !important;
  }
}

/* ---- Header Mini-Cart Dropdown on Hover ---- */
.header__actions {
  position: relative;
}

.bx-basket {
  position: relative;
  display: inline-block;
}

.bx-basket-block {
  position: relative;
  display: inline-block;
}

.bx-basket-item-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  max-width: calc(100vw - 30px);
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  padding: 16px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  pointer-events: none;
}

.bx-basket:hover .bx-basket-item-list,
.bx-basket-block:hover .bx-basket-item-list,
.header__actions .bx-basket:hover .bx-basket-item-list,
.bx-basket-item-list:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.bx-basket-item-list::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.bx-basket-item-list-container {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.bx-basket-item-list-item-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #f0f0f0;
}

.bx-basket-item-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  position: relative;
}

.bx-basket-item-list-item:last-child {
  border-bottom: none;
}

.bx-basket-item-list-item-img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f8f8f8;
  position: relative;
}

.bx-basket-item-list-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bx-basket-item-list-item-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  padding-right: 20px;
}

.bx-basket-item-list-item-name a {
  color: #212121;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bx-basket-item-list-item-name a:hover {
  color: #dd7f0b;
}

.bx-basket-item-list-item-price-block {
  flex-shrink: 0;
  text-align: right;
}

.bx-basket-item-list-item-price {
  font-size: 13px;
  font-weight: 700;
  color: #212121;
}

.bx-basket-item-list-item-price-summ {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

.bx-basket-item-list-item-remove {
  position: absolute;
  top: 8px;
  right: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s, transform 0.2s;
}

.bx-basket-item-list-item-remove:hover {
  opacity: 1;
  transform: scale(1.15);
}

.bx-basket-item-list-item-remove::before,
.bx-basket-item-list-item-remove::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 2px;
  width: 14px;
  height: 2px;
  background: #ff4d4f;
  border-radius: 1px;
}

.bx-basket-item-list-item-remove::before {
  transform: rotate(45deg);
}

.bx-basket-item-list-item-remove::after {
  transform: rotate(-45deg);
}

.bx-basket-item-list-button-container {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 8px;
}

.bx-basket-item-list-button-container a.btn {
  flex: 1;
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
}

.bx-basket-item-list-button-container a.btn-primary {
  background: #212121;
  border-color: #212121;
  color: #fff;
}

.bx-basket-item-list-button-container a.btn-primary:hover {
  background: #dd7f0b;
  border-color: #dd7f0b;
}

/* ---- Toast Notification ("В корзине") ---- */
.swal2-toast-custom {
  border-radius: 14px !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid #e6e8ea !important;
  padding: 12px 16px !important;
}

.toast-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.toast-item__image {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f5;
}

.toast-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toast-item__content {
  flex: 1 1 auto;
}

.toast-item__title {
  font-size: 12px;
  font-weight: 700;
  color: #28a745;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 2px 0;
}

.toast-item__name {
  font-size: 13px;
  font-weight: 600;
  color: #212121;
  line-height: 1.3;
  margin: 0;
}

.toast-item__size {
  font-size: 12px;
  color: #666;
  margin: 2px 0 0 0;
}

/* ---- Custom Cart Toast (Matching Video 3) ---- */
.custom-cart-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  max-width: 380px;
  min-width: 290px;
  cursor: pointer;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.custom-cart-toast.is-visible {
  transform: translateX(0);
  opacity: 1;
}

@media (max-width: 767.98px) {
  .custom-cart-toast {
    top: 16px !important;
    left: 12px !important;
    right: 12px !important;
    max-width: calc(100% - 24px) !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    transform: translateY(-120%) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  }
  .custom-cart-toast.is-visible {
    transform: translateY(0) !important;
  }
  .custom-cart-toast__title {
    max-width: calc(100vw - 150px) !important;
  }
}

.custom-cart-toast__img-wrap {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f3f4f6;
  border: 1px solid #eeeeee;
}

.custom-cart-toast__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.custom-cart-toast__body {
  flex: 1 1 auto;
  min-width: 0;
}

.custom-cart-toast__status {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #16a34a;
  letter-spacing: 0.2px;
  margin-bottom: 2px;
}

.custom-cart-toast__title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.custom-cart-toast__size {
  font-size: 12px;
  color: #6b7280;
  margin-top: 3px;
}

.custom-cart-toast__close {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 22px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
  transition: color 0.15s ease;
  margin-left: 4px;
  flex-shrink: 0;
}

.custom-cart-toast__close:hover {
  color: #111827;
}

/* ---- Product Buy Button & Pulse/Wave Animation (Video 3: 02:40) ---- */
.product__buy-v2 {
  background: #ffffff;
  border: 1px solid #dcdfe3;
  border-radius: 50%;
  color: #777777;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  width: 44px;
  height: 44px;
  padding: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  outline: none;
}

.product__buy-v2:hover {
  background: #212121;
  border-color: #212121;
  color: #ffffff;
  transform: scale(1.08);
  animation: buyBtnWave 1.4s infinite ease-out;
}

@keyframes buyBtnWave {
  0% {
    box-shadow: 0 0 0 0 rgba(33, 33, 33, 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(33, 33, 33, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(33, 33, 33, 0);
  }
}

.product__buy-v2.is-added {
  background: #212121 !important;
  border-color: #212121 !important;
  color: #ffffff !important;
  transform: scale(1.05);
  box-shadow: 0 0 0 4px rgba(33, 33, 33, 0.25);
}

.product__buy-v2.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.product__buy-v2.is-added svg {
  animation: checkPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes checkPop {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Fix: gallery main photo must not stretch for tall/wide images (object-fit contain) */
.preview-main__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.preview-main .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Lightweight modal (no Bootstrap dependency) — supports data-bs-toggle/target/dismiss markup */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  outline: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
.modal.show {
  display: block;
  background-color: rgba(0, 0, 0, 0.5);
}
.modal-dialog {
  position: relative;
  z-index: 1055;
  width: auto;
  margin: 24px 16px;
  max-width: 600px;
}
@media (min-width: 576px) {
  .modal-dialog {
    margin: 30px auto;
  }
}
.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 48px);
}
.modal-dialog-scrollable {
  height: calc(100% - 48px);
}
.modal-dialog-scrollable .modal-content {
  max-height: 100%;
  overflow: hidden;
}
.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
}
.modal-lg {
  max-width: 800px;
}
.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.modal-title {
  margin: 0;
}
.modal-body {
  padding: 20px;
}
.btn-close {
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #777;
  padding: 4px 8px;
}
.btn-close:hover {
  color: #222;
}
body.modal-open {
  overflow: hidden;
}

/* Product gallery zoom lens (self-authored, independent implementation) */
.img-zoom-lens {
  position: fixed;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: rgba(120, 120, 120, 0.35);
  pointer-events: none;
  z-index: 1200;
  display: none;
}
.img-zoom-window {
  position: fixed;
  border: 1px solid #e5e5e5;
  background-repeat: no-repeat;
  background-color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  z-index: 1200;
  display: none;
}

/* ============================================================
   Product Gallery: Horizontal Slider & Zoom Flyout (matches old site)
   ============================================================ */

.single__preview {
    position: relative !important;
    z-index: 500 !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    height: auto !important;
    width: 100% !important;
}

@media (min-width: 992px) {
    .col-12.col-lg-7.col-xl-7 {
        flex: 0 0 58.333333% !important;
        max-width: 58.333333% !important;
        width: 58.333333% !important;
    }
    .col-12.col-lg-5.col-xl-5 {
        flex: 0 0 41.666667% !important;
        max-width: 41.666667% !important;
        width: 41.666667% !important;
    }
}

.single__bar {
    margin-bottom: 16px !important;
}

/* ==========================================================================
   DESKTOP PRODUCT DETAIL ETALON DESIGN (Matches Reference media_1789384224078)
   ========================================================================== */
@media (min-width: 992px) {
    /* Product Main Row Grid */
    .product-section-row-main {
        display: flex !important;
        align-items: stretch !important;
    }
    
    .product-section-gallery {
        flex: 0 0 58.333333% !important;
        max-width: 58.333333% !important;
        width: 58.333333% !important;
    }
    
    .product-section-purchase {
        flex: 0 0 41.666667% !important;
        max-width: 41.666667% !important;
        width: 41.666667% !important;
    }

    /* Outer Card for Gallery */
    .single__sheet.single__preview {
        background: #ffffff !important;
        border: 1px solid #eef0f2 !important;
        border-radius: 16px !important;
        padding: 16px !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .single__bar {
        display: none !important;
    }

    /* Flex container for Thumbs (Left) + Main Photo (Right) */
    .preview-block {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        gap: 12px !important;
        width: 100% !important;
        height: 440px !important;
        position: relative !important;
        margin: 0 !important;
    }

    /* 2-Column Thumbnails Strip on Left */
    .preview-thumbs {
        order: 1 !important;
        width: 146px !important;
        min-width: 146px !important;
        max-width: 146px !important;
        height: 440px !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        display: block !important;
    }

    .preview-thumbs .preview-thumbs__prev,
    .preview-thumbs .preview-thumbs__next {
        display: none !important;
    }

    .preview-thumbs .swiper {
        width: 100% !important;
        height: 100% !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .preview-thumbs .swiper::-webkit-scrollbar {
        width: 4px;
    }
    .preview-thumbs .swiper::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 4px;
    }

    .preview-thumbs .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: 68px !important;
        gap: 8px !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
    }

    .preview-thumbs .swiper-slide {
        width: 100% !important;
        height: 68px !important;
        aspect-ratio: 1 / 1 !important;
        margin: 0 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        border: 1px solid #e5e7eb !important;
        cursor: pointer !important;
        position: relative !important;
        background: #80858c !important;
        transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .preview-thumbs .swiper-slide:hover {
        border-color: #f59e0b !important;
    }

    .preview-thumbs .swiper-slide.swiper-slide-thumb-active,
    .preview-thumbs .swiper-slide.active {
        border-color: #ea580c !important;
        border-width: 2px !important;
        box-shadow: 0 0 0 1px #ea580c !important;
    }

    .preview-thumbs .preview-thumbs__img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 6px !important;
        display: block !important;
    }

    /* Video thumb play icon overlay */
    .thumb-play-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.65);
        border: 2px solid #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
        box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    }
    .thumb-play-icon {
        font-style: normal;
        font-size: 11px;
        color: #ffffff;
        line-height: 1;
        margin-left: 2px;
    }

    /* Main Preview Viewport on Right */
    .preview-main {
        order: 2 !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        height: 440px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        position: relative !important;
        background: #7a8087 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    .preview-main .swiper {
        width: 100% !important;
        height: 100% !important;
        background: #7a8087 !important;
    }

    .preview-main .swiper-slide {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #7a8087 !important;
        height: 100% !important;
        width: 100% !important;
    }

    .preview-main__link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        text-decoration: none !important;
    }

    .preview-main__img {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        margin: auto !important;
        display: block !important;
    }

    /* Arrows on Main Image */
    .preview-main .preview-main__prev,
    .preview-main .preview-main__next {
        display: flex !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 15 !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        background: rgba(0, 0, 0, 0.35) !important;
        border: none !important;
        color: #ffffff !important;
        font-size: 22px !important;
        line-height: 1 !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        transition: background 0.15s ease, transform 0.15s ease !important;
        padding: 0 !important;
    }

    .preview-main .preview-main__prev:hover,
    .preview-main .preview-main__next:hover {
        background: rgba(0, 0, 0, 0.65) !important;
        transform: translateY(-50%) scale(1.06) !important;
    }

    .preview-main .preview-main__prev { left: 12px !important; }
    .preview-main .preview-main__next { right: 12px !important; }
}

/* Purchase Sheet Container */
.product-section-purchase .single__sheet {
    background: #ffffff !important;
    border: 1px solid #eef0f2 !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
    height: 100% !important;
}

/* Price & Header */
.product-price-current {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    line-height: 1.1 !important;
}

.product-price-old {
    font-size: 16px !important;
    color: #9ca3af !important;
    text-decoration: line-through !important;
    margin-left: 8px !important;
}

.product-card-meta {
    font-size: 12px !important;
    color: #9ca3af !important;
}

.product-rating {
    color: #f59e0b !important;
    font-weight: 600 !important;
}

.discount-save-badge {
    background: #fed000 !important;
    color: #111827 !important;
    border-radius: 4px !important;
    padding: 3px 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.stock-status {
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.stock-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
}

.stock-tooltip-icon {
    color: #9ca3af !important;
    font-size: 12px !important;
    cursor: help;
}

/* Size Selection Pills */
.option-field__title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 8px !important;
    margin-top: 16px !important;
}

.radio-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
}

.radio-tags .radio-tag {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
}

.radio-tags .radio-tag input[type="radio"] {
    display: none !important;
}

.radio-tags .radio-tag .radio-tag__label {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid transparent !important;
    border-radius: 6px !important;
    padding: 7px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    display: inline-block !important;
    transition: all 0.15s ease !important;
}

.radio-tags .radio-tag:hover .radio-tag__label {
    background: #e5e7eb !important;
}

.radio-tags .radio-tag.selected .radio-tag__label,
.radio-tags .radio-tag input:checked ~ .radio-tag__label {
    background: #5c6370 !important;
    border-color: #5c6370 !important;
    color: #ffffff !important;
    font-weight: 500 !important;
}

/* Backrest Choices Dropdown */
.choices__inner {
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    min-height: 42px !important;
    font-size: 14px !important;
    color: #374151 !important;
}

/* Paint Colors Row */
.material-inline-wrap {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.material-circle-list {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.material-circle-btn {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 2px solid transparent !important;
    cursor: pointer !important;
    padding: 0 !important;
    background: #f3f4f6 !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.15s ease, border-color 0.15s ease !important;
}

.material-circle-btn img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

.material-circle-btn:hover {
    transform: scale(1.08) !important;
}

.material-circle-btn.active {
    border-color: #eab308 !important;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #eab308 !important;
}

.material-more-pill-btn {
    height: 52px !important;
    border-radius: 26px !important;
    background: #374151 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 0 20px !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
}

.material-more-pill-btn:hover {
    background: #474f5a !important;
}

/* Action Buttons */
.btn-product-buy-now {
    background: #78828c !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 13px 16px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
    line-height: 1.2 !important;
}

.btn-product-buy-now:hover {
    background: #64748b !important;
    color: #ffffff !important;
}

.btn-product-add-cart {
    background: #fed000 !important;
    color: #111827 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 13px 16px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
}

.btn-product-add-cart:hover {
    background: #f5c518 !important;
    color: #111827 !important;
}

/* Custom Order Accordion */
.custom-order-accordion details summary {
    list-style: none !important;
    color: #6b7280 !important;
    font-size: 13px !important;
}
.custom-order-accordion details summary::-webkit-details-marker {
    display: none !important;
}
.custom-order-accordion details[open] .accordion-arrow {
    transform: rotate(180deg) !important;
}
.accordion-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

/* Disallow zoom lens/window to prevent broken hover */
.preview-zoom-lens,
.preview-zoom-window {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Align size radio tags to the left */
.radio-tags {
    justify-content: flex-start !important;
}


/* ===================================================
   Header Navigation & Catalog Dropdown Fixes
   =================================================== */
.navigation {
    position: relative !important;
    z-index: 1050 !important;
}

.menu-backdrop {
    z-index: 990 !important;
}

.navbar {
    position: relative !important;
    z-index: 1050 !important;
}

.dropdown-catalog {
    position: relative !important;
    z-index: 1060 !important;
}

.dropdown-catalog > .nav-list {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: max-content !important;
    min-width: 270px !important;
    max-width: 360px !important;
    overflow: visible !important;
    background-color: #ffffff !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
    z-index: 1060 !important;
}

.dropdown-catalog .nav-list li.dropdown-item > .submenu {
    position: absolute !important;
    left: 100% !important;
    top: 0 !important;
    width: max-content !important;
    min-width: 290px !important;
    max-width: 380px !important;
    overflow: visible !important;
    background-color: #ffffff !important;
    border-radius: 0 10px 10px 10px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
    z-index: 1070 !important;
}

.navbar__item {
    position: relative !important;
}

.navbar__item.dropdown > .nav-list {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 280px !important;
    max-width: 540px !important;
    width: max-content !important;
    max-height: 440px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background-color: #ffffff !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18) !important;
    z-index: 1060 !important;
    padding: 10px !important;
    margin: 0 !important;
    list-style: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(6px) !important;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
    gap: 2px 12px !important;
}

.navbar__item.dropdown:hover > .nav-list {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: grid !important;
}

.navbar__item:last-child > .nav-list {
    left: auto !important;
    right: 0 !important;
}

.navbar__item.dropdown:hover > .nav-list {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    display: block !important;
}

.dropdown-catalog:hover > .nav-list,
.dropdown-catalog.is-open > .nav-list {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    display: block !important;
}

.dropdown-catalog .nav-list li.dropdown-item:hover > .submenu {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Size selector radio tags: clean original look */
.radio-tags {
    justify-content: flex-start !important;
    gap: 6px !important;
}

.radio-tag .radio-tag__label {
    background: #efefef !important;
    border: 1px solid #efefef !important;
    border-radius: 4px !important;
    color: #000000 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 10px 15px !important;
}

.radio-tag .radio-tag__label:hover {
    border-color: #6b7173 !important;
}

.radio-tag.selected .radio-tag__label,
.radio-tag input:checked ~ .radio-tag__label {
    background: #757b7e !important;
    border-color: #757b7e !important;
    color: #ffffff !important;
}

.radio-tags .radio-tag {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ==========================================================================
   MOBILE LAYOUT (< 992px) - Mockup exact match
   ========================================================================== */
@media (max-width: 991.98px) {
    .product-detail-container {
        display: flex !important;
        flex-direction: column !important;
    }
    .product-section-row-main,
    .product-section-row-middle {
        display: contents !important;
    }

    .product-section-gallery,
    .product-section-title,
    .product-section-purchase,
    .product-section-split,
    .product-section-desc,
    .product-section-tabs {
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
    }

    /* 1. Gallery on top */
    .product-section-gallery {
        order: 1 !important;
        width: 100% !important;
        margin-bottom: 14px !important;
    }
    .single__sheet.single__preview {
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }
    .single__bar {
        display: none !important;
    }
    .preview-block {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    /* Main Photo Viewport on mobile */
    .preview-main {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        aspect-ratio: 4 / 3 !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        position: relative !important;
        background: #f8fafc !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.04) !important;
        border: none !important;
    }
    .preview-main .swiper {
        width: 100% !important;
        height: 100% !important;
    }
    .preview-main .swiper-slide {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        /* ширину задаёт Swiper (slidesPerView), иначе соседние кадры не видны */
        height: 100% !important;
    }
    .preview-main__link {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .preview-main__img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 14px !important;
    }

    /* Main Slider Arrows on mobile */
    .preview-main .preview-main__prev,
    .preview-main .preview-main__next {
        display: flex !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 36px !important;
        height: 36px !important;
        background: rgba(255, 255, 255, 0.9) !important;
        border: none !important;
        border-radius: 50% !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
        z-index: 10 !important;
        align-items: center !important;
        justify-content: center !important;
        color: #333333 !important;
        font-size: 14px !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .preview-main .preview-main__prev { left: 10px !important; }
    .preview-main .preview-main__next { right: 10px !important; }

    /* Mobile Floating Action Buttons (favorite & share) */
    .mobile-gallery-actions {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        z-index: 10 !important;
        display: flex !important;
        gap: 8px !important;
    }
    .mobile-gallery-actions .single-action {
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.88) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        color: #374151 !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
        cursor: pointer !important;
        font-size: 16px !important;
    }

    /* Thumbnails on mobile: 3-column Grid below main photo */
    .preview-thumbs {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 4px !important;
        gap: 0 !important;
    }
    .preview-thumbs .swiper {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
    }
    .preview-thumbs .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
    }
    .preview-thumbs .swiper-slide {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        border: 2px solid transparent !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
        cursor: pointer !important;
        opacity: 1 !important;
    }
    .preview-thumbs .swiper-slide.active,
    .preview-thumbs .swiper-slide.swiper-slide-thumb-active {
        border-color: #212121 !important;
    }
    .preview-thumbs .preview-thumbs__img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }

    .preview-thumbs__prev,
    .preview-thumbs__next {
        display: none !important;
    }

    /* 6th Slot: Показать ещё Card */
    .preview-thumbs .thumb-extra-mobile {
        display: none !important;
    }
    .preview-thumbs.thumbs-expanded .thumb-extra-mobile {
        display: flex !important;
    }
    .preview-thumbs.thumbs-expanded .thumb-more-slide {
        display: none !important;
    }
    .thumb-more-card {
        width: 100% !important;
        height: 100% !important;
        background: #767980 !important;
        color: #ffffff !important;
        border-radius: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        cursor: pointer !important;
        padding: 6px !important;
    }

    .preview-zoom-lens,
    .preview-zoom-window {
        display: none !important;
    }

    /* 2. Product Title */
    .product-section-title {
        order: 2 !important;
        width: 100% !important;
        margin-top: 10px !important;
        margin-bottom: 8px !important;
    }
    .product-section-title .single-title {
        font-size: 20px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        color: #111827 !important;
        margin-bottom: 0 !important;
    }
    .product-section-title .single-actions {
        display: none !important;
    }

    /* 3. Purchase Block */
    .product-section-purchase {
        order: 3 !important;
        width: 100% !important;
        margin-bottom: 12px !important;
    }
    .product-section-purchase .single__sheet {
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* Price & Meta on mobile */
    .product-price-current {
        font-size: 24px !important;
        font-weight: 700 !important;
        color: #111827 !important;
    }
    .product-price-old {
        font-size: 15px !important;
        color: #9ca3af !important;
    }
    .discount-save-badge {
        background: #fed000 !important;
        color: #111827 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        padding: 4px 8px !important;
        border-radius: 4px !important;
    }

    /* Action Buttons on mobile */
    .product-section-purchase #btn-buy-block,
    .product-section-purchase [data-entity="main-button-container"] {
        margin-top: 14px !important;
    }
    .btn-product-buy-now {
        height: 48px !important;
        background: #737373 !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 10px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
    }
    .btn-product-add-cart {
        height: 48px !important;
        background: #fed000 !important;
        color: #111827 !important;
        border: none !important;
        border-radius: 10px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        text-decoration: none !important;
    }

    /* 4. Split Widget Card */
    .product-section-split {
        order: 4 !important;
        width: 100% !important;
        margin-top: 4px !important;
        margin-bottom: 24px !important;
    }
    .split-widget-card {
        border-radius: 12px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        padding: 12px 14px !important;
    }

    /* 5. Description & Characteristics */
    .product-section-desc {
        order: 5 !important;
        width: 100% !important;
        margin-bottom: 24px !important;
    }
    .product-description-specs-wrap h2 {
        font-size: 18px !important;
        font-weight: 700 !important;
        color: #111827 !important;
        margin-bottom: 10px !important;
    }
    .product-description-text {
        max-height: 84px !important;
        overflow: hidden !important;
        position: relative !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
        color: #4b5563 !important;
        transition: max-height 0.3s ease !important;
    }
    .product-description-text.expanded {
        max-height: none !important;
    }
    .product-description-text:not(.expanded)::after {
        content: '' !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 40px !important;
        background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 100%) !important;
        pointer-events: none !important;
    }
    .btn-desc-toggle {
        background: none !important;
        border: none !important;
        color: #111827 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        padding: 6px 0 !important;
        cursor: pointer !important;
    }

    /* 6. Tabs & Production Videos on mobile */
    .product-section-tabs {
        order: 6 !important;
        width: 100% !important;
    }
    .production-tabs-bar {
        gap: 16px !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        margin-bottom: 16px !important;
    }
    .production-tabs-bar::-webkit-scrollbar {
        display: none !important;
    }
    .production-tabs-bar .tab-link {
        font-size: 15px !important;
        padding: 10px 2px !important;
    }
    .production-videos-wrap .production-side-videos {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-top: 8px !important;
    }
    .production-videos-wrap .video-side-card {
        min-height: 0 !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
    }
}


/* ==========================================================================
   PRODUCT ACTIONS & MATERIAL SWATCHES (Desktop & Mobile)
   ========================================================================== */
.btn-product-buy-now {
    height: 48px !important;
    background: #737373 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
    text-decoration: none !important;
}

.btn-product-buy-now:hover {
    background: #5c5c5c !important;
    color: #ffffff !important;
}

.btn-product-add-cart {
    height: 48px !important;
    background: #fed000 !important;
    color: #111827 !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
    text-decoration: none !important;
}

.btn-product-add-cart:hover {
    background: #e6bc00 !important;
    color: #111827 !important;
}

/* Material Swatches (Выбрать цвет покраски) */
.material-circle-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 2px solid transparent !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    padding: 0 !important;
    background: #f3f4f6 !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.material-circle-btn img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

.material-circle-btn:hover {
    transform: scale(1.08) !important;
}

.material-circle-btn.active {
    border-color: #f2b705 !important;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f2b705 !important;
}

.material-more-pill-btn {
    border-radius: 20px !important;
    background: #374151 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    padding: 6px 14px !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.material-more-pill-btn:hover {
    background: #111827 !important;
    color: #ffffff !important;
}

/* Custom Order Accordion */
.custom-order-accordion details summary {
    list-style: none !important;
}
.custom-order-accordion details summary::-webkit-details-marker {
    display: none !important;
}
.custom-order-accordion details[open] .accordion-arrow {
    transform: rotate(180deg) !important;
}
.accordion-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

/* Middle Row: Specs Table & Split Card (Matches Mockup) */
.product-description-specs-wrap h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 12px !important;
}

.product-description-text {
    color: #4b5563 !important;
    line-height: 1.65 !important;
    font-size: 14px !important;
    margin-bottom: 16px !important;
}

.specs-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 14px !important;
}

.spec-row {
    display: flex !important;
    align-items: baseline !important;
    padding: 6px 0 !important;
}

.spec-name {
    color: #6b7280 !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
    max-width: 45% !important;
}

.spec-dots {
    flex-grow: 1 !important;
    border-bottom: 1px dotted #cbd5e1 !important;
    margin: 0 8px !important;
    min-width: 15px !important;
    height: 1px !important;
    position: relative !important;
    top: -4px !important;
}

.dots-leader {
    display: none !important;
}

.spec-val {
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    flex-shrink: 0 !important;
    text-align: right !important;
    max-width: 45% !important;
}

.split-widget-card {
    background: #ffffff !important;
    border: 1px solid #eef0f2 !important;
    border-radius: 16px !important;
    padding: 16px 20px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    cursor: pointer !important;
}

.split-widget-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06) !important;
}

.split-card-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111827 !important;
}

.split-card-sub {
    font-size: 12px !important;
    color: #6b7280 !important;
}


/* ===================================================
   Выпадающий список «Избранное» в шапке
   =================================================== */
.fav-drop { position: relative; display: inline-flex; }
.fav-drop__panel {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1100;
    width: 340px;
    max-width: 92vw;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    text-align: left;
}
.fav-drop__panel[hidden] { display: none; }
.fav-drop__list { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow-y: auto; }
.fav-drop__item + .fav-drop__item { border-top: 1px solid #f1f1f1; }
.fav-drop__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    color: #212121;
    text-decoration: none;
}
.fav-drop__link:hover { color: #dd7f0b; }
.fav-drop__pic {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fav-drop__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fav-drop__text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fav-drop__name {
    font-size: 13px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fav-drop__price { font-size: 14px; font-weight: 600; }
.fav-drop__more { padding: 6px 4px 0; font-size: 12px; color: #8f8f8f; }
.fav-drop__empty { padding: 14px 4px; font-size: 14px; color: #8f8f8f; text-align: center; }
.fav-drop__all {
    display: block;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #dd7f0b;
    color: #fff;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
}
.fav-drop__all:hover { background: #d3790b; color: #fff; }
@media (max-width: 991.98px) {
    .fav-drop__panel { display: none !important; }
}

/* ===================================================
   Карточка товара по макету заказчика: миниатюры крупнее,
   главное фото не обрезается, «Похожие товары» во всю ширину
   =================================================== */

/* (блок миниатюр перенесён ниже — см. раздел по макету) */

/* Мобильная версия: главное фото крупнее и целиком, без обрезки */
@media (max-width: 991.98px) {
    .single__preview .preview-main {
        aspect-ratio: 1 / 1 !important;
        max-height: 78vh !important;
        background: #fff !important;
    }
    .single__preview .preview-main__img {
        object-fit: contain !important;
    }
    .preview-thumbs .swiper-wrapper {
        gap: 10px !important;
    }
    .preview-thumbs .swiper-slide {
        aspect-ratio: 1 / 1 !important;
        border-radius: 12px !important;
    }
    /* активная миниатюра — оранжевой рамкой, как в макете */
    .preview-thumbs .swiper-slide.active,
    .preview-thumbs .swiper-slide.swiper-slide-thumb-active {
        border-color: #dd7f0b !important;
        border-width: 2px !important;
    }

    /* «Похожие товары» — во всю ширину экрана, без боковых полей */
    .similar-products-section {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .similar-products-section > h2 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .similar-products-section .carousel-items {
        padding-left: 15px !important;
    }
}

/* ===================================================
   Карточка товара — геометрия по макету заказчика
   (десктоп): миниатюры 2×95 px, отступы 22 px,
   главное фото квадратное, карточки без рамок, с мягкой тенью
   =================================================== */
@media (min-width: 992px) {

    /* обе карточки: без чётких линий, только лёгкая тень */
    .single__sheet.single__preview,
    .product-section-purchase .single__sheet {
        border: 0 !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07) !important;
        border-radius: 16px !important;
    }
    .single__sheet.single__preview { padding: 30px !important; }
    .product-section-purchase .single__sheet { padding: 28px !important; }

    /* миниатюры слева + главное фото справа, одинаковая высота.
       Высота задана числом: от неё тема считает проценты внутри
       (при height:auto лента миниатюр теряла высоту и ломалась). */
    .preview-block {
        gap: 22px !important;
        height: 470px !important;
        align-items: stretch !important;
    }

    /* колонка миниатюр: только размеры, структуру темы не трогаем.
       height обязателен — в теме стоит 440px, из-за чего лента была
       короче блока и последний ряд обрезался полосой прокрутки. */
    .preview-thumbs {
        width: 208px !important;
        min-width: 230px !important;
        max-width: 231px !important;
        height: 100% !important;
        max-height: 100% !important;
    }
    .preview-thumbs .swiper-wrapper {
        grid-auto-rows: 102px !important;
        gap: 20px !important;
    }
    .preview-thumbs .swiper-slide {
        height: 102px !important;
        border-radius: 10px !important;
    }

    /* главное фото на всю высоту блока */
    .preview-main {
        height: 100% !important;
        border-radius: 12px !important;
    }

    /* значки «в избранное» и «поделиться» крупнее */
    .single-actions .single-action i { font-size: 24px !important; }
    .single-actions .single-action {
        width: 40px !important;
        height: 40px !important;
    }
}

/* ===================================================
   Правки по макету: блок выбора цвета, высота карточек,
   миниатюры в мобильной версии
   =================================================== */
@media (min-width: 992px) {

    /* «Выбрать цвет покраски» — образцы в светлой плашке, как в макете */
    .material-param-field .material-inline-wrap {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 10px !important;
        background: #f2f3f5 !important;
        border-radius: 14px !important;
        padding: 14px 16px !important;
    }
    /* образцы и кнопка «ещё» идут одним рядом, без пустого места */
    .material-param-field .material-circle-list {
        display: contents !important;
    }
    .material-param-field .material-circle-btn {
        width: 46px !important;
        height: 46px !important;
        border-radius: 50% !important;
        border: 2px solid transparent !important;
        box-shadow: none !important;
        background: #fff !important;
    }
    .material-param-field .material-circle-btn.active {
        border-color: #e0a300 !important;
        box-shadow: 0 0 0 2px #e0a300 !important;
    }
    /* кнопка «ещё» — такой же круг, у правого края плашки */
    .material-param-field .material-more-pill-btn {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: #2b3036 !important;
        color: #fff !important;
        font-size: 13px !important;
        line-height: 1 !important;
    }

    /* карточка заказа тянется на всю высоту первой строки —
       тогда блок «Сплит» встаёт сразу под ней, как в макете */
    .product-section-purchase { display: flex !important; }
    .product-section-purchase .single__sheet {
        height: auto !important;
        flex: 1 1 auto !important;
    }
    .product-section-row-middle { margin-top: 0 !important; }
}

/* Мобильная версия: миниатюры 4:3, как в макете заказчика */
@media (max-width: 991.98px) {
    .preview-thumbs .swiper-wrapper {
        gap: 18px !important;
    }
    .preview-thumbs .swiper-slide {
        aspect-ratio: 4 / 3 !important;
        border-radius: 16px !important;
    }
    .preview-thumbs .preview-thumbs__img {
        border-radius: 14px !important;
    }
}

/* ===================================================
   «Описание и характеристики»: характеристики скрыты
   вместе с описанием, кнопка «Показать ещё» — внизу блока
   =================================================== */
.product-description-specs-wrap {
    display: flex !important;
    flex-direction: column !important;
}
.product-description-specs-wrap > h2 { order: 1 !important; }
.product-description-specs-wrap > .product-description-text { order: 2 !important; }
.product-description-specs-wrap > .specs-table-container { order: 3 !important; }
.product-description-specs-wrap > .product-description-toggle-wrap {
    order: 4 !important;
    margin-top: 6px !important;
    margin-bottom: 0 !important;
}
/* На мобильной описание свёрнуто — характеристики прячем вместе с ним,
   раскрываются они тоже вместе, одной кнопкой внизу.
   На десктопе описание не сворачивается, поэтому таблица видна всегда,
   а кнопка не нужна. */
@media (max-width: 991.98px) {
    .product-description-specs-wrap > .specs-table-container { display: none !important; }
    .product-description-text.expanded ~ .specs-table-container { display: block !important; }
}
@media (min-width: 992px) {
    .product-description-specs-wrap > .specs-table-container { display: block !important; }
    .product-description-specs-wrap > .product-description-toggle-wrap { display: none !important; }
}

/* ===================================================
   Видео с производства — по макету:
   слева одно большое, справа два маленьких столбиком
   =================================================== */
.production-videos-wrap {
    overflow: visible !important;
}
.production-videos-wrap > .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 14px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.production-videos-wrap > .row > [class*="col-md-8"],
.production-videos-wrap > .row > [class*="col-lg-8"] {
    flex: 0 0 calc(66.6667% - 7px) !important;
    max-width: calc(66.6667% - 7px) !important;
    width: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.production-videos-wrap > .row > [class*="col-md-4"],
.production-videos-wrap > .row > [class*="col-lg-4"] {
    flex: 1 1 0 !important;
    max-width: none !important;
    width: auto !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}
.production-videos-wrap .video-main-card {
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    min-height: 0 !important;
    border-radius: 14px !important;
}
.production-videos-wrap .production-side-videos {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    height: auto !important;
    align-self: stretch !important;
    margin-top: 0 !important;
}
.production-videos-wrap .production-side-videos > *:not(:last-child) {
    margin-bottom: 0 !important;
}
.production-videos-wrap .video-side-card {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 3 !important;
    border-radius: 14px !important;
}

/* Блок вкладок с видео — в левой колонке 7/12, как в макете
   (справа, под блоком покупки, остаётся свободное место) */
@media (min-width: 992px) {
    .product-section-tabs {
        max-width: 58.333333% !important;
        margin-right: auto !important;
    }
    .production-videos-wrap {
        background: #f5f6f7 !important;
        border-radius: 16px !important;
        padding: 8px !important;
    }
    .production-videos-wrap > .row {
        gap: 10px !important;
    }
    .production-videos-wrap > .row > [class*="col-md-8"],
    .production-videos-wrap > .row > [class*="col-lg-8"] {
        flex: 0 0 calc(66.6667% - 5px) !important;
        max-width: calc(66.6667% - 5px) !important;
    }
    .production-videos-wrap .production-side-videos {
        gap: 10px !important;
    }
    .production-videos-wrap .video-main-card,
    .production-videos-wrap .video-side-card {
        border-radius: 12px !important;
    }
}

@media (max-width: 767.98px) {
    .production-videos-wrap > .row {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    .production-videos-wrap > .row > [class*="col-md-8"],
    .production-videos-wrap > .row > [class*="col-lg-8"],
    .production-videos-wrap > .row > [class*="col-md-4"],
    .production-videos-wrap > .row > [class*="col-lg-4"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .production-videos-wrap .video-main-card {
        aspect-ratio: 4 / 3 !important;
    }
    .production-videos-wrap .production-side-videos {
        flex-direction: row !important;
        height: auto !important;
        gap: 10px !important;
    }
    .production-videos-wrap .video-side-card {
        flex: 1 1 0 !important;
        aspect-ratio: 4 / 3 !important;
    }
}
@media (max-width: 991.98px) {
    .product-section-tabs {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .production-tabs-bar {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Сердечко на карточке товара в каталоге — крупнее */
.product__fav { width: 38px !important; height: 38px !important; }
.product__fav:before,
.product__fav:after { font-size: 24px !important; }
.product__fav i { font-size: 24px !important; }

/* «В наличии» на карточках каталога — оранжевым, как в макете */
.product__available,
.product .product__available {
    color: #e87a38 !important;
}

/* ===================================================
   Мобильная версия по макету: главное фото во всю
   ширину экрана, вне отступов контейнера
   =================================================== */
@media (max-width: 991.98px) {
    /* карточка галереи не должна ничего сужать */
    .product-section-gallery {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .single__sheet.single__preview {
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    /* фото — от края до края экрана */
    .single__preview .preview-main {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        border-radius: 0 !important;
    }
    .single__preview .preview-main__img {
        border-radius: 0 !important;
    }

    /* миниатюры остаются в обычных полях страницы */
    .preview-thumbs {
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-top: 14px !important;
    }

    /* заголовок и блок покупки — в обычных полях */
    .product-section-purchase {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* ===================================================
   «Выбрать размер» — единый набор правил.
   До этого одни и те же селекторы описаны в четырёх файлах
   (element/style.css и css/custom.css — полные дубликаты друг друга),
   причём .radio-tag получал flex:1 1 0, а .radio-tag__label — width:100%.
   На узких экранах это давало нулевую/скачущую ширину кнопок.
   Здесь размеры заданы отступами, без фиксированных width/height.
   =================================================== */
.radio-tags {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 6px !important;
    scrollbar-width: none;
}
.radio-tags::-webkit-scrollbar { height: 0 !important; }

.radio-tags .radio-tag {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.radio-tags .radio-tag .radio-tag__label {
    width: auto !important;
    min-width: 76px !important;
    height: auto !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    padding: 9px 14px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    border-radius: 6px !important;
}

/* десктоп: пять кнопок ровно по ширине блока, как в макете */
@media (min-width: 992px) {
    .radio-tags {
        overflow-x: visible !important;
        gap: 8px !important;
    }
    .radio-tags .radio-tag { flex: 1 1 0 !important; }
    .radio-tags .radio-tag .radio-tag__label {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* узкие экраны: тот же ряд, только компактнее */
@media (max-width: 575.98px) {
    .radio-tags { gap: 8px !important; }
    .radio-tags .radio-tag .radio-tag__label {
        min-width: 70px !important;
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
}

/* ===================================================
   Миниатюры: гасим инлайновые размеры, которые Swiper
   проставляет слайдам (width: 43.5px; margin-right: 10px).
   Лента выводится сеткой, ширину задаёт колонка сетки.
   =================================================== */
.preview-thumbs .swiper-slide {
    width: auto !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}
/* плитка «Показать ещё» — только в мобильной версии */
@media (min-width: 992px) {
    .preview-thumbs .thumb-more-slide { display: none !important; }
}
@media (max-width: 991.98px) {
    .preview-thumbs .thumb-more-slide {
        display: flex !important;
        background: #9aa0a6 !important;
        border-radius: 16px !important;
        overflow: hidden !important;
    }
    .preview-thumbs .thumb-more-card {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        color: #fff !important;
        font-size: 14px !important;
        line-height: 1.25 !important;
        padding: 6px !important;
    }
}

@media (min-width: 992px) {
    .preview-thumbs .swiper {
        height: 440px !important;
        max-height: unset !important;
    }
}

/* ===================================================
   Отступы по макету: «Сплит» начинается сразу под
   блоком покупки, высота галереи выровнена с ним
   =================================================== */
@media (min-width: 992px) {
    .product-section-row-main {
        margin-bottom: 0 !important;
    }
    .product-section-gallery,
    .product-section-purchase {
        margin-bottom: 24px !important;
    }
    .product-section-row-middle {
        margin-top: 0 !important;
        margin-bottom: 24px !important;
    }
    .product-section-split {
        margin-top: 0 !important;
    }
    .preview-block {
        height: 445px !important;
    }
    .preview-thumbs .swiper {
        height: 100% !important;
        max-height: 100% !important;
    }
    .preview-thumbs .swiper-wrapper {
        grid-auto-rows: 100px !important;
        gap: 15px !important;
    }
    .preview-thumbs .swiper-slide {
        height: 100px !important;
    }
}

/* ===================================================
   Галерея не тянется за блоком покупки: при раскрытии
   «Заказать по индивидуальным параметрам» под фото
   больше не появляется пустое место
   =================================================== */
@media (min-width: 992px) {
    .product-section-row-main {
        align-items: flex-start !important;
    }
    .product-section-gallery {
        align-self: flex-start !important;
    }
    .single__sheet.single__preview {
        height: auto !important;
        align-self: flex-start !important;
    }
}

/* ===================================================
   Правая колонка видео тянется ровно по высоте
   большого видео и не выходит за панель.
   Высоту ряда задаёт только левая колонка (4/3),
   правая растягивается по ней (stretch), а две
   карточки делят эту высоту поровну.
   =================================================== */
@media (min-width: 992px) {
    .production-videos-wrap > .row {
        align-items: stretch !important;
    }
    .production-videos-wrap > .row > [class*="col-md-8"],
    .production-videos-wrap > .row > [class*="col-lg-8"] {
        align-self: stretch !important;
    }
    .production-videos-wrap .production-side-videos {
        align-self: stretch !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
    }
    .production-videos-wrap .video-side-card {
        flex: 1 1 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: auto !important;
    }
}

/* ===================================================
   «Заказать по индивидуальным параметрам»: раскрытие
   не раздвигает блок покупки — текст выпадает поверх,
   поэтому галерея и «Описание» остаются на месте
   =================================================== */
@media (min-width: 992px) {
    .custom-order-accordion {
        position: relative !important;
    }
    .custom-order-details[open] > .custom-order-content {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 20 !important;
        margin-top: 6px !important;
        padding: 12px 14px !important;
        background: #fff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12) !important;
    }
}

/* ===================================================
   МОБИЛЬНЫЙ МАКЕТ (замеры с макета заказчика)
   миниатюры 3 в ряд, видео во всю ширину экрана
   =================================================== */
@media (max-width: 991.98px) {
    /* миниатюры: 3 в ряд, почти квадратные, промежуток 22px */
    .preview-thumbs .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 22px !important;
    }
    .preview-thumbs .swiper-slide {
        aspect-ratio: 16 / 15 !important;
        height: auto !important;
        width: auto !important;
        border-radius: 16px !important;
    }
    .preview-thumbs .thumb-more-slide {
        aspect-ratio: 16 / 15 !important;
        height: auto !important;
    }

    /* видео с производства: без панели и отступов, во всю ширину */
    .production-videos-wrap {
        background: transparent !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }
    .production-videos-wrap > .row {
        gap: 8px !important;
    }
    .production-videos-wrap .production-side-videos {
        gap: 8px !important;
    }
    .production-videos-wrap .video-main-card,
    .production-videos-wrap .video-side-card {
        border-radius: 10px !important;
    }
}

@media (max-width: 767.98px) {
    /* большое видео почти квадратное, как в макете */
    .production-videos-wrap .video-main-card {
        aspect-ratio: 10 / 9 !important;
    }
    .production-videos-wrap .video-side-card {
        aspect-ratio: 4 / 3 !important;
    }
}

/* ===================================================
   Видео: кадр квадратный — обложки 334x334, при 4/3
   у них обрезался текст сверху и снизу
   =================================================== */
.production-videos-wrap .video-main-card {
    aspect-ratio: 1 / 1 !important;
}
@media (max-width: 767.98px) {
    .production-videos-wrap .video-main-card,
    .production-videos-wrap .video-side-card {
        aspect-ratio: 1 / 1 !important;
    }
}

/* ===================================================
   Мобильный макет: «Цвет» — выпадающий список
   =================================================== */
.material-mobile-select {
    display: none !important;
}
.btn-text-narrow {
    display: none !important;
}
@media (max-width: 991.98px) {
    .material-mobile-select {
        display: block !important;
        margin-bottom: 4px !important;
    }
    .material-param-field > .option-field__title,
    .material-param-field > .material-inline-wrap {
        display: none !important;
    }
    .material-select {
        display: block !important;
        width: 100% !important;
        height: 52px !important;
        box-sizing: border-box !important;
        padding: 0 42px 0 18px !important;
        margin: 0 !important;
        border: 1px solid #e8eaed !important;
        border-radius: 12px !important;
        background-color: #f4f5f7 !important;
        background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 16px center !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        font-size: 15px !important;
        line-height: 52px !important;
        color: #374151 !important;
    }
    .btn-text-wide {
        display: none !important;
    }
    .btn-text-narrow {
        display: inline !important;
    }
}

/* ===================================================
   Правая колонка видео: выравнивание по верхней
   границе большого видео + чуть больше ширины
   =================================================== */
@media (min-width: 992px) {
    .production-videos-wrap > .row > [class*="col-md-8"],
    .production-videos-wrap > .row > [class*="col-lg-8"] {
        flex: 0 0 calc(65% - 5px) !important;
        max-width: calc(65% - 5px) !important;
    }
    .production-videos-wrap > .row > [class*="col-md-4"],
    .production-videos-wrap > .row > [class*="col-lg-4"] {
        margin-top: 16px !important;
    }
}

/* ===================================================
   Мобильный макет — блок видео (замеры с макета):
   большое 8/7, два маленьких 6/5, зазоры 8px/10px
   =================================================== */
@media (max-width: 767.98px) {
    .production-videos-wrap {
        padding: 0 6px !important;
        background: transparent !important;
        border-radius: 0 !important;
    }
    .production-videos-wrap > .row {
        gap: 8px !important;
    }
    .production-videos-wrap > .row > [class*="col-md-4"],
    .production-videos-wrap > .row > [class*="col-lg-4"] {
        margin-top: 0 !important;
    }
    .production-videos-wrap .video-main-card {
        aspect-ratio: 8 / 7 !important;
        border-radius: 8px !important;
    }
    .production-videos-wrap .production-side-videos {
        flex-direction: row !important;
        gap: 10px !important;
        height: auto !important;
    }
    .production-videos-wrap .video-side-card {
        flex: 1 1 0 !important;
        aspect-ratio: 6 / 5 !important;
        border-radius: 8px !important;
    }
}

/* ===================================================
   МОБИЛЬНЫЙ БЛОК ВИДЕО — финальные правила по макету.
   Перекрывают все предыдущие: колонки строго друг
   под другом, два маленьких видео в ряд.
   =================================================== */
@media (max-width: 767.98px) {
    .product-section-tabs {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .production-videos-wrap {
        overflow: visible !important;
        background: transparent !important;
        border-radius: 0 !important;
        padding: 0 5px !important;
        margin-top: 12px !important;
    }
    .production-videos-wrap > .row {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 8px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .production-videos-wrap > .row > [class*="col-md-8"],
    .production-videos-wrap > .row > [class*="col-lg-8"],
    .production-videos-wrap > .row > [class*="col-md-4"],
    .production-videos-wrap > .row > [class*="col-lg-4"] {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        align-self: stretch !important;
        aspect-ratio: auto !important;
    }
    .production-videos-wrap .video-main-card {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 8 / 7 !important;
        border-radius: 8px !important;
    }
    .production-videos-wrap .production-side-videos {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        /* stretch обнулял высоту карточек: высота родителя auto,
           высота детей = высота родителя → замкнутый круг */
        align-items: flex-start !important;
        gap: 10px !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        margin-top: 0 !important;
    }
    .production-videos-wrap .production-side-videos > *:not(:last-child) {
        margin-bottom: 0 !important;
    }
    .production-videos-wrap .video-side-card {
        display: block !important;
        flex: 1 1 0 !important;
        align-self: flex-start !important;
        width: auto !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 6 / 5 !important;
        border-radius: 8px !important;
    }
    .production-videos-wrap .production-video-card img,
    .production-videos-wrap .production-video-card video {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* ===================================================
   Мобильный блок видео — принудительно, с запасом
   по специфичности: класс .flex-column из bootstrap
   перебивал направление колонки
   =================================================== */
@media (max-width: 767.98px) {
    .production-videos-wrap .row .production-side-videos.d-flex.flex-column,
    .production-videos-wrap .row .production-side-videos,
    .production-videos-wrap .production-side-videos {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 10px !important;
        height: auto !important;
        min-height: 0 !important;
    }
    /* ширина не зависит от flex-основы: работает и в row, и в column */
    .production-videos-wrap .row .production-side-videos .video-side-card,
    .production-videos-wrap .video-side-card {
        flex: none !important;
        width: calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 6 / 5 !important;
        align-self: flex-start !important;
        display: block !important;
        border-radius: 8px !important;
    }
}

.production-videos-wrap .production-video-card {
    background: #000 !important;
}

/* ===================================================
   Кадр видео = пропорции обложки (334x334), поэтому
   cover ничего не срезает и чёрных полей нет
   =================================================== */
.production-videos-wrap .production-video-card > img,
.production-videos-wrap .production-video-card > video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}
@media (max-width: 767.98px) {
    .production-videos-wrap .production-video-card > img,
    .production-videos-wrap .production-video-card > video {
        object-fit: cover !important;
    }
    .production-videos-wrap .video-main-card {
        aspect-ratio: 1 / 1 !important;
    }
    .production-videos-wrap .row .production-side-videos .video-side-card,
    .production-videos-wrap .video-side-card {
        aspect-ratio: 1 / 1 !important;
    }
}

/* ===================================================
   «Похожие товары» на мобильном: меньше боковые
   отступы, видно 1.3 карточки, соседняя не режется
   =================================================== */
@media (max-width: 991.98px) {
    .similar-products-section > h2 {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .similar-products-section .carousel-items {
        padding-left: 12px !important;
        padding-right: 0 !important;
        overflow: visible !important;
    }
    .similar-products-section .catalog-section,
    .similar-products-section .carousel-items .swiper {
        overflow: visible !important;
    }
    .similar-products-section .carousel-items .swiper-slide {
        width: 72% !important;
    }
}

/* ===================================================
   Уточнение: 72% и overflow только для ВНЕШНЕГО
   слайдера товаров. Внутри карточки свой слайдер
   фотографий — его правила не должны задевать.
   =================================================== */
@media (max-width: 991.98px) {
    .similar-products-section .carousel-items > .swiper {
        overflow: visible !important;
    }
    .similar-products-section .carousel-items > .swiper > .swiper-wrapper > .swiper-slide {
        width: 72% !important;
        height: auto !important;
    }
    /* слайдер фотографий внутри карточки — как было */
    .similar-products-section .product .card-slider .swiper,
    .similar-products-section .card-slider .swiper {
        overflow: hidden !important;
    }
    .similar-products-section .product .card-slider .swiper-slide,
    .similar-products-section .card-slider .swiper-slide {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ===================================================
   Боковые отступы по макету. Родительский контейнер
   давал неравные поля (слева 12px, справа 27px),
   поэтому блоки растягиваем на ширину экрана
   и задаём отступы сами: видео 5px, товары 10px.
   =================================================== */
@media (max-width: 767.98px) {
    /* родитель даёт 12px — гасим их и ставим свои 5px */
    .production-videos-wrap {
        width: auto !important;
        max-width: none !important;
        margin-left: -12px !important;
        margin-right: -12px !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        box-sizing: border-box !important;
    }
}
@media (max-width: 991.98px) {
    .similar-products-section {
        width: auto !important;
        max-width: none !important;
        margin-left: -12px !important;
        margin-right: -12px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
    .similar-products-section > h2 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .similar-products-section .carousel-items {
        padding-left: 10px !important;
        padding-right: 0 !important;
    }
}

/* ===================================================
   Мобильная галерея по макету: главное фото в
   пропорции 19/16, по краям видны соседние кадры
   (slidesPerView задаётся в шаблоне), миниатюры 16/9
   =================================================== */
@media (max-width: 767.98px) {
    .single__preview .preview-main {
        aspect-ratio: 19 / 16 !important;
        max-height: none !important;
    }
    .single__preview .preview-main .swiper,
    .single__preview .preview-main .swiper-wrapper,
    .single__preview .preview-main .swiper-slide {
        height: 100% !important;
    }
    .single__preview .preview-main__img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 0 !important;
    }
    .preview-thumbs .swiper-slide {
        aspect-ratio: 16 / 9 !important;
        border-radius: 16px !important;
    }
    .preview-thumbs .thumb-more-slide {
        aspect-ratio: 16 / 9 !important;
    }
    .preview-thumbs .swiper-wrapper {
        gap: 12px !important;
    }
}

/* ===================================================
   Миниатюры на мобильном нужны по макету —
   в style.css компонента они были скрыты целиком
   =================================================== */
@media (max-width: 991.98px) {
    .preview-thumbs {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        margin-top: 14px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .preview-thumbs .swiper {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
    .preview-thumbs .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        transform: none !important;
        height: auto !important;
    }
    .preview-thumbs .swiper-slide {
        width: auto !important;
        margin: 0 !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        border-radius: 16px !important;
        overflow: hidden !important;
    }
    .preview-thumbs .preview-thumbs__img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* ===================================================
   «Похожие товары» — в конце страницы. Родитель на
   мобильном flex, у блоков товара order 1..6, а у
   этой секции order по умолчанию 0 — она уезжала
   в самый верх, выше галереи.
   =================================================== */
@media (max-width: 991.98px) {
    .similar-products-section {
        order: 7 !important;
    }
}

/* ===================================================
   Описание на мобильном по макету: без пустых строк
   от двойных <br>, текст обрезается ровно по строке,
   «Показать ещё» сразу под текстом
   =================================================== */
@media (max-width: 991.98px) {
    .product-description-text br + br {
        display: none !important;
    }
    .product-description-text:not(.expanded) {
        max-height: 140px !important;
    }
    .product-description-text {
        margin-bottom: 8px !important;
    }
    .product-description-specs-wrap > .product-description-toggle-wrap {
        margin-top: 2px !important;
    }
}

/* ===================================================
   Галерея на мобильном: контейнер не режет кадры при
   перелистывании — как в «Похожих товарах».
   Боковые отступы по макету — 10px.
   =================================================== */
@media (max-width: 991.98px) {
    .product-section-gallery,
    .product-section-gallery .single__sheet,
    .single__sheet.single__preview,
    .single__preview .preview-block,
    .single__preview .preview-main,
    .single__preview .preview-main > .swiper {
        overflow: visible !important;
    }
    .single__preview .preview-main {
        margin-left: 10px !important;
        margin-right: 10px !important;
        width: auto !important;
        max-width: none !important;
    }
    /* соседние кадры не должны давать горизонтальную прокрутку */
    .product-section-row-main,
    .product-section-gallery {
        overflow-x: clip !important;
    }
}

/* ===================================================
   Финальные отступы галереи по макету:
   слева 2px, справа 0, миниатюры ниже на 10px и выше
   =================================================== */
@media (max-width: 991.98px) {
    .single__preview .preview-main {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .preview-thumbs {
        margin-top: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 13px !important;
        padding-right: 0 !important;
    }
    .preview-thumbs .swiper-slide {
        aspect-ratio: 8 / 5 !important;
    }
    .preview-thumbs .thumb-more-slide {
        aspect-ratio: 8 / 5 !important;
    }
}

/* ===================================================
   padding 0 12px у .col-xs-12 не должен влиять на
   галерею: растягиваем колонку галереи на эти 12px,
   а отступ задаём внутри swiper'а (2px слева)
   =================================================== */
@media (max-width: 991.98px) {
    .product-section-gallery {
        margin-left: -12px !important;
        margin-right: -12px !important;
        width: calc(100% + 24px) !important;
        max-width: calc(100% + 24px) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .preview-main .swiper {
        width: 100% !important;
        overflow: visible !important;
        padding: 0 0 0 2px !important;
        box-sizing: border-box !important;
    }
}

/* ===================================================
   Десктоп: фото товара заполняет кадр целиком —
   при contain по бокам оставались серые поля
   =================================================== */
@media (min-width: 992px) {
    .preview-main__img,
    .single__preview .preview-main__img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
}

/* ===================================================
   Шапка и блок цвета по десктоп-макету
   =================================================== */
/* в макете под иконкой только «Войти», без «Регистрация» */
[data-action="login"] .action-btn__label + .action-btn__label {
    display: none !important;
}
[data-action="login"] .action-btn__label {
    color: #6b7280 !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}

/* в макете заголовок без названия выбранного цвета */
.material-param-field > .option-field__title > .selected-material-sep,
.material-param-field > .option-field__title > .selected-material-text {
    display: none !important;
}

/* «ещё» — светлая таблетка, как в макете, а не тёмная */
.material-more-pill-btn {
    background: #e9eaec !important;
    color: #4b5563 !important;
}
.material-more-pill-btn:hover {
    background: #dcdee1 !important;
    color: #374151 !important;
}
@media (min-width: 992px) {
    .material-param-field .material-more-pill-btn {
        background: #e9eaec !important;
        color: #4b5563 !important;
    }
}

/* ===================================================
   Иконки «в избранное» и «поделиться» — крупнее
   (просьба заказчика)
   =================================================== */
.single-actions .single-action,
.single-actions .single-action.share-list__toggle {
    width: 52px !important;
    height: 52px !important;
}
.single-actions .single-action i,
.single-actions .single-action.share-list__toggle i,
.single-actions .single-action:before,
.single-actions .single-action:after {
    font-size: 30px !important;
}
@media (min-width: 992px) {
    .single-actions .single-action,
    .single-actions .single-action.share-list__toggle {
        width: 52px !important;
        height: 52px !important;
    }
    .single-actions .single-action i,
    .single-actions .single-action.share-list__toggle i {
        font-size: 30px !important;
    }
}

/* сердечко на карточках каталога */
.product__fav {
    width: 46px !important;
    height: 46px !important;
}
.product__fav:before,
.product__fav:after,
.product__fav i {
    font-size: 30px !important;
}

/* ===================================================
   Виджет скидки в карточке каталога — компактная
   версия того же виджета, что в карточке товара
   =================================================== */
.card-discount-badge {
    display: inline-flex !important;
    align-items: center !important;
    margin-top: 6px !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
}
.card-discount-badge .badge-pct {
    background: #ffd000 !important;
    color: #111111 !important;
    font-weight: 700 !important;
    padding: 4px 7px !important;
}
.card-discount-badge .badge-saving {
    background: #fff4c2 !important;
    color: #333333 !important;
    padding: 4px 8px !important;
    white-space: nowrap !important;
}

/* ---------------------------------------------------
   Сетка каталога: цена и старая цена — в одну строку,
   виджет скидки — строкой ниже. Кнопка «в корзину»
   больше не выдавливается за пределы карточки.
   --------------------------------------------------- */
.grid-5 .product {
    min-width: 0 !important;
}
.grid-5 .product__footer {
    position: relative !important;
    align-items: flex-start !important;
    gap: 0 !important;
}
.grid-5 .product__cost {
    width: 100% !important;
    min-width: 0 !important;
}
/* кнопка «в корзину» выведена из потока — блок цен получает
   всю ширину карточки, кнопка больше не выдавливается наружу */
.grid-5 .product__footer .product__buy-v2 {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
}
.grid-5 .product__cost .product__price {
    display: inline-flex !important;
    margin-bottom: 0 !important;
    vertical-align: middle !important;
}
.grid-5 .product__cost .product__discount {
    display: inline-block !important;
    margin-left: 8px !important;
    vertical-align: middle !important;
}
.grid-5 .product__cost .card-discount-badge {
    display: flex !important;
    width: -moz-fit-content !important;
    width: fit-content !important;
    max-width: calc(100% - 52px) !important;
    margin-top: 4px !important;
}
.grid-5 .card-discount-badge .badge-saving {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
@media (max-width: 767.98px) {
    /* в узкой карточке виджет должен помещаться целиком */
    .card-discount-badge {
        font-size: 10px !important;
        letter-spacing: -0.2px !important;
    }
    .card-discount-badge .badge-pct { padding: 3px 5px !important; }
    .card-discount-badge .badge-saving { padding: 3px 5px !important; }
    .grid-5 .product__cost .product__discount { margin-left: 6px !important; }

    /* В узкой карточке кнопка поднимается к строке цены,
       чтобы виджет скидки получил всю ширину карточки */
    .grid-5 .product__footer .product__buy-v2 {
        top: 0 !important;
        bottom: auto !important;
    }
    .grid-5 .product__cost .product__price {
        max-width: calc(100% - 52px) !important;
    }
    .grid-5 .product__cost .card-discount-badge {
        max-width: 100% !important;
    }
}
