/* ============================================================
   LUNA BOUTIQUE — style.css
   ------------------------------------------------------------
   1.  Design tokens (ليلي افتراضي + نهاري)
   2.  Reset & base
   3.  شاشة التحميل
   4.  الطبقة الزخرفية (أيقونات خط رفيع فوق الأقسام الفارغة)
   5.  Layout helpers
   6.  Typography
   7.  أزرار
   8.  الهيدر + التنقل
   9.  زر تبديل المظهر + السلة
   10. القائمة المتنقلة (هاتف)
   11. الهيرو
   12. شريط المزايا
   13. رأس القسم (Eyebrow/Title)
   14. شبكة الأقسام (Categories)
   15. صفوف المنتجات + بطاقة المنتج + السحب الأفقي
   16. بانر "تشكيلة جديدة"
   17. صفحة منتج مستقل
   18. السلة والدفع
   19. صفحات بسيطة (من نحن/اتصل بنا)
   20. الفوتر
   21. المودال
   22. حالات فارغة + عناصر مساعدة
   23. Responsive
   24. Accessibility / reduced motion
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  color-scheme: dark;

  --bg:        #0B0617;
  --bg-2:      #140B22;
  --surface:   #1C1029;
  --surface-2: #27163A;
  --surface-3: #321D49;

  --header-bg:       rgba(11, 6, 23, 0.80);
  --header-bg-stuck: rgba(11, 6, 23, 0.94);
  --nav-mobile-bg:   rgba(13, 7, 25, 0.98);
  --hover-veil:      rgba(255, 255, 255, 0.06);

  --line:        rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.20);

  --text:   #F8F6F9;
  --text-2: #D6CCE3;
  --muted:  #A296B5;
  --faint:  #6E6280;

  /* اللون الأساسي — يتبدّل فعليًا بين الوضعين (قرار مقصود من الهوية) */
  --accent:        #BE7BFF;
  --accent-lite:   #DDB5FF;
  --accent-deep:   #8F55D9;
  --accent-glow:   rgba(190, 123, 255, 0.38);
  --accent-film:   rgba(190, 123, 255, 0.14);
  --accent-border: rgba(190, 123, 255, 0.40);
  --on-accent:     #1A0F26;

  /* اللون الثانوي — وردي، يصلح فـ الوضعين بلا تغيير */
  --accent2:      #F2A6D4;
  --accent2-film: rgba(242, 166, 212, 0.14);

  /* لمسات الهوية: لؤلؤي (من نص الشعار) + ذهبي وردي للزخارف الصغيرة فقط */
  --pearl:     #F5EAFF;
  --gold:      #F2CBB4;
  --gold-deep: #C99A82;

  --danger:      #FF7A6E;
  --danger-film: rgba(255, 122, 110, 0.12);
  --success:      #6DDBA0;
  --success-film: rgba(109, 219, 160, 0.12);

  --radius:      14px;
  --radius-sm:   9px;
  --radius-lg:   24px;
  --radius-pill: 999px;

  --shell:     1220px;
  --gutter:    clamp(18px, 5vw, 44px);
  --header-h:  74px;
  --section-y: clamp(56px, 9vw, 104px);

  --f-display: 'Playfair Display', 'Georgia', serif;
  --f-body:    'IBM Plex Sans Arabic', 'Segoe UI', system-ui, sans-serif;
  /* عناوين الأقسام (عربي فاخر) + كلمات الإنجليزية الصغيرة فوقها (حروف رومانية كلاسيكية) */
  --f-title:   'El Messiri', 'Playfair Display', 'IBM Plex Sans Arabic', serif;
  --f-eyebrow: 'Cinzel', 'Playfair Display', 'Georgia', serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --deco-opacity: 0.22;

  /* قماشة محايدة لصور المنتجات/الأقسام — ثابتة عمدًا فـ الوضعين
     (صور المنتجات تُصمَّم لتبدو جيدة على خلفية فاتحة بغضّ النظر عن
     مظهر الموقع، تمامًا كمعظم مواقع التسوق الكبرى) */
  --photo-canvas-a: #FFFFFF;
  --photo-canvas-b: #F1EAF7;
  --photo-mat: inset 0 0 0 1px rgba(20, 8, 30, 0.05), inset 0 1px 4px rgba(20, 8, 30, 0.04);

  /* حيوية — تدرجات وتوهج (تحسين) */
  --grad-accent:  linear-gradient(125deg, var(--accent-deep) 0%, var(--accent) 55%, var(--accent2) 130%);
  --grad-surface: linear-gradient(165deg, var(--surface-2) 0%, var(--surface) 100%);
  --shadow-glow:  0 10px 32px -10px var(--accent-glow);
  --shadow-lg:    0 26px 56px -22px rgba(0,0,0,0.6), 0 6px 16px -6px rgba(0,0,0,0.4);
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg:        #FAF7FC;
  --bg-2:      #F3EEF8;
  --surface:   #FFFFFF;
  --surface-2: #F6F2FA;
  --surface-3: #EDE2F5;

  --header-bg:       rgba(250, 247, 252, 0.80);
  --header-bg-stuck: rgba(250, 247, 252, 0.95);
  --nav-mobile-bg:   rgba(255, 255, 255, 0.98);
  --hover-veil:      rgba(26, 15, 38, 0.05);

  --line:        rgba(26, 15, 38, 0.10);
  --line-strong: rgba(26, 15, 38, 0.20);

  --text:   #1A0F26;
  --text-2: #4A3A5C;
  --muted:  #79698C;
  --faint:  #AA9CBA;

  --accent:        #4B1F6B;
  --accent-lite:   #6B3A94;
  --accent-deep:   #35134D;
  --accent-glow:   rgba(75, 31, 107, 0.22);
  --accent-film:   rgba(75, 31, 107, 0.07);
  --accent-border: rgba(75, 31, 107, 0.26);
  --on-accent:     #FFFFFF;

  --accent2:      #FF8EDB;
  --accent2-film: rgba(255, 142, 219, 0.16);

  --danger:      #C22A10;
  --danger-film: rgba(194, 42, 16, 0.08);
  --success:      #187A4C;
  --success-film: rgba(24, 122, 76, 0.09);

  --deco-opacity: 0.32;
  --pearl:     #4B1F6B;
  --gold:      #B9806B;
  --gold-deep: #9A6350;

  /* حيوية — نسخة الوضع النهاري */
  --grad-surface: linear-gradient(165deg, #FFFFFF 0%, var(--surface-2) 100%);
  --shadow-lg:    0 26px 56px -22px rgba(75,31,107,0.18), 0 6px 16px -6px rgba(75,31,107,0.10);
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

/* تبديل الشعار حسب المظهر — صورتان جاهزتان فـ الصفحة (بلا وميض عند التحميل) */
.logo-dark { display: none; }
:root:not([data-theme="light"]) .logo-light { display: none; }
:root:not([data-theme="light"]) .logo-dark { display: block; }

.skip-link {
  position: fixed; top: -60px; right: 12px; z-index: 400;
  background-color: var(--accent); color: var(--on-accent);
  padding: 10px 18px; border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------
   3. شاشة التحميل
   ------------------------------------------------------------ */
.boot-screen {
  position: fixed; inset: 0; z-index: 500;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  background-color: var(--bg);
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}
.boot-logo {
  width: 76px; height: 76px; object-fit: contain;
  filter: drop-shadow(0 0 22px var(--accent-glow));
  animation: boot-pulse 1.6s ease-in-out infinite;
}
@keyframes boot-pulse {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50%      { transform: scale(1.05); opacity: 1; }
}
.boot-bar { width: 140px; height: 3px; border-radius: var(--radius-pill); background-color: var(--line-strong); overflow: hidden; }
.boot-bar-fill {
  display: block; height: 100%; width: 40%; border-radius: inherit;
  background-image: linear-gradient(90deg, var(--accent), var(--accent2));
  animation: boot-sweep 1.1s ease-in-out infinite;
}
@keyframes boot-sweep {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(340%); }
}
body.is-booting { overflow: hidden; }
body:not(.is-booting) .boot-screen { opacity: 0; visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .boot-logo, .boot-bar-fill { animation: none; }
}

/* ------------------------------------------------------------
   4. الطبقة الزخرفية — 14 أيقونة خط رفيع ثابتة خلف كامل الموقع
   ------------------------------------------------------------
   CSS خالص بلا أي JS: طبقة واحدة على body::before، موضعة يدويًا،
   بلون واحد يتبع الهوية (نسخة كل وضع مُعرَّفة على حدة لأن ألوان
   data-URI ثابتة)، شفافية خفيفة جدًا، صفر طلبات شبكة إضافية.
   الترتيب: تاج، ألماسة، قلب، نجمة، نظارة شمسية، حقيبة، وجه، وردة،
   هلال (Luna)، حلق، إسورة، أحمر شفاه، فيونكة، عقد.
   ------------------------------------------------------------ */
/* (الطبقة الزخرفية القديمة المثبّتة حُذفت — صارت كل أيقونة عنصرًا مستقلًا يتحرك بنفسه، انظر القسم 4ج وملف js/fx.js) */

/* ------------------------------------------------------------
   4ب. حيوية — keyframes هامسة تُستعمل فـ كل الملف
   ------------------------------------------------------------ */
@keyframes lb-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%      { box-shadow: 0 0 0 9px rgba(183,110,255,0); }
}
@keyframes lb-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes lb-float   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes lb-fade-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

