/* ===== Страница товара — по макету Figma ===== */
:root {
  --product-navy: #1e3853;
  --product-gray-bg: #f0f0f0;
  --product-gray-text: #9a9a9a;
  --product-page-bg: #f3f3f3;
}

body.product-detail-page {
  background: #ffffff;
}

body.product-detail-page .main.main-product {
  background: #FFFFFF;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.popup-overlay .popup-wrapper {
  justify-content: center;
  width: 100%;
  height: auto;
}

/* Скролл на оверлее (как .about-review-modal), не внутри белой карточки */
.popup-overlay .popup {
  display: block;
  height: auto;
  max-height: none;
  overflow: visible;
}

.popup-overlay .product-modal {
  overflow: visible;
  height: auto;
  min-height: 0;
  flex: none;
}

@media (max-width: 61.999rem) {
  .popup-overlay .popup-wrapper {
    justify-content: flex-start;
    width: 100%;
    top: 0;
    bottom: auto;
  }

  .popup-overlay .popup {
    border-radius: 0;
  }

  .popup-overlay .popup-mobile-top {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
    box-sizing: border-box;
  }

  .popup-overlay .popup-mobile-top__logo {
    display: block;
    flex-shrink: 0;
    line-height: 0;
  }

  .popup-overlay .popup-mobile-top__logo img {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 0;
  }

  .popup-overlay .popup-mobile-top__close {
    position: absolute;
    top: 20px;
    right: 20px;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 0;
  }

  .popup-overlay .popup-mobile-top__close img {
    display: block;
    width: 56px;
    height: 56px;
  }

  .popup-overlay .product-modal {
    padding: 0 0 var(--space-lg);
  }

  .product-modal .product-faq {
    padding: 0;
  }

  body.product-detail-page .product-card {
    padding-top: 0;
  }

  body.product-detail-page .product-faq {
    margin: 0 0 20px;
  }

  .popup-overlay .product-card__header .product-card__close {
    display: none;
  }
}

/* В попапе внешняя рамка/скругление — у .popup, без второй рамки у карточки */
.popup-overlay .popup {
  background: #fff;
  border-radius: 0;
  overflow: visible;
  box-shadow: 0 0.125rem 1.25rem rgba(0, 0, 0, 0.12);
  width: 100%;
  max-width: 100%;
}

@media (min-width: 62rem) {
  .popup-overlay .popup {
    border-radius: 1.875rem;
  }
}

.popup-overlay .product-card {
  padding: 0;
}

.popup-overlay .product-faq {
  margin: 0;
}

@media (min-width: 48rem) {
  .popup-overlay .popup-wrapper {
    max-width: 1540px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    box-sizing: border-box;
  }

  .popup-overlay .popup {
    max-width: 1500px;
    max-height: none;
  }
}

body.product-detail-page .product-modal {
  overflow: visible;
  height: auto;
}

.product-detail-page > .container.container--lg {
  box-sizing: border-box;
}

.product-detail-page .product__inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

/* Карточка */
.product-card {
  background: transparent;
  border-radius: 0;
  padding: 1.5rem;
  box-shadow: none;
  border: 0;
}

body.product-detail-page .product-card {
  padding-left: 0;
  padding-right: 0;
}

.product-card__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.24rem;
}

/* Левая колонка — галерея */
.product-card__media {
  position: relative;
  min-width: 0;
}

.product-card__view {
  display: none;
}

.product-card__view.is-active {
  display: block;
}

.product-card__view[hidden] {
  display: none !important;
}

/* Сброс legacy style.css (100vh, absolute product-info) */
.product-card .product-slider,
.product-card .instruction-slider {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  aspect-ratio: 1 / 1;
  border-radius: 1.875rem;
  overflow: hidden;
  background: var(--product-gray-bg);
}

.product-card .product-slider__item {
  background: var(--product-gray-bg);
  border-radius: 1.875rem;
}

.product-card .product-slider__item img {
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  object-fit: cover;
  display: block;
}

.product-card .custom-swiper-button-prev,
.product-card .custom-swiper-button-next {
  display: flex !important;
  position: absolute;
  top: 53.3%;
  transform: translateY(-50%);
  z-index: 5;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.product-card .custom-swiper-button-prev {
  left: 1.3rem;
}

.product-card .custom-swiper-button-next {
  right: 1.3rem;
}

.product-card .custom-swiper-button-prev img,
.product-card .custom-swiper-button-next img {
  width: 1.5rem;
  height: auto;
  opacity: 0.45;
}

.product-card .swiper-pagination {
  top: auto !important;
  bottom: 2.19rem !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) translateY(0) !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: auto !important;
  min-width: 0;
  height: auto !important;
}

