/* ════════════════════════════════════════════════════════════════
   مكتبة نزار — صفحة المنتج المفرد
   بنية قالب «مجد» نفسها، بعمودين، وبألوان الطقم الفعّال كلها من
   المتغيّرات — فتبديل الهوية لا يحتاج لمس هذا الملف.
═══════════════════════════════════════════════════════════════════ */

.nz-sp {
  --nz-radius: 20px;
  --nz-radius-sm: 13px;
  --nz-line: rgba(var(--brand-rgb), .12);
  --nz-line-gold: rgba(var(--gold-rgb), .34);
  --nz-paper: var(--white);

  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(var(--gold-rgb), .14), transparent 60%),
    linear-gradient(180deg, var(--cream-lt) 0%, var(--cream) 46%, var(--cream-lt) 100%);
  padding: 0 0 clamp(40px, 6vw, 80px);
  color: var(--ink);
}

.nz-sp__container {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  /* استعلام الحاوية: الصفحة تتبع عرضها الفعلي لا عرض الشاشة.
     فلو وضعها قالبٌ أو إضافة داخل صندوق ضيّق، انتقلت إلى عمود واحد
     بدل أن تبقى عمودين مزدحمين. */
  container-type: inline-size;
  container-name: nzsp;
}

/* ── مسار التصفح ───────────────────────────────────────────────── */
.nz-sp__crumbs {
  padding: 18px 0 14px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.nz-sp__crumbs a { color: var(--navy); }
.nz-sp__crumbs a:hover { color: var(--gold); }

/* ── الصدر: عمودان ─────────────────────────────────────────────── */
.nz-sp__hero {
  display: grid;
  /* minmax(0, …) لا minmax(280px, …): عناصر الشبكة حجمها الأدنى التلقائي
     هو min-content، فمعرض WooCommerce حين يضع عرضًا مضمّنًا على شرائحه
     كان يدفع عمود الغلاف إلى ما بعد حدّه الأقصى ويسحق عمود النص. */
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.nz-sp__media {
  position: sticky;
  top: 92px;
  min-width: 0;
  max-width: 100%;
}

.nz-sp__cover {
  position: relative;
  background: var(--nz-paper);
  border: 1px solid var(--nz-line);
  border-radius: var(--nz-radius);
  padding: clamp(16px, 2.4vw, 30px);
  box-shadow: var(--sh);
  overflow: hidden;
  min-width: 0;
}

/* معرض WooCommerce: نُلغي العوم والعرض 48% القادمين من ملف الإضافة،
   ونمنع أي عرض مضمّن يضعه flexslider من تجاوز العمود. */
.nz-sp__cover .woocommerce-product-gallery {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  float: none !important;
}
.nz-sp__cover .flex-viewport,
.nz-sp__cover .woocommerce-product-gallery__image {
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0;
}
/* Flexslider owns the gallery track width. */
.nz-sp__cover .flex-viewport { overflow: hidden; }
.nz-sp__cover img {
  width: 100%;
  height: auto;
  border-radius: var(--nz-radius-sm);
  box-shadow: 0 14px 34px rgba(var(--brand-rgb), .16);
}
.nz-sp__cover .flex-control-thumbs {
  display: flex;
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}
.nz-sp__cover .flex-control-thumbs li { width: 62px; margin: 0; }
.nz-sp__cover .flex-control-thumbs img {
  border-radius: 9px;
  border: 1px solid var(--nz-line);
  box-shadow: none;
  cursor: pointer;
  opacity: .72;
  transition: opacity .2s, border-color .2s;
}
.nz-sp__cover .flex-control-thumbs img:hover,
.nz-sp__cover .flex-control-thumbs img.flex-active { opacity: 1; border-color: var(--gold); }

.nz-sp__cover .onsale {
  position: absolute;
  inset-inline-start: 18px;
  top: 18px;
  z-index: 3;
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: var(--sh-sm);
}

/* بطاقة الناشر تحت الغلاف — المكتبة تبيع دورًا كثيرة، فالدار معلومة بيع */
.nz-sp__publisher-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: var(--nz-radius-sm);
  background: var(--nz-paper);
  border: 1px solid var(--nz-line-gold);
  box-shadow: var(--sh-xs);
}
.nz-sp__publisher-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--gold);
}
.nz-sp__publisher-name {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.6;
}
a.nz-sp__publisher-name:hover { color: var(--gold); }
.nz-sp__publisher-series { font-size: 12.5px; color: var(--ink-soft); }