[data-deco] { position: relative; }

/* ------------------------------------------------------------
   4ج. أيقونات الخلفية — 15 إلى 19 أيقونة مفصّلة، لكل واحدة مسارها (js/fx.js)
   ------------------------------------------------------------
   طبقة ثابتة خلف المحتوى. كل أيقونة: خط رفيع + تعبئة خفيفة + لمعة (شرارة).
   حركة موحّدة الأسلوب (طفو ناعم + ميلان بسيط) بمدد وإزاحات مختلفة، فتبدو حيّة لا عشوائية.
   ------------------------------------------------------------ */
.lb-deco { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; opacity: var(--deco-opacity); --deco-pink: var(--accent2); }
html[data-theme="light"] .lb-deco { --deco-pink: #D6338E; }
.lb-di {
  position: absolute; display: block; overflow: visible; color: var(--accent); fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  animation: lb-float var(--d, 13s) ease-in-out var(--dl, 0s) infinite;
}
.lb-di .f { fill: var(--deco-pink); fill-opacity: 0.2; stroke: none; }
.lb-di .d { stroke-width: 1.4; opacity: 0.8; }
.lb-di .k { fill: var(--deco-pink); stroke: none; }
@keyframes lb-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(calc(var(--r, 5deg) * -1)); }
  50% { transform: translate3d(var(--x, 6px), var(--y, -14px), 0) rotate(var(--r, 5deg)); }
}

/* ------------------------------------------------------------
   4د. أيقونات الهيرو العائمة — كثيرة وواضحة، كل واحدة بحركتها الخاصة
   ------------------------------------------------------------
   float: طفو · sway: تأرجح كالقلادة · orbit: دوران بيضاوي صغير · twinkle: لمعان · rise: لآلئ صاعدة
   ------------------------------------------------------------ */
.lb-hero-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.lb-hf {
  position: absolute; display: block; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.3;
  stroke-linecap: round; stroke-linejoin: round; opacity: 0.88;
}
.lb-hf .f { fill: currentColor; fill-opacity: 0.16; stroke: none; }
.lb-hf .d { stroke-width: 1.4; opacity: 0.8; }
.lb-hf .k { fill: currentColor; stroke: none; }
.lb-hf.c1 { color: var(--pearl); }
.lb-hf.c2 { color: var(--accent2); }
.lb-hf.c3 { color: var(--gold); }
html[data-theme="light"] .lb-hf { opacity: 0.8; }
html[data-theme="light"] .lb-hf.c1 { color: var(--accent); }
html[data-theme="light"] .lb-hf.c2 { color: #D6338E; }
html[data-theme="light"] .lb-hf.c3 { color: var(--gold-deep); }
.lb-hf.is-spark { fill: currentColor; stroke: none; }
.lb-hf--float   { animation: lb-float var(--d, 8s) ease-in-out var(--dl, 0s) infinite; }
.lb-hf--sway    { transform-origin: 50% 8%; animation: lb-sway var(--d, 9s) ease-in-out var(--dl, 0s) infinite; }
.lb-hf--orbit   { animation: lb-orbit var(--d, 12s) linear var(--dl, 0s) infinite; }
.lb-hf--twinkle { animation: lb-twinkle var(--d, 4s) ease-in-out var(--dl, 0s) infinite; }
@keyframes lb-sway { 0%, 100% { transform: rotate(calc(var(--r, 9deg) * -1)) translateX(-3px); } 50% { transform: rotate(var(--r, 9deg)) translateX(3px); } }
@keyframes lb-orbit {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg); }
  25% { transform: translate3d(var(--x, 12px), var(--y, 10px), 0) rotate(5deg); }
  50% { transform: translate3d(0, calc(var(--y, 10px) * 2), 0) rotate(-3deg); }
  75% { transform: translate3d(calc(var(--x, 12px) * -1), var(--y, 10px), 0) rotate(4deg); }
}
@keyframes lb-twinkle { 0%, 100% { transform: scale(0.55) rotate(0deg); opacity: 0.25; } 50% { transform: scale(1.18) rotate(50deg); opacity: 1; } }
.lb-pearl-up {
  position: absolute; display: block; border-radius: 50%; opacity: 0;
  animation: lb-rise var(--d, 11s) ease-in-out var(--dl, 0s) infinite;
}
html[data-theme="light"] .lb-pearl-up { background-image: radial-gradient(circle at 35% 30%, #fff 0%, #E86BB6 55%, rgba(75,31,107,0.35) 80%); box-shadow: 0 0 8px rgba(214, 51, 142, 0.35); }
@keyframes lb-rise { 0% { transform: translate3d(0, 0, 0) scale(0.6); opacity: 0; } 18% { opacity: 0.95; } 82% { opacity: 0.8; } 100% { transform: translate3d(var(--x, 14px), calc(var(--rise, 160px) * -1), 0) scale(1.05); opacity: 0; } }

/* تقليل الحركة في الجهاز: لا نُلغي الأيقونات بل تبقى بحركة هادئة جدًا (طفو بسيط) */
@media (prefers-reduced-motion: reduce) {
  .lb-di, .lb-hf--float, .lb-hf--sway, .lb-hf--orbit {
    animation: lb-gentle 18s ease-in-out var(--dl, 0s) infinite !important; animation-duration: 18s !important; animation-iteration-count: infinite !important;
  }
  .lb-hf--twinkle { animation: lb-twinkle-soft 6s ease-in-out var(--dl, 0s) infinite !important; animation-duration: 6s !important; animation-iteration-count: infinite !important; }
  .lb-pearl-up { display: none; }
}
@keyframes lb-gentle { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -6px, 0); } }
@keyframes lb-twinkle-soft { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.95; } }

/* ------------------------------------------------------------
   4هـ. شريط تقدّم السكرول — يمتلئ نزولًا ويفرغ صعودًا
   ------------------------------------------------------------ */
.lb-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 95; pointer-events: none; }
.lb-progress > span {
  display: block; width: 100%; height: 100%;
  transform: scaleX(0); transform-origin: right center; will-change: transform;
  background-image: linear-gradient(270deg, var(--accent), var(--accent2));
  box-shadow: 0 0 10px var(--accent-glow), 0 0 2px var(--accent2);
  border-radius: 0 0 3px 3px;
}
html[dir="ltr"] .lb-progress > span { transform-origin: left center; background-image: linear-gradient(90deg, var(--accent), var(--accent2)); }

/* ------------------------------------------------------------
   4و. ضوء الخلفية الحي + ضوء الضغط "السلايم" (js/fx.js)
   ------------------------------------------------------------
   فكرة التصميم: الضوء لا يُرسم فوق المحتوى، بل يسكن الأسطح نفسها:
   - الخلفية: كتل شفق ناعمة تنجرف بهدوء، وتتوهج عند اللمس وتشتد قليلًا مع السكرول
   - البطاقات والأزرار: عند الضغط ينتشر الضوء داخلها تدريجيًا كأنها سلايم شفاف يضيء من الداخل
   ------------------------------------------------------------ */