.product-card .swiper-pagination-bullet {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  display: inline-block !important;
  transform: none !important;
  width: 0.625rem;
  height: 0.625rem;
  background: #c4c4c4;
  opacity: 1;
}

.product-card .swiper-pagination-bullet-active {
  background: var(--product-navy);
}

.product-card .swiper-pagination-bullets-dynamic {
  transform: translateX(-50%) !important;
  overflow: visible;
  white-space: nowrap;
}

.product-card .swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
  transform: scale(1) !important;
}

.product-card .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,
.product-card .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main {
  transform: scale(1.2) !important;
}

/* Правая колонка */
.product-card__aside {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-card__head {
  margin-bottom: 1.3rem;
}

.product-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #e9ebec;
  margin-bottom: 1.2rem;
}

.product-card__title {
  margin: 0;
  font-size: clamp(2.692rem, 2.67rem, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--product-navy);
  letter-spacing: -0.01em;
  min-width: 0;
}

.product-card__close {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.product-card__close img,
.product-card__close svg {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card__close:hover {
  opacity: 1;
}

.product-card__back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  max-width: 12rem;
  margin-left: auto;
  padding: 0.35rem 0;
  font-family: "Cocomat Pro", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  color: #233140;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.product-card__back-link:hover {
  opacity: 0.75;
}

body.product-detail-page .product-card__back-link {
  display: none !important;
}

.product-card__back-arrow {
  font-size: 1.25rem;
  line-height: 1;
}

/* Вкладки — единый переключатель (сегмент) */
.product-card .product-tabs {
  display: flex;
  width: 100%;
  border: 1px solid var(--product-navy);
  border-radius: 0.85rem;
  overflow: hidden;
  background: #fff;
  box-sizing: border-box;
}

.product-card .product-tabs__btn {
  display: flex !important;
  flex: 1 1 50%;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.875rem 1rem;
  margin: 0;
  border: none;
  border-radius: 0;
  background: #fff;
  color: var(--product-navy);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transform: none;
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.product-card .product-tabs__btn:hover {
  transform: none;
  box-shadow: none;
}

.product-card .product-tabs__btn + .product-tabs__btn {
  border-left: 1px solid var(--product-navy);
}

/* Подсветка вкладки — по data-active-tab на карточке (источник истины) */
.product-card[data-active-tab="product"] .product-tabs__btn[data-tab="product"],
.product-card[data-active-tab="instruction"] .product-tabs__btn[data-tab="instruction"],
.product-card .product-tabs__btn.is-active {
  background: var(--product-navy);
  color: #fff;
}

.product-card[data-active-tab="product"] .product-tabs__btn[data-tab="instruction"],
.product-card[data-active-tab="instruction"] .product-tabs__btn[data-tab="product"],
.product-card .product-tabs__btn:not(.is-active) {
  background: #fff;
  color: var(--product-navy);
}

.product-card .product-tabs__btn:not(.is-active):hover {
  background: rgba(30, 56, 83, 0.06);
  box-shadow: none;
  transform: none;
}

.product-card[data-active-tab="instruction"] .product-tabs__btn[data-tab="instruction"]:hover,
.product-card[data-active-tab="product"] .product-tabs__btn[data-tab="product"]:hover {
  background: var(--product-navy);
  color: #fff;
  transform: none;
  box-shadow: none;
}

/* Переключение панелей */
.product-card[data-active-tab="product"] [data-product-view="product"],
.product-card[data-active-tab="product"] [data-product-panel="product"] {
  display: block !important;
  height: 100%;
}

.product-card[data-active-tab="product"] [data-product-view="instruction"],
.product-card[data-active-tab="product"] [data-product-panel="instruction"] {
  display: none !important;
}

.product-card[data-active-tab="instruction"] [data-product-view="instruction"],
.product-card[data-active-tab="instruction"] [data-product-panel="instruction"] {
  display: block !important;
}

.product-card[data-active-tab="instruction"] [data-product-view="product"],
.product-card[data-active-tab="instruction"] [data-product-panel="product"] {
  display: none !important;
}

/* Длина / высота в один ряд */
.product-options-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  margin-bottom: 1.3rem;
  align-items: start;
}

.product-options-row__item {
  min-width: 0;
  height: auto;
  align-self: start;
}

.product-option,
.product-accordion {
  border: 0;
  margin: 0;
  padding: 0;
  background: var(--product-gray-bg);
  border-radius: 1.85rem;
  overflow: hidden;
}

.product-accordion:has(.product-specs) {
  margin-bottom: 1.3rem;
}

.product-accordion:has(.product-accordion__body--html) {
  margin-bottom: 1.25rem;
}

.product-card button.product-option__head,
.product-card button.product-accordion__head {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  max-width: 100%;
}

.product-option__head,
.product-accordion__head {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  padding: 1.13rem 1.21rem 1.32rem;
  background: transparent;
  border-radius: 0;
  user-select: none;
}

.product-card .product-block__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: "Cocomat Pro", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 2.3125rem;
  color: #233140;
}

