/* ==========================================================================
   JULIA KISELEVA 2026 — карточка товара.
   Слой поверх assets/css/jk.css: только экран карточки (woocommerce/single-product.php).
   Значения перенесены из макета JULIA-KISELEVA-CLAUDE-HANDOFF-v10 (app/globals.css,
   секция «Product detail» и «Mobile app pass»). Переменные цвета и шрифтов — из jk.css.
   Откат = удалить этот файл, шаблон и assets/js/jk-product.js.
   Порядок правил повторяет макет: база (desktop) → 1180 → 960 → 760 → 520 →
   мобильный app-pass (760). Ничего из jk.css и jk-catalog.css не переопределяется.
   Добавления темы (в макете их нет, нужны из-за живых данных WooCommerce) помечены
   комментарием «+ тема».
   ========================================================================== */

/* --- служебное ----------------------------------------------------------- */

/* + тема: скрытые поля формы add-to-cart не должны становиться ячейками сетки. */
.product-purchase input[type="hidden"] {
  display: none;
}

/* + тема: уведомления WooCommerce (видны, когда JS выключен и форма ушла перезагрузкой). */
.product-notices {
  padding: 12px clamp(16px, 2.7vw, 42px) 0;
}

/* Точки цвета — тот же набор, что в jk-catalog.css (макет + цвета каталога). */
.color-dot {
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(54, 40, 31, 0.16);
  border-radius: 50%;
}

