/* ═══════════════════════════════════════════════════════
   استایل صفحات ایستای محصول (site/p/*.html)
   این فایل توسط tools/gen_product_pages.py نوشته می‌شود.
   style.css دست‌نخورده باقی می‌ماند.
   ═══════════════════════════════════════════════════════ */

/* ─── سوییچ دوزبانه بدون جاوااسکریپت (پیش‌فرض: فارسی) ─── */
[data-loc="en"] { display: none; }
html[lang="en"] [data-loc="en"] { display: revert; }
html[lang="en"] [data-loc="fa"] { display: none; }

/* ─── چیدمان دوستونی ─── */
.pp-page { padding-top: 40px; }
.pp-page .crumbs { justify-content: flex-start; }
.pp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.pp-media {
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 0.92;
}
.pp-media img { max-width: 100%; max-height: 100%; height: auto; object-fit: contain; }

.pp-info h1 { font-size: 40px; line-height: 1.4; margin-bottom: 6px; }
.pp-sub { color: var(--ink-2); font-size: 15px; margin-bottom: 18px; }
.pp-highlight {
  display: inline-block;
  background: var(--cyan-soft);
  color: var(--navy);
  font-weight: 600;
  font-size: 14.5px;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.pp-desc { color: var(--ink-2); font-size: 16.5px; margin-bottom: 30px; }

/* ─── دکمه‌های اقدام ─── */
.pp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.pp-cta .btn { cursor: pointer; font: inherit; }
.pp-phone { color: var(--ink-2); font-size: 14px; }

/* ─── تصویر محیطی ─── */
.pp-life { margin-top: 56px; border-radius: var(--r-lg); overflow: hidden; }
.pp-life img { width: 100%; height: auto; display: block; border-radius: var(--r-lg); }
.pp-life figcaption {
  margin-top: 12px; text-align: center;
  font-size: 14px; color: var(--ink-2);
}

/* ─── محصولات مرتبط ─── */
.pp-related h2 { font-size: 28px; margin-bottom: 26px; }
.pp-related .product-card { text-decoration: none; }

/* ─── ناوبری قبلی/بعدی ─── */
.pp-nav {
  display: flex; justify-content: space-between; gap: 16px;
  padding-bottom: 70px; flex-wrap: wrap;
}
.pp-nav-link {
  flex: 1 1 240px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 22px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.pp-nav-link:hover { border-color: var(--cyan); box-shadow: var(--shadow-soft); }
.pp-next { text-align: left; }
[dir="ltr"] .pp-next { text-align: right; }
.pp-nav-label { display: block; font-size: 12.5px; color: var(--ink-2); }
.pp-nav-name { display: block; font-weight: 700; color: var(--navy); }

/* ─── واکنش‌گرا ─── */
@media (max-width: 900px) {
  .pp-layout { grid-template-columns: 1fr; gap: 30px; }
  .pp-info h1 { font-size: 30px; }
  .pp-media { padding: 24px; }
}