.product-option__values,
.product-specs,
.product-accordion__body,
.product-faq__body,
.product-recomendation__body,
.product-faq__item > .product-accordion__body {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.product-option:not(.is-open) .product-option__values,
.product-accordion:not(.is-open) .product-specs,
.product-accordion:not(.is-open) .product-accordion__body,
.product-faq:not(.is-open) .product-faq__body,
.product-recomendation:not(.is-open) .product-recomendation__body,
.product-faq__item:not(.is-open) .product-accordion__body {
  max-height: 0;
  opacity: 0;
}

.product-disclosure-panel__inner {
  box-sizing: border-box;
  transition: padding 450ms ease;
}

.product-option__values-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  padding: 0 1.3rem 1.2rem;
}

[data-product-disclosure].is-disclosure-closing .product-disclosure-panel__inner,
.product-faq__item.is-disclosure-closing .product-disclosure-panel__inner {
  padding-top: 0;
  padding-bottom: 0;
}

/* Сброс глобального button { width: 100% } из style.css */
.product-card button.product-option__chip {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: flex-start;
  width: auto;
  max-width: none;
  min-width: 3.25rem;
  height: 3rem;
  margin: 0;
  padding: 0 0.8rem;
  border: 2px solid #233140;
  border-radius: 2.3125rem;
  background: transparent;
  background-color: transparent;
  color: #233140;
  font-family: "Cocomat Pro", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: normal;
  font-stretch: normal;
  text-align: center;
  white-space: nowrap;
  cursor: default;
  -webkit-font-smoothing: antialiased;
}

.product-card button.product-option__chip.is-active,
.product-card button.product-option__chip:not(.is-active) {
  border: 2px solid #233140;
  background: transparent;
  background-color: transparent;
  color: #233140;
}

.product-option__chevron,
.product-accordion__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.4375rem;
  height: 2.4375rem;
  transition: transform 0.2s ease;
}

.product-option__chevron svg,
.product-accordion__chevron svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* SVG по умолчанию смотрит вверх; при свёрнутом блоке — вниз */
.product-option:not(.is-open) .product-option__chevron,
.product-accordion:not(.is-open) .product-accordion__chevron,
.product-option.is-disclosure-closing .product-option__chevron,
.product-accordion.is-disclosure-closing .product-accordion__chevron {
  transform: rotate(180deg);
}

/* Характеристики */
.product-specs {
  background: transparent;
}

.product-specs__inner {
  padding: 0 1.3rem 2rem;
}

.product-specs__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1.5rem;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 0.35rem;
}

.product-specs__row:last-child {
	margin-bottom: 0;
}

.product-specs__row dt {
  margin: 0;
  color: var(--product-gray-text);
  font-weight: 400;
}

.product-specs__row dd {
  margin: 0;
  color: #555;
  text-align: right;
}

.product-accordion__body {
  background: transparent;
  font-size: 1.125rem;
  line-height: 1.367;
  color: #555;
  font-weight: 400;
}

.product-accordion__body-inner {
  padding: 0 1.3rem 1.75rem;
}

.product-accordion__body--html p {
  margin: 0 0 0.75rem;
}

.product-accordion__body--html p:last-child {
  margin-bottom: 0;
}

.product-accordion__body--html ul,
.product-accordion__body--html ol {
  margin: 0 0 0.75rem;
  padding-left: 1.5rem;
}

.product-accordion__body--html li {
  margin-bottom: 0.35rem;
}

.product-accordion__body--html br + br {
  display: block;
  content: "";
  margin-top: 0.5rem;
}

/* Маркетплейсы */
.product-marketplaces--card {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 0;
}

.product-marketplaces--card > .ozon,
.product-marketplaces--card > .wb,
.product-marketplaces--card > .yamarket {
  flex: 1 1 0;
  min-width: 0;
}

/* Мобильная карточка: кнопки в конце main */
.product-marketplaces-dock {
  display: none;
}

.product-marketplaces--main-sticky {
  display: none;
}

.product-marketplaces--under-tabs {
  display: none;
}