.color-dot--black { background: #36281f; }
.color-dot--milk { background: #efe0c8; }
.color-dot--brown { background: #5a3b30; }
.color-dot--wine { background: var(--wine); }
.color-dot--graphite { background: #6e5b49; }
.color-dot--white { background: #fdf6ec; }
.color-dot--beige { background: #d9c5a0; }
.color-dot--plain { background: var(--canvas); }

/* --- карточка: база ------------------------------------------------------ */

.product-page {
  min-height: 100vh;
  padding-bottom: 90px;
  background: var(--paper);
}

.product-breadcrumb {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 9px;
  padding: 70px clamp(16px, 2.7vw, 42px) 0;
  color: rgba(54, 40, 31, 0.44);
  font-size: 0.6rem;
}

.product-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.92fr);
  gap: clamp(25px, 4.5vw, 78px);
  padding: 10px clamp(10px, 2vw, 30px) clamp(95px, 9vw, 150px) 10px;
}

.product-gallery-viewport {
  position: relative;
  border-radius: 11px;
}

/* Галерея-карусель: горизонтальная лента по одному фото со снапом (как на телефоне). */
.product-gallery {
  display: flex;
  overflow-x: auto;
  gap: 0;
  border-radius: 11px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.product-gallery::-webkit-scrollbar {
  display: none;
}

.product-gallery figure {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 2 / 3;
  min-height: 0;
  overflow: hidden;
  margin: 0;
  border-radius: 11px;
  background: #e8d7bb;
  scroll-snap-align: start;
}

.product-gallery img {
  object-fit: cover;
}

/* Стрелки листания — появляются при наведении на десктопе. */
.product-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  background: rgba(253, 246, 236, 0.86);
  color: #36281f;
  box-shadow: 0 6px 20px rgba(16, 13, 12, 0.16);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.product-gallery-viewport:hover .product-gallery__nav {
  opacity: 1;
}

.product-gallery__nav--prev { left: 14px; }
.product-gallery__nav--next { right: 14px; }

.product-gallery__counter {
  position: absolute;
  right: 14px;
  bottom: 16px;
  z-index: 4;
  padding: 6px 9px;
  border-radius: 100px;
  background: rgba(253, 246, 236, 0.78);
  font-size: 0.55rem;
  font-weight: 680;
  backdrop-filter: blur(8px);
}

.product-gallery__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.product-gallery__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 100px;
  background: rgba(253, 246, 236, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.product-gallery__dots button.is-active {
  width: 20px;
  background: #fdf6ec;
}

.product-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 15px 0 0;
}

.product-panel__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(35px, 5vw, 68px);
  color: rgba(54, 40, 31, 0.42);
  font-size: 0.59rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.product-panel__topline > div {
  display: flex;
  gap: 5px;
}

.product-panel__topline button {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.product-panel__topline button.is-favorite {
  color: var(--wine);
}

.product-panel h1 {
  margin: 16px 0 0;
  font-family: var(--sans);
  font-size: clamp(1.85rem, 2.5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.04;

	/* jk-sans-2026 */ font-weight: 700; letter-spacing: -0.035em;
}

.product-panel h1 em,
.product-philosophy__copy h2 em {
  font-family: var(--sans);
  font-weight: 400;

	/* jk-sans-2026 */ font-style: normal; font-weight: 300; letter-spacing: -0.03em;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 28px;
}

.product-price strong {
  font-size: 0.9rem;
}

.product-price span {
  color: rgba(54, 40, 31, 0.45);
  font-size: 0.61rem;
}

/* + тема: get_price_html() отдаёт цену в <span class="amount">, иногда с <del>/<ins>. */
.product-price strong .amount,
.product-price span .amount {
  font-size: inherit;
  font-weight: inherit;
}

.product-price strong del {
  margin-right: 7px;
  opacity: 0.45;
}

.product-price strong ins {
  text-decoration: none;
}

.product-intro {
  max-width: 410px;
  margin: 24px 0 clamp(35px, 4vw, 55px);
  color: var(--ink-soft);
  font-size: 0.74rem;
  line-height: 1.75;
}

.product-option {
  margin-top: 27px;
}

.product-option__head {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 0.63rem;
}

.product-option__head > span {
  color: rgba(54, 40, 31, 0.48);
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-option__head strong {
  font-size: 0.66rem;
  font-weight: 620;
}

/* Селектор «a» — добавление темы: ссылка на размерную сетку, если такая страница есть. */
.product-option__head button,
.product-option__head a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.62rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.product-colors {
  display: flex;
  gap: 8px;
}

.product-colors button {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.product-colors button.is-active {
  border-color: var(--wine);
}

.product-sizes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

/* + тема: в макете размеров было ровно пять. У товара их столько, сколько в атрибуте,
   поэтому ряд подстраивается под данные и не остаётся недозаполненным. */
.product-sizes[data-jk-sizes="1"],
.product-sizes[data-jk-sizes="2"],
.product-sizes[data-jk-sizes="3"] { grid-template-columns: repeat(3, 1fr); }
.product-sizes[data-jk-sizes="4"] { grid-template-columns: repeat(4, 1fr); }
.product-sizes[data-jk-sizes="6"] { grid-template-columns: repeat(6, 1fr); }

.product-sizes button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.68rem;
}

.product-sizes button:hover,
.product-sizes button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.size-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 0;
  color: #4a3a28;
  font-size: 0.59rem;
}

.product-purchase {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 7px;
  margin-top: 27px;
}

.quantity-stepper {
  display: grid;
  min-height: 54px;
  grid-template-columns: 1fr 25px 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.quantity-stepper button {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.quantity-stepper span {
  text-align: center;
  font-size: 0.68rem;
}

.product-add {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 4px;
  background: var(--wine);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 680;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-add.is-added {
  background: #4a3a28;
}

/* + тема: живые состояния формы — отправка и товар не в наличии. */
.product-add.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.product-add[disabled] {
  background: var(--muted);
  color: var(--ink-soft);
  cursor: not-allowed;
}

.product-stylist {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 9px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.product-stylist > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.61rem;
}

.product-stylist strong {
  font-weight: 680;
}

.product-availability {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 19px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-availability span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #44341f;
  font-size: 0.61rem;
  font-weight: 650;
}

.product-availability i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #55432e;
  box-shadow: 0 0 0 4px rgba(100, 128, 106, 0.12);
}

.product-availability p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.59rem;
}

/* + тема: товара нет в наличии — зелёная точка стала бы обманом. */
.product-availability.is-out span {
  color: var(--ink-soft);
}

.product-availability.is-out i {
  background: #9c8a76;
  box-shadow: 0 0 0 4px rgba(138, 126, 120, 0.12);
}

.product-accordions {
  margin-top: 17px;
}

.product-accordions > div {
  border-bottom: 1px solid var(--line);
}

.product-accordions button {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 0.79rem;
  font-weight: 650;
}

.product-accordions svg {
  transition: transform 180ms ease;
}

.product-accordions .is-open svg {
  transform: rotate(180deg);
}

.product-accordions p {
  max-height: 0;
  overflow: hidden;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.7;
  opacity: 0;
  transition: max-height 240ms ease, padding 240ms ease, opacity 180ms ease;
}

.product-accordions .is-open p {
  max-height: 140px;
  padding: 0 0 18px;
  opacity: 1;
}

/* + тема: длинное описание клиента не режем макетными 140px. */
.product-accordions .is-open.is-long p {
  max-height: 60vh;
  overflow-y: auto;
}

.product-philosophy {
  display: grid;
  min-height: clamp(600px, 62vw, 900px);
  grid-template-columns: 1.25fr 0.75fr;
  margin: 0 10px clamp(100px, 10vw, 170px);
  overflow: hidden;
  border-radius: 17px;
  background: #e2cfaf;
}

.product-philosophy__image {
  position: relative;
  min-height: 560px;
}

.product-philosophy__image img {
  object-fit: cover;
}

.product-philosophy__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(35px, 6vw, 90px);
}

.product-philosophy__copy h2 {
  margin: 18px 0 0;
  font-family: var(--sans);
  font-size: clamp(2.5rem, 4.7vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;

	/* jk-sans-2026 */ font-weight: 700; letter-spacing: -0.035em;
}

.product-philosophy__copy > p {
  max-width: 400px;
  margin: 28px 0 55px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.8;
}

.product-philosophy__copy > div {
  display: flex;
  align-items: flex-end;
  gap: 18px;
}

.product-philosophy__copy > div span {
  color: var(--wine);
  font-family: var(--sans);
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 0.78;

	/* jk-sans-2026 */ font-weight: 700; letter-spacing: -0.035em;
}

.product-philosophy__copy > div p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.62rem;
  line-height: 1.45;
}

.complete-look {
  padding: 0 clamp(16px, 4vw, 64px) clamp(110px, 12vw, 190px);
}

.complete-look__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(35px, 4vw, 62px);
}

.complete-look__head h2 {
  margin: 12px 0 0;
  font-family: var(--sans);
  font-size: clamp(2.4rem, 4.8vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1;

	/* jk-sans-2026 */ font-weight: 700; letter-spacing: -0.035em;
}

.complete-look__head > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
  line-height: 1.7;
}

.complete-look__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.4vw, 22px);
}

.complete-look__hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  margin: 0;
  border-radius: 12px;
}

.complete-look__hero img {
  object-fit: cover;
}

.complete-look__hero > span {
  position: absolute;
  top: 17px;
  left: 17px;
  padding: 6px 9px;
  border-radius: 100px;
  background: rgba(253, 246, 236, 0.8);
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
}

.complete-look__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  align-content: start;
}

.complete-look__items > article {
  position: relative;
}

.complete-look__items > article > div {
  position: relative;
  aspect-ratio: 0.76;
  overflow: hidden;
  border-radius: 9px;
  background: #e8d7bb;
}

.complete-look__items img {
  object-fit: cover;
}

/* + тема: кадр и название ведут на товар, ссылка растягивается на кадр. */
.complete-look__items > article > div a {
  position: absolute;
  inset: 0;
  display: block;
}

.complete-look__items article > button {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 9px;
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(253, 246, 236, 0.85);
}

.complete-look__items article > button.is-selected {
  background: var(--wine);
  color: var(--white);
}

.complete-look__items h3 {
  margin: 11px 0 3px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;

	/* jk-sans-2026 */ font-weight: 500; letter-spacing: -0.012em;
}

.complete-look__items p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.6rem;
}

.complete-look__total {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
  margin-top: 25px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.complete-look__total > span {
  color: var(--ink-soft);
  font-size: 0.66rem;
}

.complete-look__total strong {
  font-size: 0.75rem;
}

.complete-look__total button {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.63rem;
  font-weight: 650;
}

/* + тема: образ уходит в корзину по одному товару, на время запроса кнопка ждёт. */
.complete-look__total button.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.complete-look__total button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.product-mobile-cta {
  display: none;
}

/* --- 1180 --------------------------------------------------------------- */

@media (max-width: 1180px) {
  .product-detail { grid-template-columns: minmax(0, 1fr) minmax(360px, 0.98fr); }
  .product-stylist { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: 10px; padding-bottom: 10px; }
  .complete-look__layout { grid-template-columns: 0.9fr 1.1fr; }
}

/* --- 960 ---------------------------------------------------------------- */

@media (max-width: 960px) {
  .product-detail { grid-template-columns: 1fr; padding-right: 10px; }
  .product-gallery-viewport { max-width: 480px; margin: 0 auto; }
  .product-panel { position: relative; top: auto; padding: 40px clamp(12px, 4vw, 42px) 0; }
  .product-panel h1 { font-size: clamp(1.9rem, 4.2vw, 2.5rem); }
  .product-philosophy { grid-template-columns: 1fr 1fr; }
  .complete-look__layout { grid-template-columns: 1fr; }
  .complete-look__hero { min-height: 620px; }
}

/* --- 760 (первый проход макета) ----------------------------------------- */

@media (max-width: 760px) {
  .product-page { padding-bottom: 140px; }
  .product-breadcrumb { min-height: 52px; padding: 62px 13px 0; }
  .product-breadcrumb span:nth-last-child(n+2), .product-breadcrumb a:nth-of-type(2) { display: none; }
  .product-detail { padding: 6px 7px 85px; }
  .product-gallery { display: flex; overflow-x: auto; gap: 6px; margin-right: -7px; padding-right: 7px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .product-gallery::-webkit-scrollbar { display: none; }
  .product-gallery figure, .product-gallery__main, .product-gallery__wide { flex: 0 0 calc(100vw - 20px); min-height: 72svh !important; aspect-ratio: auto; scroll-snap-align: start; }
  .product-gallery__nav { display: none; }
  .product-gallery-viewport { max-width: none; margin: 0; }
  .product-panel { padding: 28px 12px 0; }
  .product-panel__topline { margin-bottom: 36px; }
  .product-panel h1 { font-size: clamp(1.85rem, 7vw, 2.35rem); }
  .product-purchase { display: none; }
  .product-stylist { margin-top: 26px; }
  .product-philosophy { grid-template-columns: 1fr; margin: 0 7px 95px; }
  .product-philosophy__image { min-height: 68svh; }
  .product-philosophy__copy { min-height: 520px; padding: 38px 24px; }
  .complete-look { padding: 0 12px 120px; }
  .complete-look__head { display: block; }
  .complete-look__head > p { margin-top: 20px; }
  .complete-look__hero { min-height: 72svh; }
  .complete-look__items { display: flex; overflow-x: auto; margin-right: -12px; padding-right: 12px; scrollbar-width: none; }
  .complete-look__items > article { flex: 0 0 42vw; }
  .complete-look__total { flex: 0 0 86vw; grid-template-columns: 1fr auto; align-content: center; margin-top: 0; padding: 22px; border: 1px solid var(--line); border-radius: 9px; }
  .complete-look__total button { grid-column: 1 / -1; justify-content: center; }
  .product-mobile-cta { position: fixed; z-index: 72; right: 8px; bottom: 80px; left: 8px; display: grid; min-height: 62px; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 6px 7px 6px 16px; border: 1px solid rgba(253, 246, 236,.15); border-radius: 15px; background: rgba(54, 40, 31,.92); color: var(--white); box-shadow: 0 15px 45px rgba(16,13,12,.25); backdrop-filter: blur(18px); }
  .product-mobile-cta > span { display: grid; }
  .product-mobile-cta small { color: rgba(253, 246, 236,.48); font-size: .52rem; }
  .product-mobile-cta strong { font-size: .7rem; }
  .product-mobile-cta button { display: flex; min-height: 48px; align-items: center; gap: 8px; padding: 0 18px; border-radius: 10px; background: var(--wine); color: var(--white); font-size: .63rem; font-weight: 680; }
  .product-mobile-cta button.is-added { background: #4a3a28; }
}

/* --- 520 ---------------------------------------------------------------- */

@media (max-width: 520px) {
  .product-stylist > span:last-child { width: 100%; justify-content: space-between; }
  .product-availability { align-items: flex-start; flex-direction: column; }
  .complete-look__items > article { flex-basis: 48vw; }
}

/* --- 760: мобильный app-pass макета ------------------------------------- */
/* «Product: one purchase surface, no stacked navigation bars.»              */
/* 🔴 Прямой запрет пака: на карточке не должно быть второй фиксированной     */
/* панели поверх CTA. В макете нижний док лежал внутри .product-page, в теме  */
/* он в footer.php рядом, поэтому прячем его по классу body.                  */

@media (max-width: 760px) {
  .product-page {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  body.single-product .bottom-dock {
    display: none;
  }

  .product-breadcrumb {
    position: absolute;
    z-index: 25;
    top: 72px;
    left: 17px;
    min-height: auto;
    padding: 0;
    color: var(--white);
  }

  .product-breadcrumb a:first-child {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(253, 246, 236, 0.2);
    border-radius: 100px;
    background: rgba(21, 18, 16, 0.54);
    backdrop-filter: blur(12px);
  }

  /* + тема: в макете название товара в крошках было коротким («Architect»).
     У клиента имена длинные — режем, чтобы абсолютные крошки не вылезли за экран. */
  .product-breadcrumb > span:last-child {
    overflow: hidden;
    max-width: min(46vw, 200px);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* + тема: пришло уведомление WooCommerce — крошки возвращаются в поток,
     иначе тёмная пилюля ложится поверх текста уведомления. */
  .product-page:has(.product-notices) .product-breadcrumb {
    position: static;
    min-height: 44px;
    padding: 0 13px;
    color: rgba(54, 40, 31, 0.44);
  }

  .product-page:has(.product-notices) .product-breadcrumb a:first-child {
    min-height: auto;
    padding: 0;
    border: 0;
    background: none;
    backdrop-filter: none;
  }

  .product-notices {
    padding: 78px 12px 0;
  }

  .product-detail {
    padding: 69px 7px 62px;
  }

  .product-page:has(.product-notices) .product-detail {
    padding-top: 6px;
  }

  .product-gallery {
    gap: 6px;
  }

  .product-gallery figure,
  .product-gallery__main,
  .product-gallery__wide {
    flex-basis: calc(100vw - 14px);
    min-height: min(68svh, 650px) !important;
    border-radius: 12px;
  }

  .product-gallery__counter {
    right: 12px;
    bottom: 14px;
  }

  .product-panel {
    padding: 25px 10px 0;
  }

  .product-panel__topline {
    margin-bottom: 28px;
  }

  .product-panel h1 {
    font-size: clamp(1.8rem, 6.6vw, 2.3rem);
  }

  .product-price {
    margin-top: 20px;
  }

  .product-price strong {
    font-size: 0.88rem;
  }

  .product-intro {
    margin: 19px 0 29px;
  }

  .product-option {
    margin-top: 23px;
  }

  .product-sizes button {
    min-height: 49px;
    border-radius: 8px;
  }

  .product-stylist {
    min-height: 58px;
    border-radius: 10px;
  }

  .product-availability {
    margin-top: 16px;
  }

  .product-philosophy {
    margin-bottom: 72px;
  }

  .complete-look {
    padding-bottom: 92px;
  }

  .product-mobile-cta {
    right: 7px;
    bottom: max(7px, env(safe-area-inset-bottom));
    left: 7px;
    min-height: 68px;
    padding: 7px 7px 7px 16px;
    border-radius: 18px;
  }

  .product-mobile-cta button {
    min-height: 52px;
    padding: 0 20px;
    border-radius: 13px;
  }

  /* + тема: товара нет в наличии — мобильная кнопка тоже гасится. */
  .product-mobile-cta button[disabled] {
    background: rgba(253, 246, 236, 0.14);
    color: rgba(253, 246, 236, 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-accordions p,
  .product-accordions svg {
    transition: none;
  }
}

/* --- + тема: наличие по размерам, кнопка «Индивидуальное исполнение» -------- */
.is-hidden { display: none !important; }

/* Кнопка счётчика упёрлась в остаток — заблокирована. */
.quantity-stepper button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.product-made {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 27px;
  border-radius: 4px;
  background: var(--wine);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 680;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .product-made { display: none; }
  .product-mobile-cta__action { display: grid; }
  .product-made-mobile {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border-radius: 10px;
    background: var(--wine);
    color: var(--white);
    font-size: .63rem;
    font-weight: 680;
  }
}

/* Мобилка: галерея товара — все карточки ОДИНАКОВОЙ высоты (бокс 2:3),
   фото показывается целиком (contain), без обрезки. Поля у нестандартных
   кадров заливаются фоном под студийный. */
@media (max-width: 760px) {
  .product-gallery figure,
  .product-gallery__main,
  .product-gallery__wide {
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 2 / 3 !important;
    background: var(--canvas);
  }
  .product-gallery figure img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
}
