/* mobile.css - تصميم الموبايل فقط (الديسكتوب مش بيتأثر)
 * بيتحمّل بـ media="(max-width: 767.98px)" فالمتصفح مش بيطبقه ولا بيحمله فوق كده.
 * لازم يتحط بعد style.min.css و tailwind-built.css في index.html.
 * التصميم: زمردي + ذهبي، أسطح بيضاء من غير حدود، كل التعديلات CSS بس (من غير تغيير في الـ HTML).
 */
:root {
  --m-bg: #f6faf7;
  --m-card: #ffffff;
  --m-emerald: #003820;
  --m-emerald-dark: #0b3d26;
  --m-emerald-surface: #ebf5f0;
  --m-gold: #9e7a36;
  --m-gold-light: #e8d5a3;
  --m-gold-bg: #fed488;
  --m-gold-text: #785a1a;
  --m-red: #d9383a;
  --m-muted: #5a6d64;
  --m-text: #1a2e26;
  --m-radius: 16px;
  --m-shadow: 0 1px 6px rgba(11, 61, 38, 0.07);
}

body { background: var(--m-bg); color: var(--m-text); }
h1, h2, h3 { font-family: 'Cairo', 'Tajawal', sans-serif; }

/* ---------- شريط الإعلان العلوي (CSS بس - احذفي القاعدة دي لو مش عايزاه) ---------- */
.glass-nav::before {
  content: "شحن مجاني للطلبات فوق 1000 ج.م | كود خصم ترحيبي: WELCOME10";
  display: block;
  background: var(--m-emerald);
  color: var(--m-gold-light);
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  padding: 5px 12px;
}

/* ---------- الهيدر ---------- */
.glass-nav {
  background: rgba(246, 250, 247, 0.96);
  border-bottom: 0;
  box-shadow: 0 1px 12px rgba(11, 61, 38, 0.06);
}
.glass-nav .h-16 { height: 56px; }
.glass-nav .text-darkNavy { color: var(--m-emerald); }
.glass-nav .text-gradient {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--m-emerald);
}
.glass-nav a.group > div:first-child {
  width: 36px; height: 36px; padding: 0;
  background: transparent; border: 0; box-shadow: none;
}
.glass-nav a.group img { width: 32px; height: 32px; }
.glass-nav a.group span.uppercase { color: var(--m-muted); }
/* أزرار الهيدر: دوائر شفافة من غير حدود */
.glass-nav button {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #404942;
  width: 40px; height: 40px;
}
.glass-nav button i { font-size: 18px; }
.glass-nav button i.text-primary { color: var(--m-emerald); }

/* ---------- شريط البحث ---------- */
div:has(> .relative > #mobile-search-input) {
  background: var(--m-bg);
  border: 0;
  padding: 12px 16px 4px;
}
#mobile-search-input {
  height: 44px;
  background: #fff;
  border: 0;
  border-radius: 9999px;
  box-shadow: var(--m-shadow);
  font-size: 14px;
  padding-right: 44px;
}

/* ---------- الهيرو (ترتيب الدرج: عنوان ← وصف ← صورة ← أزرار ← ثقة) ---------- */
#home { padding-top: 12px; padding-bottom: 20px; }
#home > .absolute { display: none; }
#home .max-w-7xl > .grid {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--m-emerald-surface), #f0f5f2);
  border-radius: 20px;
  padding: 20px 16px;
  box-shadow: var(--m-shadow);
  gap: 16px;
  text-align: center;
}
#home .max-w-7xl > .grid > div:first-child { display: contents; }
#home h1 {
  order: 1;
  margin: 0;
  font-size: 26px;
  line-height: 36px;
  color: var(--m-emerald-dark);
  text-align: center;
}
#home h1::before {
  content: "تركيبات طبيعية 100% صيدلانية";
  display: table;
  margin: 0 auto 12px;
  padding: 4px 12px;
  background: #fff;
  border-radius: 9999px;
  box-shadow: var(--m-shadow);
  color: var(--m-emerald-dark);
  font-family: 'Tajawal', sans-serif;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
}
#home h1 .text-shimmer-gold {
  background: none;
  -webkit-text-fill-color: var(--m-emerald-dark);
  color: var(--m-emerald-dark);
  animation: none;
}
#home p:not(.hero-social-proof) {
  order: 3;
  margin: 0 auto;
  max-width: 20rem;
  font-size: 14px;
  line-height: 22px;
  color: var(--m-muted);
  text-align: center;
}

#home .hero-social-proof {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  text-align: center !important;
}

#home .hero-social-proof-text {
  order: 1 !important;
}

#home .hero-social-proof-stars {
  order: 2 !important;
  margin-top: 2px !important;
}

/* صورة الهيرو */
#home .max-w-7xl > .grid > div:nth-child(2) { order: 2; width: 100%; }
#home .max-w-7xl > .grid > div:nth-child(2) > div { max-width: none; }
#home .blur-2xl,
#home .animate-float-slow,
#home .absolute.-bottom-3 { display: none; }
#home .aspect-square {
  aspect-ratio: auto;
  height: auto;
  max-height: none;
  border-radius: 12px;
  background: transparent;
}
/* الصورة كاملة بنسبتها الأصلية من غير قص */
#home .aspect-square .hero-main-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: none;
}
#home .max-w-7xl > .grid > div:nth-child(2) .shadow-2xl {
  padding: 0; border: 0; background: none; border-radius: 12px;
  box-shadow: 0 4px 12px rgba(11, 61, 38, 0.12);
}
/* الأزرار */
#home .max-w-7xl > .grid > div:first-child > div.flex-wrap {
  order: 4;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  width: 100%;
}
#home a.btn-gradient-shimmer,
#home .max-w-7xl a[onclick*="navigate"] {
  height: 48px;
  border-radius: 12px;
  padding: 0 16px;
  width: 100%;
  font-size: 14px;
}
#home a.btn-gradient-shimmer {
  /* أخضر وذهبي متداخلين (تدرّج) بدل الأخضر لوحده */
  background: linear-gradient(135deg, #0f4c3a 0%, #1e7b54 38%, #c59b3f 100%);
  box-shadow: 0 6px 16px -4px rgba(197, 155, 63, .45);
  animation: none;
}
#home a.btn-outline {
  background: #fff;
  color: var(--m-emerald-dark);
  border: 0;
  box-shadow: var(--m-shadow);
}
/* شريط الثقة */
#home .trust-stats-bar {
  order: 5;
  max-width: none;
  margin: 0;
  padding: 12px;
  border: 0;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  box-shadow: var(--m-shadow);
  gap: 8px;
}
#home .trust-stats-bar > div {
  align-items: center;
  text-align: center;
  border: 0;
  padding: 0;
}
#home .trust-stats-bar .trust-stat-value { font-size: 15px; color: var(--m-emerald); }
#home .trust-stats-bar span.text-xs { font-size: 10px; color: var(--m-muted); }

