/*==============================================
  catalog/product.css — Natasha Libelle
  Стили карточки товара (журнальный формат).
  Подключать ПОСЛЕ shared/base.css.
  Без инлайн-стилей. Без !important.
==============================================*/

/* ══════════════════════════════════════════════
   ХЛЕБНЫЕ КРОШКИ
   (повтор из catalog.css — самодостаточный файл)
══════════════════════════════════════════════ */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  list-style: none; flex-wrap: wrap;
  font-size: 12px; color: #777;
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: '/'; opacity: 0.45; flex-shrink: 0; }
.breadcrumb a { color: #777; transition: color .2s; }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb [aria-current="page"] { color: #222; font-weight: 600; }

/* ══════════════════════════════════════════════
   1. ШАПКА СТРАНИЦЫ — breadcrumb + теги
══════════════════════════════════════════════ */
.pdp-topbar {
  padding-top: 92px;           /* хедер 68px + воздух */
  padding-bottom: 20px;
  background: var(--c-warm);
  border-bottom: 1px solid #ede9e4;
}
.pdp-topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.pdp-topbar__tags {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.pdp-tag {
  display: inline-flex; align-items: center;
  height: 28px; padding: 0 12px;
  font-size: 11px; font-weight: 500; letter-spacing: .06em;
  color: var(--c-accent);
  background: rgba(107,63,143,.08);
  border-radius: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.pdp-tag:hover { background: var(--c-accent); color: #fff; }

/* ══════════════════════════════════════════════
   2. HERO — БОЛЬШОЙ СЛАЙДЕР + ИНФОРМАЦИОННАЯ ПАНЕЛЬ
   Макет: [галерея 55%] [панель 45%]
   На мобиле — галерея сверху, панель снизу.
══════════════════════════════════════════════ */
.pdp-hero {
  background: var(--c-warm);
  max-width: 1920px;
  margin: 0 auto;
}
.pdp-hero__layout {
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: 90svh;
}

/* ── ГАЛЕРЕЯ ─────────────────────────────── */
.pdp-gallery {
  position: relative;
  background: #f0ece7;
  overflow: hidden;
  /* Раскладка: большое фото + ряд превью НИЖЕ фото (не поверх).
     Высота колонки задаётся соседней инфо-панелью (grid родителя),
     поэтому main растягивается на всё оставшееся место, а thumbs
     занимает свою фикс-строку по auto. */
  display: grid;
  grid-template-rows: 1fr auto;
}
/* Основной слайд */
.pdp-gallery__main {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  cursor: zoom-in;
}
.pdp-gallery__main img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: opacity .45s ease, transform .6s cubic-bezier(.4,0,.2,1);
}
.pdp-gallery__main img.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.pdp-gallery__main img.is-active {
  opacity: 1;
}
/* Стрелки слайдера */
.pdp-gallery__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.82);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s, background .2s;
}
.pdp-gallery:hover .pdp-gallery__arrow { opacity: 1; }
.pdp-gallery__arrow:hover { background: #fff; }
.pdp-gallery__arrow--prev { left: 16px; }
.pdp-gallery__arrow--next { right: 16px; }
.pdp-gallery__arrow svg { color: #333; flex-shrink: 0; }

/* Миниатюры — ряд ПОД большим фото (не поверх) */
.pdp-gallery__thumbs {
  display: flex; gap: 8px;
  padding: 12px;
  background: #f5f2ee;
}
.pdp-gallery__thumb {
  flex: 1; height: 88px;
  overflow: hidden; cursor: pointer;
  opacity: .55;
  transition: opacity .2s, transform .2s;
  flex-shrink: 0;
  max-width: 120px;
  background: #fff;
}
.pdp-gallery__thumb:hover { opacity: .8; }
.pdp-gallery__thumb.is-active { opacity: 1; }
.pdp-gallery__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}

/* Бейдж */
.pdp-gallery__badge {
  position: absolute; top: 24px; left: 24px; z-index: 5;
  padding: 5px 12px;
  font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: var(--c-accent); color: #fff;
}
.pdp-gallery__badge--new { background: var(--c-accent); }
.pdp-gallery__badge--hit { background: var(--c-accent); }

/* Кнопка вишлиста */
.pdp-gallery__wish {
  position: absolute; top: 20px; right: 20px; z-index: 5;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.9);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.pdp-gallery__wish:hover { background: #fff; transform: scale(1.08); }
.pdp-gallery__wish svg { color: #888; transition: color .2s; }
.pdp-gallery__wish.is-wish svg { color: #c0457a; }

/* ── ИНФОРМАЦИОННАЯ ПАНЕЛЬ ───────────────── */
.pdp-info {
  display: flex; flex-direction: column;
  padding: 56px 72px 64px 56px;
  background: var(--c-warm);
  overflow-y: auto;
}

.pdp-info__col {
  font-size: 10px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 14px;
}
.pdp-info > h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(28px, 2.6vw, 46px);
  font-weight: 700; line-height: 1.06;
  letter-spacing: -.025em; color: #111;
  margin-bottom: 12px;
}
.pdp-info > h1 + p {
  font-size: 15px; color: #666; line-height: 1.6;
  margin-bottom: 28px;
  max-width: 440px;
}

/* Статус наличия */
.pdp-info__status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 20px;
}
.pdp-info__status::before {
  content: '';
  display: block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.pdp-info__status--in   { color: #2a8f52; }
.pdp-info__status--in::before { background: #2a8f52; box-shadow: 0 0 0 3px rgba(42,143,82,.15); }
.pdp-info__status--order { color: #c07010; }
.pdp-info__status--order::before { background: #e09020; box-shadow: 0 0 0 3px rgba(224,144,32,.15); }

/* Цена */
.pdp-info__price-row {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 32px;
}
.pdp-info__price {
  font-size: clamp(26px, 2vw, 36px);
  font-weight: 700; color: #111;
  letter-spacing: -.02em;
}
.pdp-info__price-old {
  font-size: 16px; font-weight: 400;
  color: #aaa; text-decoration: line-through;
}
.pdp-info > p:nth-of-type(2) {
  font-size: 11px; color: #888; margin-top: 4px;
}

/* ── ЯНДЕКС СПЛИТ ───────────────────────────── */
.pdp-split {
  margin-top: 16px;
  margin-bottom: 24px;
}

/* Закрытая строка-триггер */
.pdp-split__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: #fff;
  border: 1.5px solid #e8d6f0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #222;
  text-align: left;
  transition: border-color .2s, background .2s;
  position: relative;
}
.pdp-split__trigger:hover {
  border-color: var(--c-accent);
  background: #fdf8ff;
}

/* Лого Яндекса (SVG-иконка) */
.pdp-split__logo {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* Текст «× 6 платежей» */
.pdp-split__text {
  flex: 1;
}
.pdp-split__text strong {
  color: #111;
}

/* Бейдж «006» / количество платежей */
.pdp-split__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 18px;
  padding: 0 5px;
  background: #ff3d57;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* Стрелка-раскрывалка */
.pdp-split__arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #aaa;
  transition: transform .25s ease;
}
.pdp-split.is-open .pdp-split__arrow {
  transform: rotate(180deg);
}

/* Подпись под триггером */
.pdp-split > p {
  margin-top: 5px;
  padding: 0 14px;
  font-size: 11px;
  font-style: italic;
  color: #999;
}

/* Раскрывающаяся панель */
.pdp-split__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}
.pdp-split.is-open .pdp-split__panel {
  max-height: 400px; /* достаточно для виджета */
}

/* Контейнер самого виджета Яндекс Сплит */
.pdp-split__widget {
  margin-top: 8px;
  border: 1.5px solid #e8d6f0;
  border-radius: 8px;
  overflow: hidden;
  /* Яндекс-виджет рендерится внутри этого div */
}

/* Адаптив: на мобиле чуть компактнее */
@media (max-width: 600px) {
  .pdp-split__trigger { font-size: 12px; padding: 9px 12px; }
  .pdp-split > p      { font-size: 10px; }
}

/* Выбор размера */
.pdp-info > p:nth-of-type(3) {
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: #555;
  margin-bottom: 10px;
}
.pdp-info__sizes {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.pdp-size {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; color: #333;
  border: 1.5px solid #d8d3cd;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
  background: none;
}
.pdp-size:hover { border-color: #888; }
.pdp-size.is-active { border-color: var(--c-accent); background: var(--c-accent); color: #fff; }
.pdp-size:disabled { opacity: .35; cursor: default; }

/* Кнопки действий */
.pdp-info__actions {
  display: flex; flex-direction: row; gap: 10px;
  margin-bottom: 16px;
}
.pdp-info__actions .btn { flex: 1; justify-content: center; }
/* Кнопки на светлом фоне — фиолетовые */
.pdp-info__actions .btn--dark {
  background: var(--c-accent); color: #fff;
  border-color: var(--c-accent);
}
.pdp-info__actions .btn--dark:hover { background: #52307a; border-color: #52307a; }
.pdp-info__actions .btn--ghost-k {
  border-color: var(--c-accent); color: var(--c-accent);
}
.pdp-info__actions .btn--ghost-k:hover {
  background: var(--c-accent); color: #fff;
}

/* Ссылка «Заказать по параметрам» — тихая, под кнопками */
.pdp-info__order-link {
  display: block;
  font-size: 12px; color: #888;
  text-decoration: underline; text-underline-offset: 3px;
  margin-bottom: 28px;
  transition: color .2s;
}
.pdp-info__order-link:hover { color: var(--c-accent); }

/* Преимущества */
.pdp-info__perks {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 36px;
}
.pdp-info__perk {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: #555; line-height: 1.5;
}
.pdp-info__perk svg { flex-shrink: 0; margin-top: 2px; color: var(--c-accent); }

/* Разделитель */
.pdp-info__divider {
  width: 100%; height: 1px;
  background: #e5e0da;
  margin: 32px 0;
}

/* Краткие характеристики */
.pdp-info__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.pdp-spec {
  display: flex; flex-direction: column; gap: 2px;
}
.pdp-spec__key {
  font-size: 10px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #999;
}
.pdp-spec__val { font-size: 14px; font-weight: 500; color: #222; }

/* Ссылка-якорь «Все характеристики» под краткими спеками */
.pdp-specs-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  text-decoration: none;
  color: rgba(28, 18, 32, .35);
  transition: color .25s;
}
.pdp-specs-link:hover {
  color: var(--c-accent);
}

/* Текстовая часть — подчёркивание точно по ширине слов */
.pdp-specs-link__text {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  /* подчёркивание через background — не затрагивает SVG */
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left bottom 0px;
  background-size: 0% 1px;
  transition: background-size .3s ease;
}
.pdp-specs-link:hover .pdp-specs-link__text {
  background-size: 100% 1px;
}

/* Иконка стрелки вниз */
.pdp-specs-link svg {
  flex-shrink: 0;
  opacity: .4;
  transition: opacity .25s, transform .3s ease;
}
.pdp-specs-link:hover svg {
  opacity: .85;
  transform: translateY(2px);
}

/* Плавающий CTA (виден при скролле) */
.pdp-sticky-cta {
  position: sticky; bottom: 0;
  margin-top: auto; padding-top: 28px;
  background: linear-gradient(to bottom, transparent 0%, var(--c-warm) 30%);
  padding-bottom: 0;
}

/* ══════════════════════════════════════════════
   3. ИСТОРИЯ КАМНЯ
   Полноэкранный блок: текст слева, фото-панно справа
══════════════════════════════════════════════ */
.pdp-stone {
  background: #f8f2f7;
  color: #1c1220;
  max-width: 1920px; margin: 0 auto;
}
.pdp-stone__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}
.pdp-stone__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px var(--w-pad) 96px 72px;
}
.pdp-stone__eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--c-accent); margin-bottom: 20px;
}
.pdp-stone__text > h2 {
  font-family: 'Cormorant Garamond', 'Garamond', serif;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 300; line-height: 1.1;
  letter-spacing: 0;
  color: #1c1220; margin-bottom: 28px;
}
.pdp-stone__body {
  font-size: clamp(14px, 1vw, 16px);
  color: rgba(28,18,32,.65);
  line-height: 1.9;
  max-width: 480px;
}
.pdp-stone__body p + p { margin-top: 18px; }
.pdp-stone__body strong { color: #1c1220; font-weight: 600; }
.pdp-stone__fact {
  margin-top: 40px;
  padding: 20px 24px;
  border-left: 2px solid var(--c-accent);
  background: rgba(107,63,143,.06);
}
.pdp-stone__fact-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 300; color: var(--c-accent);
  line-height: 1;
}
.pdp-stone__fact > p {
  font-size: 12px; color: rgba(28,18,32,.5);
  margin-top: 4px; line-height: 1.4;
}
.pdp-stone__photo {
  position: relative; overflow: hidden; background: #111;
}
.pdp-stone__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .88;
  transition: transform .8s cubic-bezier(.4,0,.2,1);
}
.pdp-stone:hover .pdp-stone__photo img { transform: scale(1.04); }

/* Макросъёмка-сетка (3 маленьких фото под основным) */
.pdp-stone__macro {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 3px;
  margin-top: 3px;
}
.pdp-stone__macro-item {
  aspect-ratio: 1; overflow: hidden; background: #111; position: relative;
}
.pdp-stone__macro-item img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .8; transition: opacity .3s, transform .5s;
}
.pdp-stone__macro-item:hover img { opacity: 1; transform: scale(1.06); }

/* ══════════════════════════════════════════════
   4. ИСТОРИЯ КОЛЛЕКЦИИ
   Тёплый фон, текст + горизонтальная лента фото
══════════════════════════════════════════════ */
.pdp-collection {
  background: var(--c-warm);
  padding: 100px 0;
  max-width: 1920px; margin: 0 auto;
}
.pdp-collection__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.pdp-collection__text {}
.pdp-collection__eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--c-accent); margin-bottom: 16px;
  display: block;
}
.pdp-collection__text > h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 300; line-height: 1.1;
  letter-spacing: 0; color: #1c1220;
  margin-bottom: 20px;
}
.pdp-collection__body {
  font-size: clamp(14px, 1vw, 16px);
  color: #555; line-height: 1.85;
  margin-bottom: 32px;
}
.pdp-collection__body p + p { margin-top: 16px; }

/* Лента фото коллекции */
.pdp-collection__photos {
  display: grid; grid-template-rows: 360px 180px;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.pdp-collection__photo {
  position: relative; overflow: hidden; background: #e8e3dd;
}
.pdp-collection__photo:first-child {
  grid-row: 1 / 2; grid-column: 1 / 3; /* широкое фото сверху */
}
.pdp-collection__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.pdp-collection__photo:hover img { transform: scale(1.04); }

/* ══════════════════════════════════════════════
   5. ПОЛНЫЕ ТЕХНИЧЕСКИЕ ХАРАКТЕРИСТИКИ
   Тёмная секция с таблицей + блок «Как купить»
══════════════════════════════════════════════ */
.pdp-specs {
  background: #f8f2f7; color: #1c1220;
  padding: 100px 0;
  max-width: 1920px; margin: 0 auto;
}
.pdp-specs__layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.pdp-specs__col-title {
  font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--c-accent); margin-bottom: 28px;
  display: block;
}
.pdp-specs__table {
  width: 100%; border-collapse: collapse;
}
.pdp-specs__table tr {
  border-bottom: 1px solid rgba(107,63,143,.1);
}
.pdp-specs__table tr:first-child { border-top: 1px solid rgba(107,63,143,.1); }
.pdp-specs__table td {
  padding: 14px 0; font-size: 14px; vertical-align: top;
  line-height: 1.5;
}
.pdp-specs__table td:first-child {
  width: 44%; color: rgba(28,18,32,.45);
  font-size: 12px; font-weight: 500; letter-spacing: .06em; padding-right: 20px;
}
.pdp-specs__table td:last-child { color: #1c1220; }

/* Блок «Как купить» */
.pdp-buy {
  display: flex; flex-direction: column; gap: 0;
}
.pdp-buy__step {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(107,63,143,.1);
}
.pdp-buy__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 300;
  color: var(--c-accent); flex-shrink: 0;
  width: 36px; line-height: 1;
  margin-top: 2px;
}
.pdp-buy__step > div > p:first-of-type {
  font-size: 14px; font-weight: 600; color: #1c1220;
  margin-bottom: 4px;
}
.pdp-buy__step > div > p:last-of-type {
  font-size: 13px; color: rgba(28,18,32,.55); line-height: 1.6;
}
.pdp-buy__contacts {
  margin-top: 32px;
  padding: 24px 28px;
  background: rgba(107,63,143,.05);
  border: 1px solid rgba(107,63,143,.12);
}
.pdp-buy__contact-line {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: rgba(28,18,32,.75);
  text-decoration: none;
  transition: color .2s;
}
.pdp-buy__contact-line + .pdp-buy__contact-line { margin-top: 12px; }
.pdp-buy__contact-line:hover { color: var(--c-accent); }
.pdp-buy__contact-line svg { flex-shrink: 0; opacity: .5; }

/* ══════════════════════════════════════════════
   6. ВИДЕО-БЛОК (между камнем и коллекцией)
   Кинематографичное видео на весь экран
══════════════════════════════════════════════ */
.pdp-video {
  background: #000;
  max-width: 1920px; margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.pdp-video__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.pdp-video__player {
  position: relative; overflow: hidden; background: #111;
}
.pdp-video__player video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* Постер, пока видео не загружено */
.pdp-video__player img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .4s;
  pointer-events: none;
}
.pdp-video__player.is-playing img { opacity: 0; }
.pdp-video__play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  background: rgba(0,0,0,.25);
  cursor: pointer;
  border: none;
  transition: background .2s;
}
.pdp-video__play-btn:hover { background: rgba(0,0,0,.35); }
.pdp-video__play-icon {
  width: 72px; height: 72px;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.pdp-video__play-btn:hover .pdp-video__play-icon { transform: scale(1.08); }
.pdp-video__play-icon svg { color: #111; margin-left: 4px; }
.pdp-video__caption-block {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 72px 80px 56px;
  background: #f8f2f7;
}
.pdp-video__eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--c-accent); margin-bottom: 20px;
}
.pdp-video__caption-block > h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 300; line-height: 1.1;
  letter-spacing: 0;
  color: #1c1220;
  margin-bottom: 20px;
}
.pdp-video__caption-block > p {
  font-size: 14px; color: rgba(28,18,32,.65);
  line-height: 1.75; max-width: 380px;
}