/* ── العمود الرئيسي ────────────────────────────────────────────── */
.nz-sp__main { min-width: 0; }

.nz-sp__cats {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}
.nz-sp__cats a { color: inherit; }
.nz-sp__cats a:hover { color: var(--navy); }

.nz-sp__title {
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  line-height: 1.45;
  color: var(--navy);
  margin-bottom: 10px;
}

.nz-sp__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.9;
}
.nz-sp__byline-role { font-size: 12px; font-weight: 700; color: var(--gold); }
.nz-sp__byline-name { font-weight: 700; color: var(--navy); }
.nz-sp__byline-name a { color: inherit; }
.nz-sp__byline-name a:hover { color: var(--gold); }
.nz-sp__byline-sep { color: var(--border-mid); }

.nz-sp__rating { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.nz-sp__rating .star-rating { color: var(--gold); }
.nz-sp__rating-link { font-size: 12.5px; font-weight: 700; color: var(--navy); }
.nz-sp__rating-link:hover { color: var(--gold); }

/* ── شريط الحقائق ──────────────────────────────────────────────── */
.nz-sp__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 1px;
  margin: 22px 0;
  background: var(--nz-line);
  border: 1px solid var(--nz-line);
  border-radius: var(--nz-radius-sm);
  overflow: hidden;
}
.nz-sp__fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--nz-paper);
}
.nz-sp__fact dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink-soft);
}
.nz-sp__fact dd {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  line-height: 1.5;
  word-break: break-word;
}

/* ── بطاقة الشراء ──────────────────────────────────────────────── */
.nz-sp__buy {
  background: var(--nz-paper);
  border: 1px solid var(--nz-line-gold);
  border-radius: var(--nz-radius);
  padding: clamp(18px, 2.4vw, 26px);
  box-shadow: var(--sh-sm);
}

.nz-sp__buy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--nz-line);
}

.nz-sp__price { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 800; color: var(--navy); line-height: 1.3; }
.nz-sp__price del { font-size: .62em; font-weight: 500; color: var(--muted); margin-inline-end: 8px; }
.nz-sp__price ins { text-decoration: none; color: var(--navy); }
.nz-sp__price .woocommerce-Price-currencySymbol { font-size: .72em; font-weight: 600; }

.nz-sp__stock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
}
.nz-sp__stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.nz-sp__stock.is-in { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-bd); }
.nz-sp__stock.is-out { background: var(--red-bg); color: var(--red); border: 1px solid rgba(192, 57, 43, .22); }

.nz-sp__cart form.cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 11px; margin: 0; }
.nz-sp__cart .quantity { display: flex; align-items: center; }
.nz-sp__cart .quantity input.qty {
  width: 82px;
  height: 52px;
  padding: 0 10px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  background: var(--cream-lt);
  border: 1px solid var(--border);
  border-radius: 13px;
}
.nz-sp__cart button.single_add_to_cart_button {
  flex: 1 1 200px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff;
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(var(--brand-rgb), .24);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.nz-sp__cart button.single_add_to_cart_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(var(--brand-rgb), .3);
}
.nz-sp__cart button.single_add_to_cart_button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.nz-sp__cart .stock { width: 100%; font-size: 13px; color: var(--ink-soft); margin: 0; }
.nz-sp__cart .variations { width: 100%; }
.nz-sp__cart .variations td, .nz-sp__cart .variations th { padding: 6px 0; }
.nz-sp__cart .variations select {
  min-height: 46px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--cream-lt);
  color: var(--ink);
  font: inherit;
}