/* ---------- الأقسام (صفوف أفقية) ---------- */
#categories {
  background: transparent;
  border: 0;
  padding: 24px 0 8px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#categories > div { text-align: right; }
#categories > div > div:first-child { margin: 0 0 14px; max-width: none; }
#categories > div > div:first-child > span {
  background: none; border: 0; padding: 0; color: var(--m-gold); font-size: 10px;
}
#categories h2 { font-size: 20px; line-height: 28px; color: var(--m-emerald); }
#categories > div > div:first-child > div { display: none; } /* الخط الملوّن */
#categories .grid { gap: 10px; }
#categories a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
  text-align: right;
  padding: 16px;
  background: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: var(--m-shadow);
}
#categories a:nth-child(3) { background: rgba(254, 212, 136, 0.3); }
#categories a > div.absolute,
#categories a > div:nth-of-type(3) { display: none; }
#categories a > div:nth-of-type(2) {
  grid-row: 1 / span 2;
  width: 48px; height: 48px;
  padding: 0; margin: 0;
  background: var(--m-emerald-surface);
  border-radius: 12px;
  box-shadow: none;
  transform: none;
}
#categories a:nth-child(3) > div:nth-of-type(2) { background: var(--m-gold-bg); }
#categories a > div:nth-of-type(2) > div {
  width: 100%; height: 100%;
  background: transparent; box-shadow: none; border-radius: 12px;
  font-size: 22px;
}
#categories a h3 { grid-column: 2; margin: 0; font-size: 16px; line-height: 24px; color: var(--m-emerald); }
#categories a p { grid-column: 2; max-width: none; margin: 0; font-size: 12px; line-height: 18px; color: var(--m-muted); }

/* ---------- المنتجات: العنوان والفلاتر ---------- */
#catalog { padding: 16px 16px 24px; border-top: 0; }
#catalog > div:first-child { margin-bottom: 10px; }
#catalog > div:first-child > span { color: var(--m-gold); font-size: 10px; }
#catalog-heading, #bundles-section h2 {
  font-size: 20px; line-height: 28px; color: var(--m-emerald); margin-top: 2px;
}
#catalog-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 4px;
  scrollbar-width: none;
}
#catalog-tabs::-webkit-scrollbar { display: none; }
.catalog-tab-btn {
  flex: none;
  white-space: nowrap;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  color: #404942;
  border: 0;
  box-shadow: var(--m-shadow);
}
.catalog-tab-btn:hover { background: #fff; color: #404942; }
.catalog-tab-btn.active {
  background: var(--m-emerald);
  color: #fff;
  box-shadow: var(--m-shadow);
}
#bundles-section { margin-top: 28px; padding-top: 0; border-top: 0; }

/* ---------- كروت المنتجات (شبكة عمودين) ---------- */
#catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pro-product-card {
  background: var(--m-card);
  border: 0;
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--m-shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.pro-product-card:hover { transform: none; box-shadow: var(--m-shadow); }
/* صف الشارة + المفضلة بيتحط فوق الصورة */
.pro-product-card > div:first-child {
  position: absolute;
  top: 16px; left: 16px; right: 16px;
  /* الصف فيه كلاس w-full (width:100%)؛ مع left+right على عنصر absolute في RTL
     الـ width كان بيكسب فالصف يزيح 16px لبرّه الكارت ويطلع قلب المفضلة خارج الحدود.
     width:auto يخلّيه يتمدد بين الـ left والـ right جوه الكارت بالظبط. */
  width: auto;
  margin: 0;
  z-index: 10;
  pointer-events: none;
}
.pro-product-card > div:first-child > * { pointer-events: auto; }
.pro-product-card .badge-gold-shimmer {
  background: var(--m-gold-bg);
  color: var(--m-gold-text);
  animation: none;
  box-shadow: none;
  font-size: 10px;
  padding: 2px 8px;
}
.pro-product-card [data-favorite-btn] {
  width: 28px; height: 28px;
  background: rgba(255, 255, 255, 0.85);
  border: 0;
  box-shadow: none;
}
.pro-product-card > div:nth-child(2) {
  border-radius: 8px;
  background: rgba(235, 245, 240, 0.5);
  /* padding-top أكبر: صف الشارة + المفضلة فوق الصورة، فنسيب له مساحة
     عشان الشارة ماتغطّيش أعلى الزجاجة */
  padding: 32px 8px 8px;
  margin-bottom: 8px;
}
.pro-product-card .text-primary { color: var(--m-muted); }
.pro-product-card h3 { font-size: 13px; line-height: 19px; color: var(--m-text); margin-bottom: 4px; }
.pro-product-card .border-t { border: 0; padding-top: 0; }
.pro-product-card .border-t .mb-3 { margin-bottom: 8px; }
.pro-product-card .border-t .font-display { font-size: 16px; color: var(--m-emerald); }

/* الأزرار (زي التصميم): "أضف" عريض أخضر + "اشتري الآن" ذهبي صغير، بزوايا 4px */
:is(#catalog-grid, #bundles-grid, #related-products-grid, #favorites-grid) .pro-product-card .grid-cols-2 {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}
:is(#catalog-grid, #bundles-grid, #related-products-grid, #favorites-grid) .pro-product-card .grid-cols-2 > .btn-add-cart {
  order: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--m-emerald);
  color: #fff;
  border: 0;
  border-radius: 4px;
  min-height: 0;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  box-shadow: var(--m-shadow);
  transform: none;
}
:is(#catalog-grid, #bundles-grid, #related-products-grid, #favorites-grid) .pro-product-card .grid-cols-2 > .btn-dark {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--m-gold-bg);
  animation: none;
  color: var(--m-gold-text);
  border: 0;
  border-radius: 4px;
  min-height: 0;
  padding: 6px 8px;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  box-shadow: none;
  transform: none;
}
.pro-product-card .btn-add-cart:active { transform: scale(0.95); }
.pro-product-card .btn-add-cart i { font-size: 15px; }
.pro-product-card .btn-add-cart i::before { content: "\f290"; } /* أيقونة الشنطة بدل العربة */
.pro-product-card .btn-add-cart .add-suffix { display: none; }   /* "أضف" بس على الموبايل */

/* ---------- المجموعات المتكاملة (كروت أفقية) ---------- */
#bundles-grid { display: flex; flex-direction: column; gap: 12px; }
.bundle-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--m-shadow);
  text-align: right;
  cursor: pointer;
}
.bundle-card__top { display: flex; align-items: center; justify-content: space-between; }
.bundle-card__badge {
  background: var(--m-red);
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 9999px;
}
.bundle-card__badge--tag { background: #b0f1c7; color: #002111; }
.bundle-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--m-gold);
  font-size: 15px;
}
.bundle-card__rating span { color: var(--m-muted); font-size: 10px; font-weight: 700; line-height: 14px; }
.bundle-card__body { display: flex; align-items: center; gap: 12px; }
.bundle-card__img {
  flex: none;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: var(--m-emerald-surface);
  overflow: hidden;
}
.bundle-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bundle-card__text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bundle-card__title {
  margin: 0;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
  color: var(--m-emerald);
}
.bundle-card__desc {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--m-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bundle-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid #ebefec;
}
.bundle-card__prices { display: flex; align-items: baseline; gap: 8px; }
.bundle-card__price {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
  color: var(--m-emerald);
}
.bundle-card__old { font-size: 12px; line-height: 18px; color: var(--m-muted); text-decoration: line-through; }
.bundle-card__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--m-emerald);
  color: #fff;
  border: 0;
  border-radius: 12px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  box-shadow: var(--m-shadow);
}
.bundle-card__btn i { font-size: 16px; }
.bundle-card__btn:active { transform: scale(0.95); }