/* ══════════════════════════════════════════════
   КАРТОЧКИ ТОВАРА (.pcard) — используются
   в блоке похожих изделий (.pdp-related).
   Импортируем только необходимое из catalog.css.
══════════════════════════════════════════════ */
.pcard {
  background: #fff;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
  transition: background .25s;
}
.pcard:hover { background: #fdfcfb; }

.pcard__img {
  position: relative; overflow: hidden;
  /* Белая подложка (см. каталог) — фото с белым фоном без бежевых полей. */
  background: #fff; flex-shrink: 0;
  padding-bottom: 100%;
}
.pcard__img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  /* contain: показываем фото целиком (см. catalog/catalog.css). */
  object-fit: contain;
  object-position: center center;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.pcard:hover .pcard__img img { transform: scale(1.04); }

.pcard__wish {
  position: absolute; top: 10px; right: 10px;
  width: 40px; height: 40px;          /* ≥40×40 — минимум для тапа */
  background: rgba(255,255,255,.85); border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
  opacity: 0; transition: opacity .2s;
}
.pcard:hover .pcard__wish { opacity: 1; }
@media (hover: none) {
  .pcard__wish { opacity: 1; }
  /* На тач-устройствах стрелки галереи всегда видны */
  .pdp-gallery__arrow { opacity: 1; }
}
.pcard__wish svg { color: #888; }

.pcard__badge {
  position: absolute; top: 12px; left: 12px;
  padding: 3px 8px;
  font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--c-accent); color: #fff; z-index: 2;
}
.pcard__badge--new { background: var(--c-accent); }

.pcard__meta {
  padding: 16px 18px 20px;
  display: flex; flex-direction: column; flex: 1;
}
.pcard__col {
  font-size: 10px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--c-accent); margin-bottom: 5px;
}
.pcard__name {
  font-size: 14px; font-weight: 600; color: #111;
  line-height: 1.3; margin-bottom: 6px;
  transition: color .2s;
  text-decoration: none; display: block;
}
.pcard:hover .pcard__name,
.pcard__name:hover { color: var(--c-accent); }
.pcard__foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
}
.pcard__price { font-size: 14px; font-weight: 700; color: #111; }
.pcard__arrow { font-size: 16px; color: #ccc; transition: color .2s, transform .2s; }
.pcard:hover .pcard__arrow { color: var(--c-accent); transform: translateX(4px); }

/* ══════════════════════════════════════════════
   7. ПОХОЖИЕ ИЗДЕЛИЯ (cross-sell)
══════════════════════════════════════════════ */
.pdp-related {
  padding: 100px 0 80px;
  background: #fff;
  max-width: 1920px; margin: 0 auto;
}
.pdp-related__head {
  display: flex; align-items: baseline;
  justify-content: space-between;
  gap: 16px; margin-bottom: 40px;
  flex-wrap: wrap;
}
.pdp-related__head > h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 300; letter-spacing: 0; color: #1c1220;
}
/* H3 без класса в карточках похожих товаров */
.pdp-related__grid h3,
.pcard__meta > h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 400;
  line-height: 1.25; letter-spacing: 0;
  color: #1c1220; margin-bottom: 6px;
  transition: color .2s;
}
.pdp-related__grid .pcard:hover h3 { color: var(--c-accent); }
/* Сетка похожих — 4 карточки */
.pdp-related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #e8e3dd;
  border: 1px solid #e8e3dd; /* нижняя граница всего блока */
}

