/* ============================================================
   store.css — تنسيق متجر Sun Ray (مستقلّ بذاته، RTL، فاتح)
   ============================================================ */

/* ===== خطوط الهوية الرسمية 2026 (ذاتية الاستضافة من sunray-profile) ===== */
@font-face { font-family: 'Baloo Bhaijaan 2'; src: url('../sunray-profile/fonts/BalooBhaijaan2.ttf') format('truetype'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Biome W01 Black'; src: url('../sunray-profile/fonts/Biome-W01-Black.ttf') format('truetype'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../sunray-profile/fonts/Poppins-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }

/* ثيم موحّد مع المنيو (theme-unified) — داكن افتراضي + وضع فاتح */
:root {
  --bg: #1d1b19;
  --card: #282420;
  --bg-2: #211d1a;
  --cream: #332e22;
  --text: #f0ece5;
  --muted: #b6b0a5;
  --border: #3a3530;
  --gold: #f1d488;
  --gold-deep: #d8b061;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(0, 0, 0, .35);
  /* خطوط الهوية: عربي = Baloo، عرض إنجليزي = Biome، نص إنجليزي = Poppins */
  --font-ar: 'Baloo Bhaijaan 2', sans-serif;
  --font-en: 'Biome W01 Black', 'Poppins', sans-serif;
  --font-en2: 'Poppins', sans-serif;
  /* ألوان الهوية الرسمية (ثابتة في الوضعين) */
  --id-gold: #fcda4c;   /* ذهبي الهوية */
  --green: #96d0a5;     /* أخضر فاتح */
  --olive: #527f5f;     /* أخضر زيتوني */
}
/* اللايت مود مبني على دليل الهوية الرسمي (sunray-profile) — أبيض + ذهبي الهوية + فحمي */
/* مهم: نعرّفها على html.light-mode أيضاً (يضيفه سكربت ما-قبل-الرسم) ليختفي وميض الدارك عند الفتح */
html.light-mode, body.light-mode {
  --bg: #f4f3ef;          /* أبيض مطفي (نفس الصفحة الرئيسية الجديدة) */
  --card: #f6f1e2;        /* بطاقات بيج (معكوس — نفس الرئيسية) */
  --bg-2: #ffffff;        /* أسطح داخلية بيضاء (مدخلات/حقول) */
  --cream: #fbf5d5;       /* كريمي للإبراز */
  --text: #434344;        /* فحمي الهوية الرسمي */
  --muted: #6c6f74;       /* رمادي الهوية الرسمي */
  --border: #e7ddc9;      /* حدّ دافئ فاتح */
  --gold: #fcda4c;        /* ذهبي الهوية الرسمي المشعّ */
  --gold-deep: #8a6d12;   /* ذهبي النص الرسمي (gold-ink) — تباين على الأبيض */
  --shadow: 0 10px 26px rgba(67, 67, 68, .10);  /* ظل الهوية */
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: var(--font-ar);
}
a { color: var(--gold-deep); text-decoration: none; }
.container { max-width: 980px; margin: 0 auto; padding: 16px; }
.text-sm { font-size: .85rem; }

/* ── الهيدر ── */
.store-top {
  position: sticky; top: 0; z-index: 30;
  background: var(--card); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
}
.store-top .brand { display: flex; align-items: center; gap: 10px; }
.store-top .brand img { width: 38px; height: 38px; border-radius: 10px; }
.store-top .brand b { font-size: 1.05rem; }
.store-top .brand span { display: block; font-size: .72rem; color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 6px; }

/* ── توازن الهيدر/التنسيق على الجوال (تجربة العميل) ── */
@media (max-width: 480px) {
  .store-top { padding: 8px 12px; }
  .store-top .brand { min-width: 0; gap: 8px; }
  .store-top .brand > div { min-width: 0; }
  .store-top .brand img { width: 32px; height: 32px; }
  .store-top .brand b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .store-top .brand span { display: none; }          /* إخفاء السطر الثانوي لتوازن الهيدر */
  .top-actions { gap: 4px; }
  .btn { padding: 9px 11px; font-size: .85rem; }
  .btn.icon { width: 42px; height: 42px; }
  .store-hero { padding: 16px 14px; }
  .steps-lead { font-size: 1rem; margin-bottom: 10px; }
}

/* ── الأزرار ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--card); color: var(--text); font-family: inherit; font-weight: 700;
  cursor: pointer; transition: .15s; font-size: .92rem;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #3a2d00; }
.btn.icon { width: 42px; height: 42px; padding: 0; border-radius: 50%; position: relative; }

.input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--card); color: var(--text); font-family: inherit;
  font-size: 1rem; outline: none;
}
.input:focus { border-color: var(--gold); }
label { display: block; margin: 4px 0; font-weight: 700; font-size: .9rem; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ── شارة السلّة ── */
#cartCount {
  position: absolute; top: -4px; inset-inline-end: -4px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: #b3261e; color: #fff; font-size: .72rem; font-weight: 800;
  display: grid; place-items: center;
}

/* ── شبكة الخدمات ── */
.cat-block { margin-top: 18px; }
.cat-title { font-size: 1.15rem; margin: 0 0 10px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.svc-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.svc-thumb { aspect-ratio: 4/3; background: #faf6e8; overflow: hidden; }
.svc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--gold); font-size: 2.4rem; }
.svc-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.svc-body h3 { margin: 0; font-size: 1rem; }
.svc-desc { margin: 0; font-size: .82rem; color: var(--muted); flex: 1; }
.svc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.svc-price { font-weight: 800; color: var(--gold-deep); }
.svc-out { font-size: .8rem; color: #b3261e; font-weight: 700; }

/* ── البانر المغلق ── */
.closed-banner {
  display: none; text-align: center; padding: 30px 16px; margin-top: 16px;
  background: #fff5f5; border: 1px solid #f3c9c9; border-radius: var(--radius); color: #b3261e;
}

/* ── درج السلّة ── */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: .2s; z-index: 40; }
.cart-overlay.show { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; inset-inline-end: 0; height: 100%; width: min(380px, 90vw);
  background: var(--card); z-index: 50; box-shadow: -8px 0 30px rgba(0,0,0,.15);
  transform: translateX(100%); transition: transform .25s; display: flex; flex-direction: column;
}
html[dir="rtl"] .cart-drawer { transform: translateX(-100%); }
.cart-drawer.open { transform: translateX(0) !important; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.cart-head h3 { margin: 0; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 16px; }
.cart-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cart-info strong { display: block; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: 1.1rem; cursor: pointer; }
.cart-foot { padding: 14px 16px; border-top: 1px solid var(--border); }
.cart-total { display: flex; align-items: center; justify-content: space-between; font-weight: 800; margin-bottom: 10px; }

/* ── ملخّص الدفع / الطلب ── */
.sum-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }
.sum-row.total { font-weight: 800; font-size: 1.05rem; color: var(--gold-deep); }
.order-status { font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.order-code { margin-top: 6px; color: var(--muted); }
.order-link { display: flex; align-items: center; justify-content: space-between; padding: 14px; margin-bottom: 10px; }

/* 💳 صندوق «أكمِل الدفع» — يظهر في صفحة التتبّع للطلب غير المدفوع */
.ord-paybox { margin-top: 12px; padding: 13px 14px; border-radius: 14px; background: #fff7e0; border: 1px solid #f0d98a; }
.ord-paybox-t { font-weight: 900; font-size: .95rem; color: #8a6a10; display: flex; align-items: center; gap: 7px; }
.ord-paybox-s { font-size: .82rem; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.ord-paybtn { width: 100%; margin-top: 11px; justify-content: center; text-decoration: none; font-size: 1.02rem; padding: 13px; }
.ord-paybox.expired { background: #f6f2ea; border-color: #e2d8c4; }
.ord-paybox.expired .ord-paybox-t { color: var(--muted); }

#statusBanner { display: none; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid; border-radius: var(--radius); font-weight: 700; margin-top: 12px; background: #fff; }
#qrWrap { width: 150px; height: 150px; margin: 14px auto; background: #fff; border-radius: 12px; overflow: hidden; }
#qrWrap canvas, #qrWrap img { width: 100%; height: 100%; display: block; }

hr { border: none; border-top: 1px solid var(--border); margin: 10px 0; }

/* نموذج Moyasar */
.mysr-form { margin-top: 8px; }

/* ============================================================
   🎴 بطاقات المنتجات — طبق الأصل من المنيو (بطاقة قلّابة) + زر سلة مستقل
   ============================================================ */
/* خطوط الهوية: Baloo Bhaijaan 2 للعربي، Biome W01 Black للعرض الإنجليزي، Poppins للنص الإنجليزي */

/* عنوان القسم */
.store-sec { margin-top: 8px; }
.store-sec > h2 { font-family: 'Baloo Bhaijaan 2','Cairo',sans-serif; color: var(--gold-deep); font-size: 1.5rem; font-weight: 800; margin: 18px 4px 4px; display: flex; align-items: center; gap: 8px; }
.store-sec > h2 .count { font-size: .85rem; color: var(--muted); font-weight: 600; }
/* قسم فرعي (فاخرة / كلاسيكية) */
.sub-head { font-family: 'Baloo Bhaijaan 2','Cairo',sans-serif; font-weight: 800; color: var(--gold); font-size: 1.1rem; margin: 16px 6px 2px; padding-inline-start: 10px; border-inline-start: 3px solid var(--gold); }

/* شرائح التصنيفات */
.cat-chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip { flex: 0 0 auto; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-family: 'Baloo Bhaijaan 2','Cairo',sans-serif; font-weight: 700; font-size: .92rem; cursor: pointer; white-space: nowrap; transition: .15s; }
.cat-chip.active { background: var(--gold); border-color: var(--gold); color: #3a2d00; box-shadow: 0 4px 14px rgba(252,218,76,.45); }

/* الشبكة (نفس --cs المتدرّج من المنيو) */
.crop-deck { display: grid; grid-template-columns: repeat(auto-fill, calc(340px * var(--cs) + 22px)); justify-content: center; align-items: start; gap: 18px 16px; padding: 6px 2px 24px; --cs: 0.64; }
/* صفحة المنيو تستغل عرض الديسكتوب (بدل حصرها بـ980px فتُعرض أعمدة أقل من التابلت) */
main.container:has(#catalog) { max-width: 1180px; }
@media (max-width: 1024px) { .crop-deck { --cs: 0.6; } }
@media (max-width: 768px)  { .crop-deck { --cs: 0.56; gap: 16px 14px; } }
@media (max-width: 560px)  { .crop-deck { --cs: 0.5; gap: 14px 12px; } }
@media (max-width: 400px)  { .crop-deck { --cs: 0.46; gap: 12px 10px; } }

/* علامة الريال السعودي بعد السعر */
.riyal-txt { margin-inline-start: 4px; font-size: .82em; font-weight: 700; opacity: .9; }

/* عنصر المتجر = البطاقة + أزرارها داخل برواز خفيف يلمّها */
.store-item { display: flex; flex-direction: column; align-items: stretch; gap: 9px; padding: 9px; border: 1px solid var(--border); border-radius: 16px; background: color-mix(in srgb, var(--card) 55%, transparent); }
@media (max-width: 560px) { .store-item { padding: 6px; gap: 7px; border-radius: 13px; } .container { padding: 10px; } .crop-picker { max-height: 130px; } }
/* بطاقة الطريقة (V60 حار/بارد · إسبريسو) */
.method-frame { gap: 8px; }
.method-title { font-family: 'Baloo Bhaijaan 2','Cairo',sans-serif; font-weight: 800; color: var(--gold-deep); font-size: 1.1rem; text-align: center; }
.crop-picker { width: 100%; }
.crop-select { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--gold); background: var(--card); color: var(--text); font-family: 'Baloo Bhaijaan 2','Cairo',sans-serif; font-weight: 700; font-size: .86rem; cursor: pointer; outline: none; }
.crop-select:focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 35%, transparent); }
.crop-select optgroup { font-weight: 800; color: var(--gold-deep); }

/* 🥛 منتقي نوع الحليب على البطاقات المؤهّلة */
.milk-row { width: 100%; }
.milk-pick { display: flex; align-items: center; gap: 7px; width: 100%; }
.milk-pick .milk-ico { flex: none; font-size: 1rem; }
.milk-select { flex: 1; width: 100%; padding: 9px 10px; border-radius: 12px; border: 1px dashed var(--gold); background: var(--card); color: var(--text); font-family: 'Baloo Bhaijaan 2','Cairo',sans-serif; font-weight: 700; font-size: .82rem; cursor: pointer; outline: none; }
.milk-select:focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 35%, transparent); }

/* مقاس البطاقة (نمط cup) */
.card-fit { position: relative; width: calc(340px * var(--cs, 0.70)); height: calc(478px * var(--cs, 0.70)); overflow: hidden; overflow: clip; overflow-clip-margin: 45px; }
.card-container { --base: #7a4a25; --frame: color-mix(in srgb, var(--base) 48%, #1f1710); --stage-bg: color-mix(in srgb, var(--base) 36%, #160f0a); --accent: color-mix(in srgb, var(--base) 42%, #f3ddb0); --on-frame: color-mix(in srgb, var(--base) 20%, #f6ecd8); --dots: color-mix(in srgb, var(--base) 45%, transparent); width: 340px; height: 478px; perspective: 1200px; cursor: pointer; position: absolute; top: 0; left: 0; transform-origin: top left; transform: scale(var(--cs, 0.70)); }
.card-container.cup { --on-frame: #f5efe2; --accent: #f0d79a; --stage-bg: rgba(255,255,255,0.05); --dots: rgba(240,215,154,0.32); }

.flip-card-inner { position: relative; width: 100%; height: 100%; transition: transform .8s cubic-bezier(.4,.2,.2,1); transform-style: preserve-3d; }
.card-container.flipped .flip-card-inner { transform: rotateY(180deg); }
.card-front, .card-back { position: absolute; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 14px; overflow: hidden; transition: transform .8s, opacity 0s linear .4s; }
.card-front { display: flex; flex-direction: column; padding: 14px; box-sizing: border-box; }
.card-back { transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; padding: 20px 22px; text-align: center; color: var(--on-frame); box-sizing: border-box; opacity: 0; }
.card-container.flipped .card-front { opacity: 0; }
.card-container.flipped .card-back { opacity: 1; }
.card-container.cup .card-front, .card-container.cup .card-back { background-color: #2a221b; border: 1px solid rgba(240,215,154,0.22); box-shadow: 0 10px 26px rgba(0,0,0,0.45); }
/* وضع فاتح للبطاقة (يتبع ثيم الموقع) */
body.light-mode .card-container.cup { --on-frame: #3d3127; --accent: #a98a55; --stage-bg: #efe9df; --dots: rgba(120,95,55,0.22); }
body.light-mode .card-container.cup .card-front, body.light-mode .card-container.cup .card-back { background-color: #f8f5ef; border: none; box-shadow: 0 8px 22px rgba(40,28,14,0.12); }
body.light-mode .big-word { color: #3d3127; text-shadow: 0 1px 5px rgba(255,255,255,0.6); }

.stage { position: relative; width: 100%; height: auto; aspect-ratio: 1081 / 1351; margin: 6px auto 0; background-color: var(--stage-bg); border-radius: 12px; overflow: hidden; }
.big-word { position: absolute; line-height: .9; padding: 6px 10px; z-index: 12; max-width: 92%; color: #f3ece0; text-shadow: 0 1px 6px rgba(0,0,0,0.7); }
.big-word.tl { top: 0; right: 0; font-family: var(--font-en); font-weight: 900; font-size: 1.7rem; text-transform: uppercase; }
.big-word.br { bottom: 0; left: 0; font-family: 'Baloo Bhaijaan 2','Cairo',sans-serif; font-weight: 900; font-size: 1.9rem; }
.image-wrapper { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; z-index: 5; }
.product-image { width: 100%; height: 100%; object-fit: cover; }
.info-block { padding: 14px 6px 6px; text-align: center; color: var(--on-frame); }
.price { display: flex; justify-content: center; align-items: center; gap: 10px; border-top: 1px dashed var(--dots); padding-top: 10px; flex-wrap: wrap; }
.pchip { font-family: 'Baloo Bhaijaan 2','Cairo',sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--accent); display: inline-flex; align-items: baseline; gap: 5px; }
.pchip .pk { font-size: .62rem; letter-spacing: 1px; opacity: .8; border: 1px solid var(--accent); border-radius: 6px; padding: 1px 5px; }
.cal-chip { display: inline-flex; align-items: center; gap: 5px; font-family: 'Baloo Bhaijaan 2','Cairo',sans-serif; font-size: .72rem; font-weight: 700; color: var(--on-frame); opacity: .9; border: 1px solid var(--dots); border-radius: 8px; padding: 3px 8px; }
.cal-chip i { color: #e8884a; font-size: .8rem; }
.card-back h3 { font-family: 'Baloo Bhaijaan 2','Cairo',sans-serif; font-size: 1.7rem; color: var(--accent); margin: 0 0 12px; }
.crop-description .desc-ar { font-family: 'Baloo Bhaijaan 2','Cairo',sans-serif; font-size: 1.3rem; line-height: 1.6; margin: 0; color: var(--on-frame); }
.details-list { width: 100%; text-align: right; margin-top: 10px; }
.details-list .row { padding: 8px 0; border-bottom: 1px dashed var(--dots); display: flex; justify-content: space-between; gap: 10px; }
.details-list .row:last-child { border-bottom: none; }
.details-list .label { font-family: 'Baloo Bhaijaan 2','Cairo',sans-serif; font-size: 1.05rem; color: var(--accent); }

/* تلميح القلب */
.card-front::after { content: "للمزيد"; font-family: 'Baloo Bhaijaan 2','Cairo',sans-serif; font-weight: 900; font-size: .72rem; direction: rtl; position: absolute; left: 12px; top: 12px; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 20%, transparent); backdrop-filter: blur(4px); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); z-index: 16; pointer-events: none; animation: flipHintPulse 2.2s ease-in-out infinite; }
@keyframes flipHintPulse { 0%,100% { transform: scale(1); opacity: .78; } 50% { transform: scale(1.06); opacity: 1; } }

/* النجوم */
.sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 14; overflow: hidden; border-radius: 14px; }
.star { position: absolute; color: var(--accent); opacity: 0; animation: cropTwinkle 2.6s infinite ease-in-out; filter: drop-shadow(0 0 3px var(--accent)); }
.star svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.star.s1{top:26px;right:22px;width:18px;height:18px;animation-delay:0s}.star.s2{top:90px;right:30px;width:11px;height:11px;animation-delay:.7s}.star.s3{top:180px;right:18px;width:14px;height:14px;animation-delay:1.3s}.star.s4{top:60px;left:24px;width:13px;height:13px;animation-delay:.4s}.star.s5{top:150px;left:18px;width:17px;height:17px;animation-delay:1s}.star.s6{top:240px;left:28px;width:10px;height:10px;animation-delay:1.7s}
@keyframes cropTwinkle { 0%,100% { opacity:.15; transform: scale(.5) rotate(0); } 50% { opacity:1; transform: scale(1) rotate(20deg); } }

/* زر السلة المستقل أسفل البطاقة + ستيبر الكمية */
.cart-ctl { width: 100%; min-height: 46px; }
.add-btn { width: 100%; height: 46px; border: none; border-radius: 12px; background: var(--gold); color: #3a2d00; font-family: var(--font-ar); font-weight: 800; font-size: .98rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: .15s; box-shadow: 0 4px 12px rgba(244,197,66,.25); }
.add-btn:hover { transform: translateY(-1px); }
.add-btn.out { background: #eee; color: #999; cursor: not-allowed; box-shadow: none; }
.qty-stepper { width: 100%; height: 46px; display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; border: 1px solid var(--gold); border-radius: 12px; overflow: hidden; background: var(--card); }
.qty-stepper .q { color: var(--text); }
.qty-stepper button { height: 46px; border: none; background: var(--gold); color: #3a2d00; font-size: 1.3rem; font-weight: 800; cursor: pointer; }
.qty-stepper button:active { filter: brightness(.95); }
.qty-stepper .q { text-align: center; font-weight: 800; font-size: 1.05rem; }
.qty-stepper button.rm { background: var(--card); color: #b3261e; font-size: 1rem; }
.add-btn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px; }
/* الجوال: أزرار أصغر تظهر كاملة بلا اقتطاع */
@media (max-width: 560px) {
  .cart-ctl { min-height: 44px; }
  .add-btn { height: 44px; font-size: .82rem; gap: 5px; border-radius: 11px; }
  .qty-stepper { height: 44px; grid-template-columns: 44px 1fr 44px; border-radius: 11px; }
  .qty-stepper button { height: 44px; font-size: 1.15rem; }
  .qty-stepper .q { font-size: .98rem; }
}
@media (max-width: 400px) {
  .cart-ctl { min-height: 42px; }
  .add-btn { height: 42px; font-size: .76rem; }
  .add-btn i { font-size: .8em; }
  .qty-stepper { height: 42px; grid-template-columns: 42px 1fr 42px; }
  .qty-stepper button { height: 42px; font-size: 1.05rem; }
}

/* بطاقة بخيارات حجم */
.variant-ctl { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.size-row { display: flex; flex-wrap: wrap; gap: 6px; }
.size-pill { flex: 1 1 calc(50% - 3px); padding: 9px 6px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-family: 'Baloo Bhaijaan 2','Cairo',sans-serif; font-weight: 700; font-size: .82rem; cursor: pointer; transition: .15s; }
.size-pill.active { background: var(--gold); border-color: var(--gold); color: #3a2d00; }

/* ── بطاقة المحاصيل (crop-art): رسمة SVG + لون لكل حبة ── */
.card-fit.crop { height: calc(540px * var(--cs, 0.70)); }
.card-container.crop {
  --frame: color-mix(in srgb, var(--base) 48%, #1f1710);
  --stage-bg: color-mix(in srgb, var(--base) 36%, #160f0a);
  --accent: color-mix(in srgb, var(--base) 42%, #f3ddb0);
  --on-frame: color-mix(in srgb, var(--base) 20%, #f6ecd8);
  --dots: color-mix(in srgb, var(--base) 45%, transparent);
  height: 540px;
}
body.light-mode .card-container.crop {
  --frame: color-mix(in srgb, var(--base) 38%, #ffffff);
  --stage-bg: color-mix(in srgb, var(--base) 10%, #ffffff);
  --accent: color-mix(in srgb, var(--base) 80%, #3a2a1a);
  --on-frame: color-mix(in srgb, var(--base) 74%, #241a10);
  --dots: color-mix(in srgb, var(--base) 35%, transparent);
}
.card-container.crop .card-front, .card-container.crop .card-back { background-color: color-mix(in srgb, var(--frame) 80%, transparent); border: none; box-shadow: 0 12px 26px rgba(80,50,40,0.22); }
.card-container.crop .stage { width: 82%; height: 350px; aspect-ratio: auto; background-color: var(--stage-bg); border-radius: 8px; }
.card-container.crop .big-word { color: color-mix(in srgb, var(--base) 26%, #f6ecd8); }
body.light-mode .card-container.crop .big-word { color: color-mix(in srgb, var(--base) 72%, #241a10); }
.card-container.crop .product-image {
  width: 122%; height: 116%; object-fit: contain; animation: cropFloat 4s ease-in-out infinite;
  filter: brightness(0) saturate(100%) invert(82%) sepia(35%) saturate(560%) hue-rotate(345deg) brightness(98%) contrast(92%) drop-shadow(0 8px 14px rgba(0,0,0,0.4));
}
body.light-mode .card-container.crop .product-image { filter: drop-shadow(0 8px 14px rgba(80,50,40,0.20)); }
.card-container.crop .product-image.is-photo { filter: drop-shadow(0 8px 14px rgba(0,0,0,0.35)) !important; }
@keyframes cropFloat { 0% { transform: translateY(0); } 50% { transform: translateY(-8px); } 100% { transform: translateY(0); } }
.strain-combo { font-family: 'Baloo Bhaijaan 2','Cairo',sans-serif; font-size: .85rem; letter-spacing: 1px; text-transform: uppercase; opacity: .95; margin-bottom: 10px; color: var(--on-frame); }
.strain-combo .ar { letter-spacing: 0; }
.notes-icons { display: flex; justify-content: center; gap: 14px; margin-bottom: 10px; }
.note-ico { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.10); border: 1.5px solid var(--accent); color: var(--accent); }
.note-ico iconify-icon { font-size: 24px; }
.crop-description .desc-en { font-family: 'Baloo Bhaijaan 2','Cairo',sans-serif; font-size: .82rem; line-height: 1.4; margin: 6px 0 0; opacity: .85; color: var(--on-frame); }
.details-list .value { display: flex; align-items: center; gap: 7px; direction: rtl; font-size: .85rem; text-align: left; color: var(--on-frame); }
.details-list .value .v-ar { font-family: 'Baloo Bhaijaan 2','Cairo',sans-serif; }
.details-list .value .v-sep { opacity: .45; }
.details-list .value .v-en { font-family: 'Baloo Bhaijaan 2','Cairo',sans-serif; opacity: .85; }

/* شريط السلة السفلي */
.cart-bar { position: fixed; bottom: 0; inset-inline: 0; z-index: 35; display: none; align-items: center; justify-content: space-between; gap: 12px; width: min(680px, 94%); margin: 0 auto 14px; inset-inline-start: 0; inset-inline-end: 0; padding: 14px 18px; border: none; border-radius: 16px; background: var(--gold); color: #3a2d00; font-family: 'Baloo Bhaijaan 2','Cairo',sans-serif; font-weight: 800; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.cart-bar.show { display: flex; }
.cart-bar .cart-bar-count { display: inline-flex; align-items: center; gap: 8px; background: #3a2d00; color: var(--gold); padding: 6px 12px; border-radius: 999px; }
.cart-bar .cart-bar-label { flex: 1; text-align: center; }
.cart-bar .cart-bar-total { color: #3a2d00; }
main.container { padding-bottom: 90px; }

/* ============================================================
   إضافات واجهة العميل: زر الرئيسية + إعلان + بحث + ستيكر + تذييل
   ============================================================ */

/* زر «الصفحة الرئيسية» في الهيدر */
.home-btn { gap: 6px; padding: 9px 14px; border-radius: 12px; }
.home-btn .home-label { font-size: .9rem; }
@media (max-width: 480px) {
  .home-btn { width: 42px; height: 42px; padding: 0; border-radius: 50%; }
  .home-btn .home-label { display: none; }
}

/* إعلان المتجر (هيرو) + سياسة الطلب */
.store-hero {
  margin-top: 14px; padding: 22px 20px; border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 28%, var(--card)), var(--card));
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
/* خطوات الطلب — سطر أفقي واحد */
.steps-lead { text-align: center; margin: 0 0 14px; font-weight: 800; font-size: clamp(1rem, 3.4vw, 1.22rem); color: var(--gold-deep); }
.store-steps { display: flex; align-items: center; justify-content: center; gap: clamp(4px, 1.6vw, 10px); flex-wrap: nowrap; }
.store-steps .step {
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 8px clamp(8px, 2vw, 15px);
}
.store-steps .step i { font-size: clamp(.82rem, 2.6vw, 1.05rem); color: var(--olive); }
.store-steps .step b { font-size: clamp(.72rem, 2.4vw, .92rem); font-weight: 800; color: var(--text); }
.store-steps .step-num {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--id-gold); color: #3a2d00; font-weight: 800; font-size: .76rem; font-family: var(--font-en2);
}
.store-steps .step-sep { flex: 0 0 auto; display: flex; align-items: center; color: var(--gold-deep); font-size: clamp(.8rem, 2.4vw, 1.1rem); }
/* الجوال: ترتيب الخطوات عمودياً (كل خطوة بعرض كامل، والسهم ينزل) فلا تتجاوز الأطراف */
@media (max-width: 480px) {
  .store-hero { padding: 16px 12px; }
  .store-steps { flex-direction: column; gap: 8px; }
  .store-steps .step { width: 100%; justify-content: center; padding: 11px 14px; gap: 9px; }
  .store-steps .step i { display: inline-block; font-size: 1rem; }
  .store-steps .step b { font-size: .95rem; }
  .store-steps .step-sep { transform: rotate(-90deg); margin: -3px 0; font-size: 1.05rem; }
  .no-delivery-note { font-size: .8rem; padding: 9px 14px; line-height: 1.5; border-radius: 14px; text-align: center; }
}
.no-delivery-note {
  margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: .88rem; color: var(--gold-deep); border-radius: 999px; padding: 9px 16px;
  background: color-mix(in srgb, var(--id-gold) 14%, var(--card)); border: 1px solid color-mix(in srgb, var(--id-gold) 40%, var(--border));
}

/* بحث سريع */
.store-search { position: relative; margin-top: 14px; }
.store-search > i { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.store-search input {
  width: 100%; padding-block: 13px; padding-inline: 42px 16px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--card); color: var(--text);
  font-family: inherit; font-size: 1rem; outline: none;
}
.store-search input:focus { border-color: var(--gold); }

/* ستيكر «جديد/صيفي» على بطاقة المتجر */
.store-item { position: relative; }
.store-badge {
  /* الزاوية العليا اليسرى فيزيائياً — بعيداً عن الاسم الإنجليزي (يمين) والعربي (أسفل) فلا يغطّي شيئاً */
  position: absolute; top: 6px; left: 6px; right: auto;
  inset-inline-start: auto; inset-inline-end: auto; z-index: 20;
  background: linear-gradient(135deg, #ffd45e, #efa93b); color: #3a2d00;
  font-weight: 800; font-size: .6rem; padding: 3px 8px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2); pointer-events: none; white-space: nowrap;
}
.store-badge.summer { background: linear-gradient(135deg, #ffd45e, #ff8a3d); color: #5a2a00; }
@media (max-width: 560px) { .store-badge { font-size: .55rem; padding: 2px 7px; top: 4px; left: 4px; } }

/* قسم «جديدنا» */
.new-arrivals > h2 { color: var(--gold-deep); }

/* التذييل: الرئيسية + حسابات التواصل + الدعم الفني */
.store-footer {
  margin-top: 30px; padding: 28px 16px 34px; border-top: 1px solid var(--border); background: var(--card);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.store-footer .foot-home {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text);
  padding: 10px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); transition: .2s;
}
.store-footer .foot-home:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-1px); }
.store-footer > * { width: 100%; max-width: 760px; }
.store-footer .foot-home, .store-footer .foot-copy { width: auto; }

/* خريطة الموقع في التذييل */
.store-map-card { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; text-align: right; }
#storeMap { position: relative; z-index: 0; height: 220px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--bg); }
.map-side { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.map-side h4 { margin: 0 0 4px; color: var(--gold-deep); font-size: 1.05rem; display: flex; align-items: center; gap: 6px; }
.map-side .branch-name { margin: 0; font-weight: 800; }
.map-side .branch-time { margin: 0; color: var(--muted); font-size: .85rem; display: flex; align-items: center; gap: 6px; }
.map-side .map-gps { margin-top: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--gold); color: #3a2d00; font-weight: 800; padding: 10px 14px; border-radius: 12px; transition: .2s; }
.map-side .map-gps:hover { transform: translateY(-1px); }
.store-pin-dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: var(--card); border: 2px solid var(--gold); box-shadow: 0 4px 12px rgba(0,0,0,.35); }
@media (max-width: 560px) { .store-map-card { grid-template-columns: 1fr; text-align: center; } #storeMap { height: 180px; } .map-side { align-items: center; } }

/* سياسة الطلب + الشروط (أكورديون) */
.store-policies { display: flex; flex-direction: column; gap: 10px; text-align: right; }
.policy-acc { border: 1px solid var(--border); border-radius: 12px; background: var(--bg); overflow: hidden; }
.policy-acc summary { cursor: pointer; padding: 13px 16px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 8px; list-style: none; }
.policy-acc summary::-webkit-details-marker { display: none; }
.policy-acc summary i { color: var(--gold-deep); }
.policy-acc[open] summary { border-bottom: 1px solid var(--border); }
.policy-body { padding: 8px 16px 14px; }
.policy-body ul { margin: 6px 0 0; padding-inline-start: 18px; color: var(--muted); font-size: .88rem; line-height: 1.9; }
.policy-body p { margin: 0 0 10px; color: var(--muted); font-size: .88rem; line-height: 1.9; }
.policy-body p:last-child { margin-bottom: 0; }
.policy-body p b { color: var(--text); }

.store-footer .foot-social { display: flex; gap: 12px; justify-content: center; }
.store-footer .foot-social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem;
  color: var(--text); background: var(--bg); border: 1px solid var(--border); transition: .2s;
}
.store-footer .foot-social a:hover { color: var(--gold-deep); border-color: var(--gold); transform: translateY(-2px); }
.store-footer .foot-copy { margin: 0; font-size: .8rem; color: var(--muted); }
