/* ===== تصميم 29 نوفمبر: الصفحة الرئيسية الجديدة، وتحسينات الرحلة، والوضع الداكن =====
   الفاتح هو الأساس. الداكن يظهر فقط لمن يضغط زر القمر في الشريط العلوي (يُحفظ في الجهاز).
   قواعد الواجهة باقية: كل زر 44 بكسل أو أكثر، 8 بكسل بين الأزرار، مسافات من مضاعفات 4، والخطوط 13/14/16/18/22. */

:root { --ease: cubic-bezier(.22, 1, .36, 1); --tile: #FFFFFF; --soft: #FAF8F3; --on-gold: #1F1F1F; }

/* ---------- الوضع الداكن: ألوان التصميم الثاني ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --page: #141414;
  --surface: #1E1E1E;
  --card: #1E1E1E;
  --tile: #1E1E1E;
  --soft: #191919;
  --ivory: #1A1A1A;
  --gold-soft: #2A2416;
  --line: #2E2E2E;
  --line-strong: #6E695F;
  --engine: #F3EFE6;
  --on-engine: #141414;
  --ink: #F3EFE6;
  --text: #E9E4D9;
  --muted: #A9A398;
  --metal: #8F8A80;
  --gold-text: #E9B53F;
  --ok: #6FBF92;
  --warn: #E0A15F;
  --bad: #F08A7E;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 28px rgba(0, 0, 0, .35);
  --shadow-hi: 0 2px 6px rgba(0, 0, 0, .45), 0 18px 40px rgba(0, 0, 0, .5);
}
html[data-theme="dark"] body { background: var(--page); color: var(--text); }
/* النص فوق الذهبي يبقى داكنًا في الوضعين */
html[data-theme="dark"] :is(.btn.primary, .svc.main .svc-ic, .option.on .svc-ic, .gt.big .gi, .gt .gc, .secard.main .svc-ic) { color: var(--on-gold); }
html[data-theme="dark"] ::selection { color: var(--on-gold); }
/* البطاقات المختارة والبارزة في الداكن: ذهبية بدل البيضاء */
html[data-theme="dark"] :is(.svc.main, .gt.big, .secard.main) { background: #262219; border-color: #4A3D1F; color: var(--engine); }
html[data-theme="dark"] :is(.chip.on, .days.scroll .day.on, .time.on, .tags .g) { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
html[data-theme="dark"] .svc-ic.dark, html[data-theme="dark"] .num, html[data-theme="dark"] .av { background: #2A2A2A; color: var(--gold); }
/* صور المنتجات تبقى على خلفية بيضاء حتى لا تظهر علبة بيضاء على أسود */
html[data-theme="dark"] .pcard .media { background: #fff; }
html[data-theme="dark"] :is(.cline img, .xp img, .trio .b) { mix-blend-mode: normal; background: #fff; border-radius: 10px; }
html[data-theme="dark"] .order-options .gt .gi:has(img) { background: #fff; }
html[data-theme="dark"] .brand img { box-shadow: none; }
.flow .tgroup { background: transparent; border: 0; box-shadow: none; padding: 0; }
.flow .tgroup h3 { margin: 8px 0 10px; }
/* زر الإضافة في بطاقة الصنف داكن مثل زر المتابعة */
.pfoot .btn.primary { background: var(--engine); color: var(--on-engine); border-color: var(--engine); border-radius: 999px; min-height: 52px; }
html[data-theme="dark"] .pfoot .btn.primary { color: var(--on-engine); }
.pfoot .btn.primary[aria-disabled="true"]:hover { background: var(--engine); }

/* الحقول */
html[data-theme="dark"] :is(input, select, textarea) { background: #171717; color: var(--text); border-color: var(--line-strong); }
html[data-theme="dark"] :is(input, textarea)::placeholder { color: #8C877D; }
/* ألوان ثابتة قديمة تحتاج نظيرًا داكنًا */
html[data-theme="dark"] .site-nav [aria-current="page"] { background: var(--gold-soft); color: var(--gold); }
html[data-theme="dark"] :is(.order-lines .cn small, .directory-meta, .rv-phone) { color: var(--muted); }
html[data-theme="dark"] .order-lines .cn .edit-hint { color: var(--gold); }
html[data-theme="dark"] .verify-box { background: #1B1913; border-color: #3A3222; }
html[data-theme="dark"] .rv-calendar { background: #262219; color: var(--text); }
html[data-theme="dark"] .notice-panel { color: var(--text); border-color: var(--line); }
html[data-theme="dark"] .notice-panel header button { color: var(--text); border-color: var(--line); }
html[data-theme="dark"] .notice-panel section > * { border-color: var(--line); }
html[data-theme="dark"] #account-menu { color: var(--text); }
html[data-theme="dark"] .btn.google, html[data-theme="dark"] .btn.social { border-color: #fff; }
html[data-theme="dark"] .alert, html[data-theme="dark"] .err { background: #2A1714; color: #F6C6BE; border-color: #5A2A24; }
html[data-theme="dark"] .ok { color: var(--ok); }
html[data-theme="dark"] .catalog-card:hover, html[data-theme="dark"] .catalog-card:focus-visible { border-color: var(--gold); }
html[data-theme="dark"] .mbar { background: rgba(20, 20, 20, .94); box-shadow: 0 -6px 24px rgba(0, 0, 0, .4); }
html[data-theme="dark"] :is(.option.on, .day.on, .pay.on, .carpick.on, .combo-opt[aria-selected="true"], .combo-opt:hover) { background: #262219; }
html[data-theme="dark"] :is(.s-awaiting_payment, .s-needs_refund) { background: #33241A; }
html[data-theme="dark"] :is(.s-requested, .devcode, .badge.shop) { background: #2E2615; color: #F2D58C; }
html[data-theme="dark"] .rv-symbol { background: #262219; color: var(--gold); }
html[data-theme="dark"] .pay-tamara.off { background: #1A1A1A; border-color: var(--line); }
html[data-theme="dark"] .pay-tamara .tamara-checkout-logo, html[data-theme="dark"] .pay-tamara img { background: #fff; border-radius: 8px; padding: 4px 8px; }
html[data-theme="dark"] .morelist > details[open] { background: #1B1913; border-color: #4A3D1F; box-shadow: none; }
html[data-theme="dark"] .morelist > details[open] > summary { color: var(--gold); border-bottom-color: #3A3222; }
html[data-theme="dark"] .morelist > details[open] > :last-child { border-inline-start-color: var(--gold-deep); }
html[data-theme="dark"] .time:disabled { background: #191919; border-color: #262626; color: #6E6A62; }
html[data-theme="dark"] .top { box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
html[data-theme="dark"] .foot { background: #0E0E0E; }

/* ---------- الشريط العلوي: زر الوضع ---------- */
.theme-toggle { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--engine); cursor: pointer; }
.theme-toggle .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle:hover { background: var(--ivory); }
.top-in > .notice-trigger { margin-inline-start: 8px; }
.top-in > .theme-toggle + .lang { margin-inline-start: 0; }
@media (max-width: 740px) { .top-in > .notice-trigger { margin-inline-start: auto; } .top-in > .lang { margin-inline-start: 0; } }

/* ---------- الصفحة الرئيسية ---------- */
.home2 { padding-bottom: 16px; }
.home2 .hwrap { max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
.home2 .hsec { margin-top: 40px; }
.home2 .hhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.home2 .hhead h2 { font-size: 22px; line-height: 1.35; margin: 0; color: var(--ink); }
.home2 .hhead .link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--gold-text); text-decoration: none; }

/* الصندوق الأصفر */
.promo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 132px; align-items: end; min-height: 196px; margin-top: 16px; padding: 20px 20px 0; border-radius: 24px; overflow: hidden; text-decoration: none; color: #1F1F1F;
  background: linear-gradient(150deg, #F2C55C, #E9B53F 55%, #D9A23A); box-shadow: 0 12px 28px rgba(201, 149, 42, .28); transition: transform .2s var(--ease); }
.promo:active { transform: scale(.98); }
.promo-tx { display: grid; justify-items: start; align-content: start; padding-bottom: 20px; }
.promo .tag { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .55); font-size: 13px; font-weight: 600; }
.promo .tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #2F7D4F; box-shadow: 0 0 0 3px rgba(47, 125, 79, .18); }
.promo h1 { font-size: 22px; line-height: 1.4; margin: 12px 0 16px; color: #1F1F1F; text-wrap: balance; }
.promo .go { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; background: #1F1F1F; color: #fff; font-size: 16px; font-weight: 700; }
.promo .go .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="ltr"] .promo .go .ico, html[dir="ltr"] .hsvc.more .ico { transform: scaleX(-1); }
.promo-img { position: relative; align-self: stretch; }
.promo-img img { position: absolute; bottom: -12px; width: auto; height: 156px; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .25)); }
.promo-img .pb1 { inset-inline-end: 56px; height: 132px; rotate: -8deg; }
.promo-img .pb2 { inset-inline-end: 0; }
html[data-theme="dark"] .promo { box-shadow: 0 12px 32px rgba(233, 181, 63, .16); }

/* ثلاث نقاط ثقة */
.home2 .trust { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.home2 .trust li { display: grid; gap: 4px; align-content: start; padding: 12px; border-radius: 16px; background: var(--tile); border: 1px solid var(--line); }
.home2 .trust b { font-size: 14px; line-height: 1.4; color: var(--ink); }
.home2 .trust small { font-size: 13px; line-height: 1.4; color: var(--muted); }

/* الخدمات */
.hgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hsvc { display: grid; align-content: start; gap: 12px; min-height: 148px; padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--tile); color: var(--ink); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.hsvc:active, .hoil:active, .hbranch .btn:active { transform: scale(.97); }
.hsvc:hover { box-shadow: var(--shadow); }
.hic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-text); flex: none; }
.hic .ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hic.dark { background: #1F1F1F; color: var(--gold); }
.htx { display: grid; gap: 4px; min-width: 0; }
.htx b { font-size: 16px; line-height: 1.4; }
.htx small { font-size: 13px; line-height: 1.4; color: var(--muted); }
.hprice { margin-top: auto; font-size: 14px; color: var(--muted); }
.hprice .price { display: grid; font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.hprice .vat { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.hsvc.feature { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; min-height: 0; background: #1F1F1F; border-color: #1F1F1F; color: #fff; }
.hsvc.feature .hic { background: rgba(233, 181, 63, .16); color: var(--gold); }
.hsvc.feature small, .hsvc.feature .hprice { color: #CFCAC0; }
.hsvc.feature .hprice { margin: 0; font-weight: 600; color: var(--gold); white-space: nowrap; }
.hsvc.more { background: var(--gold-soft); border-color: #F0DDAE; }
.hsvc.more .hic { background: var(--tile); }
html[data-theme="dark"] .hsvc.feature { background: #262219; border-color: #4A3D1F; }
html[data-theme="dark"] .hsvc.more { border-color: #4A3D1F; }

/* شريط الزيوت بالصور الحقيقية */
.hrail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; padding: 4px 20px 16px; scrollbar-width: none; max-width: 1080px; margin-inline: auto; }
.hrail::-webkit-scrollbar { display: none; }
.hoil { flex: 0 0 160px; scroll-snap-align: start; display: grid; align-content: start; gap: 4px; padding: 12px; border-radius: 20px; border: 1px solid var(--line); background: var(--tile); color: var(--ink); text-decoration: none; transition: transform .2s var(--ease); }
.hoil .ph { display: grid; place-items: center; height: 148px; margin-bottom: 4px; border-radius: 12px; background: #fff; overflow: hidden; }
.hoil .ph img { width: auto; height: auto; max-width: 100%; max-height: 136px; object-fit: contain; }
.hoil b { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hoil .g { font-family: 'Sora', var(--font); font-size: 13px; color: var(--muted); justify-self: start; }
.hoil .p { font-size: 13px; color: var(--ink); font-weight: 600; }

/* كيف تحجز: ثلاث خطوات مرقّمة يصلها خط ذهبي */
.how-list { list-style: none; margin: 0; padding: 8px 16px; display: grid; border-radius: 20px; background: var(--tile); border: 1px solid var(--line); }
.how-list li { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.how-list li + li::before { content: ''; position: absolute; inset-inline-start: 17px; top: -12px; height: 24px; width: 2px; background: var(--gold); opacity: .5; }
.how-list .hn { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-weight: 700; flex: none; font-family: 'Sora', var(--font); }
.how-list b { display: block; font-size: 16px; color: var(--ink); }
.how-list small { font-size: 13px; color: var(--muted); }

/* الفرع */
.hbranch { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--tile); }
.hbranch + .hbranch { margin-top: 8px; }
.hbranch .htx b { color: var(--ink); }
.hbranch .btn { margin-inline-start: auto; min-height: 44px; padding: 8px 16px; font-size: 14px; flex: none; }
.hbranch .btn img { width: 18px; height: 18px; }

/* الدعوة الأخيرة */
.final { padding: 32px 20px; border-radius: 28px; text-align: center; color: #fff; background: linear-gradient(160deg, #2A2A2A, #1A1A1A); }
.final h2 { margin: 0; font-size: 22px; color: #fff; }
.final p { margin: 4px 0 16px; color: #CFCAC0; font-size: 16px; }
.final .btn.primary { min-width: 200px; min-height: 52px; border-radius: 16px; font-size: 16px; font-weight: 700; color: var(--on-gold); }
html[data-theme="dark"] .final { background: linear-gradient(160deg, #222, #181818); border: 1px solid var(--line); }

@media (min-width: 900px) {
  .promo { grid-template-columns: minmax(0, 1fr) 260px; min-height: 280px; padding: 40px 40px 0; border-radius: 28px; }
  .promo h1 { font-size: 22px; }
  .promo-img img { height: 250px; }
  .promo-img .pb1 { inset-inline-end: 110px; height: 210px; }
  .hgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hoil { flex-basis: 184px; }
  .how-list { max-width: 640px; }
}

/* ---------- الرحلة: لمسات موحّدة على بطاقات الخدمات والزيوت والسلة والموعد ---------- */
.flow h1, .directory h1 { color: var(--ink); }
:is(.pcard, .gitem, .xs, .option, .day, .time, .pay, .carpick, .cp, .own, .addrow, .directory-row, .catalog-card, .gt) { -webkit-tap-highlight-color: transparent; }
:is(.pcard, .gitem, .xs, .option, .pay, .carpick, .cp, .own, .addrow, .catalog-card, .gt, .secard):active { transform: scale(.98); }
:is(.pcard, .gitem, .xs, .option, .pay, .carpick, .cp, .own, .addrow, .catalog-card, .gt, .secard) { transition: transform .2s var(--ease), border-color .2s, box-shadow .2s, background .2s; }
.directory-row { border-radius: 12px; padding-inline: 8px; }
.directory-row .svc-ic { background: var(--gold-soft); color: var(--gold-text); }
.catalog-card { border-radius: 20px; }
.tgroup, .secard, .lastv { border-radius: 20px; }
.time, .day { border-radius: 14px; }
html[data-theme="dark"] .directory-row:hover { background: var(--surface); }

/* قوائم الخدمات والزيوت: بطاقة واحدة بصفوف، ورسم الصف في مربع ذهبي فاتح، وسهم صغير */
.directory-results { border: 1px solid var(--line); border-radius: 20px; background: var(--tile); padding: 4px 12px; }
.directory-results .directory-row { padding: 12px 4px; min-height: 60px; }
.directory-results .directory-row:last-child { border-bottom: 0; }
.directory-row .svc-ic { width: 40px; height: 40px; border-radius: 12px; }
.directory-row strong { font-size: 16px; font-weight: 600; }
.directory-row::after { content: ''; flex: none; width: 8px; height: 8px; border-left: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); opacity: .6; margin-inline-start: 4px; }
html[dir="ltr"] .directory-row::after { transform: rotate(-135deg); }
.directory-results:has(.empty, .alert) { border: 0; padding: 0; background: none; }
/* «رجوع»: زر صغير واضح بدل رابط */
.catalog-back { gap: 8px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--tile); color: var(--engine); text-decoration: none; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
/* حالة «لا توجد حجوزات» */
.empty-card { display: grid; justify-items: center; gap: 12px; padding: 32px 20px; border: 1px dashed var(--line-strong); border-radius: 20px; background: var(--soft); text-align: center; }
.empty-card p { margin: 0; font-size: 16px; }
/* بطاقات الطلب: نفس شكل بطاقات الرئيسية */
.gt { border-radius: 20px; }
.gt.big { box-shadow: 0 10px 24px rgba(31, 31, 31, .16); }
.gt:not(.big):hover { box-shadow: var(--shadow); }
.list li > a { border-radius: 16px; }

@media (prefers-reduced-motion: reduce) {
  .promo, .hsvc, .hoil, :is(.pcard, .gitem, .xs, .option, .pay, .carpick, .cp, .own, .addrow, .catalog-card, .gt, .secard) { transition: none !important; }
  :is(.promo, .hsvc, .hoil, .pcard, .gitem, .xs, .option, .pay, .carpick, .cp, .own, .addrow, .catalog-card, .gt, .secard):active { transform: none !important; }
}

/* الجوالات الصغيرة: الشعار وحده في الشريط، والصندوق الأصفر يعطي النص مساحة أكبر */
.top .lang { white-space: nowrap; }
.promo .go { white-space: nowrap; }
@media (max-width: 400px) {
  .top .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  body.on-home .top .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .promo { grid-template-columns: minmax(0, 1fr) 96px; padding: 16px 16px 0; }
  .promo-tx { padding-bottom: 16px; }
  .promo .go { padding: 0 16px; }
  .promo-img .pb1 { inset-inline-end: 36px; height: 112px; }
  .promo-img .pb2 { height: 132px; }
  .home2 .hwrap { padding-inline: 16px; }
  .hrail { padding-inline: 16px; scroll-padding-inline: 16px; }
}

/* ---------- الرحلة: نفس لغة الرئيسية (حدود رفيعة بدل الظلال، زوايا 20، رسوم في مربعات ذهبية فاتحة) ---------- */
.stepper { gap: 12px; }
.step-of { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-text); font-size: 13px; font-weight: 600; }
.progress { height: 6px; border-radius: 999px; background: var(--line); }
.progress span { border-radius: 999px; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
html[dir="rtl"] .progress span { background: linear-gradient(270deg, var(--gold-deep), var(--gold)); }

/* بطاقات «طلبك»: النص من البداية مثل بطاقات الرئيسية */
.gt { justify-items: start; text-align: start; padding: 16px; border-radius: 20px; gap: 8px; }
.gt.big { background: #1F1F1F; border-color: #1F1F1F; color: #fff; }
.gt.big small { color: #CFCAC0; }
.gt.big .gi { background: rgba(233, 181, 63, .16); color: var(--gold); }
.gt.big .gi:has(img) { background: #fff; }
html[data-theme="dark"] .gt.big { background: #262219; border-color: #4A3D1F; }

/* بطاقات بحدود رفيعة بدل الظل الثقيل */
:is(.cline, .xp, .tgroup, .pcard) { box-shadow: none; border: 1px solid var(--line); }
.pcard { border-radius: 20px; }
.pcard.on { box-shadow: 0 0 0 2px var(--gold); border-color: var(--gold); }
.tgroup { padding: 16px; }
.cline { border-radius: 16px; }

/* الحقول: أطول قليلًا وزواياها أنعم */
.field input, .field select, .srch { border-radius: 14px; }
.field input, .field select { min-height: 52px; }
.field label, .field > span:first-child { font-weight: 600; }

/* شريط الإجراء السفلي */
.mbar .btn.primary, .actions .btn.primary { border-radius: 14px; font-weight: 700; }
.btn.primary { box-shadow: 0 6px 16px rgba(201, 149, 42, .22); }
.btn.primary:disabled, .btn.primary.notyet { box-shadow: none; }

/* عناوين الصفحات */
.flow > h1, .flow h1:first-of-type { font-size: 22px; line-height: 1.4; font-weight: 700; letter-spacing: 0; }

/* ===== «طلبك» و«أخرى»: صفوف أفقية واضحة بدل المربعات الطويلة (29 نوفمبر، الجولة الثانية) ===== */
.gtiles.order-options { grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 560px) { .gtiles.order-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gtiles.order-options > .gt.big { grid-column: 1 / -1; } }
.order-options .gt, .gtiles.order-options > .gt:last-child:nth-child(odd) {
  grid-column: auto; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; justify-content: stretch; justify-items: stretch;
  gap: 12px; min-height: 80px; padding: 12px 12px 12px 16px; text-align: start; border-radius: 18px; }
html[dir="rtl"] .order-options .gt { padding: 12px 16px 12px 12px; }
.order-options .gt .gi, .gtiles.order-options > .gt:last-child:nth-child(odd) .gi { grid-row: auto; width: 56px; height: 56px; border-radius: 14px; }
.order-options .gt .gi img { width: 48px; height: 48px; object-fit: contain; }
.order-options .gt:has(.gi img) .gi { background: #fff; border: 1px solid var(--line); }
.gtx { display: grid; gap: 2px; min-width: 0; }
.order-options .gt b { font-size: 16px; line-height: 1.4; text-wrap: pretty; }
.order-options .gt small { font-size: 13px; line-height: 1.4; color: var(--muted); }
.gadd { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-text); font-size: 22px; font-weight: 400; line-height: 1; flex: none; }
.gadd .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="ltr"] .gadd .ico { transform: scaleX(-1); }
.order-options .gt .gc { position: static; width: 40px; height: 40px; min-width: 40px; border-radius: 50%; padding: 0; font-size: 16px; background: var(--gold); color: var(--on-gold); }
.order-options .gt.has { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); background: var(--gold-soft); }

/* بطاقة الزيت: نفس الصندوق الأصفر في الرئيسية */
.order-options .gt.big { position: relative; overflow: hidden; grid-template-columns: minmax(0, 1fr) auto; min-height: 132px; padding: 20px; border: 0; color: #1F1F1F;
  background: linear-gradient(150deg, #F2C55C, #E9B53F 55%, #D9A23A); box-shadow: 0 10px 24px rgba(201, 149, 42, .25); }
.order-options .gt.big .gi { position: absolute; inset-block-end: -8px; inset-inline-end: 64px; width: 96px; height: 120px; background: none !important; border: 0 !important; }
.order-options .gt.big .gi img { width: 96px; height: 120px; mix-blend-mode: multiply; }
.order-options .gt.big .gi .ico { width: 56px; height: 56px; color: #1F1F1F; opacity: .3; }
.order-options .gt.big .gtx { grid-column: 1; grid-row: 1; padding-inline-end: 112px; }
.order-options .gt.big b { font-size: 22px; color: #1F1F1F; }
.order-options .gt.big small { font-size: 14px; color: #4A3A12; }
.order-options .gt.big .gadd, .order-options .gt.big .gc { grid-column: 2; grid-row: 1; width: 44px; height: 44px; background: #1F1F1F; color: #fff; }
.order-options .gt.big .gc { color: var(--gold); }
html[data-theme="dark"] .order-options .gt.big { background: linear-gradient(150deg, #F2C55C, #E9B53F 55%, #D9A23A); border: 0; }
html[data-theme="dark"] .order-options .gt.has:not(.big) { background: #262219; }

/* «أخرى»: أقسام في عمود واحد، بصورة أو رسم أكبر وسهم */
.morelist { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.morelist > details, .morelist > .gt { border-radius: 18px; background: var(--tile); }
.morelist summary { min-height: 72px; gap: 12px; padding: 12px 16px; font-size: 16px; }
.morelist .gi { width: 48px; height: 48px; border-radius: 12px; }
.morelist .gi img { width: 42px; height: 42px; background: #fff; border-radius: 8px; }
.morelist .gi:has(img) { background: #fff; border: 1px solid var(--line); }
.morelist .gi .ico { width: 24px; height: 24px; }
.morelist summary::after { width: 8px; height: 8px; border-width: 0 2px 2px 0; }
@media (min-width: 560px) { .morelist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* درجات الزيت: صفوف بطاقات بدل سطور نص */
.product-groups { display: grid; gap: 8px; }
.product-groups > .product-group { border: 1px solid var(--line); border-radius: 18px; background: var(--tile); border-bottom: 1px solid var(--line); }
.product-groups > .product-group > summary { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 16px; list-style: none; cursor: pointer; }
.product-groups > .product-group > summary::-webkit-details-marker { display: none; }
.product-groups .pg-name { font-family: 'Sora', var(--font); font-size: 18px; font-weight: 700; color: var(--ink); }
.product-groups .pg-count { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-text); font-size: 13px; font-weight: 700; margin-inline-start: 0 !important; }
.product-groups > .product-group > summary::after { content: ''; flex: none; width: 8px; height: 8px; margin-inline-start: auto; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.product-groups > .product-group[open] > summary::after { transform: rotate(225deg); }
.product-groups > .product-group[open] { border-color: var(--gold); }
.product-groups > .product-group[open] > .pgrid { padding: 0 12px 12px; margin: 0 !important; }

/* ما في الطلب: بطاقة واحدة بعنوان */
.order-lines { border: 1px solid var(--line); border-radius: 18px; padding: 4px 16px; background: var(--tile); border-block: 1px solid var(--line); }
.order-lines .cline:last-of-type { border-bottom: 0; }
.order-lines .order-add-filter { margin: 4px 0 12px; }

/* ---------- رحلة الحجز بأسلوب تطبيقات الحجز الاحترافية (29 نوفمبر) ----------
   خلفية هادئة وبطاقات بيضاء، شريط خطوات من قطع، عنوان كبير، شريط سفلي أبيض بزر داكن،
   والشريط السفلي للتنقل يختفي أثناء الحجز ليبقى العميل في خطوته. */
:root { --flow-bg: #F5F3EE; }
html[data-theme="dark"] { --flow-bg: var(--page); }
body:has(.flow > .stepper) { background: var(--flow-bg); }
body:has(.flow > .stepper) .top { background: var(--flow-bg); }
.flow > .stepper { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 4px; }
.flow > .stepper .step-of { display: block; min-height: 0; padding: 0; background: none; border-radius: 0; font-size: var(--t-small); font-weight: 500; color: var(--muted); }
.progress.segs { display: flex; gap: 4px; height: 4px; background: transparent; border-radius: 0; overflow: visible; }
.progress.segs i { flex: 1; border-radius: 4px; background: var(--line); }
.progress.segs i.on { background: var(--gold); }
.flow > h2 { font-size: 1.75rem; font-weight: 700; line-height: 1.35; margin: 18px 0 14px; letter-spacing: -.2px; }

/* البطاقات: بيضاء بلا إطار ظاهر، وعند الاختيار إطار ذهبي */
.flow :is(.option, .time, .pay, .carpick) { border: 2px solid transparent; background: var(--surface); box-shadow: 0 1px 2px rgba(31, 31, 31, .05); }
.flow .days.scroll .day { border: 1.5px solid var(--line); background: var(--surface); }
.flow :is(.option, .time, .pay, .carpick).on { border-color: var(--gold); background: var(--surface); box-shadow: 0 6px 20px rgba(233, 181, 63, .2); }
.flow .days.scroll .day.on { background: var(--engine); border-color: var(--engine); }
.flow .time { min-height: 52px; border-radius: 14px; font-weight: 600; }
html[data-theme="dark"] .flow :is(.option, .time, .pay, .carpick).on { box-shadow: 0 0 0 1px var(--gold); }

/* طلبك: البنود في بطاقة واحدة، والخيارات بطاقات بيضاء */
.flow .order-lines { background: var(--surface); border: 0; border-radius: 18px; padding: 4px 16px; box-shadow: 0 1px 2px rgba(31, 31, 31, .05); }
.flow .gt:not(.big) { background: var(--surface); border-color: transparent; box-shadow: 0 1px 2px rgba(31, 31, 31, .05); }
.flow .picker-back { border-radius: 999px; padding-inline: 14px; }

.flow .tgroup { background: transparent; border: 0; box-shadow: none; padding: 0; }
.flow .tgroup h3 { margin: 8px 0 10px; }
/* زر الإضافة في بطاقة الصنف داكن مثل زر المتابعة */
.pfoot .btn.primary { background: var(--engine); color: var(--on-engine); border-color: var(--engine); border-radius: 999px; min-height: 52px; }
html[data-theme="dark"] .pfoot .btn.primary { color: var(--on-engine); }
.pfoot .btn.primary[aria-disabled="true"]:hover { background: var(--engine); }

/* الحقول */
.flow :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { background: var(--surface); border-radius: 14px; }

/* الشريط السفلي: أبيض، المجموع واضح، والزر داكن مستدير */
.mbar { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 -8px 24px rgba(31, 31, 31, .06); padding-top: 14px; }
.mbar .mt b { font-size: 1.25rem; font-weight: 700; }
.mbar .btn.primary { background: var(--engine); color: var(--on-engine); border-color: var(--engine); border-radius: 999px; min-height: 52px; padding: 12px 28px; font-weight: 600; }
.mbar .btn.primary:hover { background: var(--ink); }
html[data-theme="dark"] .mbar .btn.primary { color: var(--on-engine); }
.mbar .mback { border-radius: 50%; width: 48px; height: 48px; padding: 0; display: grid; place-items: center; }

@media (max-width: 740px) {
  html:has(.flow > .stepper) { --site-nav-height: 0px; }
  body:has(.flow > .stepper) .top .site-nav { display: none; }
}
html[data-theme="dark"] .flow .order-options .gt.big .gc { color: #E9B53F; background: #1F1F1F; }

/* صفحات أخف: المراجعة سطر واحد للسيارة، والدفع مربع موافقة مع ملخص يفتح عند الطلب */
.rv-detail .rv-sub { display: block; color: var(--muted); font-size: var(--t-small); margin-top: 2px; }
.policy { display: grid; gap: 0; margin-top: 16px; padding: 8px 16px; }
.policy .check { font-weight: 500; }
.policy-more summary { cursor: pointer; color: var(--muted); font-size: var(--t-small); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: flex; align-items: center; list-style: none; }
.policy-more summary::-webkit-details-marker { display: none; }
.policy-more p { margin: 0 0 6px; }