.product-marketplaces--in-panel {
  display: none;
}

@media (min-width: 62rem) {
  .product-marketplaces-dock {
    display: none;
  }

  .product-marketplaces--main-sticky {
    display: none;
  }

  .product-marketplaces--under-tabs {
    display: none;
  }

  .product-marketplaces--in-panel {
    display: flex;
  }
}

.product-marketplaces--card a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.61rem;
  padding: 0.625rem 0.5rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 1.125rem;
  color: #fff;
  text-decoration: none;
}

.product-marketplaces .ozon a,
.product-marketplaces .wb a,
.product-marketplaces .yamarket a,
.product-marketplaces--buy,
.product-marketplaces--buy a {
  border-radius: 1rem;
}

.product-marketplaces--card .ozon a {
  background: #005bff;
}

.product-marketplaces--card .wb a {
  background: linear-gradient(190deg, #FF49D7 13.5%, #6F01FB 77.83%);
}

.product-marketplaces--card .yamarket a {
  background: #ff5226;
}

/* Видео инструкции — левая колонка; заголовок, табы и сетка — справа */
.product-card[data-active-tab="instruction"] .product-card__layout {
  align-items: stretch;
}

.product-card[data-active-tab="instruction"] .product-card__media {
  display: flex;
  flex-direction: column;
}

.product-card[data-active-tab="instruction"] .product-card__view--instruction.is-active {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
}

.instruction-video-block {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 12rem;
  border-radius: 1.875rem;
  overflow: hidden;
  background: var(--product-gray-bg);
}

.product-card .instruction-video-link {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  cursor: pointer;
}

.instruction-video-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card .kinescope-play-btn {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: #f5d033;
  color: #233140;
}

.instruction-grid {
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.instruction-grid--slider .swiper-wrapper {
  align-items: stretch;
}

.instruction-grid--slider .swiper-slide {
  box-sizing: border-box;
  width: 264px;
  height: auto;
  aspect-ratio: 264 / 523;
  flex-shrink: 0;
}

.instruction-grid__item {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--product-gray-bg);
}

.instruction-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 61.99rem) {
  .instruction-grid--slider .swiper-slide {
    width: auto;
    height: auto;
    aspect-ratio: 264 / 523;
  }
}

@media (min-width: 48rem) {
  .instruction-grid--slider .swiper-slide {
    width: 264px;
  }
}

.product-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: var(--product-gray-bg);
  border-radius: 1.875rem;
  color: #999;
}

/* Desktop — пропорции как в макете */
@media (min-width: 62rem) {
  .product-card {
    padding: 1.75rem 2rem 0;
  }

  body.product-detail-page .product-card {
    padding-left: 0;
    padding-right: 0;
  }

  .product-card__layout {
    grid-template-columns: minmax(0, 574px) minmax(0, 846px);
    gap: 1.24rem;
    align-items: start;
  }

  .product-detail-page .product-card__layout {
    grid-template-columns: minmax(0, 574px) minmax(0, 894px);
  }

  .product-card__media {
    max-width: 574px;
    width: 100%;
    height: 100%;
  }

  .product-card .product-slider,
  .product-card .instruction-slider {
    max-width: 35.875rem !important; /* 574px */
    width: 100% !important;
  }

  .product-card[data-active-tab="instruction"] .instruction-video-block {
    max-width: 35.875rem;
    width: 100%;
    height: 100%;
  }

  .product-card__aside {
    max-width: 846px;
    width: 100%;
  }

  .product-detail-page .product-card__aside {
    max-width: 894px;
  }

  .product-card__close {
    margin-top: 1.9rem;
    margin-right: 1.9rem;
  }

  .product-options-row {
    grid-template-columns: 1fr 1fr;
  }

  .product-recomendation__title {
    padding: 1.5rem 1.3rem 1.5rem;
  }
}

