/* إضافات المنصة فوق هوية التنجستن (site.css) */
.add-btn[aria-pressed='true'] { background: var(--blue); color: var(--on-amber, #1A1109); border-color: var(--blue); }
.mode-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; color: var(--blue); margin-inline-start: 8px; }
.line-busy { display: block; font-size: 0.8rem; color: #E0573A; font-weight: 600; }
.form-error { color: #E0573A; font-weight: 600; font-size: 0.92rem; }
.auth-box { display: grid; gap: 14px; border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; }
.auth-box .cur-toggle { justify-self: start; }
.signed-in { font-size: 0.92rem; color: var(--ink-2); }
.done-box { display: grid; gap: 8px; justify-items: start; padding: 22px; border-radius: var(--r-m); background: var(--surface); }
.done-box svg { width: 34px; height: 34px; color: var(--blue); }
.done-box strong { font-family: var(--f-display); font-size: 1.4rem; }
.drawer-foot .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.drawer-foot .print-btn { text-align: center; }
.field select.filter-input { min-height: 44px; }
.avail { display: grid; gap: 10px; }
.avail-msg { font-weight: 600; font-size: 0.95rem; }
.avail-msg.yes { color: #3FAF6A; }
.avail-msg.confirm { color: var(--blue); }
.avail-msg.no { color: #E0573A; }
.orders { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.orders li { border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; display: grid; gap: 6px; background: var(--card); }
.orders li > div:first-child { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.account h2 { margin-top: 24px; }
.gallery-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery-strip img { background: #fff; border: 1px solid var(--line); border-radius: 10px; aspect-ratio: 1; object-fit: contain; padding: 10px; width: 100%; }
.item-media { text-decoration: none; }
/* صفحة المعدة: الصورة ثم الشراء ثم التفاصيل في الجوال، والشراء ثابت بجانبها في الشاشات الكبيرة */
.product { grid-template-areas: 'media buy' 'details buy'; }
.product > .product-media { grid-area: media; }
.product > .buy-box { grid-area: buy; }
.product > .product-details { grid-area: details; display: grid; gap: 12px; }
@media (max-width: 960px) { .product { grid-template-areas: 'media' 'buy' 'details'; } }
.toast:not(.show) { visibility: hidden; }
.order-actions { display: inline-flex; gap: 14px; align-items: center; }
.tech-note { margin-top: 6px; }
/* رابط التخطي للوحة المفاتيح وقارئ الشاشة: يظهر عند التركيز فقط */
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--blue); color: var(--black); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
.legal { max-width: 760px; display: grid; gap: 22px; }
.legal h2 { font-size: 1.15rem; margin-bottom: 6px; }
.legal p { margin: 0 0 8px; }
.status-page { min-height: 50vh; display: grid; align-content: center; }
.status-page h1 { margin-bottom: 10px; }
.status-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.auth-consent { font-size: .85rem; color: var(--muted); }
.incl-vat { font-size: .9rem; color: var(--ink-2, var(--muted)); margin: 6px 0 0; }
.my-data { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 14px; max-width: 640px; }
/* الهوية داكنة: مربعات الاختيار وأشرطة التمرير تتبعها */
:root { color-scheme: dark; }
/* الشريط العلوي الثابت وزر الطلب السفلي ما يغطون العنصر اللي ننتقل له */
html { scroll-padding-top: 96px; scroll-padding-bottom: 88px; }
@media (max-width: 960px) { html { scroll-padding-top: 128px; } }
.drawer-body { overscroll-behavior: contain; }
html:has(dialog[open]) { overflow: hidden; }
.rate strong, .rates dd, .est-row span:last-child, .orders strong, .incl-vat { font-variant-numeric: tabular-nums; }
h1, h2 { text-wrap: balance; }
/* حافة الآيفون السفلية */
@media (max-width: 960px) { .mobile-cart { bottom: calc(12px + env(safe-area-inset-bottom)); } }
.wa-float { margin-bottom: env(safe-area-inset-bottom); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.add-btn:hover, .remove-line:hover, .chip:hover { filter: brightness(1.12); }

/* حقل البحث في الواجهة أبيض، فالنص داكن (كان كريمي على أبيض) */
.search input { color: #120D08; }
.search input::placeholder { color: #6E707A; }
/* M2: رابط المراجعات كان ما يلتف ويطلّع الصفحة عن عرض الجوال */
.link-more { white-space: normal; }
/* H4: صفحة الحساب تحجز مكان النموذج وهي تحمّل، فما تقفز */
.account-loading { min-height: 560px; }

/* صفحات الأقسام: عنوان القسم في الكتالوج رابط لصفحته، وعدد القطع فوق البطاقات */
.cat-block > h2 a { color: inherit; text-decoration: none; }
.cat-block > h2 a:hover, .cat-block > h2 a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.cat-count { color: var(--ink-2); margin: 0 0 16px; }

/* «المعتاد» مقابل «عندنا»: المشكلة بخط أخف وعلامة ×، وحلّنا عنوان بعلامة ✓ */
.vs-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.vs-list li { background: var(--card, #fff); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px; display: grid; gap: 10px; align-content: start; scroll-margin-top: 96px; }
.vs-usual { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--ink-2); font-size: 0.88rem; line-height: 1.6; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.vs-usual svg { width: 14px; height: 14px; flex: none; margin-top: 4px; color: #E0796B; }
.vs-list h3 { display: flex; gap: 8px; align-items: flex-start; font-size: 1.05rem; font-weight: 600; margin: 0; }
.vs-list h3 svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--blue); }
.vs-list li > p:last-child { margin: 0; color: var(--ink-2); font-size: 0.93rem; line-height: 1.65; }

/* يوم التصوير: أربع مراحل جنب بعض، وتنزل تحت بعض في الجوال */
.shoot-day { margin-top: 64px; }
.day-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; counter-reset: d; }
.day-stages > li { counter-increment: d; background: var(--card, #fff); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px; display: grid; gap: 12px; align-content: start; }
.day-stages > li > h3 { font-size: 1.05rem; font-weight: 600; margin: 0; display: flex; gap: 10px; align-items: baseline; }
.day-stages > li > h3::before { content: counter(d); font-family: var(--f-display); color: var(--blue); font-variant-numeric: tabular-nums; }
.day-stages ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 8px; color: var(--ink-2); font-size: 0.93rem; line-height: 1.65; }
.on-set { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; color: var(--ink-2); }

/* رابط «نسيت كلمة المرور؟» تحت الحقل */
.forgot-link { justify-self: start; font-size: 0.85rem; color: var(--ink-2); margin-top: 6px; }
/* نفس الرابط لما يكون زر (استعادة كلمة المرور بالبريد) */
button.forgot-link { background: none; border: 0; padding: 0; font: inherit; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
button.forgot-link:disabled { opacity: .6; cursor: default; }
.form-notice { color: var(--ink); font-size: 0.92rem; border-inline-start: 3px solid var(--ok); padding-inline-start: 10px; }
.reset-box { max-width: 460px; }
.hold-note { font-size: 0.9rem; color: var(--ink-2); }

/* صفحة المعدة على الجوال: العمود ينكمش بدل ما يتمدد لعرض حقلي التاريخ (كانت الصفحة 407 بكسل على شاشة 390) */
@media (max-width: 960px) { .product { grid-template-columns: minmax(0, 1fr); } }
.product > *, .avail .form-grid > * { min-width: 0; }
.avail .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.avail input[type="date"], .avail input[type="time"] { min-width: 0; width: 100%; }

/* ---------- تطوير 24 نوفمبر 2026: الجوال وسهولة الوصول وثبات التخطيط ---------- */

/* خط احتياطي بمقاس الخط العربي: قبل ما يتحمّل الخط، النص ياخذ نفس العرض تقريباً، فالصفحة ما تتحرك لما يتبدل.
   النسب مقاسة على نصوص الموقع: Alexandria أعرض من Arial بـ1.39 مرة، وIBM Plex بـ1.11 مرة. اللاتيني له نسبته. */
@font-face { font-family: "RKN Display Fallback"; src: local("Arial"); unicode-range: U+0020, U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; size-adjust: 139%; ascent-override: 69.6%; descent-override: 18.1%; line-gap-override: 0%; }
@font-face { font-family: "RKN Display Fallback"; src: local("Arial"); unicode-range: U+0021-05FF, U+2000-206F; size-adjust: 112.38%; ascent-override: 86.13%; descent-override: 22.33%; line-gap-override: 0%; }
@font-face { font-family: "RKN Body Fallback"; src: local("Arial"); unicode-range: U+0020, U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; size-adjust: 111%; ascent-override: 97.8%; descent-override: 37.4%; line-gap-override: 0%; }
@font-face { font-family: "RKN Body Fallback"; src: local("Arial"); unicode-range: U+0021-05FF, U+2000-206F; size-adjust: 101.17%; ascent-override: 107.25%; descent-override: 41.02%; line-gap-override: 0%; }
/* أسماء الخطوط صريحة هنا (مو var) عشان البديل المعاير يجي قبل «Alexandria Fallback» اللي يولّده Next */
html[lang="ar"] {
  --f-display: "Alexandria", "RKN Display Fallback", "IBM Plex Sans Arabic", "RKN Body Fallback", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "RKN Body Fallback", "Alexandria", "RKN Display Fallback", system-ui, sans-serif;
}

/* شارة «حجز فوري» كانت 11.5px */
.mode-tag { font-size: 0.75rem; }

/* عدد القطع عنوان (ترتيب العناوين قبل بطاقات المعدات) بنفس شكله السابق */
h2.cat-count { font-family: var(--f-body); font-size: 1rem; font-weight: 400; line-height: 1.75; }

/* عنوان صفحة المعدة: «تأجير» سطر صغير فوق الاسم */
.h1-kicker { display: block; font-family: var(--f-body); font-size: 0.95rem; font-weight: 600; color: var(--blue); line-height: 1.6; }

/* معدات مرتبطة في صفحة المعدة */
.related .related-block + .related-block { margin-top: 48px; }
.no-results-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* الكتالوج على الجوال: الأقسام صف واحد يتمرر بدل 4 صفوف، فالنتائج تظهر أقرب */
@media (max-width: 960px) {
  .filters { gap: 14px; padding: 16px; }
  .filters .chip-list { position: relative; flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .filters .chip-list::-webkit-scrollbar { display: none; }
  .filters .chip { flex: none; }
}

/* اللمس: مساحة الضغط 44px تقريباً للروابط الصغيرة (مسار التنقل، والتذييل، والرقم في الأعلى) */
@media (pointer: coarse) {
  .chip { min-height: 44px; padding-inline: 16px; }
  .crumbs { gap: 0 8px; align-items: center; }
  .crumbs a, .crumbs span { display: inline-block; padding-block: 11px; }
  .site-foot ul { gap: 0; }
  .site-foot ul a { display: block; padding-block: 11px; }
  .site-foot address { gap: 0; }
  .site-foot address a, .site-foot address span { display: block; padding-block: 9px; }
  .foot-legal a { display: inline-block; padding-block: 11px; }
  .head-actions .lang-link { display: inline-block; padding-block: 10px; }
  .link-more { display: inline-block; padding-block: 8px; }
  .on-set + p a, .prose-block p a { display: inline-block; padding-block: 9px; }
}

/* الجوال: زر واتساب ظاهر دايماً بجنب شريط الطلب (كان مخفي تحت 700px) */
@media (max-width: 700px) {
  .wa-float { display: grid; width: 56px; height: 56px; bottom: 12px; inset-inline-start: 12px; }
  .mobile-cart { inset-inline: 80px 12px; }
  html:has(dialog[open]) .wa-float { display: none; }
}

/* عرض النصوص بوحدة em بدل ch: وحدة ch تتبع عرض الرقم «0» في الخط، فكانت تتغير لما يتحمّل الخط
   (10px ثم 12px للنص، و37px ثم 42px للعنوان)، والفقرات تنكسر على سطور مختلفة وتتحرك الصفحة.
   القيم هنا تساوي العرض النهائي بعد تحميل الخط: ‎1ch = 0.6em في IBM Plex، و0.703em في Alexandria. */
.hero h1 { max-width: 12.65em; }
.hero-lede { max-width: 26.4em; }
.sec-head > div { max-width: 36em; }
.pack-panel > p { max-width: 37.2em; }
.faq .answer { max-width: 42em; }
.page-head h1 { max-width: 15.47em; }
.page-head p { max-width: 37.2em; }
.cat-block > p { max-width: 38.4em; }

/* المعدات المرتبطة على الجوال: صف واحد يتمرر بدل 8 بطاقات تحت بعض، فصفحة المعدة ما تطول */
@media (max-width: 700px) {
  /* position: relative عشان العناصر المخفية لقارئ الشاشة داخل البطاقات تنقص مع الصف، وما توسّع الصفحة */
  .related .items { position: relative; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .related .items::-webkit-scrollbar { display: none; }
  .related .items > .item { flex: 0 0 72%; scroll-snap-align: start; }
  .related .sec-head { margin-bottom: 20px; }
}

/* ---------- تطوير 25 نوفمبر 2026: الأسعار والمدد وشريط الجوال ---------- */

/* مدد أطول في صفحة المعدة: أسبوعين وشهر، وتحت كل واحدة المعادل اليومي */
.rates-long { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rates-long div { background: var(--card-2); border-radius: var(--r-s); padding: 10px 12px; display: grid; gap: 2px; text-align: center; }
.rates-long dt { color: var(--muted); font-size: 0.82rem; }
.rates-long dd { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.rates-long dd.per-day { font-family: var(--f-body); font-weight: 400; font-size: 0.78rem; color: var(--blue); }

/* إجمالي التواريخ المختارة داخل صندوق المعدة */
.date-estimate { background: var(--card-2); }

/* سطر الإلغاء والتأجيل تحت أزرار المعدة */
.cancel-line { margin: 0; font-size: 0.85rem; color: var(--ink-2); line-height: 1.7; }
.cancel-line a { color: var(--blue); white-space: nowrap; }

/* أزرار المدة السريعة في «طلبك» */
.quick-days { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.quick-days > span { font-size: 0.85rem; color: var(--muted); margin-inline-end: 4px; }
.quick-days .chip[aria-pressed="true"] { background: var(--blue); color: var(--on-amber); border-color: var(--blue); }

/* صفحة الأسعار */
.price-unit { color: var(--muted); font-size: 0.9rem; margin: 0 0 8px; }
.price-block { margin-top: 36px; }
.price-block h2 { font-size: var(--step-2, 1.5rem); margin-bottom: 12px; }
.price-block h2 a { text-decoration: none; }
.price-block h2 a:hover { color: var(--blue); }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; }
.price-table thead th { font-size: 0.82rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.price-table tbody th { font-weight: 600; }
.price-table tbody th a { text-decoration: none; unicode-bidi: plaintext; }
.price-table tbody th a:hover { color: var(--blue); }
.price-table td { white-space: nowrap; font-family: var(--f-display); font-weight: 600; }
.price-table td.on-quote { font-family: var(--f-body); font-weight: 400; color: var(--muted); }
.price-table .price-sum { display: block; font-weight: 400; font-size: 0.82rem; color: var(--muted); }
.price-table .col-add { width: 1%; text-align: end; }
@media (max-width: 700px) {
  /* على الجوال: المعدة واليوم والأسبوع واليوم بالضريبة. عمود 3 أيام وزر الإضافة في صفحة المعدة */
  .price-table .col-3, .price-table .col-add, .price-table .price-sum { display: none; }
  .price-table th, .price-table td { padding: 12px 6px; font-size: 0.92rem; }
  .price-table thead th { white-space: normal; font-size: 0.75rem; }
  .price-table tbody th a { display: inline-block; padding-block: 6px; }
}

/* شريط السعر والإضافة الثابت في صفحة المعدة، على الجوال فقط */
.sticky-add { display: none; }
@media (max-width: 700px) {
  .sticky-add.show {
    display: flex; align-items: center; gap: 8px; position: fixed; z-index: 30;
    inset-inline: 80px 12px; bottom: calc(12px + env(safe-area-inset-bottom)); min-height: 56px;
    padding-block: 6px; padding-inline: 14px 6px;
    background: var(--card-2); color: var(--ink); border: 1px solid #4A3B2A; border-radius: 14px;
    box-shadow: 0 12px 28px -10px rgba(0,0,0,.6);
  }
  /* الشريط ياخذ مكان شريط «طلبك»، وعدد الطلب يبقى ظاهر فيه */
  body:has(.sticky-add.show) .mobile-cart { display: none; }
  html:has(dialog[open]) .sticky-add.show { display: none; }
  .sticky-add .sa-price { margin: 0; flex: 1; min-width: 0; display: grid; line-height: 1.25; }
  .sticky-add .sa-price strong { font-family: var(--f-display); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
  .sticky-add .sa-price span { font-size: 0.75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-add .add-btn { flex: none; min-height: 44px; }
  .sticky-add .sa-cart { flex: none; position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--blue); color: var(--on-amber); cursor: pointer; }
  .sticky-add .sa-cart svg { width: 20px; height: 20px; }
  .sticky-add .sa-cart .count { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; background: var(--ink); color: var(--black); }
}

/* === 25 نوفمبر (2): السرعة والانتقال بين الصفحات === */
/* صورة الواجهة داخل picture (AVIF ثم WebP): نفس قواعد .hero-full > img */
.hero-full > picture { display: contents; }
.hero-full > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: sepia(.3) saturate(1.1) brightness(.62); }
/* انتقال ناعم بين الصفحات في المتصفحات اللي تدعمه، وبدون حركة لمن طلب تقليلها */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* === 25 نوفمبر (2): اطلب بقائمة معداتك === */
.page-head .head-links { display: flex; flex-wrap: wrap; gap: 8px 22px; max-width: none; font-size: 1rem; }
.gl-wrap { display: grid; gap: 14px; max-width: 880px; }
.gl-tool { display: grid; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(18px, 3vw, 28px); }
.gl-tool textarea { min-height: 190px; font-family: var(--f-body); line-height: 1.8; resize: vertical; }
.gl-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.gl-summary { margin-top: 4px; }
.gl-rows { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.gl-rows li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto auto; gap: 8px 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg, transparent); }
.gl-rows li[data-status="none"] { border-style: dashed; }
.gl-raw { color: var(--ink-2); font-size: .92rem; overflow-wrap: anywhere; }
.gl-item { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.gl-item select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-s, 8px); background: var(--card); color: inherit; font: inherit; }
.gl-none { color: var(--ink-2); font-size: .92rem; }
.gl-chip { font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); }
.gl-chip.gl-exact { color: var(--ok, #7BD88F); border-color: currentColor; }
.gl-chip.gl-close { color: var(--blue); border-color: currentColor; }
.gl-chip.gl-none { color: var(--ink-2); }
.gl-price { font-weight: 600; white-space: nowrap; font-size: .95rem; }
.gl-add { display: grid; gap: 8px; justify-items: start; margin-top: 16px; }
.steps.gl-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .steps.gl-steps { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .gl-rows li { grid-template-columns: minmax(0, 1fr) auto; }
  .gl-raw, .gl-item { grid-column: 1 / -1; }
}

/* === 25 نوفمبر (2): عرض السعر التقديري للطباعة === */
.quote-link { justify-self: start; text-align: start; }
.quote-page .wrap { display: grid; gap: 18px; max-width: 900px; }
.quote-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quote-empty { display: grid; gap: 14px; justify-items: start; padding: clamp(24px, 5vw, 48px) 0; }
.quote-empty h1 { font-size: var(--step-3); }
/* الورقة نفسها بيضاء على الشاشة والطباعة، عشان اللي يشوفه العميل هو اللي ينطبع */
.quote-doc { background: #fff; color: #16171c; border-radius: var(--r-m); padding: clamp(20px, 4vw, 44px); display: grid; gap: 22px; font-size: .95rem; line-height: 1.7; }
.quote-doc a { color: inherit; }
.quote-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 2px solid #16171c; padding-bottom: 16px; }
.quote-top p { color: #4b4d57; font-size: .88rem; }
.quote-top .quote-brand { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; color: #16171c; display: flex; gap: 10px; align-items: baseline; }
.quote-meta { text-align: end; }
.quote-meta h1 { font-size: 1.5rem; font-weight: 700; color: #16171c; }
.quote-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 24px; margin: 0; }
.quote-facts dt { color: #6b6d78; font-size: .8rem; }
.quote-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.quote-lines { width: 100%; border-collapse: collapse; }
.quote-lines th, .quote-lines td { padding: 9px 8px; border-bottom: 1px solid #e4e5ea; text-align: start; vertical-align: top; }
.quote-lines thead th { font-size: .8rem; color: #6b6d78; font-weight: 600; border-bottom: 1px solid #16171c; }
.quote-lines tbody th { font-weight: 600; }
.quote-lines td:nth-last-child(-n+2), .quote-lines th:nth-last-child(-n+2) { text-align: end; white-space: nowrap; }
.quote-totals { display: grid; gap: 6px; justify-self: end; width: min(100%, 360px); }
.quote-totals div { display: flex; justify-content: space-between; gap: 16px; }
.quote-totals .quote-total { border-top: 2px solid #16171c; padding-top: 8px; font-weight: 700; font-size: 1.1rem; }
.quote-doc .est-note { color: #6b6d78; }
.quote-notes h2 { font-size: 1rem; font-weight: 600; }
.quote-notes p { white-space: pre-wrap; color: #4b4d57; }
.quote-terms { margin: 0; padding-inline-start: 18px; color: #4b4d57; font-size: .85rem; display: grid; gap: 4px; }
.quote-foot { display: flex; flex-wrap: wrap; gap: 6px 22px; border-top: 1px solid #e4e5ea; padding-top: 12px; color: #6b6d78; font-size: .82rem; }
@media (max-width: 640px) {
  .quote-meta { text-align: start; }
  .quote-lines thead { display: none; }
  .quote-lines tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid #e4e5ea; }
  .quote-lines th, .quote-lines td { border: 0; padding: 0; }
  .quote-lines td:first-child, .quote-lines td:nth-child(3) { display: none; }
  .quote-lines tbody th { grid-column: 1 / -1; }
}
@media print {
  @page { margin: 14mm; }
  /* في صفحة عرض السعر تنطبع الورقة فقط (القاعدة القديمة تطبع «طلبك») */
  body:has(.quote-doc) main { display: block !important; }
  body:has(.quote-doc) .drawer { display: none !important; }
  body:has(.quote-doc) { background: #fff !important; }
  .quote-page { padding: 0 !important; background: #fff !important; }
  .quote-page .wrap { max-width: none; padding: 0; }
  .quote-actions { display: none !important; }
  .quote-doc { padding: 0; border-radius: 0; font-size: 10.5pt; }
  .quote-lines tr, .quote-totals, .quote-terms { break-inside: avoid; }
}

/* روابط قسم الشركات في الرئيسية */
.b2b-actions { display: grid; gap: 12px; justify-items: start; }
.b2b-actions .link-more { white-space: normal; }

/* الشريط العلوي على الشاشات المتوسطة (آيباد بالعرض ولابتوب صغير): الروابط ما تنكسر على سطرين، خصوصاً بالإنجليزي */
.nav a, .head-actions .lang-link, .cart-btn { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1180px) { .site-head .wrap { gap: 20px; } .nav { gap: 18px; } .head-actions { gap: 14px; } }

/* === 25 نوفمبر (2): ثبات الصفحة لما يوصل الخط === */
/* رابطين جنب بعض ينكسرون على سطرين أو لا حسب الخط، فعلى الجوال كل رابط في سطر من البداية */
@media (max-width: 720px) { .page-head .head-links { flex-direction: column; align-items: flex-start; } }
/* كسر سطر يشتغل على الشاشات الصغيرة فقط */
.br-s { display: none; }
@media (max-width: 480px) { .br-s { display: inline; } }
/* صفحة عرض السعر تنرسم بعد قراءة السلة: نحجز ارتفاعها عشان التذييل ما يتحرك */
.quote-page { min-height: 100vh; }

/* === 25 نوفمبر: الإطلاق النهائي. المالك اعتمد النصوص اللي كانت منقّطة، فتظهر كنص عادي === */
.ph { text-decoration: none !important; }
/* حالة التسجيل في بوابات الموردين لسا فاضية: القسم يختفي لين تتعبّى */
section:has(> .wrap > .portals) { display: none; }