.lb-aurora { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; --ai: 1; --au-1: 0.27; --au-2: 0.16; }
html[data-theme="light"] .lb-aurora { --au-1: 0.15; --au-2: 0.13; }
.lb-aurora > i { position: absolute; display: block; border-radius: 50%; will-change: transform; transition: opacity 1.4s ease; }
.lb-au1 { width: 70vmax; height: 70vmax; left: -28vmax; top: -32vmax; opacity: calc(var(--au-1) * var(--ai)); background-image: radial-gradient(circle, var(--accent) 0%, transparent 62%); animation: lb-au-a 46s ease-in-out infinite alternate; }
.lb-au2 { width: 62vmax; height: 62vmax; right: -26vmax; bottom: -28vmax; opacity: calc(var(--au-2) * var(--ai)); background-image: radial-gradient(circle, var(--accent2) 0%, transparent 62%); animation: lb-au-b 58s ease-in-out infinite alternate; }
@keyframes lb-au-a { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(10vmax, 12vmax, 0); } }
@keyframes lb-au-b { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-12vmax, -10vmax, 0); } }
.lb-aurora.is-active { --ai: 1.35; }
.lb-aurora.is-still > i { animation: none; translate: none; }
/* توهج النقر في الخلفية: يظهر تدريجيًا ثم ينتشر ويخبو */
.lb-bloom {
  position: absolute; width: 46vmin; height: 46vmin; margin: -23vmin 0 0 -23vmin; border-radius: 50%; pointer-events: none;
  background-image: radial-gradient(circle, var(--accent-glow) 0%, rgba(190, 123, 255, 0.12) 45%, transparent 72%);
  mix-blend-mode: screen; animation: lb-bloom 1.8s ease-out forwards;
}
html[data-theme="light"] .lb-bloom { mix-blend-mode: normal; background-image: radial-gradient(circle, rgba(75, 31, 107, 0.32) 0%, rgba(75, 31, 107, 0.1) 45%, transparent 72%); }
@keyframes lb-bloom { 0% { transform: scale(0.25); opacity: 0; } 22% { opacity: calc(0.7 * var(--s, 1)); } 100% { transform: scale(1.05); opacity: 0; } }

/* ضوء الضغط داخل العنصر نفسه (سلايم): يبدأ من نقطة اللمس ويتّسع تدريجيًا طالما الإصبع مضغوط */
.lb-lit { position: absolute; inset: 0; z-index: 4; overflow: hidden; border-radius: inherit; pointer-events: none; opacity: 1; transition: opacity 0.55s ease; }
.lb-lit > i {
  position: absolute; display: block; border-radius: 50%; left: var(--x); top: var(--y); width: var(--d); height: var(--d);
  margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2); opacity: 0; transform: scale(0.06);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, var(--accent-glow) 42%, transparent 72%);
  transition: transform 0.9s cubic-bezier(0.16, 0.7, 0.2, 1), opacity 0.35s ease;
}
.lb-lit.is-on > i { transform: scale(1); opacity: 0.38; }
.lb-lit.is-out { opacity: 0; }
/* ------------------------------------------------------------
   4و-2. شريط التنقل العائم للهاتف (مثل التطبيقات)
   ------------------------------------------------------------ */