/* ---------- الفوتر ---------- */
footer#about { border-radius: 20px 20px 0 0; }

/* ---------- طرق الدفع (بطاقة بيضاء + 3 مربعات + كوبون) ---------- */
#payment-banner { padding: 0 16px; margin-top: 8px; }
#payment-banner > div {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--m-shadow);
}
#payment-banner > div > .absolute { display: none; }              /* بقع الـ blur */
#payment-banner > div > .grid { display: flex; flex-direction: column; gap: 16px; }
#payment-banner > div > .grid > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--m-emerald);
}
#payment-banner > div > .grid > div:first-child > span { display: none; }   /* الشارة الصغيرة */
#payment-banner > div > .grid > div:first-child > p { display: none; }      /* الفقرة الطويلة */
#payment-banner h2 {
  order: 1;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  line-height: 26px;
  color: var(--m-emerald);
}
#payment-banner h2::before {
  content: "\f555";                 /* أيقونة المحفظة */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 20px;
  flex: none;
}
/* المربعات الثلاثة */
#payment-banner > div > .grid > div:first-child > div.flex-wrap {
  order: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
#payment-banner > div > .grid > div:first-child > div.flex-wrap > span {
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 10px 4px;
  background: var(--m-bg);
  border-radius: 12px;
  text-align: center;
  color: var(--m-emerald);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}
#payment-banner .pay-en,
#payment-banner .pay-desk { display: none; }
#payment-banner .pay-sub {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  line-height: 14px;
  font-weight: 400;
  color: var(--m-muted);
}
#payment-banner > div > .grid > div:first-child > div.flex-wrap > span > i {
  font-size: 22px;
  margin-bottom: 4px;
  color: var(--m-emerald);
}
#payment-banner > div > .grid > div:first-child > div.flex-wrap > span:nth-child(2) > i { color: var(--m-red); }
#payment-banner > div > .grid > div:first-child > div.flex-wrap > span:nth-child(3) > i { color: var(--m-gold); }
/* زر الواتساب */
#payment-banner > div > .grid > div:first-child > a {
  order: 3;
  width: 100%;
  height: 48px;
  margin: 0;
  justify-content: center;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: var(--m-shadow);
}
/* صندوق الكوبون + الشحن المجاني */
#payment-banner > div > .grid > div:nth-child(2) > div {
  background: rgba(254, 212, 136, 0.4);
  border: 0;
  border-radius: 12px;
  padding: 12px;
  color: var(--m-gold-text);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#payment-banner > div > .grid > div:nth-child(2) > div > div:first-child { display: none; } /* مربع أيقونة الشاحنة */
#payment-banner > div > .grid > div:nth-child(2) h3 { margin: 0 0 2px; font-size: 12px; line-height: 16px; color: var(--m-gold-text); }
#payment-banner > div > .grid > div:nth-child(2) p { margin: 0 0 10px; font-size: 11px; line-height: 16px; color: #775a19; }
#payment-banner #static-welcome-coupon-block p { margin-bottom: 6px; color: var(--m-gold-text); }
#payment-banner #static-welcome-coupon-block > div {
  background: #fff;
  border: 1px dashed var(--m-gold);
  border-radius: 8px;
}
#payment-banner #static-welcome-coupon-block > div > span { color: var(--m-emerald); }
#payment-banner #static-welcome-coupon-block > div > button { background: var(--m-emerald); color: #fff; }


/* ==========================================================================
   صفحة المنتج الواحد (موبايل فقط) - القالب في store-product.js (buildMobileProductHtml)
   كل الكلاسات تحت .pdp-* ، والملف ده بيتحمّل أقل من 768px بس فالديسكتوب مش بيتأثر.
   ملحوظة: ماستخدمتش <section> لأن style.css بيجبر section على background: transparent !important.
   ========================================================================== */
