/* صفحة المنتج: الصور يميناً، والشراء يساراً، ثم المميزات والمواصفات */
.product-page { padding-block: 18px 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; color: var(--ink-soft); font-size: 13px; }
.crumbs a { color: var(--blue); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; }

.pd-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; }

.pd-gallery { position: sticky; top: 150px; }
.pd-stage { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pd-stage img { width: 88%; height: 88%; object-fit: contain; }
.pd-stage img.image-fallback { width: 140px; height: 140px; opacity: .55; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.pd-thumb { flex: 0 0 72px; height: 72px; padding: 4px; background: var(--white); border: 2px solid var(--line); border-radius: 10px; cursor: pointer; }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumb.is-active { border-color: var(--orange); }

.pd-buy { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.pd-brand { margin: 0; color: var(--blue); font-size: 13px; font-weight: 800; }
.pd-brand a { color: inherit; text-decoration: none; }
.pd-brand a:hover { text-decoration: underline; }
.pd-buy h1 { margin: 4px 0 4px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.45; }
.pd-sku { margin: 0 0 14px; color: var(--ink-soft); font-size: 13px; }
.pd-price { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--red); font-weight: 700; }
.pd-price strong { font: 900 34px 'Manrope', 'Noto Kufi Arabic', sans-serif; }
.pd-price small { color: #8492a3; font-size: 14px; }

/* المنفعة أولاً: تظهر قبل المقاسات وزر الشراء */
.pd-pitch { margin-bottom: 18px; }
.pd-pitch p { margin: 0 0 8px; line-height: 1.95; }
.pd-tagline { color: var(--navy); font-size: 18px; font-weight: 900; line-height: 1.6; }

.pd-sizes { margin: 0 0 18px; padding: 0; border: 0; }
.pd-sizes legend { margin-bottom: 8px; font-weight: 700; }
.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-option { min-width: 52px; min-height: 44px; display: grid; place-items: center; padding: 0 12px; color: var(--ink); background: var(--white); border: 2px solid var(--line); border-radius: 10px; font: 800 15px 'Manrope', 'Noto Kufi Arabic', sans-serif; text-decoration: none; }
a.size-option:hover { border-color: var(--navy); }
.size-option.is-current { color: white; background: var(--navy); border-color: var(--navy); }
.size-option.is-out { color: #9aa6b4; text-decoration: line-through; }

.pd-add { width: 100%; min-height: 54px; color: white; background: var(--orange); border: 0; border-radius: 12px; cursor: pointer; font-size: 17px; font-weight: 900; }
.pd-add:hover { background: #ffb24d; }
.pd-add.is-disabled { color: #7b8794; background: #e9edf1; cursor: not-allowed; }
.pd-assure { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; padding: 0; list-style: none; color: var(--green); font-size: 13px; font-weight: 700; }
.pd-assure li::before { content: "✓ "; }

.pd-specs { margin-top: 28px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.pd-specs h2 { margin: 0 0 12px; font-size: 20px; }
.pd-specs ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.pd-specs li { position: relative; break-inside: avoid; padding: 9px 22px 9px 0; border-bottom: 1px dashed var(--line); }
.pd-specs li::before { content: ""; position: absolute; top: 19px; right: 4px; width: 8px; height: 8px; background: var(--orange); border-radius: 2px; }
.pd-notice { margin: 16px 0 0; padding: 12px 14px; color: #7a4a00; background: #fff6e8; border: 1px solid #ffd9a0; border-radius: 10px; font-weight: 700; }

.pd-related { margin-top: 18px; }
.pd-missing h1 { margin: 8px 0; font-size: 24px; }

@media (max-width: 860px) {
  .pd-top { grid-template-columns: 1fr; gap: 16px; }
  .pd-gallery { position: static; }
  .pd-buy, .pd-specs { padding: 18px; }
  .pd-specs ul { columns: 1; }
}