:root { --dock-h: 66px; }
.lb-dock {
  --dock-bg: rgba(28, 16, 42, 0.74); --dock-line: rgba(255, 255, 255, 0.13); --dock-ring: #1C1029;
  position: fixed; z-index: 80; inset-inline: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  height: var(--dock-h); display: none; align-items: stretch; padding: 0 6px; border-radius: 26px;
  background-color: var(--dock-bg); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--dock-line);
  box-shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.65), 0 8px 24px -12px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transition: transform 0.45s cubic-bezier(0.3, 0.9, 0.3, 1), opacity 0.3s ease;
}
html[data-theme="light"] .lb-dock {
  --dock-bg: rgba(255, 255, 255, 0.8); --dock-line: rgba(75, 31, 107, 0.14); --dock-ring: #FFFFFF;
  box-shadow: 0 20px 40px -18px rgba(75, 31, 107, 0.35), 0 8px 22px -12px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
@media (max-width: 900px) {
  .lb-dock { display: flex; }
  html.has-dock body { padding-bottom: calc(var(--dock-h) + 34px + env(safe-area-inset-bottom, 0px)); }
  html.has-dock .sticky-cart-bar { display: none; }
  html.has-dock .toast { bottom: calc(var(--dock-h) + 30px + env(safe-area-inset-bottom, 0px)); }
}
html.lb-kb .lb-dock { transform: translateY(170%); opacity: 0; }
.lb-dock-item {
  position: relative; z-index: 1; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--muted); font-size: 0.68rem; font-weight: 600; line-height: 1.2; border-radius: 20px; text-decoration: none; transition: color 0.3s ease;
}
.lb-dock-ico-wrap { position: relative; display: grid; place-items: center; width: 28px; height: 28px; transition: transform 0.45s cubic-bezier(0.34, 1.5, 0.5, 1); }
.lb-dock-ico { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb-dock-item.is-active { color: var(--accent); }
.lb-dock-item.is-active .lb-dock-ico-wrap { transform: translateY(-2px) scale(1.1); }
.lb-dock-glow {
  position: absolute; z-index: 0; top: 7px; bottom: 7px; left: 0; width: 0; border-radius: 20px; opacity: 0; pointer-events: none;
  background-image: linear-gradient(180deg, var(--accent-film), transparent 130%);
  box-shadow: inset 0 0 0 1px var(--accent-border), 0 0 22px -6px var(--accent-glow);
  transition: transform 0.55s cubic-bezier(0.34, 1.3, 0.5, 1), width 0.4s ease, opacity 0.3s ease;
}
.lb-dock-glow.is-on { opacity: 1; }
.lb-dock-item--cart { color: var(--muted); }
.lb-dock-item--cart .lb-dock-ico-wrap {
  width: 56px; height: 56px; margin-top: -30px; border-radius: 50%; color: var(--on-accent); background-image: var(--grad-accent);
  box-shadow: 0 12px 26px -8px var(--accent-glow), 0 0 0 4px var(--dock-ring), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}
.lb-dock-item--cart .lb-dock-ico { width: 25px; height: 25px; stroke-width: 1.9; }
.lb-dock-item--cart.is-active { color: var(--accent); }
.lb-dock-item--cart.is-active .lb-dock-ico-wrap { animation: lb-dock-pulse 2.8s ease-in-out infinite; }
@keyframes lb-dock-pulse { 0%, 100% { box-shadow: 0 12px 26px -8px var(--accent-glow), 0 0 0 4px var(--dock-ring), inset 0 1px 0 rgba(255,255,255,0.38); } 50% { box-shadow: 0 14px 34px -4px var(--accent-glow), 0 0 0 4px var(--dock-ring), 0 0 0 9px var(--accent-film), inset 0 1px 0 rgba(255,255,255,0.38); } }
.lb-dock-item--cart .cart-badge { top: -1px; inset-inline-end: -5px; box-shadow: 0 0 0 2px var(--dock-ring); }

/* ------------------------------------------------------------
   4و-3. شريط الأقسام المتحرك + طيران المنتج إلى السلة
   ------------------------------------------------------------ */
.lb-marquee { overflow: hidden; padding: 15px 0; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.lb-marquee-track { display: flex; width: max-content; animation: lb-marquee 44s linear infinite; }
html[dir="rtl"] .lb-marquee-track { animation-name: lb-marquee-rtl; }
.lb-marquee:hover .lb-marquee-track { animation-play-state: paused; }
.lb-marquee-item { display: inline-flex; align-items: center; gap: 24px; padding-inline: 24px; font-family: var(--f-title); font-size: clamp(1.05rem, 2.6vw, 1.35rem); font-weight: 600; color: var(--text-2); white-space: nowrap; }
.lb-marquee-item svg { width: 11px; height: 11px; fill: var(--gold); flex: none; }
@keyframes lb-marquee { to { transform: translateX(-50%); } }
@keyframes lb-marquee-rtl { to { transform: translateX(50%); } }
.lb-fly { position: fixed; z-index: 470; border-radius: 50%; object-fit: contain; background-color: #fff; padding: 6px; pointer-events: none; box-shadow: 0 12px 30px -8px var(--accent-glow), 0 0 0 2px var(--accent-border); will-change: transform; }
.lb-pearl { position: fixed; z-index: 471; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; pointer-events: none; background-image: radial-gradient(circle at 35% 30%, #fff, var(--accent2) 60%, var(--accent)); }
/* رأس شريط التقدّم: لمعان خفيف أثناء السكرول */
.lb-progress > i {
  position: absolute; top: -5px; right: 0; width: 46px; height: 13px; margin-right: -23px; border-radius: 50%;
  background-image: radial-gradient(ellipse at center, var(--accent2) 0%, var(--accent-glow) 45%, transparent 72%);
  opacity: 0; transition: opacity 0.35s ease; will-change: transform, opacity;
}
html[dir="ltr"] .lb-progress > i { right: auto; left: 0; margin-right: 0; margin-left: -23px; }
.lb-progress.is-scrolling > i { opacity: 0.95; }

/* ظهور ناعم أثناء السكرول — الحالة المخفية تحتاج html.fx-on (يضيفها fx.js) */
.fx-on .fx-pre { opacity: 0; }
.fx-in { animation: lb-rise 0.75s var(--ease) var(--fx-d, 0ms) both; }
@keyframes lb-rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }

/* نبضة السلة عند إضافة منتج */
.lb-bump { animation: lb-bump 0.7s var(--ease); }
@keyframes lb-bump { 0% { transform: scale(1); } 22% { transform: scale(1.28) rotate(-8deg); } 48% { transform: scale(0.94) rotate(6deg); } 72% { transform: scale(1.08) rotate(-3deg); } 100% { transform: scale(1) rotate(0); } }


/* ------------------------------------------------------------
   4ز. عناوين الأقسام — خط أكبر وأفخم + كلمات إنجليزية بستايل مختلف
   ------------------------------------------------------------ */
.section-head h2, .page-hero h1 {
  font-family: var(--f-title); font-weight: 700; line-height: 1.18; letter-spacing: 0;
  font-size: clamp(1.8rem, 5.2vw, 3.2rem);
  /* تنفّس رأسي لأن background-clip:text يقصّ أي جزء من الحرف خارج صندوق العنصر (التشكيل مثل ً و ّ) */
  padding-block: 0.28em 0.14em; margin-block: -0.28em -0.14em;
  background-image: linear-gradient(270deg, var(--text) 0%, var(--text) 42%, var(--accent) 78%, var(--accent2) 100%);
  background-size: 220% 100%; background-position: 0% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: lb-title-sheen 10s ease-in-out infinite alternate;
}
html[data-theme="light"] .section-head h2, html[data-theme="light"] .page-hero h1 {
  background-image: linear-gradient(270deg, var(--text) 0%, var(--text) 38%, var(--accent) 80%, #B0409A 100%);
}
@keyframes lb-title-sheen { from { background-position: 0% 0; } to { background-position: 100% 0; } }
/* خط زخرفي رفيع تحت العنوان — يُرسم عند الظهور */
.section-head h2::after {
  content: ''; display: block; height: 2px; width: 72px; margin-top: 12px; border-radius: 2px;
  background-image: linear-gradient(270deg, var(--accent2), var(--accent) 60%, transparent);
  -webkit-text-fill-color: initial;
}
.fx-on .section-head h2::after { width: 0; transition: width 0.9s var(--ease) 0.25s; }
.fx-on .section-head.fx-seen h2::after { width: 72px; }

.section-head .eyebrow, .page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px;
  font-family: var(--f-eyebrow); font-style: normal; font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.36em; text-transform: uppercase; color: var(--accent2);
}
.section-head .eyebrow::before, .page-hero .eyebrow::before {
  content: ''; flex: none; width: 6px; height: 6px; background-color: currentColor; transform: rotate(45deg);
  animation: lb-diamond 4s ease-in-out infinite;
}
@keyframes lb-diamond { 0%, 100% { transform: rotate(45deg) scale(1); opacity: 0.7; } 50% { transform: rotate(45deg) scale(1.4); opacity: 1; } }
.section-head .eyebrow::after, .page-hero .eyebrow::after {
  content: ''; flex: none; width: 28px; height: 1px; background-image: linear-gradient(270deg, currentColor, transparent);
}
html[data-theme="light"] .section-head .eyebrow, html[data-theme="light"] .page-hero .eyebrow { color: #A8388F; } /* وردي أعمق ليُقرأ على الخلفية البيضاء */
.page-hero .eyebrow { display: flex; justify-content: center; }
.page-hero .eyebrow::after { background-image: linear-gradient(90deg, currentColor, transparent); order: -1; }
.cat-card-name { font-family: var(--f-title); font-size: 1.14rem; font-weight: 600; letter-spacing: 0.01em; }

@media (max-width: 620px) {
  .section-head .eyebrow { letter-spacing: 0.28em; font-size: 0.72rem; }
}

/* ------------------------------------------------------------
   5. LAYOUT HELPERS
   ------------------------------------------------------------ */
.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tint { background-color: var(--surface); }
main { display: block; padding-top: var(--header-h); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }

/* ------------------------------------------------------------
   6. TYPOGRAPHY
   ------------------------------------------------------------ */
.eyebrow {
  display: inline-block; font-family: var(--f-display); font-style: italic;
  font-size: 0.82rem; letter-spacing: 0.06em; color: var(--accent2);
  margin: 0 0 8px;
}
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; color: var(--text); margin: 0; line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; color: var(--text-2); }
.lede { font-size: 1.05rem; color: var(--text-2); max-width: 56ch; }

/* ------------------------------------------------------------
   7. أزرار
   ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-pill);
  font-size: 0.94rem; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.2s var(--ease-out, var(--ease)), background-color 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s var(--ease), box-shadow 0.3s var(--ease);
  white-space: nowrap;
}

.btn-accent { background-image: var(--grad-accent); color: var(--on-accent); box-shadow: var(--shadow-glow); }
.btn-accent::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.32) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.6s var(--ease);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px var(--accent-glow); }
.btn-accent:hover::before { transform: translateX(120%); }
.btn-outline { background-color: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background-color: var(--surface-2); color: var(--text); }
.btn-ghost:hover { background-color: var(--surface-3); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ------------------------------------------------------------
   8. الهيدر + التنقل
   ------------------------------------------------------------ */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 90;
  height: var(--header-h);
  display: flex; align-items: center;
  background-color: var(--header-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-stuck { background-color: var(--header-bg-stuck); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 18px; width: 100%; }

.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; min-width: 0; }
.brand-icon { width: 40px; height: 40px; object-fit: contain; flex: none; filter: drop-shadow(0 0 10px var(--accent-glow)); }
.brand-text {
  font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.02em;
  color: var(--text); white-space: nowrap;
  background-image: linear-gradient(95deg, var(--accent) 10%, var(--accent2) 40%, var(--accent-lite) 55%, var(--accent2) 70%, var(--accent) 92%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: lb-shimmer 5s linear infinite;
}

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); margin-inline-start: clamp(12px, 3vw, 40px); }
.nav-link { position: relative; padding-block: 6px; font-size: 0.92rem; font-weight: 500; color: var(--muted); transition: color 0.2s var(--ease); }
.nav-link::after {
  content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 0; height: 1.5px;
  background-color: var(--accent2); transition: width 0.25s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; flex: none; }

.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background-color: transparent;
  border: 1px solid var(--line-strong); cursor: pointer; color: var(--text-2); flex: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); background-color: var(--accent-film); }
.icon-btn svg { width: 19px; height: 19px; }

/* ------------------------------------------------------------
   9. زر تبديل المظهر + السلة
   ------------------------------------------------------------ */
.theme-toggle .theme-icon { position: absolute; width: 18px; height: 18px; transition: transform 0.5s var(--ease), opacity 0.3s var(--ease); }
.theme-icon-sun { opacity: 0; transform: rotate(-80deg) scale(0.4); }
.theme-icon-moon { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="light"] .theme-icon-sun { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="light"] .theme-icon-moon { opacity: 0; transform: rotate(80deg) scale(0.4); }

.cart-badge {
  position: absolute; top: -4px; inset-inline-end: -4px;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: var(--radius-pill);
  background-color: var(--accent2); color: #2A0A20; font-size: 0.66rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  box-shadow: 0 0 0 2px var(--bg);
}
.cart-badge.is-active { animation: lb-pulse 2.2s var(--ease) infinite; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background-color: transparent; cursor: pointer;
}
.nav-toggle-bar { display: block; height: 1.5px; width: 18px; margin-inline: auto; background-color: var(--text); transition: transform 0.25s var(--ease), opacity 0.2s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ------------------------------------------------------------
   10. القائمة المتنقلة (هاتف)
   ------------------------------------------------------------ */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 85;
  background-color: var(--nav-mobile-bg); backdrop-filter: blur(16px);
  display: flex; flex-direction: column; padding: 20px var(--gutter) 32px;
  transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform 0.28s var(--ease), opacity 0.24s var(--ease), visibility 0.28s var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-nav-link {
  display: block; padding: 15px 4px; font-size: 1.05rem; font-weight: 600; color: var(--text);
  border-bottom: 1px solid var(--line);
}
body.nav-locked { overflow: hidden; }

/* ------------------------------------------------------------
   11. الهيرو
   ------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; background-color: var(--bg-2); }
.hero-track { display: flex; transition: transform 0.6s var(--ease); }
.hero-slide {
  position: relative; flex: none; width: 100%;
  min-height: clamp(420px, 74vh, 640px);
  display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.hero-slide::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(90deg, var(--bg) 8%, rgba(10,6,20,0.55) 42%, rgba(10,6,20,0.15) 75%);
}
.hero-slide::after {
  content: ''; position: absolute; inset-inline-start: -10%; top: 20%; width: 55%; height: 60%;
  background-image: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(30px); opacity: 0.5; pointer-events: none;
  animation: lb-pulse-soft 7s ease-in-out infinite;
}
@keyframes lb-pulse-soft { 0%, 100% { opacity: 0.35; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.12); } }
html[data-theme="light"] .hero-slide::before {
  background-image: linear-gradient(90deg, var(--bg) 4%, rgba(248,246,249,0.72) 40%, rgba(248,246,249,0.22) 75%);
}
.hero-content { position: relative; z-index: 2; max-width: 560px; padding-block: 40px; }
.hero-content > * { opacity: 0; transform: translateY(14px); animation: lb-fade-in 0.7s var(--ease) forwards; }
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.16s; }
.hero-content > *:nth-child(3) { animation-delay: 0.28s; }
.hero-content > *:nth-child(4) { animation-delay: 0.42s; }
.hero-eyebrow { color: var(--accent2); }
.hero-title { margin-bottom: 16px; }
.hero-text { margin-bottom: 26px; font-size: 1.02rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-dots { position: absolute; bottom: 22px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
html[dir="rtl"] .hero-dots { transform: translateX(50%); }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background-color: rgba(255,255,255,0.4); border: none; cursor: pointer; padding: 0; }
.hero-dot.is-active { background-color: var(--accent2); width: 22px; border-radius: var(--radius-pill); transition: width 0.25s var(--ease); }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; background-color: rgba(10,6,20,0.4);
  border: 1px solid rgba(255,255,255,0.25); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.hero-arrow svg { width: 18px; height: 18px; }
.hero-arrow.prev { inset-inline-start: 18px; }
.hero-arrow.next { inset-inline-end: 18px; }

/* ------------------------------------------------------------
   12. شريط المزايا
   ------------------------------------------------------------ */
.features-bar { border-bottom: 1px solid var(--line); background-color: var(--surface); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-block: 22px; }
.feature-item { display: flex; align-items: center; gap: 10px; justify-content: center; text-align: center; font-size: 0.86rem; color: var(--text-2); font-weight: 500; }
.feature-icon { flex: none; width: 22px; height: 22px; color: var(--accent); animation: lb-pulse 3s var(--ease) infinite; border-radius: 50%; }

/* ------------------------------------------------------------
   13. رأس القسم
   ------------------------------------------------------------ */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(22px, 4vw, 40px); }
.section-link { flex: none; font-size: 0.88rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.section-link svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------
   14. شبكة الأقسام
   ------------------------------------------------------------ */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 12px; animation: lb-fade-in 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.cat-card-media {
  width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden;
  background: transparent;
  display: flex; align-items: center; justify-content: center; position: relative;
  border: 1px solid var(--line); transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cat-card-media::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.22) 50%, transparent 65%);
  transform: translateX(-130%); transition: transform 0.7s var(--ease);
}
.cat-card:hover .cat-card-media::before { transform: translateX(130%); }
/* بقعة زخرفية دائرية خلف الصورة — تجعل المنتج/الأيقونة يبدو وكأنه "يخرج" من
   إطاره الدائري بدل أن يجلس بلا حياة داخل مربّع، بلا أي خطر قص أو تشويه
   مهما كانت نسبة أبعاد الصورة المرفوعة */