/* Карточки внутри pdp-related */
.pdp-related .pcard {
  background: #fff;
  height: 100%;
}
.pdp-related .pcard__img { padding-bottom: 110%; }

/* Цена всегда прижата книзу: имя толкает футер вниз через margin-bottom:auto */
.pdp-related .pcard__name { margin-bottom: auto; padding-bottom: 12px; }
.pdp-related .pcard__foot { margin-top: 0; }

/* ══════════════════════════════════════════════
   8. ПЛАВАЮЩАЯ ПАНЕЛЬ ЗАКАЗА (появляется при скролле)
══════════════════════════════════════════════ */
.pdp-float {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 150;
  background: rgba(255,255,255,.96);
  border-top: 1px solid #e5e0db;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.pdp-float.is-visible { transform: translateY(0); }
/* На мобиле — над app-nav */
@media (max-width: 767px) {
  /* Хлебные крошки и теги над картинкой — скрыть */
  .pdp-topbar { display: none; }

  /* Компенсируем скрытый topbar: gallery должна начинаться ниже хедера */
  .pdp-hero { padding-top: 60px; }

  /* Иконка «Избранное» — всегда видна на тач-устройствах */
  .pdp-gallery__wish { opacity: 1; }

  .pdp-float { bottom: 64px; }
  /* Тост-баннер cookie на мобиле — в левом углу, не перекрывает pdp-float.
     Правило body.cookie-active больше не нужно. */
}
.pdp-float__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px var(--w-pad);
  max-width: 1520px; margin: 0 auto;
}
.pdp-float__info {}
.pdp-float__name {
  font-size: 14px; font-weight: 600; color: #111;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 320px;
}
.pdp-float__price {
  font-size: 18px; font-weight: 700; color: #111; margin-top: 2px;
}
.pdp-float__actions {
  display: flex; gap: 8px; align-items: center; flex-shrink: 0;
}
/* Кнопки в плавающей панели — фиолетовые */
.pdp-float__actions .btn--dark {
  background: var(--c-accent); color: #fff;
  border-color: var(--c-accent);
}
.pdp-float__actions .btn--dark:hover { background: #52307a; border-color: #52307a; }
.pdp-float__actions .btn--ghost-k {
  border-color: var(--c-accent); color: var(--c-accent);
}
.pdp-float__actions .btn--ghost-k:hover {
  background: var(--c-accent); color: #fff;
}

/* ══════════════════════════════════════════════
   9. АДАПТИВ
══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .pdp-info { padding: 40px 48px 48px 40px; }
  .pdp-stone__text { padding: 72px 48px; }
  .pdp-video__caption-block { padding: 60px 48px; }
}

@media (max-width: 900px) {
  /* Hero */
  .pdp-hero__layout {
    grid-template-columns: 1fr;
  }
  /* Высота галереи: достаточная в portrait, не ломается в landscape */
  .pdp-gallery__main { min-height: max(340px, 56svh); }
  .pdp-info {
    padding: 32px var(--w-pad) 48px;
  }

  /* История камня */
  .pdp-stone__layout {
    grid-template-columns: 1fr;
  }
  .pdp-stone__photo { min-height: 320px; }
  .pdp-stone__photo img { position: relative; inset: auto; width: 100%; height: 320px; }
  .pdp-stone__text { padding: 64px var(--w-pad); }

  /* Видео */
  .pdp-video__inner { grid-template-columns: 1fr; }
  .pdp-video__player { min-height: 56svh; }
  .pdp-video__caption-block { padding: 48px var(--w-pad); }

  /* Коллекция */
  .pdp-collection__inner { grid-template-columns: 1fr; gap: 40px; }
  .pdp-collection__photos {
    grid-template-rows: 240px 140px;
  }

  /* Характеристики */
  .pdp-specs__layout { grid-template-columns: 1fr; gap: 48px; }

  /* Похожие */
  .pdp-related__grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 600px) {
  .pdp-gallery__thumbs { display: none; }
  .pdp-gallery__thumb { height: 56px; }
  .pdp-info__specs { grid-template-columns: 1fr; }
  .pdp-info > h1 { font-size: 28px; }
  .pdp-stone__macro { grid-template-columns: repeat(2,1fr); }
  .pdp-stone__macro-item:last-child { display: none; }
  .pdp-related__grid { grid-template-columns: 1fr; }
  .pdp-collection__photos { grid-template-rows: 200px 120px; }

  /* Плавающая панель на мобайле */
  .pdp-float__inner {
    padding: 10px 16px;
    gap: 10px;
  }
  .pdp-float__name { display: none; }
  .pdp-float__info {
    flex-shrink: 0;
  }
  .pdp-float__price {
    font-size: 16px;
    white-space: nowrap;
  }
  .pdp-float__actions {
    flex: 1;
    gap: 6px;
  }
  .pdp-float__actions .btn {
    flex: 1;
    height: 44px;
    padding: 0 8px;
    font-size: 11px;
    letter-spacing: 0.06em;
    white-space: nowrap;
    min-width: 0;
  }
}