@media (max-width: 61.99rem) {
  .product-options-row {
    grid-template-columns: 1fr;
  }

  .product-card__header {
    align-items: center;
    min-width: 0;
    gap: 0.75rem;
  }

  .product-card__title {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-card__close {
    width: 2.75rem;
    height: 2.75rem;
  }

  body.product-detail-page .product-marketplaces-dock,
  .popup-overlay .product-marketplaces-dock {
    --product-marketplaces-bar-h: 4.25rem;
    display: block;
    position: relative;
    width: 100%;
    min-height: calc(var(--product-marketplaces-bar-h) + env(safe-area-inset-bottom, 0px));
  }

  body.product-detail-page .product-marketplaces-dock__anchor,
  .popup-overlay .product-marketplaces-dock__anchor {
    display: block;
    width: 100%;
    height: calc(var(--product-marketplaces-bar-h) + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
  }

  body.product-detail-page .product-marketplaces--main-sticky,
  .popup-overlay .product-marketplaces--main-sticky {
    display: flex !important;
    position: absolute !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    gap: 0.5rem;
    width: 100%;
    margin: 0 !important;
    padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    background: #ffffff;
    box-shadow: none;
    transform: none !important;
  }

  body.product-detail-page .product-marketplaces--main-sticky.is-fixed,
  .popup-overlay .product-marketplaces--main-sticky.is-fixed {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    max-width: none;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    box-shadow: 0 -0.25rem 1.5rem rgba(35, 49, 64, 0.12);
  }

  body.product-detail-page .product-marketplaces--main-sticky a,
  .popup-overlay .product-marketplaces--main-sticky a {
    min-height: 2.75rem;
    font-size: 0.9375rem;
    border-radius: 0.75rem;
  }
}

.product-recomendation button.product-recomendation__head {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-color: transparent;
  color: #233140;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.product-recomendation__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.product-recomendation__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  padding: 1.5rem 1.3rem 1.5rem;
  font-family: "Cocomat Pro", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #233140;
  text-align: left;
}

.product-recomendation__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.4375rem;
  height: 2.4375rem;
  margin: 0 1.3rem 0 0;
  transition: transform 0.2s ease;
}

.product-recomendation__chevron svg {
  display: block;
  width: 100%;
  height: 100%;
}

.product-recomendation:not(.is-open) .product-recomendation__chevron,
.product-recomendation.is-disclosure-closing .product-recomendation__chevron {
  transform: rotate(180deg);
}

/* Блок «Отвечаем на вопросы» */
.product-faq {
  margin: 0 0 6.4375rem;
}

.product-faq button.product-faq__head {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-color: transparent;
  color: #233140;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.product-faq__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.product-faq__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  padding: 1.5rem 1.3rem 1.5rem;
  font-family: "Cocomat Pro", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #233140;
  text-align: left;
}

.product-faq__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.4375rem;
  height: 2.4375rem;
  margin: 0 1.3rem 0 0;
  transition: transform 0.2s ease;
}

.product-faq__chevron svg {
  display: block;
  width: 100%;
  height: 100%;
}

.product-faq:not(.is-open) .product-faq__chevron,
.product-faq.is-disclosure-closing .product-faq__chevron {
  transform: rotate(180deg);
}

.product-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
}

.product-faq__item {
  background: var(--product-gray-bg);
  border-radius: 1.85rem;
  overflow: hidden;
}

.product-faq button.product-faq__question {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.3rem 1.3rem 1.32rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #233140;
  font: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.product-faq__question-text {
  flex: 1 1 auto;
  min-width: 0;
  font-family: "Cocomat Pro", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #233140;
}

.product-faq__toggle {
  display: inline-flex;
  flex-shrink: 0;
  width: 2.4375rem;
  height: 2.4375rem;
  line-height: 0;
  transition: transform 0.2s ease;
}

.product-faq__toggle svg {
  display: block;
  width: 100%;
  height: 100%;
}

.product-faq__item.is-open:not(.is-disclosure-closing) .product-faq__toggle {
  transform: rotate(180deg);
}

.product-faq__item.is-disclosure-closing .product-faq__toggle {
  transform: rotate(0);
}

.product-faq__item .product-accordion__body {
  margin: 0;
}

/* Карточки «Рекомендуем также» — Swiper */
.product-recommendations-host {
  transition: opacity 0.2s ease;
}

.product-recommendations-host.is-grid-updating {
  opacity: 0.72;
  pointer-events: none;
}

.product-recomendation .product-recomendation__list {
  width: 100%;
  margin: 0;
  padding: 0 0 0.35rem;
  overflow: hidden;
}

.product-recomendation .product-recomendation__list .swiper-wrapper {
  align-items: stretch;
}

.product-recomendation .product-recomendation-card {
  height: auto;
  width: auto;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.product-recomendation .product-recommendation-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-height: 15.5rem;
  padding: 1.8rem 0 0;
  border-radius: 1.875rem;
  background: var(--product-gray-bg);
  color: #233140;
  text-decoration: none;
  overflow: hidden;
  transform: none;
  transition: background-color 0.35s ease;
}

.product-recomendation .product-recommendation-link:hover {
  color: #233140;
  text-decoration: none;
  transform: none;
  background-color: #e3e3e3;
}

.product-recomendation .product-recommendation-card__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex-shrink: 0;
}