.cat-card-media::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  top: 50%; left: 50%; width: 62%; height: 62%; border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  background-image: radial-gradient(circle at 38% 32%, var(--accent-lite), var(--accent) 75%);
  opacity: 0.14; transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.cat-card:hover .cat-card-media { transform: translateY(-4px); border-color: var(--accent-border); box-shadow: var(--photo-mat), var(--shadow-lg), var(--shadow-glow); }
.cat-card:hover .cat-card-media::after { transform: translate(-50%, -50%) scale(1.12); opacity: 0.22; }
.cat-card-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 11%; filter: drop-shadow(0 10px 16px rgba(20,8,30,0.14)); }
.cat-card-media.is-fallback svg { position: relative; z-index: 1; width: 34%; height: 34%; color: var(--accent); opacity: 0.85; }
.cat-card-name { font-weight: 600; font-size: 0.96rem; text-align: center; }
.cat-card-count { display: block; font-size: 0.76rem; color: var(--muted); text-align: center; margin-top: 2px; }

/* ------------------------------------------------------------
   15. صفوف المنتجات + بطاقة المنتج + السحب الأفقي
   ------------------------------------------------------------ */
.product-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (hover: none) {
  .product-row.is-scroll { animation: lb-swipe-hint 1.6s ease 0.6s 1; }
}
@keyframes lb-swipe-hint { 30% { transform: translateX(-14px); } 60% { transform: translateX(4px); } 100% { transform: translateX(0); } }
.product-row.is-scroll {
  display: flex; overflow-x: auto; scroll-snap-type: x proximity; gap: 14px;
  padding-bottom: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scrollbar-width: none;
}
.product-row.is-scroll::-webkit-scrollbar { display: none; }
.product-row.is-scroll .product-card { flex: none; width: 62vw; max-width: 240px; scroll-snap-align: start; }