.nz-sp__buy-note { margin: 14px 0 0; font-size: 12px; line-height: 1.85; color: var(--ink-soft); }

.nz-sp__lede {
  margin-top: 20px;
  font-size: 15px;
  line-height: 2;
  color: var(--ink-mid);
}
.nz-sp__lede p { margin-bottom: 10px; }

/* ── التبويبات ─────────────────────────────────────────────────── */
.nz-sp__tabs {
  background: var(--nz-paper);
  border: 1px solid var(--nz-line);
  border-radius: var(--nz-radius);
  overflow: hidden;
  box-shadow: var(--sh-xs);
  margin-bottom: clamp(30px, 4vw, 50px);
}

.nz-sp__tabs-nav {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--cream-mid);
  padding: 6px;
}
.nz-sp__tabs-nav::-webkit-scrollbar { display: none; }

.nz-sp__tab {
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  background: transparent;
  padding: 12px 20px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .18s, color .18s;
}
.nz-sp__tab:hover { color: var(--navy); }
.nz-sp__tab.is-active { background: var(--nz-paper); color: var(--navy); box-shadow: var(--sh-xs); }

.nz-sp__tabs-body { padding: clamp(20px, 3vw, 34px); }
.nz-sp__pane { display: none; }
.nz-sp__pane.is-active { display: block; animation: nz-fade .22s ease; }

@keyframes nz-fade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.nz-sp__prose { font-size: 15px; line-height: 2.05; color: var(--ink-mid); }
.nz-sp__prose p { margin-bottom: 14px; }
.nz-sp__prose h2, .nz-sp__prose h3 { color: var(--navy); margin: 22px 0 10px; }
.nz-sp__prose ul, .nz-sp__prose ol { margin: 0 0 14px; padding-inline-start: 22px; list-style: disc; }
.nz-sp__prose li { margin-bottom: 7px; }
.nz-sp__prose a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

.nz-sp__empty { color: var(--ink-soft); font-size: 14px; }

/* ── بطاقات المواصفات ──────────────────────────────────────────── */
.nz-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 12px;
  margin: 0;
}
.nz-spec {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--nz-line);
  border-radius: var(--nz-radius-sm);
  background: var(--cream-lt);
  transition: border-color .18s, transform .18s;
}
.nz-spec:hover { border-color: var(--nz-line-gold); transform: translateY(-2px); }
.nz-spec__icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: #fff;
}
.nz-spec__icon svg { width: 18px; height: 18px; }
.nz-spec__body { min-width: 0; }
.nz-spec__label { font-size: 11.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 2px; }
.nz-spec__value { margin: 0; font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.7; word-break: break-word; }
.nz-spec__value a { color: inherit; }
.nz-spec__value a:hover { color: var(--gold); }

/* ── نبذة المؤلف ───────────────────────────────────────────────── */
.nz-sp__bio {
  background: var(--nz-paper);
  border: 1px solid var(--nz-line);
  border-inline-start: 4px solid var(--gold);
  border-radius: var(--nz-radius);
  padding: clamp(20px, 3vw, 30px);
  margin-bottom: clamp(30px, 4vw, 48px);
  box-shadow: var(--sh-xs);
}
.nz-sp__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  color: var(--gold);
  margin-bottom: 7px;
}
.nz-sp__bio h2 { font-size: 1.2rem; color: var(--navy); margin-bottom: 12px; }
.nz-sp__bio-link { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 800; color: var(--navy); }
.nz-sp__bio-link:hover { color: var(--gold); }

/* ── الأرفف ────────────────────────────────────────────────────── */
.nz-shelf { margin-bottom: clamp(30px, 4vw, 50px); }

.nz-shelf__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--nz-line);
}
.nz-shelf__title {
  font-size: 1.15rem;
  color: var(--navy);
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.nz-shelf__title span { font-size: .72em; font-weight: 700; color: var(--gold); }
.nz-shelf__more { flex: 0 0 auto; font-size: 13px; font-weight: 800; color: var(--navy); }
.nz-shelf__more:hover { color: var(--gold); }

.nz-shelf__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
}