.product-recomendation .product-recommendation-card__title {
  margin: 0;
  padding: 0 1.25rem;
  font-family: "Cocomat Pro", sans-serif;
  font-weight: 700;
  font-size: clamp(0.9375rem, 1.125rem, 1.25rem);
  line-height: 1.6;
  text-align: center;
  color: #233140;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-recomendation .product-recommendation-card__accent {
  display: block;
  width: 1rem;
  height: 0.25rem;
  border-radius: 999px;
  background: #f5d033;
  flex-shrink: 0;
  margin-bottom: 0.38rem;
  transition: width 0.35s ease;
}

.product-recomendation .product-recommendation-link:hover .product-recommendation-card__accent {
  width: 2.75rem;
}

.product-recomendation .product-recommendation-card__img {
  position: relative;
  width: 100%;
  margin-top: auto;
  flex: 1 1 auto;
  min-height: 9.25rem;
  height: 9.25rem;
  overflow: hidden;
  border-radius: 0 0 1.875rem 1.875rem;
  background: transparent;
}

.product-recomendation .product-recommendation-card__img img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 120%;
  max-width: none;
  height: auto;
  max-height: none;
  transform: translateX(-33%) translateY(38%);
  object-fit: contain;
  object-position: center top;
  display: block;
  pointer-events: none;
  transition: transform 0.35s ease;
}

.product-recomendation .product-recommendation-link:hover .product-recommendation-card__img img {
  transform: translateX(-38%) translateY(34%);
}

.product-recomendation .product-recommendation-card__img .no-image {
  width: 100%;
  padding: 1rem 0;
  font-size: 0.875rem;
  color: #9aa3ab;
  text-align: center;
}

@media (min-width: 62rem) {
  .product-recomendation .product-recommendation-link {
    min-height: 18.9rem;
    padding: 1.8rem 0 0;
  }

  .product-recomendation .product-recommendation-card__img {
    min-height: 10.75rem;
    height: 10.75rem;
  }

  .product-recomendation .product-recommendation-card__img img {
    width: 125%;
    transform: translateX(-36%) translateY(46%);
  }

  .product-recomendation .product-recommendation-link:hover .product-recommendation-card__img img {
    transform: translateX(-41%) translateY(42%);
  }
}