.product-card { display: block; animation: lb-fade-in 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.product-card-media {
  position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius);
  background-image: var(--grad-surface);
  overflow: hidden; margin-bottom: 12px;
  box-shadow: var(--photo-mat), 0 8px 22px -14px rgba(0,0,0,0.35); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.product-card-media::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.25) 50%, transparent 65%);
  transform: translateX(-130%); transition: transform 0.7s var(--ease);
}
.product-card:hover .product-card-media::before { transform: translateX(130%); }
.product-card-media::after {
  content: ''; position: absolute; inset-inline: 10%; top: 0; height: 2px; border-radius: var(--radius-pill);
  background-image: var(--grad-accent); opacity: 0; transition: opacity 0.3s var(--ease); z-index: 2;
}
.product-card:hover .product-card-media { transform: translateY(-3px); box-shadow: var(--photo-mat), var(--shadow-lg), 0 0 26px -10px var(--accent-glow); }
.product-card:hover .product-card-media::after { opacity: 1; }
.product-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 10%; transition: transform 0.5s var(--ease); filter: drop-shadow(0 8px 14px rgba(20,8,30,0.12)); }
.product-card:hover .product-card-media img { transform: scale(1.05); }
.product-card-media .ph-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--faint); }
.product-card-media .ph-fallback svg { width: 30%; height: 30%; }
.product-card-tag {
  position: absolute; top: 10px; inset-inline-start: 10px; z-index: 3;
  padding: 4px 10px; border-radius: var(--radius-pill); font-size: 0.7rem; font-weight: 700;
  background-image: linear-gradient(100deg, var(--accent2), var(--accent-lite)); color: #2A0A20;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.3);
}
.product-card-tag.tag-sale { background-image: linear-gradient(100deg, var(--danger), #FF9D8F); color: #fff; animation: lb-pulse 2.6s var(--ease) infinite; }
.product-card-name { font-size: 0.92rem; font-weight: 500; color: var(--text); margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-price { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); }
.product-card-price-old { font-weight: 500; color: var(--faint); text-decoration: line-through; font-size: 0.86rem; }

/* ------------------------------------------------------------
   16. بانر تشكيلة جديدة
   ------------------------------------------------------------ */
.promo-banner {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 210px; display: flex; align-items: center; padding: clamp(24px, 5vw, 56px);
  background-image: linear-gradient(120deg, var(--accent-deep), var(--accent) 65%, var(--accent2) 130%);
  background-size: cover; background-position: center;
}
.promo-banner-content { position: relative; z-index: 2; color: #fff; max-width: 420px; }
.promo-banner-content h2 { color: #fff; margin-bottom: 8px; }
.promo-banner-content p { color: rgba(255,255,255,0.88); margin-bottom: 18px; }
.promo-banner.has-image::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(20,8,32,0.72), rgba(20,8,32,0.18)); }

/* ------------------------------------------------------------
   17. صفحة منتج مستقل
   ------------------------------------------------------------ */
.breadcrumb { font-size: 0.84rem; color: var(--muted); margin-bottom: 22px; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent); }

.pd-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: flex-start; }
.pd-gallery-main {
  width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden;
  background-color: #FBFAFC; margin-bottom: 12px; box-shadow: 0 14px 34px -20px rgba(0,0,0,0.4);
}
.pd-gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.pd-gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-thumb { width: 68px; height: 68px; border-radius: var(--radius-sm); overflow: hidden; background-color: #FBFAFC; border: 2px solid transparent; cursor: pointer; }
.pd-thumb.is-active { border-color: var(--accent); }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

.pd-info { position: sticky; top: calc(var(--header-h) + 24px); }
.pd-name { margin-bottom: 10px; }
.pd-price-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pd-price { font-size: 1.6rem; font-weight: 700; color: var(--accent); font-family: var(--f-display); }
.pd-price-old { font-size: 1.05rem; color: var(--faint); text-decoration: line-through; }
.pd-desc { margin-bottom: 24px; line-height: 1.8; }

.pd-option-label { font-weight: 600; font-size: 0.88rem; margin-bottom: 10px; display: block; }
.pd-colors { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.pd-color-swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-strong); cursor: pointer; position: relative; }
.pd-color-swatch.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent-border); }
.pd-sizes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.pd-size-chip { min-width: 44px; padding: 9px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); text-align: center; font-size: 0.86rem; font-weight: 600; cursor: pointer; background-color: transparent; }
.pd-size-chip.is-active { border-color: var(--accent); background-color: var(--accent-film); color: var(--accent); }

.pd-qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.pd-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); }
.pd-qty button { width: 38px; height: 38px; background: none; border: none; cursor: pointer; font-size: 1.1rem; color: var(--text); }
.pd-qty span { min-width: 28px; text-align: center; font-weight: 600; }

.pd-specs { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 24px; }
.pd-specs dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 0.9rem; }
.pd-specs dt { color: var(--muted); }
.pd-specs dd { margin: 0; color: var(--text); }

/* ------------------------------------------------------------
   18. السلة والدفع
   ------------------------------------------------------------ */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: flex-start; }
.cart-list { display: flex; flex-direction: column; gap: 16px; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background-color: var(--surface); }
.cart-line-media { width: 84px; height: 84px; border-radius: var(--radius-sm); background-color: #FBFAFC; overflow: hidden; }
.cart-line-media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-line-name { font-weight: 600; margin-bottom: 4px; }
.cart-line-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; }
.cart-line-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); }
.cart-line-qty button { width: 30px; height: 30px; background: none; border: none; cursor: pointer; color: var(--text); }
.cart-line-qty span { min-width: 22px; text-align: center; font-size: 0.9rem; }
.cart-line-price { font-weight: 700; color: var(--accent); text-align: end; }
.cart-line-remove { color: var(--faint); font-size: 0.8rem; text-align: end; margin-top: 6px; cursor: pointer; }
.cart-line-remove:hover { color: var(--danger); }

.cart-summary { position: sticky; top: calc(var(--header-h) + 24px); background-color: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--text-2); padding-block: 8px; }
.cart-summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.cart-summary-row.total strong { color: var(--accent); }

.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: 0.86rem; font-weight: 600; color: var(--text-2); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background-color: var(--surface-2); color: var(--text); width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { color: var(--danger); font-size: 0.78rem; min-height: 16px; }
.delivery-choice { display: flex; gap: 10px; margin-bottom: 16px; }
.delivery-choice label {
  flex: 1; text-align: center; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  cursor: pointer; font-size: 0.88rem; font-weight: 600; color: var(--text-2);
}
.delivery-choice input { display: none; }
.delivery-choice input:checked + span { color: var(--accent); }
.delivery-choice:has(input:checked) label:has(input:checked) { border-color: var(--accent); background-color: var(--accent-film); }

.sticky-cart-bar {
  position: fixed; bottom: 16px; inset-inline: 16px; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; border-radius: var(--radius-pill);
  background-image: linear-gradient(95deg, var(--accent-deep), var(--accent));
  color: var(--on-accent); box-shadow: 0 14px 30px -12px var(--accent-glow);
  transform: translateY(140%); transition: transform 0.3s var(--ease);
}
.sticky-cart-bar.is-visible { transform: translateY(0); }
.sticky-cart-bar strong { font-weight: 700; }

/* ------------------------------------------------------------
   19. صفحات بسيطة
   ------------------------------------------------------------ */
.page-hero { padding-block: clamp(40px, 7vw, 72px); text-align: center; background-color: var(--surface); border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { display: block; }
.prose { max-width: 68ch; margin-inline: auto; line-height: 1.9; }
.prose p + p { margin-top: 14px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,48px); }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.contact-item svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.contact-item strong { display: block; margin-bottom: 3px; }

/* ------------------------------------------------------------
   20. الفوتر
   ------------------------------------------------------------ */
.site-footer { background-color: var(--surface); border-top: 1px solid var(--line); padding-block: 52px 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.footer-brand img { width: 34px; height: 34px; }
.footer-col h4 { font-size: 0.92rem; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 10px; }
.footer-col a:hover { color: var(--accent); }
.footer-social { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; color: var(--text-2); transition: color 0.2s var(--ease), transform 0.25s var(--ease); }
.social-icon svg { width: 26px; height: 26px; display: block; }
.social-icon:hover { color: var(--accent); transform: translateY(-2px) scale(1.08); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; text-align: center; font-size: 0.8rem; color: var(--faint); }

/* ------------------------------------------------------------
   21. المودال
   ------------------------------------------------------------ */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background-color: rgba(10,6,20,0.6); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; z-index: 2; width: 100%; max-width: 420px; background-color: var(--surface); border-radius: var(--radius-lg); padding: 32px 28px; text-align: center; border: 1px solid var(--line);
  /* لا يتجاوز المودال حدود الشاشة أبدًا؛ المحتوى يُسحب داخليًا فيبقى زر "تأكيد الطلب" في المتناول */
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px); /* iOS الحديث: يستثني شريط المتصفح المتغيّر */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.modal-check { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background-color: var(--success-film); color: var(--success); margin-bottom: 16px; }
.modal-check svg { width: 26px; height: 26px; }
.modal-x { position: absolute; top: 14px; inset-inline-end: 14px; width: 30px; height: 30px; border-radius: 50%; border: none; background-color: var(--surface-2); cursor: pointer; color: var(--text-2); }
.modal-title { margin-bottom: 10px; }
.modal-desc { margin-bottom: 18px; }
.modal-summary { margin: 0 0 22px; padding: 14px; background-color: var(--surface-2); border-radius: var(--radius); font-size: 0.86rem; text-align: start; }
.modal-summary div { display: flex; justify-content: space-between; padding-block: 4px; }
.modal-foot { margin-top: 14px; font-size: 0.78rem; color: var(--faint); }

/* ------------------------------------------------------------
   22. حالات فارغة + عناصر مساعدة
   ------------------------------------------------------------ */