.nz-card { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.nz-card__cover {
  display: block;
  border-radius: var(--nz-radius-sm);
  overflow: hidden;
  background: var(--cream-mid);
  aspect-ratio: 3 / 4;
  box-shadow: var(--sh-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.nz-card__cover:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.nz-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nz-card__title { font-size: 13.5px; font-weight: 800; line-height: 1.6; color: var(--navy); }
.nz-card__title a { color: inherit; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nz-card__title a:hover { color: var(--gold); }
.nz-card__meta { font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nz-card__price { font-size: 13.5px; font-weight: 800; color: var(--navy); }
.nz-card__price del { font-weight: 500; color: var(--muted); font-size: .85em; margin-inline-end: 5px; }
.nz-card__price ins { text-decoration: none; }

/* ── الوسوم ────────────────────────────────────────────────────── */
.nz-sp__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-soft);
}
.nz-sp__tags a {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--nz-paper);
  border: 1px solid var(--nz-line);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 700;
  transition: background .16s, color .16s, border-color .16s;
}
.nz-sp__tags a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── شريط الشراء اللاصق (هاتف) ─────────────────────────────────── */
.nz-buybar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 900;
  display: none;
  align-items: center;
  gap: 14px;
  padding: 11px 16px calc(11px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--nz-line);
  box-shadow: 0 -8px 26px rgba(var(--brand-rgb), .12);
  transform: translateY(110%);
  transition: transform .25s ease;
}
.nz-buybar.is-visible { transform: translateY(0); }
.nz-buybar__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nz-buybar__name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nz-buybar__price { font-size: 15px; font-weight: 800; color: var(--navy); }
.nz-buybar__price del { display: none; }
.nz-buybar__btn {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
}

/* ── استجابة الحاوية ───────────────────────────────────────────────
   هذه هي القاعدة الأساسية: الصفحة تقيس عرضها هي، لا عرض الشاشة.
   فإن وضعها قالب أو إضافة داخل صندوق عرضه 900 بكسل على شاشة عريضة،
   انتقلت إلى عمود واحد بدل أن تبقى عمودين مسحوقين.
   استعلامات العرض أسفل باقية لمتصفّح قديم لا يدعم @container.
═══════════════════════════════════════════════════════════════════ */
@container nzsp (max-width: 1000px) {
  .nz-sp__hero { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 28px; }
}

@container nzsp (max-width: 860px) {
  .nz-sp__hero { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .nz-sp__media { position: static; max-width: 340px; margin-inline: auto; }
  .nz-sp__facts { grid-template-columns: repeat(2, 1fr); }
  .nz-shelf__grid { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 14px; }
}

@container nzsp (max-width: 520px) {
  .nz-specs { grid-template-columns: 1fr; }
  .nz-sp__cart form.cart { flex-direction: column; }
  .nz-sp__cart .quantity input.qty { width: 100%; }
  .nz-shelf__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── استجابة ───────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .nz-sp__hero { grid-template-columns: minmax(230px, 320px) minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 820px) {
  .nz-sp__container { width: calc(100% - 28px); }
  .nz-sp__hero { grid-template-columns: 1fr; gap: 22px; }
  .nz-sp__media { position: static; max-width: 340px; margin-inline: auto; }
  .nz-sp__facts { grid-template-columns: repeat(2, 1fr); }
  .nz-shelf__grid { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 14px; }
  .nz-buybar { display: flex; }
  .nz-sp { padding-bottom: 86px; }
}

@media (max-width: 480px) {
  .nz-sp__tabs-body { padding: 18px 14px; }
  .nz-specs { grid-template-columns: 1fr; }
  .nz-sp__cart form.cart { flex-direction: column; }
  .nz-sp__cart .quantity input.qty { width: 100%; }
  .nz-shelf__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── وضع التطبيق ───────────────────────────────────────────────── */
body.nizar-app-mode .nz-sp__media { top: 64px; }
body.nizar-app-mode .nz-buybar { box-shadow: none; }

/* Editorial edition: a book page rather than stacked cards. */
.nz-sp{--nz-radius:0;--nz-radius-sm:0;background:#fff;padding-top:12px;font-size:19px}
.nz-sp__hero{border-bottom:1px solid var(--nz-line);padding:20px 0 38px}
.nz-sp__media{position:static}.nz-sp__cover{border:0;box-shadow:none;background:#f6f5f0;padding:28px}
.nz-sp__cover .woocommerce-product-gallery__image img{max-height:530px;object-fit:contain;box-shadow:none}
.nz-sp__main.summary{float:none!important;width:auto!important;margin:0!important}
.nz-sp__title{font-size:clamp(30px,3.6vw,46px)!important;line-height:1.55!important;font-weight:700!important}
.nz-sp__cats,.nz-sp__crumbs,.nz-sp__byline-role,.nz-sp__publisher-eyebrow{font-size:16px;letter-spacing:0}
.nz-sp__byline,.nz-sp__publisher-name{font-size:21px}.nz-sp__publisher-card{background:none;box-shadow:none;border:0;border-bottom:1px solid var(--nz-line);padding:16px 0}
.nz-sp__facts{border-inline:0;background:none;border-radius:0}.nz-sp__fact{background:none}.nz-sp__fact dt{font-size:16px;letter-spacing:0}.nz-sp__fact dd{font-size:19px}
.nz-sp__buy{border:0;border-top:1px solid var(--nz-line);border-bottom:1px solid var(--nz-line);box-shadow:none;background:#faf9f5;padding:22px}
.nz-sp__price{font-size:30px}.nz-sp__stock,.nz-sp__buy-note{font-size:16px}.nz-sp__cart .button{font-size:20px!important;border-radius:0!important}
.nz-sp__lede,.nz-sp__prose{font-size:21px;line-height:2}.nz-sp__tabs{border:0;box-shadow:none}.nz-sp__tabs-nav{background:none;border-bottom:1px solid var(--nz-line);padding:0;gap:20px}.nz-sp__tab{font-size:20px;border-radius:0;padding:14px 4px}.nz-sp__tab.is-active{box-shadow:none;background:none;border-bottom:2px solid var(--navy)}
.nz-sp__tabs-body{padding:28px 0}.nz-specs{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 35px}.nz-spec{border:0;border-bottom:1px solid var(--nz-line);background:none;padding:15px 0}.nz-spec:hover{transform:none}.nz-spec__icon{display:none}.nz-spec__body{display:grid;grid-template-columns:125px minmax(0,1fr);gap:14px;width:100%}.nz-spec__label{font-size:17px}.nz-spec__value{font-size:19px}
.nz-sp__bio,.nz-card__cover{box-shadow:none;border-radius:0}.nz-card__img{object-fit:contain}.nz-card__title{font-size:21px}.nz-card__meta,.nz-shelf__more{font-size:17px}.nz-sp__pane{display:block}.nz-sp__tabs.is-enhanced .nz-sp__pane:not(.is-active){display:none}.nz-sp__tabs:not(.is-enhanced) .nz-sp__pane{margin-bottom:30px}
@media(max-width:600px){.nz-specs{grid-template-columns:1fr}.nz-sp__title{font-size:30px!important}.nz-sp__cover{padding:20px}.nz-sp__tabs-nav{gap:15px}.nz-sp__tab{font-size:18px}.nz-sp__media{width:100%}.nz-sp__prose{font-size:20px}}
@media(prefers-reduced-motion:reduce){.nz-sp *{animation:none!important;scroll-behavior:auto!important;transition:none!important}}

/* 2.1.1 — Constrain native and Woo Variation Gallery images, not slider tracks. */
#nizar-product .nz-sp__hero{grid-template-columns:minmax(0,320px) minmax(0,1fr);gap:40px}
#nizar-product .nz-sp__media{width:100%;min-width:0;max-width:320px}
#nizar-product .nz-sp__cover{padding:20px}
#nizar-product .nz-sp__cover .woocommerce-product-gallery,
#nizar-product .nz-sp__cover .woo-variation-product-gallery{float:none!important;width:100%!important;max-width:100%;min-width:0;margin:0!important}
#nizar-product .nz-sp__cover .woocommerce-product-gallery__image img,
#nizar-product .nz-sp__cover .wvg-single-gallery-image-container img{width:auto!important;height:auto!important;max-width:100%!important;max-height:410px!important;object-fit:contain;display:block;margin-inline:auto;box-shadow:none;border-radius:0}
#nizar-product .nz-sp__cover .woo-variation-gallery-slider-wrapper,
#nizar-product .nz-sp__cover .woo-variation-gallery-container{min-width:0;max-width:100%}
#nizar-product .nz-sp__cover .woo-variation-gallery-thumbnail-slider img,
#nizar-product .nz-sp__cover .flex-control-thumbs img{width:auto!important;height:65px!important;max-width:100%;object-fit:contain;box-shadow:none;margin:auto}
#nizar-product .nz-sp__title{font-size:clamp(28px,2.8vw,38px)!important}
@container nzsp (max-width:860px){#nizar-product .nz-sp__hero{grid-template-columns:minmax(0,1fr);gap:24px}#nizar-product .nz-sp__media{margin-inline:auto}}
@media(max-width:820px){#nizar-product .nz-sp__hero{grid-template-columns:minmax(0,1fr);gap:24px}#nizar-product .nz-sp__media{margin-inline:auto;max-width:280px}#nizar-product .nz-sp__cover .woocommerce-product-gallery__image img,#nizar-product .nz-sp__cover .wvg-single-gallery-image-container img{max-height:340px!important}}
@media(max-width:600px){
 #nizar-product .nz-sp__cart button.single_add_to_cart_button{flex:0 0 auto;width:100%;min-height:52px;padding:10px 20px}
}
@container nzsp (max-width:520px){#nizar-product .nz-sp__cart button.single_add_to_cart_button{flex:0 0 auto;width:100%;min-height:52px;padding:10px 20px}}

/* 2.1.2 — Compact, aligned bilingual book information. */
#nizar-product .nz-sp__header{margin:0 0 16px;padding:0;border:0}
#nizar-product .nz-sp__title{margin:0 0 12px;text-align:right;line-height:1.45!important}
#nizar-product .nz-book-details{display:block;max-width:620px;margin:0 0 24px;padding:8px 0;border-top:1px solid var(--nz-line);border-bottom:1px solid var(--nz-line)}
#nizar-product .nz-book-details__row{display:grid;grid-template-columns:95px minmax(0,1fr);align-items:baseline;gap:16px;padding:9px 0}
#nizar-product .nz-book-details__row dt{margin:0;color:var(--ink-soft);font-size:17px;font-weight:400;line-height:1.7;text-align:right}
#nizar-product .nz-book-details__row dd{margin:0;min-width:0;color:var(--navy);font-size:20px;font-weight:700;line-height:1.7;text-align:right;overflow-wrap:anywhere}
#nizar-product .nz-book-details bdi{unicode-bidi:isolate;display:inline}
#nizar-product .nz-book-details a{color:inherit;text-decoration:none}
#nizar-product .nz-book-details a:hover{text-decoration:underline;text-underline-offset:4px}
#nizar-product .nz-sp__buy{max-width:620px;padding:18px 20px}
#nizar-product .nz-sp__buy-top{margin-bottom:16px;padding-bottom:14px}
#nizar-product .nz-sp__buy-note{font-size:15px;margin-top:12px}
#nizar-product .nz-spec__body{grid-template-columns:110px minmax(0,1fr);gap:16px;align-items:baseline}
#nizar-product .nz-spec__value{text-align:right}
@media(max-width:600px){#nizar-product .nz-book-details__row{grid-template-columns:78px minmax(0,1fr);gap:12px;padding:8px 0}#nizar-product .nz-book-details__row dd{font-size:19px}#nizar-product .nz-sp__buy{padding:16px}#nizar-product .nz-spec__body{grid-template-columns:90px minmax(0,1fr);gap:12px}}