/* ══════════════════════════════════════════════
   LANDSCAPE-МОБИЛЕ (горизонтальный поворот)
   iPhone SE landscape: 568×320px, обычные смартфоны 667–896px.
   Проблема: aspect-ratio от ширины (812px × 0.85 = 690px) > высоты
   экрана (375px) → галерея вылезает, украшение обрезается.
   Решение: фиксируем высоту галереи = высота viewport минус хедер,
   переключаем object-fit на contain — изделие влезает целиком.
══════════════════════════════════════════════ */
@media (max-width: 900px) and (orientation: landscape) {
  /* Компенсация хедера в landscape */
  .pdp-hero { padding-top: 52px; }

  /* Галерея занимает ровно высоту экрана минус хедер — без переполнения */
  .pdp-gallery__main {
    min-height: 0;
    height: calc(100svh - 52px);
    max-height: calc(100svh - 52px);
  }

  /* contain — изделие влезает целиком, фон .pdp-gallery заполняет поля */
  .pdp-gallery__main img {
    object-fit: contain;
    object-position: center center;
  }

  /* Миниатюры в landscape мешают — убираем (мало места по высоте) */
  .pdp-gallery__thumbs { display: none; }

  /* Стрелки всегда видны в landscape (hover недоступен) */
  .pdp-gallery__arrow { opacity: 0.7; }

  /* Кнопку «Избранное» — всегда видна */
  .pdp-gallery__wish { opacity: 1; }
}

/* .form-field / .form-label / .form-input / .btn--full — см. shared/base.css */
