/* صفحات التسوّق: المتجر، الصنف، السلة، الدفع، المشاهير */

/* ---- صفحة المتجر (service.dart) ------------------------------------------ */

.store-slider { margin: 10px; }
.store-slider .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.store-slider .track::-webkit-scrollbar { display: none; }
.store-slider .slide { flex: 0 0 100%; height: 150px; border-radius: 20px; overflow: hidden; position: relative; scroll-snap-align: center; cursor: pointer; background: var(--g200); }
.store-slider .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-slider .cap { position: absolute; left: 16px; right: 16px; text-align: center; color: #fff; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.store-slider .cap.top { top: 10px; } .store-slider .cap.center { top: 50%; transform: translateY(-50%); } .store-slider .cap.bottom { bottom: 10px; }

/* buildImageTalabCat: بطاقة بيضاء بظل، صورة 180×100 ثم الاسم — والقسم
   الظاهر حالياً بإطار أزرق ناعم */
.store-cats { padding: 15px 10px 5px; gap: 10px; }
.cat-card { width: 180px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-tile); margin-bottom: 10px; overflow: hidden; text-align: center; padding-bottom: 8px; position: relative; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.cat-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--primary); opacity: 0; transition: opacity .3s; pointer-events: none; }
.cat-card.active::after { opacity: 1; }
.cat-card.active span { color: var(--primary); }
.cat-card:active { transform: scale(.96); }
.cat-card img { width: 180px; height: 100px; object-fit: cover; display: block; }
.cat-card span { display: block; font-weight: 700; margin-top: 12px; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }

/* ---- المنيو: أقسام متتالية وبطاقة الصنف (2026-11-23، لقطة مرجعية) -------- */