.empty-state { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty-state svg { width: 48px; height: 48px; color: var(--faint); margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-chip { padding: 9px 18px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); font-size: 0.86rem; font-weight: 600; color: var(--text-2); cursor: pointer; }
.filter-chip.is-active { background-color: var(--accent-film); border-color: var(--accent); color: var(--accent); }
.skeleton { background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%); background-size: 200% 100%; animation: skeleton-sweep 1.3s infinite; border-radius: var(--radius); }
@keyframes skeleton-sweep { to { background-position: -200% 0; } }
.toast {
  position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translateX(-50%) translateY(20px);
  background-color: var(--surface-3); color: var(--text); padding: 12px 22px; border-radius: var(--radius-pill);
  font-size: 0.88rem; font-weight: 600; box-shadow: 0 12px 28px -14px rgba(0,0,0,0.5); z-index: 400;
  opacity: 0; pointer-events: none; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  border: 1px solid var(--line-strong); display: flex; align-items: center; gap: 8px;
}
html[dir="rtl"] .toast { transform: translateX(50%) translateY(20px); }
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
html[dir="rtl"] .toast.is-visible { transform: translateX(50%) translateY(0); }

/* ------------------------------------------------------------
   23. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 980px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .grid-2, .pd-layout, .cart-layout, .contact-grid { grid-template-columns: 1fr; }
  .pd-info { position: static; }
  .cart-summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-row { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  :root { --header-h: 64px; }
  .brand-text { font-size: 1.02rem; }
  .brand-icon { width: 34px; height: 34px; }
  .icon-btn { width: 36px; height: 36px; }
  .header-actions { gap: 4px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .hero-content { padding-inline: 4px; max-width: 100%; }
  .hero-slide { min-height: 480px; }
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-line-price { grid-column: 2 / 3; text-align: start; }
  .modal-card { max-width: 100%; padding: 24px 20px; }
}
@media (max-width: 400px) {
  .brand-text { display: none; }
}

/* ------------------------------------------------------------
   24. ACCESSIBILITY / REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}


/* ------------------------------------------------------------
   25. لمسة نهائية — إعادة ضبط اللمس (لا مربع تحديد) + تفاصيل الهوية
   ------------------------------------------------------------ */
html { -webkit-tap-highlight-color: transparent; scrollbar-width: thin; scrollbar-color: var(--accent-border) transparent; }
* { -webkit-tap-highlight-color: transparent; }
a, button, summary, .product-card, .cat-card, .filter-chip, .icon-btn, .btn { touch-action: manipulation; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
img { -webkit-user-drag: none; }
:focus:not(:focus-visible) { outline: none; }
::selection { background-color: var(--accent-glow); color: var(--text); }

/* على اللمس لا يوجد "hover": نُلغي الحالات العالقة (لمعان/رفع) التي كانت تظهر بعد كل نقرة */
@media (hover: none) {
  .product-card:hover .product-card-media, .cat-card:hover .cat-card-media { transform: none; }
  .product-card:hover .product-card-media { box-shadow: var(--photo-mat), 0 8px 22px -14px rgba(0, 0, 0, 0.35); }
  .cat-card:hover .cat-card-media { border-color: var(--line); box-shadow: none; }
  .product-card:hover .product-card-media::before, .cat-card:hover .cat-card-media::before { transform: translateX(-130%); }
  .product-card:hover .product-card-media::after { opacity: 0; }
  .cat-card:hover .cat-card-media::after { transform: translate(-50%, -50%) scale(1); opacity: 0.14; }
  .product-card:hover .product-card-media img { transform: none; }
}
.cat-card-media img { transition: transform 0.5s var(--ease); }
/* أثناء الضغط: الصورة تنتفخ قليلًا من الداخل (مع ضوء السلايم) */
.product-card.is-held .product-card-media img, .cat-card.is-held .cat-card-media img { transform: scale(1.08); }

/* الأقسام الملوّنة شبه شفافة: يمرّ ضوء الخلفية (الشفق) من خلفها */
@supports (background-color: color-mix(in srgb, red 50%, blue)) {
  .section--tint { background-color: color-mix(in srgb, var(--surface) 62%, transparent); }
}

/* تفاصيل الهوية: ذهبي وردي هادئ في الزخارف + توهج حيّ لشعار الهيدر */
.section-head .eyebrow::before, .page-hero .eyebrow::before { background-color: var(--gold); }
.section-head h2::after { background-image: linear-gradient(270deg, var(--gold), var(--accent2) 48%, transparent); }
.brand-icon { filter: drop-shadow(0 0 10px var(--accent-glow)); }


/* تنبيه مطابقة السلة (منتج أُزيل / سعر تغيّر) */
.cart-notice { margin: 0 0 18px; padding: 14px 18px; border-radius: var(--radius-md, 14px); border: 1px solid var(--accent-border); background-color: var(--accent-film); color: var(--text); font-size: 0.95rem; line-height: 1.9; }
.cart-notice[hidden] { display: none; }
.cart-notice div + div { margin-top: 4px; }


/* معاينة الصورة الثانية للمنتج + مؤشر النقطتين */
.product-card-media .product-card-alt { position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
.product-card-media.has-alt > img:not(.product-card-alt) { transition: opacity 0.35s ease, transform 0.5s var(--ease); }
.product-card-media.is-alt > img:not(.product-card-alt) { opacity: 0; }
.product-card-media.is-alt .product-card-alt { opacity: 1; }
.product-card-dots { position: absolute; z-index: 3; inset-inline: 0; bottom: 9px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.product-card-dots i { width: 5px; height: 5px; border-radius: 50%; background-color: var(--text); opacity: 0.22; transition: opacity 0.3s ease, transform 0.3s ease; }
.product-card-dots i.on { opacity: 0.7; transform: scale(1.25); }


/* ------------------------------------------------------------
   خلفية الأيقونات بطبقات عمق + فقاعات (خفيفة على المعالج: transform/opacity فقط)
   ------------------------------------------------------------ */
.lb-dl { position: absolute; inset: 0; will-change: transform; }
.lb-di.z1 { opacity: 0.55; }
.lb-di.z2 { opacity: 0.8; }
.lb-di.z3 { opacity: 1; }
.lb-bubbles { position: absolute; inset: 0; overflow: hidden; }
.lb-bub {
  position: absolute; top: 0; display: block; border-radius: 50%; opacity: 0; will-change: transform, opacity; --o: 0.8;
  border: 1px solid var(--accent); background-image: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.08) 40%, transparent 64%);
  animation: lb-bub var(--d, 22s) linear var(--dl, 0s) infinite;
}
.lb-bub.z1 { --o: 0.45; }
.lb-bub.z2 { --o: 0.7; }
.lb-bub.z3 { --o: 1; }
html[data-theme="light"] .lb-bub { border-color: rgba(75, 31, 107, 0.7); background-image: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.9), rgba(214, 51, 142, 0.14) 45%, transparent 68%); }
@keyframes lb-bub {
  0% { transform: translate3d(0, 108vh, 0); opacity: 0; }
  10% { opacity: var(--o); }
  50% { transform: translate3d(var(--sw, 14px), 52vh, 0); }
  90% { opacity: var(--o); }
  100% { transform: translate3d(calc(var(--sw, 14px) * -0.6), -12vh, 0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .lb-bub { display: none; } }
/* فقاعات الهيرو: زجاجية ناعمة وتتوقف عند خروج الهيرو من الشاشة */
.lb-pearl-up {
  border: 1px solid currentColor; color: var(--accent2); box-shadow: none;
  background-image: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.1) 42%, transparent 66%);
}
html[data-theme="light"] .lb-pearl-up { color: #C0357F; background-image: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.95), rgba(214, 51, 142, 0.16) 46%, transparent 70%); }
.lb-hero-fx.is-paused * { animation-play-state: paused !important; }


/* ------------------------------------------------------------
   27. لمسة فخامة: صور شفافة بحواف ناعمة + شريط عائم أرقّ
   ------------------------------------------------------------ */
/* صور المنتجات الشفافة: خلفية استوديو لطيفة + ظل تماسّ ناعم، وحواف مصقولة بلا هالة */
.product-card-media { background-image: radial-gradient(ellipse 80% 62% at 50% 44%, rgba(255, 255, 255, 0.55), transparent 72%); }
.product-card-media img { image-rendering: auto; filter: drop-shadow(0 10px 12px rgba(40, 14, 70, 0.20)) drop-shadow(0 1px 1.5px rgba(40, 14, 70, 0.16)); }
html[data-theme="dark"] .product-card-media { background-image: radial-gradient(ellipse 80% 62% at 50% 44%, rgba(190, 123, 255, 0.10), transparent 72%); }
/* الشريط العائم: أطراف أنعم وظل أرقّ وخط ذهبي رفيع في الأعلى */
.lb-dock { border-radius: 30px; box-shadow: 0 16px 36px -16px rgba(0, 0, 0, 0.55), 0 6px 18px -12px var(--accent-glow), inset 0 1px 0 rgba(242, 203, 180, 0.22); }
html[data-theme="light"] .lb-dock { box-shadow: 0 16px 34px -18px rgba(75, 31, 107, 0.30), 0 6px 18px -12px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.95); }
.lb-dock-item { border-radius: 22px; }
.lb-dock-glow { border-radius: 22px; }