/* Interior card bounds (2026-10-15): JS fits cards inside the visible scroller. */
:is(body.product-detail-page, .popup-overlay) .product-interior__hotspot .product-interior__popover[data-interior-positioned] {
  box-sizing: border-box;
  left: var(--interior-card-left, 0px) !important;
  top: var(--interior-card-top, 0px) !important;
  right: auto !important;
  bottom: auto !important;
  max-width: var(--interior-card-max-width);
  max-height: var(--interior-card-max-height);
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  transform: none !important;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

/* Общая интерьерная галерея товара */
:is(body.product-detail-page, .popup-overlay) .product-interior { margin: 0; }
:is(body.product-detail-page, .popup-overlay) .product-interior button.product-interior__head {
  box-sizing: border-box; display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; width: 100%; max-width: none; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: transparent; color: #233140;
  font: inherit; text-align: left; appearance: none; -webkit-appearance: none; cursor: pointer;
}
:is(body.product-detail-page, .popup-overlay) .product-interior__title {
  margin: 0; flex: 1 1 auto; min-width: 0; padding: 1.5rem 1.3rem;
  font-family: "Cocomat Pro", sans-serif; font-weight: 700; font-size: 1.5rem;
  line-height: 1.2; color: #233140;
}
:is(body.product-detail-page, .popup-overlay) .product-interior__chevron {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 2.4375rem; height: 2.4375rem; margin: 0 1.3rem 0 0; transition: transform 0.2s ease;
}
:is(body.product-detail-page, .popup-overlay) .product-interior__chevron svg { display: block; width: 100%; height: 100%; }
:is(body.product-detail-page, .popup-overlay) .product-interior:not(.is-open) .product-interior__chevron,
:is(body.product-detail-page, .popup-overlay) .product-interior.is-disclosure-closing .product-interior__chevron { transform: rotate(180deg); }
:is(body.product-detail-page, .popup-overlay) .product-interior__body { margin: 0; padding: 0; overflow: hidden; }
:is(body.product-detail-page, .popup-overlay) .product-interior:not(.is-open) .product-interior__body { max-height: 0; opacity: 0; }
:is(body.product-detail-page, .popup-overlay) .product-interior__body-inner { padding: 0 0 0.35rem; }
:is(body.product-detail-page, .popup-overlay) .product-interior__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem;
}
:is(body.product-detail-page, .popup-overlay) .product-interior__item {
  position: relative; display: block; min-width: 0; aspect-ratio: 264 / 392;
  overflow: visible; border-radius: 1.875rem; background: transparent; isolation: isolate;
}
:is(body.product-detail-page, .popup-overlay) .product-interior__item:has(.product-interior__hotspot.is-open),
:is(body.product-detail-page, .popup-overlay) .product-interior__item:has(.product-interior__hotspot:focus-within),
:is(body.product-detail-page, .popup-overlay) .product-interior__item:hover { z-index: 30; }
:is(body.product-detail-page, .popup-overlay) .product-interior__image-link {
  display: block; width: 100%; height: 100%; overflow: hidden;
  border-radius: inherit; background: var(--product-gray-bg);
}
:is(body.product-detail-page, .popup-overlay) .product-interior__image-link img {
  display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease;
}
@media (hover: hover) {
  :is(body.product-detail-page, .popup-overlay) .product-interior__item:hover .product-interior__image-link img { transform: scale(1.035); }
}
:is(body.product-detail-page, .popup-overlay) .product-interior__markers {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit;
}
:is(body.product-detail-page, .popup-overlay) .product-interior__hotspot {
  position: absolute; left: var(--hotspot-x); top: var(--hotspot-y);
  z-index: 1; width: 0; height: 0; pointer-events: auto;
}
:is(body.product-detail-page, .popup-overlay) .product-interior__hotspot:hover,
:is(body.product-detail-page, .popup-overlay) .product-interior__hotspot:focus-within,
:is(body.product-detail-page, .popup-overlay) .product-interior__hotspot.is-open { z-index: 20; }
:is(body.product-detail-page, .popup-overlay) button.product-interior__marker {
  position: absolute; left: 0; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; margin: 0; padding: 0;
  border: 0; border-radius: 50%; background: rgba(35, 49, 64, 0.24);
  transform: translate(-50%, -50%); cursor: pointer;
  appearance: none; -webkit-appearance: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
:is(body.product-detail-page, .popup-overlay) button.product-interior__marker:hover,
:is(body.product-detail-page, .popup-overlay) button.product-interior__marker:focus-visible,
:is(body.product-detail-page, .popup-overlay) .product-interior__hotspot.is-open button.product-interior__marker {
  background: rgba(35, 49, 64, 0.55); transform: translate(-50%, -50%) scale(1.08);
  outline: none;
}
:is(body.product-detail-page, .popup-overlay) .product-interior__marker-ring {
  position: absolute; width: 1.75rem; height: 1.75rem;
  border: 0.125rem solid #fff; border-radius: 50%;
  box-shadow: 0 0 0 0.0625rem rgba(35, 49, 64, 0.35);
}
:is(body.product-detail-page, .popup-overlay) .product-interior__marker-dot {
  position: absolute; width: 0.625rem; height: 0.625rem;
  border-radius: 50%; background: #fff;
  box-shadow: 0 0.0625rem 0.25rem rgba(35, 49, 64, 0.35);
}
:is(body.product-detail-page, .popup-overlay) .product-interior__popover {
  position: absolute; left: 1.8rem; top: 0; z-index: 4;
  display: flex; gap: 0.75rem; width: 14rem; min-height: 7.25rem;
  padding: 0.75rem; border: 0.0625rem solid rgba(35, 49, 64, 0.12);
  border-radius: 1rem; background: #fff; color: #233140;
  box-shadow: 0 0.8rem 2.4rem rgba(35, 49, 64, 0.22);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-50%) translateX(0.4rem);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}