.menu-list { padding: 4px 0 calc(96px + var(--safe-b)); }
.menu-sec { padding: 0 14px; }
.menu-sec-title { display: flex; align-items: center; gap: 8px; margin: 18px 2px 12px; font-size: 19px; font-weight: 700; color: #111; line-height: 1.3; }
.menu-sec-title::before { content: ""; width: 4px; height: 20px; border-radius: 4px; background: linear-gradient(180deg, #38BDFF, var(--primary)); flex: none; }
.menu-sec-title small { font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-10); border-radius: 999px; padding: 1px 9px; }

.mcard {
  display: flex; align-items: stretch;
  background: #fff; border: 1px solid #E7E9EE; border-radius: 16px;
  overflow: hidden; margin-bottom: 16px; cursor: pointer;
  min-height: 152px; position: relative;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s;
  -webkit-user-select: none; user-select: none;
}
/* البطاقة تنضغط فقط حين يكون النقر عليها نفسها (يفتح التفاصيل)، لا على الصورة أو زر السعر */
.mcard:active:not(:has(button:active)) { transform: scale(.985); }
@media (hover: hover) {
  .mcard:hover { box-shadow: 0 12px 28px -14px rgba(16, 42, 84, .28); border-color: #DCE3EC; }
  .mc-img:hover img { transform: scale(1.05); }
  .mc-img:hover .mc-zoom { opacity: 1; transform: none; }
  .mc-price:hover { background: var(--primary-10); }
}
.mcard:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.mc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 18px 18px 16px; }
.mc-body > :nth-last-child(2) { margin-bottom: 16px; } /* ما قبل زر السعر */
.mc-name { font-size: 17px; font-weight: 700; color: #111; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-desc {
  margin-top: 12px; font-size: 14.5px; line-height: 1.75; color: #8E939B;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: anywhere;
}
.mc-price {
  margin-top: auto; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; flex: none;
  border: 1.6px solid var(--primary); border-radius: 11px;
  color: var(--primary); font-size: 15px; width: 100%;
  transition: background .25s, transform .15s;
}
.mc-price:active { transform: scale(.96); background: var(--primary-10); }
.mc-price:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.mc-price b { font-weight: 600; white-space: nowrap; position: relative; }
.mc-price s { font-size: 12.5px; color: #A3A8B0; position: relative; }

/* تمت الإضافة: موجة زرقاء تملأ الزر ثم تتلاشى */
.mc-price::before {
  content: ""; position: absolute; inset: -2px;
  background: linear-gradient(135deg, #22B0FF, var(--primary) 55%, #0B6CF0);
  transform: scaleX(0); transform-origin: right;
}
[dir="ltr"] .mc-price::before { transform-origin: left; }
.mcard.added .mc-price::before { animation: mcFill 1.05s cubic-bezier(.65,0,.35,1); }
.mcard.added .mc-price b, .mcard.added .mc-price s { animation: mcInk 1.05s steps(1, end); }
@keyframes mcFill { 0% { transform: scaleX(0); } 35%, 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes mcInk { 0% { color: var(--primary); } 15%, 85% { color: #fff; } }

.mc-img { flex: none; display: block; width: 46%; max-width: 260px; min-height: 152px; position: relative; overflow: hidden; background: var(--g200); cursor: zoom-in; }
.mc-img:focus-visible { outline: 2px solid var(--primary); outline-offset: -4px; }
.mc-zoom {
  position: absolute; top: 10px; inset-inline-start: 10px; z-index: 1;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .32); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: .85; transition: opacity .25s, transform .25s;
}
.mc-zoom .mi { font-size: 16px; }
.mc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .3s, transform .6s cubic-bezier(.2,.8,.2,1); }
.mc-off { position: absolute; top: 10px; inset-inline-end: 10px; background: #E5484D; color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 9px; box-shadow: 0 4px 10px -4px rgba(229,72,77,.7); direction: ltr; }
.mc-count {
  position: absolute; bottom: 10px; inset-inline-end: 10px;
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px;
  background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; line-height: 28px; text-align: center;
  box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 6px 14px -4px rgba(4,161,253,.8);
  animation: mcPop .45s cubic-bezier(.3,1.6,.5,1);
}
.mc-count[hidden] { display: none; }
@keyframes mcPop { from { transform: scale(.3); opacity: 0; } }

/* دخول البطاقات حين تظهر على الشاشة */
.menu-list.reveal .mcard { opacity: 0; transform: translateY(22px) scale(.985); }
.menu-list.reveal .mcard.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .65s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s; }
.menu-list.reveal .mcard.in:active:not(:has(button:active)) { transform: scale(.985); transition-duration: .15s; }

/* ---- عارض الصورة بملء الشاشة (components/imageviewer.js) ----------------- */
.iv { position: fixed; inset: 0; z-index: 120; touch-action: none; -webkit-user-select: none; user-select: none; }
.iv.zoomed { touch-action: pan-x pan-y; }
.iv-bg { position: absolute; inset: 0; background: rgba(8, 10, 14, .94); }
.iv-pan { position: absolute; inset: 0; overflow: hidden; scrollbar-width: none; }
.iv.zoomed .iv-pan { overflow: auto; -webkit-overflow-scrolling: touch; }
.iv-pan::-webkit-scrollbar { display: none; }
.iv-canvas { position: relative; }
.iv-img { position: absolute; display: block; object-fit: cover; border-radius: 4px; max-width: none; opacity: 0; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.iv.loaded .iv-img { opacity: 1; }
.iv.can-zoom .iv-img { cursor: zoom-in; }
.iv.zoomed .iv-img { cursor: zoom-out; border-radius: 0; }
.iv-close {
  position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); inset-inline-end: 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .14); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .2s, opacity .2s;
}
.iv-close:active { background: rgba(255, 255, 255, .28); }
.iv-hint {
  position: absolute; bottom: calc(18px + var(--safe-b)); left: 50%; transform: translateX(-50%); z-index: 2;
  display: none; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; color: #fff;
  background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: ivHint 3.2s ease .5s both;
}
.iv.can-zoom .iv-hint { display: inline-flex; }
.iv-hint .mi { font-size: 16px; }
@keyframes ivHint { 0% { opacity: 0; transform: translate(-50%, 8px); } 12%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
.iv-spin { position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #fff; animation: spin .8s linear infinite; }
.iv.loaded .iv-spin, .iv.zoomed .iv-hint { display: none; }
.iv.dragging .iv-close, .iv.dragging .iv-hint, .iv.closing .iv-close, .iv.closing .iv-hint { opacity: 0; }

/* صورة الصنف الطائرة إلى زر السلة */
.fly-ghost { position: fixed; z-index: 90; object-fit: cover; pointer-events: none; border-radius: 14px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); will-change: transform; }

@media (min-width: 560px) {
  .mcard, .mc-img { min-height: 170px; }
}

/* ---- شريط الأقسام العائم -------------------------------------------------
   مختبئ تحت شريط التطبيق، ويخرج منه بنابض حين تختفي بطاقات الأقسام. زجاجي
   بضبابية، وكبسولة زرقاء تنزلق إلى القسم الظاهر وتتبعه أثناء التمرير. */
.cat-dock {
  position: fixed; top: var(--dock-top, 68px); left: 50%; z-index: 19;
  width: 100%; max-width: var(--maxw);
  transform: translate(-50%, -115%); opacity: 0; pointer-events: none;
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: blur(16px) saturate(1.7); backdrop-filter: blur(16px) saturate(1.7);
  border-bottom: 1px solid rgba(15, 30, 60, .06);
  box-shadow: 0 10px 26px -16px rgba(16, 42, 84, .45);
  transition: transform .55s cubic-bezier(.2, 1.25, .35, 1), opacity .3s ease;
}
.cat-dock.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.cd-track {
  position: relative; display: flex; gap: 6px; padding: 9px 12px;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.cd-track::-webkit-scrollbar { display: none; }
.cd-ink {
  position: absolute; top: 9px; left: 0; height: 40px; width: 0;
  border-radius: 999px; z-index: 0; pointer-events: none;
  background: linear-gradient(135deg, #2BB5FF, var(--primary) 50%, #0B6CF0);
  box-shadow: 0 8px 18px -8px rgba(4, 161, 253, .9), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .5s cubic-bezier(.3, 1.35, .45, 1), width .5s cubic-bezier(.3, 1.35, .45, 1);
}
.cd-chip {
  position: relative; z-index: 1; flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding-inline: 5px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #3A4049; white-space: nowrap;
  opacity: 0; transform: translateY(-10px);
  transition: color .35s, opacity .2s, transform .2s;
}
.cat-dock.show .cd-chip { opacity: 1; transform: none; transition: color .35s, opacity .4s ease calc(var(--k) * 40ms + 120ms), transform .5s cubic-bezier(.2,1.3,.4,1) calc(var(--k) * 40ms + 120ms); }
.cd-chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--g200); box-shadow: 0 0 0 2px #fff; flex: none; }
.cd-chip.active { color: #fff; }

/* ---- تفاصيل الصنف (items.dart) ------------------------------------------- */

.item-info { margin: 10px 10px 0; }
.item-title { font-size: 20px; color: var(--primary); font-weight: 400; }
.item-price { font-size: 20px; color: var(--primary); }
.item-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 20px; font-size: 16px; }
.item-meta .mi { color: var(--primary); }
.item-meta .mi + span { margin-inline-end: 8px; }
.item-desc { margin-top: 20px; font-size: 16px; line-height: 1.875; white-space: pre-line; } /* ارتفاع سطر Cairo في فلاتر */
.low-stock { color: var(--primary); font-weight: 700; margin-top: 20px; }
.item-info .card { margin-top: 10px; }
.qty-line { display: flex; align-items: center; gap: 10px; margin: 40px 0 20px; }
.qty-box { border: 1px solid #000; padding: 0 20px; margin-inline-end: 20px; }
.bottom-bar .bar-icon { position: relative; display: inline-flex; }
.bottom-bar .bar-icon .count { position: absolute; top: -10px; inset-inline-end: -16px; }

/* ---- الشراء: السلة ← طريقة الاستلام ← راجع طلبك ← نجاح الطلب ----------------
   تصميم 2026-10-19 (نفس lib/apps/users/components/services/cartui.dart):
   بطاقات بيضاء بإطار رمادي فاتح، أزرق #0B6CF0، خلفية #F5F7FB. -------------- */

:root {
  --co-blue: #0B6CF0; --co-soft: #EAF2FF; --co-mid: #D6E5FC; --co-bg: #F5F7FB;
  --co-text: #111827; --co-muted: #6B7280; --co-hint: #9CA3AF; --co-border: #E8ECF2; --co-green: #22A55B;
}
.cart-page, .checkout-page { background: var(--co-bg); }
.cart-page { padding-bottom: calc(190px + var(--safe-b)) !important; }
.checkout-page .appbar { background: var(--co-bg); }

.co-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 8px; background: var(--co-bg); }
.co-bar h1 { margin: 0; font-size: 21px; font-weight: 700; color: var(--co-text); }
.co-ic { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--co-blue); }
.co-ic .mi { font-size: 28px; }
.co-ic:active { background: var(--co-soft); }
.co-ic.ghost { visibility: hidden; }
.co-wrap { padding: 4px 16px 20px; display: grid; gap: 14px; }
.co-card { background: #fff; border: 1px solid var(--co-border); border-radius: 20px; padding: 16px; box-shadow: 0 4px 12px rgba(0,0,0,.025); }
.co-cur { font-size: .72em; font-weight: 500; }

/* الصنف */
.co-item { display: flex; align-items: center; gap: 14px; }
.co-item + .co-item { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--co-border); }
.co-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.co-name { font-size: 17px; font-weight: 700; color: var(--co-text); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-sub { font-size: 13px; color: var(--co-muted); }
.co-adds { font-size: 12px; color: var(--co-muted); white-space: normal; }
.co-price { margin: 8px 0 10px; color: var(--co-blue); font-size: 21px; font-weight: 700; }
.co-thumb { flex: none; }
.co-thumb img { width: 124px; height: 124px; border-radius: 16px; object-fit: cover; display: block; background: var(--co-bg); }
.co-thumb.sm img { width: 104px; height: 104px; }
.co-chip { padding: 1px 10px; border-radius: 8px; background: var(--co-soft); color: var(--co-blue); font-size: 12px; font-weight: 700; }
.chip.celeb { background: linear-gradient(135deg, rgba(123,47,247,.1), rgba(241,7,163,.1)); color: #7B2FF7; width: fit-content; margin-top: 4px; }
.co-stepper { display: inline-flex; align-items: center; padding: 5px; border-radius: 30px; background: var(--co-soft); }
.co-stepper button { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--co-mid); color: var(--co-blue); }
.co-stepper button.plus { background: var(--co-blue); color: #fff; }
.co-stepper b { width: 42px; text-align: center; font-size: 18px; color: var(--co-text); }
.co-actions { display: flex; gap: 10px; }
.co-actions button { width: 42px; height: 42px; border-radius: 12px; background: var(--co-bg); color: var(--co-blue); display: inline-flex; align-items: center; justify-content: center; }
.co-actions button.red { color: #FF5252; }

/* الكوبون والملاحظة والإكرامية */
.co-coupon { display: flex; gap: 12px; }
.co-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 12px; background: #fff; border: 1.2px solid var(--co-border); border-radius: 14px; }
.co-field:focus-within { border-color: var(--co-blue); }
.co-field .mi { color: var(--co-muted); }
.co-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--co-text); }
.co-field input::placeholder { color: var(--co-hint); }
.co-apply { flex: none; width: 108px; height: 54px; border-radius: 14px; background: var(--co-blue); color: #fff; font-size: 16px; font-weight: 700; }
.co-applied { display: flex; align-items: center; gap: 8px; color: var(--co-green); font-weight: 600; }
.co-applied button { color: var(--co-blue); font-weight: 600; padding: 6px; }
.co-tips-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--co-text); }
.co-tips-head .mi { color: var(--co-blue); }
.co-tips-head small { color: var(--co-muted); font-weight: 400; }
.co-tips-note { margin: 4px 0 12px; color: var(--co-muted); font-size: 12px; line-height: 1.6; }
.co-tips { display: flex; gap: 8px; }
.co-tip { flex: 1; padding: 10px 0; border-radius: 12px; background: #fff; border: 1.2px solid var(--co-border); color: var(--co-text); font-weight: 700; }
.co-tip.on { background: var(--co-blue); border-color: var(--co-blue); color: #fff; }

/* ملخص الطلب */
.co-sum h3, .co-card > h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; color: var(--co-text); }
.co-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 15px; color: var(--co-muted); }
.co-row b { color: var(--co-text); font-size: 16px; font-weight: 600; white-space: nowrap; }
.co-row.green, .co-row.green b { color: var(--co-green); }
.co-row.total { color: var(--co-text); font-size: 17px; font-weight: 700; }
.co-row.total b { font-size: 19px; font-weight: 700; }
.co-row.total.soft { margin-top: 4px; padding: 10px 14px; border-radius: 12px; background: var(--co-soft); }
.co-sum hr { border: 0; border-top: 1px solid var(--co-border); margin: 8px 0; }
.co-banner { margin-top: 14px; padding: 16px 20px; border-radius: 16px; background: var(--co-blue); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 16px; font-weight: 700; }
.co-banner b { font-size: 24px; white-space: nowrap; }
.co-note { margin: 10px 0 0; color: var(--orange); font-size: 13px; display: flex; align-items: center; gap: 4px; }
.co-empty-link { display: block; text-align: center; color: var(--g500); font-weight: 600; padding: 4px 0 8px; }

/* أزرار الدفع أسفل الشاشة */
.co-pay {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--maxw); z-index: 30;
  display: grid; gap: 10px; padding: 16px 16px calc(12px + var(--safe-b));
  background: #fff; border-radius: 28px 28px 0 0; box-shadow: 0 -4px 16px rgba(0,0,0,.06);
}
.co-pay:empty { display: none; }
.co-pay-row { display: flex; gap: 10px; }
.co-btn { flex: 1; width: 100%; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; font-weight: 700; }
.co-btn.primary { height: 58px; font-size: 17px; background: var(--co-blue); color: #fff; }
.co-btn.soft { background: var(--co-soft); color: var(--co-blue); }
.co-btn.outline { background: #fff; color: var(--co-text); border: 1.5px solid var(--co-border); }
.co-btn .sep { width: 1.2px; height: 24px; background: rgba(255,255,255,.55); }
.co-btn:disabled { opacity: .6; }

/* خطوات الشراء */
.co-steps-bar { display: flex; align-items: center; gap: 4px; padding: 8px 16px 4px 4px; }
.co-steps { flex: 1; display: flex; align-items: flex-start; }
.co-step { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: var(--co-muted); white-space: nowrap; }
.co-step i { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--co-border); background: #fff; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; color: var(--co-hint); }
.co-step i .mi { font-size: 20px; }
.co-step.done i, .co-step.on i { background: var(--co-blue); border-color: var(--co-blue); color: #fff; }
.co-step.on { color: var(--co-text); font-weight: 700; }
.co-line { flex: 1; height: 2px; margin-top: 17px; background: var(--co-border); }
.co-line.on { background: var(--co-blue); }
.co-title { margin: 6px 0 0; font-size: 28px; font-weight: 700; color: var(--co-text); line-height: 1.4; }
.co-lead { margin: 0 0 4px; font-size: 15px; color: var(--co-muted); }

/* راجع طلبك */
.review-screen { position: fixed; inset: 0; z-index: 80; overflow-y: auto; background: var(--co-bg); padding-bottom: calc(96px + var(--safe-b)); }
.review-screen .inner { max-width: var(--maxw); margin: 0 auto; }
.review-screen .co-pay { background: var(--co-bg); box-shadow: none; border-radius: 0; padding-top: 8px; }
.co-info-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; }
.co-info-row + .co-info-row { border-top: 1px solid var(--co-border); }
.co-info-row .grow { display: flex; flex-direction: column; }
.co-info-row .grow b { font-size: 16px; color: var(--co-text); }
.co-info-row .grow span { font-size: 15px; color: var(--co-text); }
.co-info-row .grow small { font-size: 14px; color: var(--co-muted); }
.co-circle { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--co-soft); color: var(--co-blue); display: flex; align-items: center; justify-content: center; }
.co-circle.sm { width: 46px; height: 46px; }
.co-edit { flex: none; display: inline-flex; align-items: center; gap: 2px; padding: 6px; color: var(--co-blue); font-weight: 600; font-size: 15px; }
.co-paytile { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: var(--co-soft); }
.co-paytile .grow b { display: block; font-size: 16px; color: var(--co-text); }
.co-paytile .grow small { color: var(--co-muted); font-size: 13px; }
.co-paybadge { flex: none; width: 52px; height: 40px; border-radius: 8px; background: var(--co-blue); color: #fff; display: flex; align-items: center; justify-content: center; }

/* نجاح الطلب */
.success-page { background: #fff; }
.co-done { padding: 12px 20px 24px; }
.co-hero { position: relative; height: 240px; display: flex; align-items: center; justify-content: center; }
.co-hero > * { position: absolute; }
.co-hero .disc { width: 220px; height: 220px; border-radius: 50%; background: var(--co-soft); }
.co-hero .handle { width: 56px; height: 40px; border: 6px solid var(--co-mid); border-bottom: 0; border-radius: 28px 28px 0 0; transform: translateY(-84px); }
.co-hero .bag { width: 120px; height: 140px; border-radius: 18px; background: #fff; box-shadow: 0 10px 24px rgba(11,108,240,.15); display: flex; align-items: center; justify-content: center; }
.co-hero .bag i { width: 58px; height: 58px; border-radius: 50%; background: var(--co-blue); color: #fff; display: flex; align-items: center; justify-content: center; }
.co-hero .bag i .mi { font-size: 30px; }
.co-hero .check { width: 74px; height: 74px; border-radius: 50%; background: var(--co-green); border: 4px solid #fff; color: #fff; display: flex; align-items: center; justify-content: center; transform: translate(58px, 58px); }
.co-hero .check .mi { font-size: 42px; }
.co-hero .spark { width: 5px; height: 22px; border-radius: 4px; background: rgba(34,165,91,.75); }
.co-hero .s1 { transform: translate(-78px, -96px) rotate(-.5rad); }
.co-hero .s2 { transform: translate(78px, -96px) rotate(.5rad); }
.co-hero .s3 { transform: translate(-108px, -46px) rotate(-1.1rad); }
.co-hero .s4 { transform: translate(108px, -46px) rotate(1.1rad); }
.co-hero.fail .disc { background: #FFF4E5; }
.co-hero.fail .check { background: var(--orange); }
.co-done-title { margin: 20px 0 4px; text-align: center; font-size: 27px; font-weight: 700; color: var(--co-blue); }
.co-hero.fail + .co-done-title { color: var(--co-text); }
.co-done-lead { margin: 0 0 24px; text-align: center; font-size: 16px; color: var(--co-muted); }
.co-kv { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.co-kv + .co-kv { border-top: 1px solid var(--co-border); }
.co-kv .grow { font-size: 15px; color: var(--co-text); }
.co-kv b { font-size: 16px; color: var(--co-text); white-space: nowrap; }
.co-kv b.blue { color: var(--co-blue); font-size: 19px; }
.co-done .co-card { padding: 4px 18px; }
.co-done .co-btn.primary { margin-top: 28px; padding: 0 20px; justify-content: space-between; }
.co-done .co-btn.primary span.grow { text-align: center; font-size: 18px; }
.co-home { display: block; width: 100%; margin-top: 10px; padding: 10px; color: var(--co-blue); font-size: 17px; font-weight: 700; }

.sheet-title { font-size: 17px; font-weight: 700; text-align: center; margin-bottom: 10px; }
.center { text-align: center; }

/* ---- طريقة الاستلام (checkout.dart) -------------------------------------- */

.checkout-page { background: var(--g50); }
.checkout-page .appbar { background: var(--g50); }
.pay-chosen { margin: 8px 20px 0; padding: 8px 12px; border-radius: 10px; background: var(--primary-10); color: var(--primary); display: flex; align-items: center; gap: 6px; font-size: 13px; }
.ways-title { font-size: 18px; font-weight: 700; color: rgba(0,0,0,.87); padding: 20px 20px 10px; }
.ways-filter { padding: 5px 20px; gap: 15px; }
.way-filter { width: 110px; height: 110px; border-radius: 16px; background: #fff; border: 1px solid var(--g200); box-shadow: 0 4px 10px rgba(0,0,0,.03); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: rgba(0,0,0,.54); transition: all .3s; }
.way-filter .av img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; display: block; }
.way-filter.on { background: var(--primary-10); border: 2px solid var(--primary); color: var(--primary); font-weight: 700; box-shadow: none; }
.ways-current { text-align: center; padding: 15px 0; color: var(--primary); font-size: 16px; font-weight: 600; }
.ways-list { padding: 0 16px 30px; display: grid; gap: 12px; }
.way-card { display: flex; align-items: center; gap: 16px; padding: 12px; background: #fff; border-radius: 16px; box-shadow: 0 5px 15px rgba(0,0,0,.04); text-align: start; width: 100%; }
.way-card .wimg img { width: 70px; height: 70px; border-radius: 12px; object-fit: cover; display: block; background: var(--g100); }
.way-card b { font-size: 16px; color: rgba(0,0,0,.87); }
.way-card .muted { color: var(--g400); }

.map-picker { position: fixed; inset: 0; z-index: 90; background: #fff; display: flex; flex-direction: column; }
.map-picker .map-box { flex: 1; }
.map-picker .map-hint { position: absolute; top: 66px; left: 12px; right: 12px; z-index: 500; background: rgba(255,255,255,.95); padding: 8px 12px; border-radius: 10px; font-size: 13px; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.map-picker .bottom-bar { position: static; transform: none; max-width: none; font-size: 20px; }

/* ---- الفاتورة (invoiceorders.dart) --------------------------------------- */

.invoice { padding: 0 16px 24px; }
.inv-ok { text-align: center; padding: 16px 0 6px; }
.inv-ok .mi { font-size: 64px; color: var(--green); }
.inv-ok h2 { font-size: 18px; }
.inv-title { font-size: 16px; font-weight: 700; margin: 14px 0 8px; color: var(--primary); }
.inv-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.inv-table th { background: var(--primary); color: #fff; padding: 8px; font-weight: 600; }
.inv-table td { border: 1px solid var(--g300); padding: 8px; vertical-align: top; }
.inv-table td.c { text-align: center; }
.inv-table td.pre { white-space: pre-line; font-size: 12px; color: var(--g600); }
.inv-disc { color: var(--green); margin-top: 12px; font-weight: 600; }
.inv-total { color: var(--primary); font-weight: 700; font-size: 17px; margin-top: 8px; }
.inv-actions { display: grid; gap: 10px; margin-top: 20px; }
.btn-outline.block { width: 100%; justify-content: center; height: 44px; }
.pay-return .mi { color: var(--green); }
.pay-return h2 { font-size: 18px; color: var(--text); }

/* ---- المشاهير للزبون (celebrity.dart / celebrities.dart) ------------------
   هوية «النجمة»: بنفسجي #7B2FF7 → وردي #F107A3، ذهبي #FFC83D، خلفية #F6F7FB */

.celeb-page { --cp: #7B2FF7; --ck: #F107A3; --cg: #FFC83D; --ci: #1E1A2E; --cgrad: linear-gradient(135deg, #7B2FF7, #F107A3); background: #F6F7FB; }
[dir="rtl"] .celeb-page { --cgrad: linear-gradient(225deg, #7B2FF7, #F107A3); }
.celeb-fab { background: var(--cgrad, linear-gradient(135deg, #7B2FF7, #F107A3)); }

.celeb-hero { position: relative; height: 340px; background: var(--cgrad); overflow: hidden; color: #fff; }
.celeb-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.celeb-hero .shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.4) 0%, transparent 28%, rgba(18,10,36,.2) 55%, rgba(18,10,36,.95) 100%); }
.hero-back { position: absolute; top: 4px; inset-inline-start: 4px; z-index: 2; }
.hero-text { position: absolute; left: 20px; right: 20px; bottom: 20px; }
.hero-text p { line-height: 1.5; }
.hero-text h1 { font-size: 26px; font-weight: 800; line-height: 1.25; display: flex; align-items: center; gap: 8px; }
.gold-star { width: 24px; height: 24px; border-radius: 50%; background: var(--cg); color: var(--ci); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.hero-text p { color: rgba(255,255,255,.85); font-size: 13px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.glass-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.glass { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24); backdrop-filter: blur(8px); font-size: 12.5px; font-weight: 700; color: #fff; }
.glass .mi { font-size: 15px; }
.glass.hl { background: var(--cgrad); border-color: transparent; }
.glass .ig { width: 14px; height: 14px; flex: none; }

.c-body-wrap { padding: 0 16px 110px; scroll-margin-top: 0; }
.c-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; position: sticky; top: 56px; z-index: 10; background: #F6F7FB; }
.c-chips::-webkit-scrollbar { display: none; }
.c-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 14px; border-radius: 22px; background: #fff; border: 1px solid var(--g200); color: var(--ci); font-size: 13px; font-weight: 700; white-space: nowrap; }
.c-chip .logo { width: 30px; height: 30px; margin-inline-start: -10px; }
.c-chip em { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 10px; background: rgba(123,47,247,.08); color: var(--cp); }
.c-chip.on { background: var(--cgrad); color: #fff; border-color: transparent; box-shadow: 0 4px 10px rgba(241,7,163,.25); }
.c-chip.on em { background: rgba(255,255,255,.25); color: #fff; }
.logo { display: inline-block; border-radius: 50%; overflow: hidden; background: #fff; border: 1px solid var(--g200); flex: none; }
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-info { margin-top: 4px; padding: 10px 12px; border-radius: 14px; background: rgba(123,47,247,.06); border: 1px solid rgba(123,47,247,.12); color: rgba(30,26,46,.75); font-size: 12.5px; display: flex; gap: 8px; align-items: center; }
.c-info .mi { color: var(--cp); }
.c-ghead { display: flex; align-items: center; gap: 10px; padding: 22px 0 12px; }
.c-ghead .logo { width: 40px; height: 40px; }
.c-ghead b { display: block; font-size: 15.5px; font-weight: 800; color: var(--ci); }
.c-ghead small { color: var(--g600); font-size: 12px; }
.c-list { display: grid; gap: 12px; }
.c-item { display: flex; align-items: stretch; gap: 12px; padding: 10px; background: #fff; border-radius: 18px; box-shadow: 0 6px 16px rgba(0,0,0,.05); cursor: pointer; }
.c-item.closed { opacity: .7; }
.c-img { position: relative; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; flex: none; background: var(--g100); }
.c-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-disc { position: absolute; top: 6px; inset-inline-start: 6px; background: var(--cgrad); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 8px; }
.c-body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-top: 2px; }
.c-body > b { font-size: 14.5px; font-weight: 700; color: var(--ci); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-body > small { font-size: 12px; color: var(--g600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: flex-end; gap: 8px; }
.c-price { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; }
.c-price span { font-size: 15.5px; font-weight: 800; color: var(--cp); }
.c-price s { font-size: 12px; color: var(--g500); }
.c-add { width: 40px; height: 40px; border-radius: 50%; background: var(--cgrad); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.c-item.closed .c-add { background: var(--g300); color: var(--g600); box-shadow: none; }
.c-item.skel { cursor: default; }
.c-item.skel .c-body i { display: block; height: 12px; border-radius: 6px; margin: 4px 0; }
.c-item.skel .c-body i.short { width: 50%; }
.c-state { text-align: center; padding: 60px 20px; color: var(--g600); }
.c-state .mi { font-size: 64px; color: #C9B8F5; }
.c-state p { margin: 10px 0 16px; font-weight: 600; color: var(--ci, #1E1A2E); }
.c-btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 22px; background: var(--cgrad, linear-gradient(135deg,#7B2FF7,#F107A3)); color: #fff; font-weight: 700; margin: 4px; }
.c-btn.ghost { background: #fff; color: #7B2FF7; border: 1px solid rgba(123,47,247,.3); }
.link-wait { min-height: 100vh; display: flex; align-items: center; justify-content: center; }

/* رأس «المشاهير» — SliverAppBar بارتفاع 176 يُطوى إلى شريط 56 (c-bar) */
.celebs-head { position: relative; height: 176px; background: var(--cgrad); color: #fff; overflow: hidden; }
.celebs-head .big-star { position: absolute; inset-inline-end: -34px; top: -18px; font-size: 190px; width: auto; height: auto; overflow: visible; color: rgba(255,255,255,.08); }
.celebs-head .spark { position: absolute; inset-inline-end: 70px; top: 22px; color: rgba(255,200,61,.9); }
.celebs-head .txt { position: absolute; inset-inline-start: 20px; inset-inline-end: 20px; bottom: 16px; }
.celebs-head h1 { font-size: 26px; font-weight: 800; line-height: 1.3; }
.celebs-head p { color: rgba(255,255,255,.88); font-size: 13px; }
.celebs-search { display: flex; align-items: center; gap: 12px; margin: 16px 16px 4px; position: relative; height: 50px; padding: 0 12px; background: #fff; border-radius: 14px; box-shadow: 0 6px 16px rgba(0,0,0,.05); }
.celebs-search input::placeholder { color: var(--g500); font-size: 14px; }
.celebs-search .mi { color: #7B2FF7; }
.celebs-search input { flex: 1; border: 0; outline: 0; background: transparent; height: 100%; }
.celebs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px 16px 96px; }
@media (min-width: 560px) { .celebs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.celeb-card { position: relative; aspect-ratio: .72; border-radius: 18px; overflow: hidden; background: var(--cgrad); box-shadow: 0 8px 16px rgba(123,47,247,.10); display: block; }
.celeb-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.celeb-card .fade { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 38%, rgba(18,10,36,.9)); }
.celeb-card .star { position: absolute; top: 10px; inset-inline-start: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.24); color: #FFC83D; display: flex; align-items: center; justify-content: center; }
.celeb-card .star .mi { font-size: 18px; }
.celeb-card .txt { position: absolute; left: 12px; right: 12px; bottom: 12px; color: #fff; }
.celeb-card .txt b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; font-weight: 800; line-height: 1.3; margin-bottom: 4px; }
.celeb-card .txt small { font-size: 11.5px; color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; }
.celeb-card .txt small .mi { font-size: 13px; color: rgba(255,255,255,.8); }

/* شريط الطيّ: يظهر بعد تمرير الرأس، بالتدرّج نفسه وزر رجوع وعنوان صغير */
.c-bar { position: fixed; top: 0; left: 0; right: 0; max-width: var(--maxw); margin: 0 auto; height: 56px; z-index: 30; display: flex; align-items: center; gap: 4px; padding: 0 4px; background: var(--cgrad); color: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.14); transform: translateY(-110%); transition: transform .2s; }
.c-bar.show { transform: none; }
.c-bar b { font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-bar button, .hero-back { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }

/* ---- البحث --------------------------------------------------------------- */
.search-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 4px; padding: 6px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.search-bar input { flex: 1; height: 44px; border: 0; outline: 0; font-size: 16px; background: transparent; }
.search-results { padding: 6px 0 30px; }
.s-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 14px; text-align: start; border-bottom: 1px solid var(--g200); }
.s-row img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: var(--g200); }
.s-row b { display: block; font-size: 14px; }
.s-row small { display: block; color: var(--g600); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-cats { padding-top: 5px; }
.services-row { padding-bottom: 20px; }
.see-more { color: var(--primary); font-size: 14px; font-weight: 600; }
.c-body-wrap > .c-list:first-child, .c-body-wrap > .c-state:first-child { margin-top: 16px; }

/* ---- تصميم 2026-11: تفاصيل الصنف والسلة (بلقطات مرجعية من المستخدم) -------------
   شريط أبيض بأيقونات بلا خلفية، خلفية رمادية فاتحة، بطاقات بيضاء بإطار رفيع
   وزوايا 16، خيارات في صناديق مؤطّرة، وشريط سفلي أبيض: عدّاد مؤطّر + زر أزرق
   بنص داكن وسهم. ------------------------------------------------------------ */

:root {
  --ip-blue: #149BD6; --ip-ink: #0F1E2B; --ip-text: #1F2933; --ip-muted: #6B7785;
  --ip-line: #E3E8EE; --ip-bg: #F5F6F8; --ip-soft: #EEF2F5; --ip-red: #C62828;
}
.ip-page, .ct-page { background: var(--ip-bg); color: var(--ip-text); }
.ip-page { padding-bottom: calc(110px + var(--safe-b)) !important; }

.ip-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 10px; background: #fff; border-bottom: 1px solid var(--ip-line); }
.ip-bar .side { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ip-bar h1 { margin: 0 6px; font-size: 22px; font-weight: 700; color: var(--ip-ink); white-space: nowrap; }
.ip-ic { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ip-ink); flex: none; }
.ip-ic .mi { font-size: 26px; }
.ip-ic:active { background: var(--ip-soft); }
.ip-ic.soft { background: var(--ip-soft); }
.ip-ic.lang { font-size: 17px; font-weight: 700; }
.ip-count { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 8px; background: var(--ip-soft); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.ip-count[hidden] { display: none; }

.ip-gallery { position: relative; aspect-ratio: 3 / 2; max-height: 440px; width: 100%; background: var(--g200); }
.ip-gallery .track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ip-gallery .track::-webkit-scrollbar { display: none; }
.ip-gallery img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.ip-gallery .dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.ip-gallery .dots i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.6); }
.ip-gallery .dots i.on { background: #fff; width: 18px; }

.ip-head { background: #fff; padding: 18px 18px 16px; border-bottom: 1px solid var(--ip-line); }
.ip-head h1 { margin: 0; font-size: 23px; font-weight: 700; color: var(--ip-ink); line-height: 1.45; }
.ip-price { margin-top: 6px; font-size: 20px; font-weight: 700; color: var(--ip-blue); }
.ip-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; color: var(--ip-muted); font-size: 13px; }
.ip-meta > span { display: inline-flex; align-items: center; gap: 4px; }

.ip-body { padding: 16px; display: grid; gap: 14px; }
.ip-card { background: #fff; border: 1px solid var(--ip-line); border-radius: 16px; padding: 16px 18px; }
.ip-card h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--ip-ink); }
.ip-card.missing { border-color: var(--ip-red); box-shadow: 0 0 0 2px rgba(198,40,40,.12); }
.ip-desc { margin: 10px 0 0; font-size: 15px; line-height: 1.75; color: var(--ip-text); white-space: pre-line; }
.ip-low { margin: 0; color: #B26A00; font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 4px; }
.ip-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ip-card-head > span { color: var(--ip-muted); font-size: 13px; white-space: nowrap; }
.ip-card-head > span.req { color: var(--ip-blue); font-weight: 600; }

.ip-opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border: 1px solid var(--ip-line); border-radius: 12px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ip-ink); }
.ip-opt + .ip-opt { margin-top: 10px; }
.ip-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ip-opt .box { flex: none; width: 24px; height: 24px; border: 2px solid #9AA5B1; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s; }
.ip-opt .box.radio { border-radius: 50%; }
.ip-opt input:checked + .box { background: var(--ip-blue); border-color: var(--ip-blue); }
.ip-opt input:checked + .box::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.ip-opt input:checked + .box.radio::after { width: 9px; height: 9px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.ip-opt input:focus-visible + .box { outline: 2px solid var(--ip-blue); outline-offset: 2px; }
.ip-opt:has(input:checked) { border-color: var(--ip-blue); background: rgba(20,155,214,.05); }
.ip-opt .grow { flex: 1; min-width: 0; }
.ip-opt .trail { color: var(--ip-muted); font-weight: 500; font-size: 14px; direction: ltr; white-space: nowrap; }

.ip-note-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.ip-note-ic { flex: none; width: 48px; height: 48px; border-radius: 12px; background: #E6F4FB; color: var(--ip-blue); display: inline-flex; align-items: center; justify-content: center; }
.ip-note-head h2 { font-size: 18px; }
.ip-note-head p { margin: 2px 0 6px; color: var(--ip-muted); font-size: 14px; }
.ip-tag { display: inline-block; padding: 2px 10px; border-radius: 8px; background: var(--ip-soft); color: var(--ip-muted); font-size: 13px; }
.ip-note { width: 100%; min-height: 96px; resize: vertical; padding: 12px 14px; border: 1px solid var(--ip-line); border-radius: 14px; font: inherit; font-size: 15px; color: var(--ip-ink); background: #fff; outline: 0; }
.ip-note:focus { border-color: var(--ip-blue); }
.ip-note::placeholder { color: #8A96A3; }

.ip-share { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; border: 1px solid var(--ip-line); border-radius: 14px; background: #fff; font-size: 16px; font-weight: 600; color: var(--ip-ink); }

.ip-bottom {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--maxw); z-index: 30;
  display: flex; gap: 12px; padding: 12px 16px calc(12px + var(--safe-b)); background: #fff; border-top: 1px solid var(--ip-line);
}
.ip-qty { flex: none; display: flex; align-items: stretch; height: 56px; border: 1px solid var(--ip-line); border-radius: 14px; overflow: hidden; background: #fff; }
.ip-qty button { width: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--ip-blue); }
.ip-qty button:active { background: var(--ip-soft); }
.ip-qty b { min-width: 40px; display: inline-flex; align-items: center; justify-content: center; border-inline: 1px solid var(--ip-line); font-size: 17px; color: var(--ip-ink); }
.ip-qty.sm { height: 46px; }
.ip-qty.sm button { width: 44px; }
.ip-qty.sm b { min-width: 40px; font-size: 16px; }
.ip-add { flex: 1; min-width: 0; height: 56px; border-radius: 14px; background: var(--ip-blue); color: var(--ip-ink); display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; font-size: 16px; font-weight: 700; white-space: nowrap; }
.ip-add > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.ip-add.wa { background: var(--whatsapp); color: #fff; }
.ip-add:active, .ct-go:active { filter: brightness(.95); }

/* السلة */
.ct-page { padding-bottom: calc(200px + var(--safe-b)) !important; }
.ct-wrap { padding: 16px 16px 24px; }
.ct-store { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--ip-line); }
.ct-store .ic { color: var(--ip-blue); display: inline-flex; }
.ct-store .ic .mi { font-size: 30px; }
.ct-store b { display: block; font-size: 16px; color: var(--ip-ink); }
.ct-store small { display: block; color: var(--ip-muted); font-size: 13px; }
.ct-store .chip.celeb { margin: 0; flex: none; }
/* توصيل / استلام */
.ct-mode { display: flex; gap: 6px; margin-top: 10px; padding: 5px; border-radius: 14px; background: var(--ip-soft); border: 1px solid transparent; }
.ct-mode.need { border-color: var(--ip-blue); }
.ct-mode button { flex: 1; height: 46px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ip-muted); }
.ct-mode button.on { background: #fff; color: var(--ip-ink); box-shadow: 0 1px 4px rgba(15, 30, 43, .12); }
.ct-mode button.on .mi { color: var(--ip-blue); }
.ct-mode button:disabled { opacity: .4; cursor: not-allowed; }
.ct-mode.shake { animation: ctShake .4s; }
@keyframes ctShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.ct-h { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 6px; }
.ct-h h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--ip-ink); }
.ct-line { padding: 14px 0 16px; border-bottom: 1px solid var(--ip-line); }
.ct-top { display: flex; gap: 14px; align-items: flex-start; }
.ct-thumb img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; display: block; background: var(--g200); }
.ct-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ct-info b { font-size: 16px; font-weight: 700; color: var(--ip-ink); line-height: 1.45; }
.ct-info small { color: var(--ip-muted); font-size: 13px; }
.ct-price { font-size: 16px; font-weight: 700; color: var(--ip-ink); margin-top: 4px; }
.ct-actions { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.ct-actions .grow { flex: 1; }
.ct-link { display: inline-flex; align-items: center; gap: 4px; padding: 8px 6px; font-size: 15px; font-weight: 600; color: var(--ip-ink); }
.ct-link.red { color: var(--ip-red); }
.ct-link.muted { color: var(--ip-muted); font-size: 13px; font-weight: 500; }
.ct-more { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 6px; padding: 6px 0; font-size: 16px; font-weight: 600; color: var(--ip-blue); }
.ct-sep { height: 1px; background: var(--ip-line); margin: 14px 0 4px; }
.ct-promo-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 0; font-size: 16px; font-weight: 600; color: var(--ip-ink); }
.ct-promo-head > .mi:first-child { color: var(--ip-blue); }
.ct-promo-head .grow { flex: 1; text-align: start; }
.ct-promo-head .chev { color: var(--ip-muted); transition: transform .2s; }
.ct-promo.open .chev { transform: rotate(180deg); }
.ct-promo-body { display: none !important; padding-bottom: 12px; }
.ct-promo.open .ct-promo-body { display: flex !important; }
.ct-pad { padding: 14px 0; }
.ct-notes { margin: 6px 0 14px; }
.ct-wrap > .co-card { margin-top: 4px; }

.ct-bottom {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--maxw); z-index: 30;
  padding: 14px 16px calc(12px + var(--safe-b)); background: #fff; border-top: 1px solid var(--ip-line);
}
.ct-bottom:empty { display: none; }
.ct-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 0; color: var(--ip-muted); font-size: 15px; }
.ct-row.green { color: var(--co-green); }
.ct-row.total { color: var(--ip-muted); padding-top: 6px; }
.ct-row.total b { color: var(--ip-ink); font-size: 21px; font-weight: 700; }
.ct-go { margin-top: 12px; width: 100%; height: 56px; border-radius: 14px; background: var(--ip-blue); color: var(--ip-ink); display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 17px; font-weight: 700; }
.ct-pay-list { display: grid; gap: 10px; margin-top: 8px; }
.ct-pay { display: flex; align-items: center; gap: 12px; width: 100%; height: 58px; padding: 0 16px; border: 1px solid var(--ip-line); border-radius: 14px; background: #fff; font-size: 16px; font-weight: 600; color: var(--ip-ink); }
.ct-pay > .mi:first-child { color: var(--ip-blue); }
.ct-pay .grow { flex: 1; text-align: start; }