/* ------------------------------------------------------------
   تحسين الأداء (قياس فعلي): بلا فلاتر ظل على العناصر المتحركة، وفقاعات بتدرّجين فقط بلا border
   ------------------------------------------------------------ */
.lb-bub, .lb-pearl-up {
  border: 0; will-change: auto; --ring: rgba(190, 123, 255, 0.55); color: inherit;
  background-image: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.1) 32%, transparent 50%), radial-gradient(circle, transparent 58%, var(--ring) 63%, transparent 72%);
}
html[data-theme="light"] .lb-bub, html[data-theme="light"] .lb-pearl-up { --ring: rgba(75, 31, 107, 0.5); background-image: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(214, 51, 142, 0.12) 36%, transparent 54%), radial-gradient(circle, transparent 58%, var(--ring) 63%, transparent 72%); }
.lb-pearl-up { --ring: rgba(242, 166, 212, 0.7); }
html[data-theme="light"] .lb-pearl-up { --ring: rgba(192, 53, 127, 0.55); }


/* ------------------------------------------------------------
   28. شاشة التحميل «قمر لونا»
   ------------------------------------------------------------
   قمر يكتمل تدريجيًا من هلال إلى بدر فوق شعار المتجر (رمز لاسم Luna) مع نجوم تلمع،
   وعند اكتمال التحميل يلمع القمر ويذوب المشهد كشروق القمر. transform/opacity فقط (خفيفة جدًا).
   ------------------------------------------------------------ */
.boot-screen { --bm-a: #FFF8FF; --bm-b: #E2C6FF; --bm-glow: rgba(190, 123, 255, 0.55); --bm-edge: rgba(190, 123, 255, 0.38); --bm-dark: rgba(190, 123, 255, 0.10); --bm-star: #F5EAFF; --bm-crater: rgba(120, 70, 170, 0.16); gap: 0; }
html[data-theme="light"] .boot-screen { --bm-a: #FFF1E2; --bm-b: #E9B9A2; --bm-glow: rgba(185, 128, 107, 0.5); --bm-edge: rgba(75, 31, 107, 0.34); --bm-dark: rgba(75, 31, 107, 0.06); --bm-star: #B9806B; --bm-crater: rgba(150, 90, 70, 0.2); }
.boot-stage { position: relative; width: 240px; height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; transition: transform 0.5s var(--ease); }
.boot-moon { width: 84px; height: 84px; overflow: visible; margin-bottom: -4px; }
.bm-aura { transform-origin: 50% 50%; animation: bm-breathe 3.2s ease-in-out infinite; transition: transform 0.5s var(--ease); }
.bm-dark { fill: var(--bm-dark); stroke: var(--bm-edge); stroke-width: 0.8; }
.bm-crater { fill: var(--bm-crater); }
.bm-shadow { animation: bm-wax 3s cubic-bezier(0.45, 0, 0.25, 1) infinite; }
.bm-lit { animation: bm-fade 3s ease-in-out infinite; }
@keyframes bm-wax { 0% { transform: translateX(0); } 62% { transform: translateX(68px); } 100% { transform: translateX(68px); } }
@keyframes bm-fade { 0%, 8% { opacity: 0; } 18%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes bm-breathe { 0%, 100% { opacity: 0.55; transform: scale(0.94); } 60%, 85% { opacity: 1; transform: scale(1.04); } }
.boot-logo { width: 72px; height: 72px; filter: drop-shadow(0 0 18px var(--accent-glow)); animation: boot-pulse 2.4s ease-in-out infinite; }
.boot-star {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); background-color: var(--bm-star); opacity: 0.2;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: boot-twinkle var(--d) ease-in-out var(--dl) infinite;
}
@keyframes boot-twinkle { 0%, 100% { opacity: 0.15; transform: scale(0.6) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(45deg); } }
/* شروق القمر: عند اكتمال التحميل يتّسع التوهج ويكبر المشهد قليلًا أثناء الذوبان */
body:not(.is-booting) .boot-stage { transform: scale(1.07); }
body:not(.is-booting) .bm-aura { transform: scale(1.7); opacity: 1; animation: none; }
body:not(.is-booting) .bm-lit { animation: none; opacity: 1; }
body:not(.is-booting) .bm-shadow { animation: none; transform: translateX(68px); }
@media (prefers-reduced-motion: reduce) {
  .bm-shadow { animation: none; transform: translateX(68px); }
  .bm-lit { animation: none; opacity: 1; }
  .bm-aura, .boot-star, .boot-logo { animation: none; }
  .boot-star { opacity: 0.6; }
}

/* احتياط: شعار فاتح لا يمكن تعميقه برمجيًا (مصدر خارجي) — فلتر يعمّق لونه في الوضع الفاتح */
html[data-theme="light"] .logo-deepen { filter: brightness(0.5) saturate(1.8) contrast(1.15); }

/* السحب الأفقي لتبديل صورة المنتج في الشبكة: نمنع المتصفح من حجز الحركة الأفقية (التمرير العمودي يبقى).
   لا يُطبَّق على الصفوف القابلة للتمرير الأفقي حتى لا نعطّلها. */
.product-row:not(.is-scroll) .product-card-media.has-alt { touch-action: pan-y; }


/* ------------------------------------------------------------
   سطر الهيرو الصغير (مثل LUNA BOUTIQUE): واضح فوق الصورة بدل أن يذوب فيها — هاتف وحاسوب
   كبسولة شبه معتمة + خط أنيق بتباعد (للّاتيني فقط) + لون لؤلؤي بحد ذهبي
   ------------------------------------------------------------ */
.hero-eyebrow {
  display: inline-block; font-style: normal; font-weight: 700; font-size: 0.95rem; line-height: 1.4;
  color: var(--pearl); padding: 7px 18px; border-radius: 999px;
  background-color: rgba(11, 6, 23, 0.55); border: 1px solid rgba(242, 203, 180, 0.5);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.6);
}
.hero-eyebrow.is-latin { font-family: var(--f-eyebrow); font-size: 0.86rem; letter-spacing: 0.24em; text-transform: uppercase; }
@media (min-width: 701px) { .hero-eyebrow { font-size: 1rem; padding: 8px 22px; } .hero-eyebrow.is-latin { font-size: 0.92rem; } }
html[data-theme="light"] .hero-eyebrow {
  color: var(--accent); background-color: rgba(255, 255, 255, 0.78); border-color: rgba(75, 31, 107, 0.32); text-shadow: none; box-shadow: 0 6px 16px -10px rgba(75, 31, 107, 0.5);
}

/* تاج الهيرو فوق رأس المرأة: أوضح من باقي الأيقونات */
.lb-hf.hero-crown { opacity: 1; stroke-width: 2.8; }
.lb-hf.hero-crown .f { fill-opacity: 0.28; }
html[data-theme="light"] .lb-hf.hero-crown { opacity: 1; }

/* فقرة الهيرو في الوضع الفاتح: أغمق قليلًا مع هالة بيضاء ناعمة لتُقرأ فوق الصورة */
html[data-theme="light"] .hero-text { color: var(--text); font-weight: 500; text-shadow: 0 0 14px rgba(255, 255, 255, 0.85), 0 0 4px rgba(255, 255, 255, 0.6); }