:is(body.product-detail-page, .popup-overlay) .product-interior__hotspot.is-left .product-interior__popover {
  left: auto; right: 1.8rem; transform: translateY(-50%) translateX(-0.4rem);
}
:is(body.product-detail-page, .popup-overlay) .product-interior__hotspot.is-above .product-interior__popover {
  top: auto; bottom: 1.8rem; transform: translateX(0.4rem);
}
:is(body.product-detail-page, .popup-overlay) .product-interior__hotspot.is-left.is-above .product-interior__popover {
  transform: translateX(-0.4rem);
}
:is(body.product-detail-page, .popup-overlay) .product-interior__hotspot.is-below .product-interior__popover {
  top: 1.8rem; transform: translateX(0.4rem);
}
:is(body.product-detail-page, .popup-overlay) .product-interior__hotspot.is-left.is-below .product-interior__popover {
  transform: translateX(-0.4rem);
}
:is(body.product-detail-page, .popup-overlay) .product-interior__hotspot:hover .product-interior__popover,
:is(body.product-detail-page, .popup-overlay) .product-interior__hotspot:focus-within .product-interior__popover,
:is(body.product-detail-page, .popup-overlay) .product-interior__hotspot.is-open .product-interior__popover {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(-50%) translateX(0);
}
:is(body.product-detail-page, .popup-overlay) .product-interior__hotspot.is-left:hover .product-interior__popover,
:is(body.product-detail-page, .popup-overlay) .product-interior__hotspot.is-left:focus-within .product-interior__popover,
:is(body.product-detail-page, .popup-overlay) .product-interior__hotspot.is-left.is-open .product-interior__popover {
  transform: translateY(-50%) translateX(0);
}
:is(body.product-detail-page, .popup-overlay) .product-interior__hotspot.is-above:hover .product-interior__popover,
:is(body.product-detail-page, .popup-overlay) .product-interior__hotspot.is-above:focus-within .product-interior__popover,
:is(body.product-detail-page, .popup-overlay) .product-interior__hotspot.is-above.is-open .product-interior__popover,
:is(body.product-detail-page, .popup-overlay) .product-interior__hotspot.is-below:hover .product-interior__popover,
:is(body.product-detail-page, .popup-overlay) .product-interior__hotspot.is-below:focus-within .product-interior__popover,
:is(body.product-detail-page, .popup-overlay) .product-interior__hotspot.is-below.is-open .product-interior__popover {
  transform: translateX(0);
}
:is(body.product-detail-page, .popup-overlay) .product-interior__product-image {
  flex: 0 0 4.5rem; width: 4.5rem; height: 5.75rem; align-self: center;
  border-radius: 0.75rem; background: var(--product-gray-bg); object-fit: contain;
}
:is(body.product-detail-page, .popup-overlay) .product-interior__product-content {
  display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; align-items: flex-start;
}
:is(body.product-detail-page, .popup-overlay) .product-interior__product-name {
  display: -webkit-box; overflow: hidden; margin: 0 0 0.25rem;
  font-family: "Cocomat Pro", sans-serif; font-size: 0.9375rem; font-weight: 700;
  line-height: 1.18; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
}
:is(body.product-detail-page, .popup-overlay) .product-interior__product-article {
  margin-bottom: 0.5rem; color: #95a8b1; font-size: 0.75rem; line-height: 1.2;
}
:is(body.product-detail-page, .popup-overlay) .product-interior__product-link {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  width: auto; min-height: 2rem; margin: auto 0 0; padding: 0.35rem 0.7rem;
  border: 0; border-radius: 999px; background: #ffc702; color: #233140;
  font: inherit; font-size: 0.75rem; font-weight: 700; line-height: 1.2;
  cursor: pointer; appearance: none; -webkit-appearance: none;
}
:is(body.product-detail-page, .popup-overlay) .product-interior__product-link:hover,
:is(body.product-detail-page, .popup-overlay) .product-interior__product-link:focus-visible {
  background: #ffd332; outline: 0.125rem solid rgba(35, 49, 64, 0.2); outline-offset: 0.125rem;
}
@media (max-width: 61.99rem) {
  :is(body.product-detail-page, .popup-overlay) .product-interior__popover {
    width: min(13rem, calc(100vw - 2rem)); min-height: 6.75rem; padding: 0.625rem;
  }
  :is(body.product-detail-page, .popup-overlay) .product-interior__product-image {
    flex-basis: 4rem; width: 4rem; height: 5rem;
  }
}
@media (min-width: 48rem) {
  :is(body.product-detail-page, .popup-overlay) .product-interior__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 62rem) {
  :is(body.product-detail-page, .popup-overlay) .product-interior__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 61.99rem) {
  :is(body.product-detail-page, .popup-overlay) .product-interior__grid {
    display: flex;
    gap: 0.625rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 0.35rem;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  :is(body.product-detail-page, .popup-overlay) .product-interior__grid::-webkit-scrollbar { display: none; }
  :is(body.product-detail-page, .popup-overlay) .product-interior__item {
    flex: 0 0 calc((100% - 0.625rem) / 2);
    width: calc((100% - 0.625rem) / 2);
    min-width: 0;
    border-radius: 1.25rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  :is(body.product-detail-page, .popup-overlay) .product-interior__title { padding: 1.25rem 0; font-size: 1.25rem; }
  :is(body.product-detail-page, .popup-overlay) .product-interior__chevron { margin-right: 0; }
  :is(body.product-detail-page, .popup-overlay) .product-interior__item { border-radius: 1.25rem; }
}