#view-product { padding-top: 12px; padding-bottom: 16px; }
#view-product > nav { margin-bottom: 10px; font-size: 12px; }
#view-product > nav ol { gap: 6px; }
#view-product > nav svg { width: 12px; height: 12px; }
body.show-mobile-bar #view-product { padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px)); }
body.show-mobile-bar .toast-container { bottom: calc(132px + env(safe-area-inset-bottom, 0px)); }
body.show-mobile-bar .welcome-offer-banner { bottom: max(var(--wo-bottom), calc(132px + env(safe-area-inset-bottom, 0px))); }
#related-products { margin-top: 28px; padding-top: 24px; }
#related-products h2 { font-size: 20px; }
#related-products > p { margin-bottom: 16px; font-size: 13px; }

.pdp-m {
  --pdp-em: #0f5132; --pdp-em-d: #0b3d26; --pdp-gold: #9e7a36;
  --pdp-line: #d1fae5; --pdp-ink: #1e293b; --pdp-mute: #64748b;
  max-width: 448px; margin: 0 auto; text-align: right; color: var(--pdp-ink);
  font-family: 'Cairo', 'Tajawal', sans-serif;
}
.pdp-m *, .pdp-bar * { box-sizing: border-box; }
.pdp-m > * + * { margin-top: 16px; }
.pdp-m h1, .pdp-m h2, .pdp-m h3, .pdp-m h4, .pdp-m p { margin: 0; }
.pdp-card { background: #fff; border: 1px solid var(--pdp-line); border-radius: 24px; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.pdp-pad { padding: 16px; }

/* --- الصورة (من غير blur: gradients بدل بقع الـ blur عشان السكرول) --- */
.pdp-hero {
  padding: 12px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 100% 0, rgba(209, 250, 229, .6), transparent 45%),
              radial-gradient(circle at 0 100%, rgba(254, 243, 199, .7), transparent 45%), #fff;
}
.pdp-stage {
  position: relative; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden;
  background: linear-gradient(to bottom, #fafaf9, rgba(236, 253, 245, .45)); border: 1px solid #f1f5f9;
  display: flex; align-items: center; justify-content: center; touch-action: pan-y;
}
.pdp-main-img { width: 100%; height: 100%; object-fit: contain; padding: 6px; transition: opacity .2s ease, transform .2s ease; }
.pdp-badges { position: absolute; top: 12px; right: 12px; z-index: 10; display: flex; flex-direction: column; gap: 6px; }
.pdp-badge { background: #f59e0b; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.pdp-fav, .pdp-share {
  position: absolute; left: 12px; z-index: 10; width: 36px; height: 36px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0;
  background: rgba(255, 255, 255, .94); color: #94a3b8; border: 1px solid rgba(226, 232, 240, .9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}
.pdp-fav { top: 12px; }
.pdp-share { top: 56px; color: #64748b; }
.pdp-fav.bg-primary { background: #ef4444; color: #fff; border-color: #ef4444; }
.pdp-count { position: absolute; bottom: 12px; right: 12px; z-index: 10; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; font-family: 'Tajawal', sans-serif; padding: 2px 10px; border-radius: 999px; }
.pdp-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-thumb { flex: 0 0 calc(25% - 6px); aspect-ratio: 1 / 1; padding: 2px; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid #e2e8f0; opacity: .7; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.pdp-thumb.is-active { border: 2px solid var(--pdp-em); box-shadow: 0 0 0 2px rgba(15, 81, 50, .2); opacity: 1; }

/* --- العنوان والسعر --- */
.pdp-meta { padding: 16px; }
.pdp-meta h1 { font-size: 20px; line-height: 1.4; font-weight: 900; color: var(--pdp-em); }
.pdp-sub { margin-top: 4px !important; font-size: 12px; line-height: 1.7; color: #475569; font-family: 'Tajawal', sans-serif; }
.pdp-rating { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f1f5f9; }
.pdp-rating b { font-size: 12px; font-weight: 700; }
.pdp-rating__n { font-size: 11px; color: var(--pdp-mute); font-family: 'Tajawal', sans-serif; }
.pdp-stars { color: #fbbf24; letter-spacing: 1px; }
.pdp-stars--sm { font-size: 12px; letter-spacing: 0; }
.pdp-price {
  margin-top: 16px; padding: 14px; border-radius: 16px; border: 1px solid rgba(209, 250, 229, .8);
  background: linear-gradient(to right, rgba(236, 253, 245, .8), rgba(255, 251, 235, .6));
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.pdp-price__row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pdp-price__now { font-size: 24px; font-weight: 900; color: var(--pdp-em); line-height: 1.2; }
.pdp-price__old { font-size: 14px; color: #94a3b8; text-decoration: line-through; }
.pdp-price__note { margin-top: 2px !important; font-size: 11px; font-weight: 700; color: var(--pdp-gold); font-family: 'Tajawal', sans-serif; }
.pdp-save { background: #ef4444; color: #fff; font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 12px; white-space: nowrap; }
.pdp-alert { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #b45309; background: rgba(255, 251, 235, .95); border: 1px solid rgba(253, 230, 138, .9); border-radius: 12px; padding: 8px 12px; }
.pdp-alert__dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: #f59e0b; animation: pdpPing 1.6s cubic-bezier(0, 0, .2, 1) infinite; }
.pdp-alert--out { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
@keyframes pdpPing { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); } }
.pdp-coupon { margin-top: 12px; padding: 12px; border-radius: 16px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: linear-gradient(to left, #065f46, var(--pdp-em)); }
.pdp-coupon__lbl { font-size: 11px; font-weight: 500; color: #fde68a; font-family: 'Tajawal', sans-serif; }
.pdp-coupon__txt { font-size: 12px; font-weight: 700; }
.pdp-coupon__txt span { background: #fcd34d; color: var(--pdp-em-d); padding: 2px 6px; border-radius: 4px; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 900; }
.pdp-coupon button { font-size: 11px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .2); padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.pdp-buynow { width: 100%; margin-top: 12px; padding: 12px; border-radius: 16px; font-size: 14px; font-weight: 800; color: var(--pdp-em); background: transparent; border: 1.5px solid var(--pdp-em); }

/* --- المميزات --- */
.pdp-block { padding: 0 4px; }
.pdp-h2 { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #1e293b; margin-bottom: 10px !important; }
.pdp-h2--plain { padding: 0 4px; margin-bottom: 12px !important; }
.pdp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pdp-em); }
.pdp-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdp-benefit { background: #fff; border: 1px solid var(--pdp-line); border-radius: 16px; padding: 12px; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.pdp-benefit__ico { width: 32px; height: 32px; border-radius: 12px; background: #ecfdf5; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 8px; }
.pdp-benefit h3 { font-size: 12px; font-weight: 700; line-height: 1.3; color: #0f172a; }
.pdp-benefit p { margin-top: 4px !important; font-size: 11px; line-height: 1.4; color: var(--pdp-mute); font-family: 'Tajawal', sans-serif; }

/* --- الأكورديون --- */
.pdp-acc { background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 16px; padding: 12px; }
.pdp-acc + .pdp-acc { margin-top: 10px; }
.pdp-acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; color: var(--pdp-em); }
.pdp-acc summary::-webkit-details-marker { display: none; }
.pdp-acc__ico { font-size: 16px; margin-left: 8px; }
.pdp-chev { color: #94a3b8; flex: 0 0 16px; transition: transform .2s ease; }
.pdp-acc[open] .pdp-chev { transform: rotate(180deg); }
.pdp-acc__body { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(226, 232, 240, .6); font-size: 12px; line-height: 1.7; color: #475569; font-family: 'Tajawal', sans-serif; }
.pdp-acc__body p, .pdp-acc__body li { font-size: 12px; margin-bottom: 6px; }
.pdp-acc__body p:last-child { margin-bottom: 0; }

/* --- التقييمات --- */
.pdp-rev-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid #f1f5f9; }
.pdp-rev-head h2 { font-size: 14px; font-weight: 700; color: #0f172a; }
.pdp-rev-head p { font-size: 11px; color: var(--pdp-mute); font-family: 'Tajawal', sans-serif; }
.pdp-rev-score { text-align: left; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 12px; padding: 4px 10px; }
.pdp-rev-score b { display: block; font-size: 12px; font-weight: 900; color: var(--pdp-em); }
.pdp-reviews > * + * { margin-top: 12px; }
.pdp-review { background: #fafaf9; border: 1px solid rgba(231, 229, 228, .7); border-radius: 16px; padding: 12px; }
.pdp-review__top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.pdp-review__top h4 { font-size: 12px; font-weight: 700; color: #0f172a; }
.pdp-review__top .pdp-stars { margin-right: auto; }
.pdp-avatar { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: #059669; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pdp-review:nth-child(2) .pdp-avatar { background: #d97706; }
.pdp-review:nth-child(3) .pdp-avatar { background: #475569; }
.pdp-review p { font-size: 12px; line-height: 1.7; color: #334155; font-family: 'Tajawal', sans-serif; }
.pdp-addrev { width: 100%; margin-top: 14px; padding: 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--pdp-em); background: transparent; border: 2px solid var(--pdp-em); }

/* --- أكملي روتينك --- */
.pdp-bundle { padding: 16px; border-color: rgba(253, 230, 138, .8); background: linear-gradient(135deg, rgba(255, 251, 235, .7), #fff 50%, rgba(236, 253, 245, .7)); }
.pdp-bundle h2 { display: flex; align-items: center; gap: 6px; margin-bottom: 10px !important; font-size: 14px; font-weight: 700; color: #0f172a; }
.pdp-bundle__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border: 1px solid rgba(226, 232, 240, .8); border-radius: 16px; padding: 12px; }
.pdp-bundle__item { width: 30%; min-width: 0; text-align: center; }
.pdp-bundle__img { width: 56px; height: 56px; margin: 0 auto; border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; background: #fafaf9; }
.pdp-bundle__img img { width: 100%; height: 100%; object-fit: contain; }
.pdp-bundle__item p { margin-top: 4px !important; font-size: 11px; font-weight: 700; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp-bundle__item span { font-size: 10px; font-weight: 800; color: var(--pdp-em); font-family: 'Tajawal', sans-serif; }
.pdp-bundle__plus { color: #94a3b8; font-weight: 700; font-size: 18px; }
.pdp-bundle__sum { width: 34%; text-align: left; }
.pdp-bundle__total { font-size: 14px; font-weight: 900; color: var(--pdp-em); }
.pdp-bundle__sum button { margin-top: 4px; width: 100%; background: var(--pdp-gold); color: #fff; font-size: 10px; font-weight: 700; padding: 6px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }

/* --- شريط الشراء الثابت (بدون backdrop-filter عشان الأداء) --- */
.pdp-bar {
  /* المتغيرات دي معرّفة على .pdp-m بس، والشريط برّاه (مش جواه)، فكان var(--pdp-em)
     فاضي وزر "أضيفي للسلة" يطلع شفاف بنص أبيض على خلفية بيضاء. */
  --pdp-em: #0f5132; --pdp-em-d: #0b3d26; --pdp-gold: #9e7a36;
  --pdp-line: #d1fae5; --pdp-ink: #1e293b; --pdp-mute: #64748b;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; max-width: 448px; margin: 0 auto;
  background: rgba(255, 255, 255, .98); border-top: 1px solid #e2e8f0; box-shadow: 0 -10px 30px rgba(15, 23, 42, .12);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
}
.pdp-bar__row { display: flex; align-items: center; gap: 8px; }
.pdp-qty { display: flex; align-items: center; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 16px; padding: 4px; }
.pdp-qty button { width: 32px; height: 32px; border-radius: 12px; background: #fff; color: #334155; font-weight: 700; font-size: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); display: flex; align-items: center; justify-content: center; padding: 0; }
.pdp-qty button:active, .pdp-cta:active, .pdp-wa:active { transform: scale(.95); }
.pdp-qty input { width: 28px; padding: 0; border: 0; background: transparent; text-align: center; font-weight: 800; font-size: 14px; color: #1e293b; -moz-appearance: textfield; appearance: textfield; box-shadow: none; }
.pdp-qty input::-webkit-outer-spin-button, .pdp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-cta { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 12px; border-radius: 16px; background: var(--pdp-em); color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 8px 18px rgba(6, 78, 59, .22); white-space: nowrap; }
.pdp-cta[disabled] { background: #94a3b8; box-shadow: none; }
.pdp-wa { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 16px; background: #10b981; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(16, 185, 129, .3); }
.pdp-trust { margin-top: 8px; padding-top: 6px; border-top: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: space-around; gap: 4px; font-size: 10px; color: var(--pdp-mute); font-family: 'Tajawal', sans-serif; white-space: nowrap; }
.pdp-trust i { width: 3px; height: 3px; border-radius: 50%; background: #cbd5e1; flex: 0 0 3px; }
@media (max-width: 359px) { .pdp-trust { font-size: 9px; } .pdp-cta { font-size: 13px; } }

/* ==========================================================================
   صفحة السلة "حقيبة التسوق" (موبايل فقط)
   - العناصر اللي عليها .m-only مخفية على الديسكتوب (القاعدة الأساسية inline في index.html)
     وبتظهر من هنا بس، فالديسكتوب مبيتأثرش.
   - الـ aside والـ form بنفككهم بـ display:contents ونرتّب الأجزاء بـ order،
     عشان نفس الفورم/الـ ids/الـ handlers تفضل شغالة (store-checkout.js من غير أي تعديل).
   ========================================================================== */
#view-cart { padding: 8px 0 24px; max-width: 100%; }
#view-cart .cart-h1 { display: none; }
#view-cart > .grid { display: flex; flex-direction: column; gap: 12px; padding: 0 12px; }
#view-cart .m-only { display: block; }

#view-cart aside { display: contents; }
#view-cart aside > div:first-child { display: none; }        /* هيدر "ملخص الطلب" البنفسجي */
#view-cart aside > .p-6 { display: contents; }
#checkout-form { display: contents; }
#checkout-form > * { margin: 0 !important; }

/* الترتيب: كارت الشحن ← العنوان ← المنتجات ← الكوبون ← التوصيل ← قد يعجبك ← الفاتورة ← الثقة ← الزر */
#view-cart .cart-m-ship { order: 1; }
#view-cart .cart-m-head { order: 2; }
#cart-items-container { order: 3; display: flex; flex-direction: column; gap: 8px; }
#cart-items-container > * { margin: 0 !important; }
#view-cart .cart-coupon { order: 4; }
#view-cart .cart-delivery { order: 5; }
#view-cart .cart-cross { order: 6; }
#cart-summary-totals { order: 7; }
#view-cart .cart-trust { order: 8; }
#checkout-form > button[type="submit"] { order: 9; }
#view-cart aside .p-6 > p.flex { order: 10; margin: 0; }

/* ---------- كارت الشحن المجاني + كوبون الترحيب ---------- */
#view-cart .cart-m-ship {
  background: linear-gradient(90deg, #fbf8f0, #fdfcf7 50%, #f5ede0);
  border: 1px solid rgba(212, 175, 55, .4);
  border-radius: 16px;
  padding: 16px;
}
#view-cart .cart-m-ship:empty { display: none; }
.cart-ship__top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cart-ship__ico { width: 32px; height: 32px; flex: none; border-radius: 50%; background: rgba(197, 155, 39, .15); border: 1px solid rgba(197, 155, 39, .3); color: #c59b27; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.cart-ship__txt { flex: 1; min-width: 0; }
.cart-ship__txt h3 { margin: 0; font-size: 15px; line-height: 20px; font-weight: 700; color: #0d3e30; }
.cart-ship__txt p { margin: 2px 0 0; font-size: 12px; line-height: 18px; font-weight: 600; color: #b8860b; }
.cart-ship__pct { flex: none; padding: 2px 10px; border-radius: 9999px; background: linear-gradient(90deg, #c59b27, #dfba45); color: #fff; font-size: 10px; line-height: 14px; font-weight: 700; }
.cart-ship__bar { height: 10px; border-radius: 9999px; background: #f5ede0; border: 1px solid rgba(212, 175, 55, .2); overflow: hidden; margin-bottom: 12px; }
.cart-ship__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(270deg, #0f4c3a, #135d46 50%, #c59b27); transition: width .5s ease-out; }
.cart-ship__coupon { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .9); border: 1px solid rgba(212, 175, 55, .3); }
.cart-ship__coupon p { margin: 0; min-width: 0; font-size: 12px; line-height: 18px; color: #141e1b; }
.cart-ship__coupon p b { color: #0f4c3a; }
.cart-ship__coupon code { display: inline-block; padding: 1px 6px; border-radius: 4px; background: #fbf8f0; border: 1px solid rgba(212, 175, 55, .3); color: #c59b27; font-weight: 700; letter-spacing: .05em; }
.cart-ship__coupon button { flex: none; padding: 6px 12px; border-radius: 9999px; background: linear-gradient(90deg, #c59b27, #b8860b); color: #fff; font-size: 10px; line-height: 14px; font-weight: 700; }
.cart-ship__coupon button:active { transform: scale(.95); }

/* ---------- عنوان الحقيبة ---------- */
#view-cart .cart-m-head { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.cart-m-head__title { font-family: 'Cairo', 'Tajawal', sans-serif; font-size: 20px; line-height: 30px; font-weight: 700; color: #0d3e30; }
.cart-m-head__count { padding: 2px 10px; border-radius: 9999px; background: #0f4c3a; color: #fff; font-size: 10px; line-height: 14px; font-weight: 700; }
.cart-m-head__count:empty { display: none; }
.cart-m-head__clear { margin-inline-start: auto; display: flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; color: #707974; }
.cart-m-head__clear:active { color: #dc2626; }

/* ---------- كروت المنتجات ---------- */
#view-cart .cart-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; background: #fff; border: 1px solid #e5ebe7; border-radius: 16px;
  box-shadow: var(--m-shadow);
}
#view-cart .cart-card__img { width: 80px; height: 80px; flex: none; padding: 6px; border-radius: 12px; background: #ebf5f0; border: 1px solid rgba(229, 235, 231, .7); }
#view-cart .cart-card--gift .cart-card__img { background: #fbf8f0; }
#view-cart .cart-card__body { flex: 1; min-width: 0; padding: 0; }
#view-cart .cart-card__body > * { margin: 0 !important; }
#view-cart .cart-card__tags { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding-inline-end: 28px; min-height: 18px; }
.cart-card__cat { font-size: 11px; line-height: 16px; font-weight: 600; color: #135d46; }
.cart-card__cat:empty { display: none; }
.cart-card__badge { padding: 1px 8px; border-radius: 9999px; background: linear-gradient(90deg, #c59b27, #b8860b); color: #fff; font-size: 10px; line-height: 16px; font-weight: 700; }
#view-cart .cart-card h3 { margin-top: 4px !important; font-size: 15px; line-height: 20px; font-weight: 700; color: #0d3e30; text-transform: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#view-cart .cart-card__row { padding-top: 8px; }
#view-cart .cart-card__row > span { font-family: 'Cairo', 'Tajawal', sans-serif; font-size: 18px; line-height: 28px; font-weight: 700; color: #0f4c3a; }
#view-cart .cart-card__row > div { align-items: center; padding: 2px; border-radius: 9999px; background: #e5f0eb; border: 1px solid #e5ebe7; }
#view-cart .cart-card__row > div button { width: 28px; height: 28px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
#view-cart .cart-card__row > div button:first-child { background: #0f4c3a; color: #fff; }
#view-cart .cart-card__row > div button:last-child { background: #fff; color: #141e1b; }
#view-cart .cart-card__row > div button:active { transform: scale(.9); }
#view-cart .cart-card__row > div span { padding: 0 12px; font-size: 12px; font-weight: 700; color: #141e1b; }
#view-cart .cart-card__x { position: absolute; top: 10px; left: 10px; width: 28px; height: 28px; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; color: #707974; }
#view-cart .cart-card__x:active { color: #dc2626; }
#view-cart .cart-empty { padding: 48px 16px; background: #fff; border-radius: 16px; border: 1px solid rgba(212, 175, 55, .3); letter-spacing: 0; font-weight: 700; color: #0d3e30; }

/* ---------- كود الخصم ---------- */
#view-cart .cart-coupon { margin: 0 !important; padding: 16px; background: #fff; border: 1px solid #e5ebe7; border-radius: 16px; box-shadow: var(--m-shadow); }
.cart-card-title { margin-bottom: 8px; font-size: 15px; line-height: 20px; font-weight: 700; color: #0d3e30; }
#coupon-input-wrap { gap: 8px; }
#coupon-code-input { height: 48px; padding-block: 0; background: #ebf6f1; border-color: #e5ebe7; border-radius: 12px; font-size: 12px; font-weight: 600; letter-spacing: .05em; }
#apply-coupon-btn { height: 48px; padding: 0 16px; border-radius: 12px; background: linear-gradient(90deg, #0f4c3a, #0d3e30); font-size: 12px; font-weight: 700; }
#coupon-applied-wrap { background: #fbf8f0; border-color: rgba(212, 175, 55, .3); border-radius: 12px; padding: 8px 12px; }
#coupon-applied-wrap > span { color: #16a34a; font-size: 12px; }

/* ---------- بيانات التوصيل والدفع ---------- */
#view-cart .cart-delivery { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: #fff; border: 1px solid #e5ebe7; border-radius: 16px; box-shadow: var(--m-shadow); }
#view-cart .cart-delivery > * { margin: 0 !important; }
#view-cart .cart-delivery__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 8px; margin-bottom: 4px !important; border-bottom: 1px solid #e5ebe7; }
.cart-delivery__title { display: flex; align-items: center; gap: 8px; font-family: 'Cairo', 'Tajawal', sans-serif; font-size: 16px; line-height: 20px; font-weight: 800; color: #0d3e30; }
.cart-delivery__title i { color: #0f4c3a; font-size: 18px; }
.cart-delivery__badge { flex: none; padding: 3px 10px; border-radius: 9999px; background: #fbf8f0; border: 1px solid rgba(212, 175, 55, .4); color: #b8860b; font-size: 10px; line-height: 14px; font-weight: 700; }
#view-cart .cart-lbl { margin-top: 10px !important; font-size: 12px; line-height: 16px; font-weight: 700; color: #0d3e30; }
#view-cart .cart-delivery__head + .cart-lbl { margin-top: 0 !important; }
#view-cart .cart-delivery :is(input, select, textarea):not([type="radio"]) { width: 100%; height: 48px; padding: 0 12px; background: #ebf6f1; border: 1px solid #e5ebe7; border-radius: 12px; font-size: 14px; color: #141e1b; box-shadow: none; }
#view-cart .cart-delivery textarea { height: 84px; padding: 12px; resize: none; }
#view-cart .cart-delivery :is(input, select, textarea):focus { outline: none; background: #fff; border-color: #0f4c3a; box-shadow: 0 0 0 3px rgba(15, 76, 58, .12); }
/* الـ select الأصلي للدفع بيفضل في الـ DOM (الطلب بيقرا منه) لكن مخفي بصرياً لحد ما الكروت تحل محله */
#view-cart #cust-payment { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; }

#view-cart .pay-cards { display: flex !important; flex-direction: column; gap: 8px; }
.pay-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: #ebf6f1; border: 1px solid #e5ebe7; cursor: pointer; transition: background .15s, border-color .15s; }
.pay-card.is-on { background: #eff6ff; border-color: #2563eb; box-shadow: 0 0 0 1px #2563eb; }
/* الراديو: نفس الشكل بالظبط في كل الحالات (افتراضي / بعد الاختيار / وهو focus).
   #view-cart في الأول عشان قاعدة focus بتاعة حقول الفورم (أخضر) ماتغلبهاش. */
#view-cart .pay-card input[type="radio"] {
  -webkit-appearance: none !important; appearance: none !important;
  width: 22px; height: 22px; flex: none; margin: 0; padding: 0;
  border-radius: 50%; border: 2px solid #9ca3af; color: #2563eb;
  background-color: #fff !important; background-image: none !important;
  background-repeat: no-repeat !important; background-position: center !important;
  background-size: 100% 100% !important; background-origin: border-box !important;
  box-shadow: none; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
#view-cart .pay-card input[type="radio"]:checked,
#view-cart .pay-card input[type="radio"]:checked:focus,
#view-cart .pay-card input[type="radio"]:checked:active {
  /* دايرة زرقاء من برا + فراغ أبيض + نقطة زرقاء صغيرة في النص */
  background-color: #fff !important;
  background-image: radial-gradient(circle closest-side, #2563eb 0, #2563eb 36%, transparent 40%) !important;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
#view-cart .pay-card input[type="radio"]:focus:not(:checked) { border-color: #9ca3af; box-shadow: none; }
.pay-card.is-on .pay-card__ico { background: #dbeafe; border-color: #2563eb; color: #2563eb; }
.pay-card__txt { flex: 1; min-width: 0; }
.pay-card__txt b { display: block; font-size: 14px; line-height: 20px; font-weight: 700; color: #0d3e30; }
.pay-card__txt small { display: block; margin-top: 2px; font-size: 12px; line-height: 16px; color: #404944; }
.pay-card__ico { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #fff; border: 1px solid #e5ebe7; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); display: flex; align-items: center; justify-content: center; color: #0f4c3a; font-size: 18px; }
.pay-card__ico img { width: 24px; height: auto; max-height: 20px; object-fit: contain; }
#instapay-hint, #vodafone-cash-hint { margin-top: 4px !important; background: #fbf8f0; border-color: rgba(212, 175, 55, .3); border-radius: 12px; padding: 10px 12px; font-size: 12px; line-height: 18px; color: #141e1b; }

/* ---------- قد يعجبكِ أيضاً ---------- */
#view-cart .cart-cross { margin: 0 -12px; }
#view-cart .cart-cross:empty { display: none; }
.cart-cross__head { padding: 0 12px 8px; }
.cart-cross__head h3 { margin: 0; font-size: 18px; line-height: 28px; font-weight: 700; color: #0d3e30; }
.cart-cross__head p { margin: 0; font-size: 12px; line-height: 18px; color: #404944; }
.cart-cross__row { display: flex; gap: 12px; padding: 0 12px 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cart-cross__row::-webkit-scrollbar { display: none; }
.cart-cross__card { width: 176px; flex: none; display: flex; flex-direction: column; padding: 12px; background: #fff; border: 1px solid #e5ebe7; border-radius: 16px; box-shadow: var(--m-shadow); }
.cart-cross__img { width: 100%; height: 112px; margin-bottom: 8px; border-radius: 12px; overflow: hidden; background: #e5f0eb; border: 1px solid #e5ebe7; }
.cart-cross__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-cross__cat { font-size: 11px; line-height: 16px; font-weight: 600; color: #135d46; }
.cart-cross__card h4 { margin: 2px 0 0; font-size: 14px; line-height: 20px; font-weight: 700; color: #0d3e30; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-cross__price { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: #0f4c3a; }
.cart-cross__price small { font-size: 10px; color: #404944; font-weight: 600; }
.cart-cross__card button { margin-top: auto; padding: 6px; border-radius: 9999px; background: #dfebe6; border: 1px solid #e5ebe7; color: #0f4c3a; font-size: 11px; line-height: 16px; font-weight: 700; }
.cart-cross__card h4 + .cart-cross__price { margin-bottom: 8px; }
.cart-cross__card button:active { background: #0f4c3a; color: #fff; }

/* ---------- ملخص الحساب (فاتورة) ---------- */
#cart-summary-totals { padding: 16px; background: #fff; border: 1px solid rgba(212, 175, 55, .3); border-radius: 16px; box-shadow: var(--m-shadow); margin: 0 !important; }
#cart-summary-totals:empty { display: none; }
#cart-summary-totals > * + * { margin-top: 8px; }
#view-cart .cart-sum__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; margin-bottom: 12px; border-bottom: 1px solid #e5ebe7; }
.cart-sum__head b { font-family: 'Cairo', 'Tajawal', sans-serif; font-size: 18px; line-height: 28px; font-weight: 800; color: #0d3e30; }
.cart-sum__head span { display: flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; color: #b8860b; }
#cart-summary-totals .cart-sum__ship { display: none; }
#cart-summary-totals .cart-sum__total { background: none; color: #0f4c3a; border-top: 1px solid rgba(197, 155, 39, .2); border-radius: 0; padding: 12px 0 0; margin-top: 8px; }
.cart-sum__total > div.absolute { display: none; }
.cart-sum__total > span:first-of-type { font-size: 16px; font-weight: 800; color: #0d3e30; }
#view-cart .cart-sum__note { display: block; margin-top: 2px; font-size: 12px; line-height: 16px; font-weight: 400; color: #707974; }
.cart-sum__total > span:last-child { font-family: 'Cairo', 'Tajawal', sans-serif; font-size: 26px; line-height: 36px; font-weight: 800; color: #0f4c3a; }
.cart-sum__total > span:last-child span { color: #b8860b; }

/* ---------- شارات الثقة ---------- */
#view-cart .cart-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cart-trust > div { display: flex; align-items: center; gap: 8px; padding: 8px; background: #fff; border: 1px solid #e5ebe7; border-radius: 12px; box-shadow: var(--m-shadow); }
.cart-trust i { width: 32px; height: 32px; flex: none; border-radius: 50%; background: rgba(15, 76, 58, .1); color: #0f4c3a; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.cart-trust > div:nth-child(even) i { background: #fbf8f0; border: 1px solid rgba(212, 175, 55, .4); color: #c59b27; }
.cart-trust span { min-width: 0; }
.cart-trust b { display: block; font-size: 12px; line-height: 16px; font-weight: 700; color: #141e1b; }
.cart-trust small { display: block; font-size: 11px; line-height: 14px; color: #404944; }

/* ---------- زر تأكيد الطلب ---------- */
#checkout-form > button[type="submit"] {
  width: 100%; height: 56px; padding: 0 16px; margin-top: 8px !important;
  border-radius: 9999px; border: 1px solid rgba(212, 175, 55, .3);
  background: #0f4c3a; box-shadow: 0 4px 12px rgba(15, 76, 58, .25);
  font-family: 'Cairo', 'Tajawal', sans-serif; font-size: 17px; font-weight: 700; color: #fff;
}
#checkout-form > button[type="submit"]:hover { background: #0d3e30; filter: none; }
#checkout-form > button[type="submit"][data-total]:not(:disabled)::after { content: " (" attr(data-total) " ج.م)"; }
#checkout-form > button[type="submit"]:disabled { opacity: .7; }

/* ---------- سلة فاضية: نخفي كل اللي ملوش لازمة ---------- */
#view-cart.cart-is-empty :is(.cart-m-ship, .cart-m-head, .cart-cross, .cart-trust, .cart-coupon, .cart-delivery, #cart-summary-totals) { display: none; }
#view-cart.cart-is-empty #checkout-form > button[type="submit"],
#view-cart.cart-is-empty aside .p-6 > p.flex { display: none; }
