/* ============================================================
   Страница товара
   ============================================================ */

/* на странице товара шапка всегда тёмная — под ней белый фон */
body.page-product .topbar { background: var(--navy-950); }
body.page-product .header {
  background: linear-gradient(180deg, rgba(4, 32, 58, .99), rgba(4, 32, 58, .95));
  box-shadow: 0 10px 28px rgba(2, 18, 32, .22);
}
body.page-product .site-header.is-stuck .header { background: var(--navy-900); }

.pp { padding: clamp(120px, 14vh, 160px) 0 clamp(20px, 3vw, 32px); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  font-size: 12.5px;
  color: var(--muted);
}
.breadcrumbs a { color: var(--ink-2); text-decoration: none; transition: color .2s; }
.breadcrumbs a:hover { color: var(--blue-600); }
.breadcrumbs span[aria-current] { color: var(--muted); }

.pp__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
}

.pp__media {
  position: sticky;
  top: 116px;
  display: grid;
  place-items: center;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(160deg, #f8fcff 0%, #e6f2fb 100%);
}
.pp__media img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.pp__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px -10px rgba(94, 164, 58, .9);
}

.pp__info { padding-top: 4px; }
.pp__cat {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.pp__title {
  margin: 10px 0 12px;
  font-size: clamp(1.65rem, 2.9vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -.025em;
}
.pp__short { max-width: 46ch; color: var(--ink-2); font-size: 1rem; }
.pp__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.pp__tags span {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ice-50);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
}

.pp__price { display: flex; align-items: baseline; gap: 10px; margin-top: 22px; }
.pp__price strong { font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; letter-spacing: -.035em; }
.pp__price span { font-size: 13px; color: var(--muted); }
.pp__note { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--green-700); }

.pp__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}
.pp__sum { margin-left: auto; text-align: right; font-size: 11.5px; color: var(--muted); }
.pp__sum strong { display: block; font-size: 1.45rem; letter-spacing: -.02em; color: var(--ink); }
.pp__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pp__actions .btn { flex: 1; min-width: 190px; }
.pp__meta {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px dashed var(--line);
  list-style: none;
  font-size: 12.5px;
  color: var(--ink-2);
}
.pp__meta li { display: flex; align-items: flex-start; gap: 8px; }
.pp__meta .icon { width: 15px; height: 15px; margin-top: 2px; color: var(--green); }

/* ---------------- Описание и характеристики ---------------- */
.pp-details { padding: clamp(40px, 5vw, 72px) 0; background: linear-gradient(180deg, #fff, var(--ice-50)); }
.pp-details__grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.pp-details h2 { margin-bottom: 14px; font-size: clamp(1.4rem, 2vw, 1.85rem); }
.pp-details h3 { margin: 26px 0 12px; font-size: 1.02rem; }
.pp-details__main p { max-width: 62ch; font-size: .97rem; line-height: 1.65; color: var(--ink-2); }
.pp-specs { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pp-specs td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink); }
.pp-specs td:first-child { width: 42%; color: var(--muted); }
.pp-doc { margin-top: 22px; font-size: 12.5px; color: var(--muted); }
.pp-doc a { color: var(--blue-600); font-weight: 600; }

.pp-delivery {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.pp-delivery h3 { margin: 0 0 14px; font-size: 1.05rem; }
.pp-delivery .ticks { font-size: .9rem; }
.pp-delivery .btn { margin-top: 18px; width: 100%; }

.pp-help {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 24px;
  border-radius: 20px;
  background:
    radial-gradient(110% 130% at 100% 0%, rgba(34, 119, 202, .5), transparent 62%),
    var(--navy-900);
  color: rgba(255, 255, 255, .7);
}
.pp-help strong { font-size: .95rem; color: #fff; }
.pp-help a { font-size: 1.2rem; font-weight: 800; color: #fff; text-decoration: none; }
.pp-help a:hover { color: var(--aqua-200); }
.pp-help span { font-size: 12px; }

/* ---------------- Похожие товары ---------------- */
.pp-related { padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); }
.pp-related .catalog__subhead a {
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.pp-related .catalog__subhead a:hover { text-decoration: underline; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rel-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.rel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(34, 119, 202, .3); }
.rel-card__img {
  display: grid;
  place-items: center;
  flex: none;
  width: 74px;
  height: 74px;
  padding: 4px;
  border-radius: 12px;
  background: linear-gradient(160deg, #f8fcff 0%, #e9f4fc 100%);
}
.rel-card__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.rel-card__body { display: grid; gap: 4px; min-width: 0; }
.rel-card strong { font-size: .9rem; line-height: 1.3; color: var(--ink); }
.rel-card span { font-size: 12px; font-weight: 700; color: var(--blue-700); }

/* ---------------- Адаптив ---------------- */
@media (max-width: 980px) {
  .pp__grid { grid-template-columns: 1fr; }
  .pp__media { position: static; }
  .pp__media img { max-height: 360px; }
  .pp-details__grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .pp { padding-top: 106px; }
  .pp__actions .btn { min-width: 0; width: 100%; }
  .pp__buy { gap: 12px; }
  .pp__sum { margin-left: 0; text-align: left; width: 100%; display: flex; align-items: baseline; justify-content: space-between; }
  .related-grid { grid-template-columns: 1fr; }
  .breadcrumbs { font-size: 11.5px; }
}
