@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap");
/* =========================================================
   01. الأساسيات والمتغيرات
   ========================================================= */

/* :root: متغيرات عامة لتعديل هوية الموقع من مكان واحد. */
:root {
  --ink: #22201e;
  --muted: #77716a;
  --cream: #f7f4ef;
  --paper: #fffdf9;
  --line: #ded8cf;
  --gold: #b98b52;
  --gold-light: #d7b889;
  --amber: #b97737;
  --rose: #b97876;
  --moss: #6c7962;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Tahoma, sans-serif;
  --shadow: 0 24px 60px rgba(49, 38, 24, 0.12);
}

/* *: توحيد حساب الأحجام وإزالة الهوامش الافتراضية المربكة. */
* { box-sizing: border-box; }

/* html: جعل الانتقال بين أقسام الصفحة سلساً. */
html { scroll-behavior: smooth; }

/* body: شكل الصفحة العام واتجاه القراءة العربية. */
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.7;
  direction: rtl;
}

/* a: إزالة الشكل الافتراضي للروابط مع الحفاظ على قابلية الوصول. */
a { color: inherit; text-decoration: none; }

/* button, input: جعل عناصر النماذج تتبع خط الموقع. */
button, input { font: inherit; }

/* .container: حاوية موحدة تحدد العرض وتوازن المساحات الجانبية. */
.container {
  width: min(1160px, calc(100% - 80px));
  margin-inline: auto;
}

/* .section: مسافة رأسية مشتركة لجميع الأقسام الرئيسية. */
.section { padding: 120px 0; }

/* =========================================================
   02. رأس الصفحة والتنقل
   ========================================================= */

/* .site-header: شريط علوي ثابت بصرياً مع خلفية شبه شفافة. */
.site-header {
  position: relative;
  z-index: 10;
  background: rgba(255, 253, 249, 0.9);
  border-bottom: 1px solid rgba(222, 216, 207, 0.7);
}

/* .header-inner: توزيع الشعار والتنقل والإجراءات في صف واحد. */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
}

/* .brand: تجميع رمز العلامة واسمها في رابط واحد. */
.brand { display: inline-flex; align-items: center; gap: 10px; }

/* .brand-mark: الرمز الدائري الصغير المستلهم من قطرة العطر. */
.brand-mark { color: var(--gold); font-size: 28px; line-height: 1; transform: rotate(-35deg); }

/* .brand-name: اسم العلامة بخط تحريري بارز. */
.brand-name { font-family: var(--serif); font-size: 25px; letter-spacing: 0.08em; }

/* .main-nav: مجموعة روابط التنقل الرئيسية. */
.main-nav { display: flex; align-items: center; gap: 38px; margin-inline-start: 10%; }

/* .nav-link: الرابط العادي في التنقل. */
.nav-link { position: relative; color: var(--muted); font-size: 13px; transition: color 0.25s ease; }

/* .nav-link::after: خط ذهبي يظهر للرابط النشط أو عند المرور. */
.nav-link::after { content: ''; position: absolute; inset-inline: 0; bottom: -9px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform 0.25s ease; }

/* .nav-link:hover, .nav-link.active: إبراز الرابط الحالي أو الذي يمر عليه المؤشر. */
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* .header-actions: مساحة أزرار الحقيبة والقائمة. */
.header-actions { display: flex; align-items: center; gap: 16px; }

/* .icon-button: زر الحقيبة الدائري مع عداد صغير. */
.icon-button { position: relative; border: 0; background: none; color: var(--ink); cursor: pointer; font-size: 23px; padding: 4px; }

/* .bag-count: دائرة صغيرة تعرض عدد المنتجات في الحقيبة. */
.bag-count { position: absolute; top: -3px; inset-inline-start: -7px; display: grid; width: 15px; height: 15px; place-items: center; border-radius: 50%; background: var(--gold); color: white; font-size: 9px; line-height: 1; }

/* .menu-button: زر القائمة المخصص للهاتف فقط. */
.menu-button { display: none; border: 0; background: none; cursor: pointer; font-size: 22px; }

/* =========================================================
   03. الواجهة الرئيسية والرسم الزخرفي
   ========================================================= */

/* .hero: القسم الأول بخلفية عاجية ومساحة عرض سخية. */
.hero { overflow: hidden; background: var(--cream); }

/* .hero-grid: تقسيم الواجهة إلى نص ورسم بصري. */
.hero-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; align-items: center; min-height: 650px; }

/* .hero-copy: منطقة النصوص والأزرار في الواجهة. */
.hero-copy { padding: 70px 0 70px 7%; }

/* .eyebrow: وسم صغير يسبق العنوان الرئيسي. */
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 23px; color: var(--gold); font-size: 11px; letter-spacing: 0.1em; }

/* .eyebrow span: الخط القصير المرافق للوسم الصغير. */
.eyebrow span { display: inline-block; width: 33px; height: 1px; background: var(--gold); }

/* .hero-title: عنوان الواجهة الأكبر مع تباعد تحريري. */
.hero-title { margin: 0; font-family: var(--serif); font-size: clamp(48px, 6vw, 82px); font-weight: 400; line-height: 1.12; letter-spacing: -0.045em; }

/* em: إبراز الكلمات الشعرية باللون الذهبي وبوزن مائل. */
em { color: var(--gold); font-style: italic; }

/* .hero-description: الفقرة التوضيحية أسفل العنوان. */
.hero-description { max-width: 415px; margin: 29px 0 31px; color: var(--muted); font-size: 15px; line-height: 2; }

/* .hero-actions: صف أزرار الدعوة إلى الإجراء. */
.hero-actions { display: flex; align-items: center; gap: 25px; }

/* .button: القاعدة المشتركة لكل أزرار الروابط الكبيرة. */
.button { display: inline-flex; align-items: center; gap: 17px; padding: 14px 24px; font-size: 12px; transition: transform 0.25s ease, background 0.25s ease; }

/* .button:hover: رفع الزر قليلاً عند المرور. */
.button:hover { transform: translateY(-3px); }

/* .button-primary: الزر الأساسي بلون العلامة. */
.button-primary { background: var(--ink); color: #fff; }

/* .button-primary:hover: تغيير لون الزر الأساسي عند المرور. */
.button-primary:hover { background: var(--gold); }

/* .button-ghost: الزر الثانوي بخط سفلي بسيط. */
.button-ghost { padding-inline: 0; border-bottom: 1px solid var(--gold-light); color: var(--ink); }

/* .hero-note: ملاحظة المميزات تحت الأزرار. */
.hero-note { margin: 43px 0 0; color: var(--muted); font-size: 10px; letter-spacing: 0.03em; }

/* .hero-note span: النجمة الذهبية في ملاحظة المميزات. */
.hero-note span { margin-inline-end: 6px; color: var(--gold); }

/* .hero-art: مساحة الرسم التي تحتوي على العبوة والحلقات. */
.hero-art { position: relative; min-height: 650px; display: grid; place-items: center; isolation: isolate; }

/* .hero-art::before: هالة دائرية خافتة خلف العبوة. */
.hero-art::before { content: ''; position: absolute; z-index: -2; width: 470px; height: 470px; border-radius: 50%; background: rgba(224, 204, 174, 0.28); }

/* .art-orbit: قاعدة مشتركة للحلقات الدائرية الزخرفية. */
.art-orbit { position: absolute; border: 1px solid rgba(185, 139, 82, 0.4); border-radius: 50%; }

/* .art-orbit-one: الحلقة الأكبر الكاملة حول العبوة. */
.art-orbit-one { width: 500px; height: 500px; }

/* .art-orbit-two: الحلقة الأصغر ذات القطع البصري. */
.art-orbit-two { width: 570px; height: 270px; border-inline-color: transparent; transform: rotate(-37deg); }

/* .hero-bottle: التجميع العام لأجزاء عبوة العطر الرئيسية. */
.hero-bottle { position: relative; z-index: 2; width: 170px; margin-top: 48px; animation: floatBottle 6s ease-in-out infinite; }

/* .bottle-cap: الغطاء العلوي اللامع للعبوة. */
.bottle-cap { width: 63px; height: 38px; margin: 0 auto; border-radius: 3px 3px 1px 1px; background: linear-gradient(90deg, #847a6b, #d4c5ad 45%, #817565); box-shadow: 0 -5px 9px rgba(71, 52, 28, 0.12); }

/* .bottle-neck: عنق زجاجي صغير بين الغطاء والجسم. */
.bottle-neck { width: 72px; height: 25px; margin: 0 auto -4px; border-inline: 6px solid rgba(255, 246, 227, 0.75); background: rgba(191, 129, 52, 0.7); }

/* .bottle-body: جسم العبوة المتدرج ذي الحواف المستديرة. */
.bottle-body { position: relative; height: 270px; border-radius: 17px 17px 8px 8px; background: linear-gradient(110deg, #a86628 0%, #d59b55 46%, #845020 100%); box-shadow: 18px 23px 40px rgba(83, 52, 22, 0.25), inset 12px 0 14px rgba(255, 225, 165, 0.2); }

/* .bottle-label: النص الصغير داخل جسم العبوة. */
.bottle-label { position: absolute; top: 40%; inset-inline: 17px; padding: 13px 5px; border-block: 1px solid rgba(255, 239, 205, 0.52); color: #f9e7c7; font-family: var(--serif); font-size: 20px; letter-spacing: 0.12em; line-height: 1.35; text-align: center; }

/* .bottle-label small: السطر الثانوي داخل ملصق العبوة. */
.bottle-label small { font-family: var(--sans); font-size: 7px; letter-spacing: 0.18em; }

/* .art-caption: تعريف المنتج بمحاذاة طرف الرسم. */
.art-caption { position: absolute; bottom: 89px; inset-inline-start: 2%; display: flex; flex-direction: column; gap: 1px; padding-inline-start: 15px; border-inline-start: 1px solid var(--gold); }

/* .art-caption span: رقم المنتج في التعريف الجانبي. */
.art-caption span { color: var(--gold); font-size: 10px; }

/* .art-caption strong: اسم المنتج في التعريف الجانبي. */
.art-caption strong { font-family: var(--serif); font-size: 17px; font-weight: 400; }

/* .art-caption small: النوتات العطرية الأساسية للمنتج. */
.art-caption small { color: var(--muted); font-size: 10px; }

/* .marquee-bar: شريط مميزات فاصل بين الواجهة والمنتجات. */
.marquee-bar { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--ink); color: #e8dfd2; }

/* .marquee-track: توزيع الرسائل مع مسافات متوازنة. */
.marquee-track { display: flex; align-items: center; justify-content: space-between; min-height: 58px; color: #e8dfd2; font-family: var(--serif); font-size: 14px; }

/* .marquee-track b: الفاصل الذهبي بين الرسائل. */
.marquee-track b { color: var(--gold-light); font-weight: 400; }

/* =========================================================
   04. العناوين وشبكة المنتجات
   ========================================================= */

/* .section-heading: رأس مشترك يضبط المحاذاة والمسافات. */
.section-heading { display: grid; grid-template-columns: 0.5fr 1fr 1.1fr; align-items: end; gap: 24px; margin-bottom: 55px; }

/* .section-kicker: عنوان القسم الصغير باللون الذهبي. */
.section-kicker { margin: 0 0 15px; color: var(--gold); font-size: 11px; letter-spacing: 0.12em; }

/* .section-title: عنوان القسم الرئيسي بخط سيريف. */
.section-title { margin: 0; font-family: var(--serif); font-size: clamp(36px, 4vw, 56px); font-weight: 400; line-height: 1.25; letter-spacing: -0.035em; }

/* .section-intro: نص وصفي قصير بمحاذاة العنوان. */
.section-intro { max-width: 310px; margin: 0 0 4px; color: var(--muted); font-size: 13px; line-height: 1.9; }

/* .product-grid: شبكة البطاقات الثلاث المرنة. */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* .product-card: بطاقة منتج بحدود ناعمة ومساحة داخلية منظمة. */
.product-card { background: var(--cream); transition: transform 0.35s ease, box-shadow 0.35s ease; }

/* .product-card:hover: رفع البطاقة عند استكشاف المنتج. */
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }

/* .product-visual: اللوحة العلوية التي تعرض العبوة واللون. */
.product-visual { position: relative; display: grid; min-height: 310px; place-items: center; overflow: hidden; }

/* .visual-amber: لون لوحة المنتج العنبرى. */
.visual-amber { background: #e8d6bc; }

/* .visual-rose: لون لوحة المنتج الوردي. */
.visual-rose { background: #ead7d2; }

/* .visual-moss: لون لوحة المنتج الأخضر. */
.visual-moss { background: #d7ded1; }

/* .product-visual::after: دائرة شفافة خلف كل عبوة مصغرة. */
.product-visual::after { content: ''; position: absolute; width: 210px; height: 210px; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 50%; }

/* .mini-bottle: عبوة صغيرة مخصصة لبطاقات المنتجات. */
.mini-bottle { position: relative; z-index: 1; width: 82px; height: 142px; border-radius: 9px 9px 5px 5px; background: linear-gradient(105deg, rgba(78, 60, 39, 0.86), rgba(205, 153, 93, 0.9) 55%, rgba(97, 64, 29, 0.9)); box-shadow: 12px 16px 25px rgba(70, 53, 31, 0.2); }

/* .mini-bottle span: عنق العبوة المصغرة. */
.mini-bottle span { position: absolute; width: 34px; height: 18px; top: -17px; inset-inline: 0; margin: auto; border-inline: 4px solid rgba(255,255,255,0.6); background: #a87842; }

/* .mini-bottle i: غطاء العبوة المصغرة. */
.mini-bottle i { position: absolute; width: 33px; height: 15px; top: -31px; inset-inline: 0; margin: auto; border-radius: 2px 2px 0 0; background: #958875; }

/* .mini-bottle strong: الحرف المختصر على واجهة العبوة. */
.mini-bottle strong { position: absolute; top: 55px; inset-inline: 14px; padding: 7px 0; border-block: 1px solid rgba(255, 235, 198, 0.55); color: #f3dfc0; font-family: var(--serif); font-size: 20px; font-weight: 400; text-align: center; }

/* .visual-rose .mini-bottle: تخصيص لون العبوة الوردية. */
.visual-rose .mini-bottle { background: linear-gradient(105deg, #914d4f, #d09388 55%, #774243); }

/* .visual-moss .mini-bottle: تخصيص لون العبوة الخضراء. */
.visual-moss .mini-bottle { background: linear-gradient(105deg, #4d5e4a, #94aa83 55%, #354633); }

/* .product-tag: شارة توضح المنتج الأكثر طلباً. */
.product-tag { position: absolute; top: 20px; inset-inline-start: 20px; z-index: 2; padding: 4px 8px; background: var(--ink); color: #fff; font-size: 9px; }

/* .product-number: رقم المنتج في زاوية اللوحة. */
.product-number { position: absolute; top: 20px; inset-inline-end: 20px; color: rgba(34, 32, 30, 0.45); font-family: var(--serif); font-size: 15px; }

/* .product-info: منطقة بيانات المنتج أسفل الرسم. */
.product-info { padding: 24px 22px 25px; }

/* .product-category: نوع العطر وحجمه بخط صغير. */
.product-category { margin: 0 0 7px; color: var(--gold); font-size: 9px; letter-spacing: 0.07em; }

/* .product-name: اسم العطر داخل البطاقة. */
.product-name { margin: 0 0 8px; font-family: var(--serif); font-size: 26px; font-weight: 400; }

/* .product-description: وصف النوتات العطرية للمنتج. */
.product-description { min-height: 48px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }

/* .product-bottom: صف السعر ورابط اكتشاف المنتج. */
.product-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 21px; margin-top: 17px; border-top: 1px solid var(--line); }

/* .product-price: السعر البارز للمنتج. */
.product-price { font-family: var(--serif); font-size: 17px; font-weight: 400; }

/* .product-link: رابط الانتقال إلى تفاصيل المنتج. */
.product-link { color: var(--gold); font-size: 11px; transition: gap 0.25s ease; }

/* .product-link span: سهم رابط المنتج. */
.product-link span { display: inline-block; margin-inline-start: 7px; transition: transform 0.25s ease; }

/* .product-link:hover span: تحريك السهم عند المرور. */
.product-link:hover span { transform: translateX(-4px); }

/* =========================================================
   05. قصة العلامة
   ========================================================= */

/* .story: قسم القصة بخلفية داكنة متباينة. */
.story { background: var(--ink); color: #f4eee4; }

/* .story-grid: تخطيط من عمودين للوحة والنص. */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 13%; }

/* .story-visual: لوحة زخرفية دائرية تمثل ذاكرة العطر. */
.story-visual { position: relative; display: grid; width: min(100%, 430px); aspect-ratio: 1; place-items: center; border: 1px solid rgba(215, 184, 137, 0.5); border-radius: 50%; background: radial-gradient(circle at 30% 27%, #745c46, #3d332a 52%, #24211e 73%); }

/* .story-visual::before: دائرة داخلية تضيف طبقات للوحة. */
.story-visual::before { content: ''; position: absolute; inset: 25px; border: 1px solid rgba(215, 184, 137, 0.22); border-radius: 50%; }

/* .story-stamp: ختم الحرف الذي يرمز إلى نور. */
.story-stamp { position: absolute; top: 65px; inset-inline-end: 74px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--gold-light); border-radius: 50%; color: var(--gold-light); font-family: var(--serif); font-size: 21px; }

/* .story-line: خط زخرفي مائل داخل اللوحة. */
.story-line { position: absolute; width: 190px; height: 1px; background: var(--gold-light); opacity: 0.6; transform: rotate(-48deg); }

/* .story-quote: العبارة المركزية داخل اللوحة. */
.story-quote { font-family: var(--serif); font-size: 35px; line-height: 1.25; text-align: center; }

/* .story-quote em: الكلمة المميزة داخل العبارة. */
.story-quote em { color: var(--gold-light); }

/* .story-year: سنة تأسيس العلامة أسفل اللوحة. */
.story-year { position: absolute; bottom: 62px; inset-inline-start: 75px; color: var(--gold-light); font-size: 9px; letter-spacing: 0.2em; }

/* .story-copy: مساحة نص القصة والاقتباس والتوقيع. */
.story-copy { max-width: 470px; }

/* .story .section-kicker: ضبط لون وسم القسم فوق الخلفية الداكنة. */
.story .section-kicker { color: var(--gold-light); }

/* .story .section-title: عنوان القصة بلون فاتح. */
.story .section-title { color: #f4eee4; }

/* .story-text: الفقرة التفسيرية لقصة العلامة. */
.story-text { max-width: 415px; margin: 30px 0 28px; color: #b5aea4; font-size: 14px; line-height: 2.15; }

/* .text-link: رابط نصي بسيط لقصة العلامة. */
.text-link { display: inline-flex; gap: 12px; border-bottom: 1px solid var(--gold); padding-bottom: 6px; color: var(--gold-light); font-size: 12px; }

/* .story-signature: توقيع زخرفي أسفل النص. */
.story-signature { margin-top: 45px; color: var(--gold-light); font-family: var(--serif); font-size: 24px; line-height: 1.15; }

/* .story-signature small: السطر التوضيحي بجانب التوقيع. */
.story-signature small { color: #90887d; font-family: var(--sans); font-size: 9px; }

/* =========================================================
   06. النشرة والتذييل
   ========================================================= */

/* .newsletter: قسم النشرة بلون ذهبي هادئ. */
.newsletter { background: #e7d6bf; }

/* .newsletter-inner: توزيع عنوان النشرة والنموذج. */
.newsletter-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: center; gap: 12%; }

/* .newsletter .section-kicker: وسم النشرة بلون أغمق فوق الخلفية الفاتحة. */
.newsletter .section-kicker { color: #765939; }

/* .newsletter-title: عنوان الاشتراك البارز. */
.newsletter-title { margin: 0; font-family: var(--serif); font-size: clamp(35px, 4vw, 54px); font-weight: 400; line-height: 1.25; }

/* .newsletter-title em: إبراز الجزء الثاني من عنوان النشرة. */
.newsletter-title em { color: #765939; }

/* .newsletter-form: نموذج الاشتراك وعناصره. */
.newsletter-form { display: grid; grid-template-columns: 1fr auto; gap: 0; }

/* .newsletter-form input: حقل البريد بخلفية شفافة وحد سفلي. */
.newsletter-form input { min-width: 0; padding: 17px 0; border: 0; border-bottom: 1px solid #9f7e59; outline: 0; background: transparent; color: var(--ink); }

/* .newsletter-form input::placeholder: مظهر النص الإرشادي داخل الحقل. */
.newsletter-form input::placeholder { color: #806f5b; }

/* .submit-button: زر الاشتراك المقابل لحقل البريد. */
.submit-button { align-self: end; display: inline-flex; gap: 15px; padding: 17px 0 17px 20px; border: 0; border-bottom: 1px solid #765939; background: transparent; color: #604626; cursor: pointer; font-size: 12px; }

/* .submit-button span: السهم داخل زر الاشتراك. */
.submit-button span { transition: transform 0.25s ease; }

/* .submit-button:hover span: تحريك سهم الإرسال عند المرور. */
.submit-button:hover span { transform: translateX(-4px); }

/* .form-note: ملاحظة الخصوصية أسفل النموذج. */
.form-note { grid-column: 1 / -1; margin: 13px 0 0; color: #806f5b; font-size: 9px; }

/* .sr-only: إخفاء بصري لتسمية الحقل مع إبقائها لقارئات الشاشة. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* .site-footer: تذييل بسيط يحافظ على هدوء التصميم. */
.site-footer { background: var(--cream); }

/* .footer-inner: توزيع عناصر التذييل في صف واحد. */
.footer-inner { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 35px; min-height: 105px; }

/* .footer-brand: تصغير الشعار داخل التذييل. */
.footer-brand .brand-name { font-size: 21px; }

/* .footer-note: جملة العلامة في التذييل. */
.footer-note, .copyright { color: var(--muted); font-size: 10px; }

/* .footer-links: روابط التذييل المختصرة. */
.footer-links { display: flex; gap: 20px; color: var(--muted); font-size: 10px; }

/* .footer-links a:hover: تغيير لون روابط التذييل عند المرور. */
.footer-links a:hover { color: var(--gold); }

/* .copyright: سطر حقوق النشر. */
.copyright { direction: ltr; }

/* =========================================================
   07. الحركة والاستجابة
   ========================================================= */

/* floatBottle: حركة تنفس بسيطة للعبوة الرئيسية. */
@keyframes floatBottle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-11px) rotate(1deg); }
}

/* الشاشات المتوسطة: تقليل المسافات مع الحفاظ على التكوين العام. */
@media (max-width: 900px) {
  /* .container: تقليل عرض الهوامش على الشاشات المتوسطة. */
  .container { width: min(100% - 48px, 680px); }

  /* .main-nav: إخفاء الروابط واستبدالها بزر القائمة. */
  .main-nav { display: none; }

  /* .menu-button: إظهار زر القائمة على الشاشات الأصغر. */
  .menu-button { display: block; }

  /* .hero-grid: تحويل الواجهة إلى عمودين متساويين. */
  .hero-grid { grid-template-columns: 1fr 1fr; min-height: 590px; }

  /* .hero-copy: تقليل حشو النص في الشاشة المتوسطة. */
  .hero-copy { padding-inline-start: 0; }

  /* .hero-art: تقليل مساحة الرسم لتجنب التزاحم. */
  .hero-art { min-height: 590px; transform: scale(0.84); }

  /* .section-heading: رأس الأقسام إلى صفين أكثر مرونة. */
  .section-heading { grid-template-columns: 1fr 1fr; }

  /* .section-intro: وضع الوصف في الصف الثاني. */
  .section-intro { grid-column: 1 / -1; }

  /* .story-grid: تقليل الفجوة بين لوحة القصة والنص. */
  .story-grid { gap: 7%; }

  /* .footer-inner: السماح للتذييل بالالتفاف عند الحاجة. */
  .footer-inner { grid-template-columns: auto 1fr auto; }
  .copyright { grid-column: 1 / -1; }
}

/* الشاشات الصغيرة: تخطيط عمودي مخصص للهواتف. */
@media (max-width: 620px) {
  /* .container: هامش أصغر حتى لا يضيق المحتوى. */
  .container { width: calc(100% - 36px); }

  /* .header-inner: تقليل ارتفاع الرأس على الهاتف. */
  .header-inner { min-height: 72px; }

  /* .brand-name: تصغير اسم العلامة قليلاً. */
  .brand-name { font-size: 22px; }

  /* .hero-grid: جعل الواجهة عمودية. */
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; min-height: auto; }

  /* .hero-copy: مسافات الهاتف في النصوص. */
  .hero-copy { padding: 72px 0 20px; }

  /* .hero-title: حجم عنوان مناسب للهاتف. */
  .hero-title { font-size: clamp(47px, 15vw, 70px); }

  /* .hero-description: عرض النص على الهاتف. */
  .hero-description { font-size: 13px; }

  /* .hero-actions: السماح للأزرار بالنزول إلى سطر جديد. */
  .hero-actions { flex-wrap: wrap; gap: 17px; }

  /* .hero-art: تقليل ارتفاع الرسم ورفع العبوة قليلاً. */
  .hero-art { min-height: 480px; transform: scale(0.74); transform-origin: center top; }

  /* .marquee-track: جعل شريط الرسائل قابلاً للتمرير الأفقي دون شريط ظاهر. */
  .marquee-track { width: max-content; min-width: 100%; gap: 28px; justify-content: flex-start; }

  /* .section: تقليل المسافات الرأسية للأقسام. */
  .section { padding: 80px 0; }

  /* .section-heading: تحويل رأس القسم إلى عمودي. */
  .section-heading { display: block; margin-bottom: 36px; }

  /* .section-title: تقليل حجم عناوين الأقسام. */
  .section-title { font-size: 42px; }

  /* .section-intro: ضبط المسافة بعد العنوان. */
  .section-intro { margin-top: 18px; }

  /* .product-grid: عرض البطاقات في عمود واحد. */
  .product-grid { grid-template-columns: 1fr; gap: 18px; }

  /* .product-visual: تقليل ارتفاع لوحات البطاقات. */
  .product-visual { min-height: 270px; }

  /* .story-grid: تحويل القصة إلى عمود واحد. */
  .story-grid { grid-template-columns: 1fr; gap: 60px; }

  /* .story-visual: تقليل حجم لوحة القصة على الهاتف. */
  .story-visual { width: 90%; margin-inline: auto; }

  /* .story-copy: إبقاء النص بمحاذاة البداية على الهاتف. */
  .story-copy { max-width: none; }

  /* .newsletter-inner: وضع نموذج النشرة أسفل عنوانه. */
  .newsletter-inner { grid-template-columns: 1fr; gap: 35px; }

  /* .newsletter-form: تصغير شكل نموذج الاشتراك. */
  .newsletter-form { display: block; }

  /* .submit-button: إعطاء زر الاشتراك مسافة علوية. */
  .submit-button { margin-top: 15px; }

  /* .footer-inner: جعل عناصر التذييل عمودية ومتمركزة. */
  .footer-inner { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 30px 0; text-align: center; }

  /* .footer-links: توسيط روابط التذييل. */
  .footer-links { justify-content: center; }

  /* .copyright: إزالة أي تخطيط شبكي سابق لحقوق النشر. */
  .copyright { margin: 3px 0 0; }
}

/* تقليل الحركة للمستخدم الذي يفضل تجربة هادئة. */
@media (prefers-reduced-motion: reduce) {
  /* *: تعطيل الانتقالات والحركة التلقائية مع الحفاظ على قابلية الاستخدام. */
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}


/* =========================================================
   08. تحسينات القائمة المتجاوبة وحركات المنتجات الجديدة
   ========================================================= */

/* .nav-badge: شارة صغيرة توضح عدد المنتجات في رابط الكتالوج. */
.nav-badge { display: inline-grid; min-width: 17px; height: 17px; margin-inline-start: 4px; padding-inline: 3px; place-items: center; border-radius: 50%; background: var(--gold); color: white; font-size: 8px; line-height: 1; vertical-align: middle; }

/* .site-header: تثبيت الرأس ليبقى التنقل متاحاً أثناء التصفح. */
.site-header { position: sticky; top: 0; backdrop-filter: blur(14px); }

/* .header-inner: جعل القائمة المنسدلة تتموضع بالنسبة للرأس. */
.header-inner { position: relative; }

/* .catalog-card: بطاقة منتج متحركة تظهر بتتابع بصري خفيف. */
.catalog-card { overflow: hidden; background: var(--cream); opacity: 0; animation: cardRise 0.7s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--card-delay); transition: transform 0.4s ease, box-shadow 0.4s ease; }

/* .catalog-card:hover: رفع البطاقة وإظهار ظل أعمق عند المرور. */
.catalog-card:hover { transform: translateY(-10px) rotate(-0.5deg); box-shadow: 0 26px 55px rgba(49, 38, 24, 0.17); }

/* .catalog-image: مساحة الصورة مع قص موحد وحركة داخلية. */
.catalog-image { position: relative; height: 340px; overflow: hidden; background: #e4d9ca; }

/* .catalog-image::after: طبقة إضاءة تمر على الصورة عند المرور. */
.catalog-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.35) 48%, transparent 72%); transform: translateX(120%); transition: transform .75s ease; pointer-events: none; }

/* .catalog-card:hover .catalog-image::after: تشغيل لمعان المنتج. */
.catalog-card:hover .catalog-image::after { transform: translateX(-120%); }

/* .catalog-image img: الصورة الواقعية للعبوة داخل البطاقة. */
.catalog-image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .5s ease; }

/* .catalog-card:hover .catalog-image img: تكبير الصورة تدريجياً عند المرور. */
.catalog-card:hover .catalog-image img { transform: scale(1.08); filter: saturate(1.1) contrast(1.02); }

/* .catalog-label: شارة مزاج العطر في أعلى الصورة. */
.catalog-label { position: absolute; z-index: 1; top: 18px; inset-inline-start: 18px; padding: 5px 9px; background: rgba(255,253,249,.88); color: var(--ink); font-size: 9px; backdrop-filter: blur(6px); }

/* .catalog-number: رقم المنتج الشفاف في زاوية الصورة. */
.catalog-number { position: absolute; z-index: 1; top: 18px; inset-inline-end: 18px; color: #fff; font-family: var(--serif); font-size: 14px; text-shadow: 0 2px 8px rgba(0,0,0,.25); }

/* .quick-add: زر سريع دائري يطفو فوق الصورة. */
.quick-add { position: absolute; z-index: 2; right: 18px; bottom: 18px; display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 50%; background: var(--ink); color: white; cursor: pointer; font-size: 25px; line-height: 1; opacity: 0; transform: translateY(12px) rotate(-20deg); transition: opacity .3s ease, transform .3s ease, background .3s ease; }

/* .catalog-card:hover .quick-add: إظهار الزر السريع عند استكشاف الصورة. */
.catalog-card:hover .quick-add { opacity: 1; transform: translateY(0) rotate(0); }

/* .quick-add:hover: تحويل الزر إلى ذهبي عند التفاعل. */
.quick-add:hover { background: var(--gold); }

/* .catalog-info: مساحة تفاصيل المنتج أسفل الصورة. */
.catalog-info { padding: 22px 20px 20px; }

/* .catalog-category: تصنيف المنتج وحجمه. */
.catalog-category { margin: 0 0 5px; color: var(--gold); font-size: 9px; letter-spacing: .08em; }

/* .catalog-info h3: اسم المنتج بخط تحريري. */
.catalog-info h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 26px; font-weight: 400; }

/* .catalog-notes: نوتات العطر وصفته المختصرة. */
.catalog-notes { min-height: 26px; margin: 0; color: var(--muted); font-size: 11px; }

/* .catalog-bottom: صف السعر وزر الإضافة الأساسي. */
.catalog-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 17px; margin-top: 16px; border-top: 1px solid var(--line); }

/* .catalog-bottom strong: سعر المنتج. */
.catalog-bottom strong { font-family: var(--serif); font-size: 17px; font-weight: 400; white-space: nowrap; }

/* .add-to-cart: زر الإضافة إلى السلة في بطاقة المنتج. */
.add-to-cart { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--gold); background: transparent; color: var(--gold); cursor: pointer; font-size: 10px; }

/* .add-to-cart span: سهم الحركة في زر السلة. */
.add-to-cart span { transition: transform .25s ease; }

/* .add-to-cart:hover span: تحريك السهم عند الإضافة. */
.add-to-cart:hover span { transform: translateX(-5px); }

/* .products-hero: مقدمة الكتالوج بخلفية دافئة. */
.products-hero { overflow: hidden; background: var(--cream); }

/* .products-hero-inner: تقسيم المقدمة بين النص والصورة. */
.products-hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; min-height: 410px; gap: 8%; }

/* .products-title: عنوان صفحة المنتجات. */
.products-title { margin: 0; font-family: var(--serif); font-size: clamp(46px, 6vw, 78px); font-weight: 400; line-height: 1.08; letter-spacing: -.05em; }

/* .products-lead: وصف قصير تحت عنوان الكتالوج. */
.products-lead { max-width: 420px; margin: 24px 0 0; color: var(--muted); font-size: 14px; line-height: 2; }

/* .products-hero-art: لوحة الصورة المائلة في مقدمة الكتالوج. */
.products-hero-art { position: relative; height: 310px; overflow: hidden; border-radius: 50% 50% 5px 5px; transform: rotate(3deg); box-shadow: 20px 24px 0 rgba(185,139,82,.2); }

/* .products-hero-art img: صورة حقيقية كبيرة للمقدمة. */
.products-hero-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }

/* .products-hero-art:hover img: حركة تكبير ناعمة لصورة المقدمة. */
.products-hero-art:hover img { transform: scale(1.08); }

/* .products-hero-art span: عداد 25 بصيغة زخرفية فوق الصورة. */
.products-hero-art > span { position: absolute; right: 22px; bottom: 20px; display: grid; width: 62px; height: 62px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--gold-light); font-family: var(--serif); font-size: 20px; line-height: .9; text-align: center; }

/* .products-hero-art span small: كلمة رائحة أسفل العداد. */
.products-hero-art span small { font-family: var(--sans); font-size: 8px; }

/* .catalog-section: خلفية فاتحة لشبكة المنتجات. */
.catalog-section { background: var(--paper); }

/* .catalog-toolbar: ترتيب عنوان الكتالوج والفلاتر والعداد. */
.catalog-toolbar { display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 28px; margin-bottom: 48px; }

/* .catalog-toolbar .section-title: حجم عنوان الكتالوج. */
.catalog-toolbar .section-title { font-size: 50px; }

/* .filter-buttons: مجموعة أزرار التصفية. */
.filter-buttons { display: flex; align-items: center; gap: 7px; padding-bottom: 7px; }

/* .filter-button: زر تصفية غير محدد. */
.filter-button { padding: 8px 13px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; transition: background .25s ease, color .25s ease, border .25s ease; }

/* .filter-button:hover, .filter-button.is-selected: حالة الزر المحدد. */
.filter-button:hover, .filter-button.is-selected { border-color: var(--ink); background: var(--ink); color: #fff; }

/* .results-count: عدد العناصر الحالية على يمين أو يسار الشريط. */
.results-count { margin: 0 0 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }

/* .results-count span: الرقم الذهبي لنتائج التصفية. */
.results-count span { color: var(--gold); font-family: var(--serif); font-size: 21px; }

/* .catalog-grid: شبكة 25 بطاقة متجاوبة. */
.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* .cart-overlay: غطاء شفاف خلف السلة الجانبية. */
.cart-overlay { position: fixed; z-index: 40; inset: 0; background: rgba(25, 21, 17, .42); opacity: 0; pointer-events: none; transition: opacity .35s ease; }

/* .cart-overlay.is-visible: تفعيل الغطاء عند فتح السلة. */
.cart-overlay.is-visible { opacity: 1; pointer-events: auto; }

/* .cart-drawer: لوحة السلة الجانبية التي تدخل من جهة القراءة العربية. */
.cart-drawer { position: fixed; z-index: 50; top: 0; bottom: 0; inset-inline-end: 0; display: flex; width: min(440px, 100%); flex-direction: column; padding: 30px; background: var(--paper); box-shadow: -18px 0 60px rgba(25,21,17,.2); transform: translateX(105%); transition: transform .45s cubic-bezier(.2,.8,.2,1); }

/* .cart-drawer.is-open: إظهار اللوحة بعد إضافة منتج أو الضغط على الحقيبة. */
.cart-drawer.is-open { transform: translateX(0); }

/* .cart-head: رأس لوحة السلة وزر الإغلاق. */
.cart-head { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }

/* .cart-head h2: عنوان السلة. */
.cart-head h2 { margin: 0; font-family: var(--serif); font-size: 32px; font-weight: 400; }

/* .cart-close: زر إغلاق لوحة السلة. */
.cart-close { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 30px; line-height: 1; }

/* .cart-items: منطقة عناصر السلة القابلة للتمدد. */
.cart-items { flex: 1; overflow-y: auto; padding: 18px 0; }

/* .cart-item: صف منتج واحد داخل السلة. */
.cart-item { display: flex; align-items: center; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--line); }

/* .cart-item img: صورة مصغرة للمنتج داخل السلة. */
.cart-item img { width: 67px; height: 75px; object-fit: cover; }

/* .cart-item strong: اسم المنتج في السلة. */
.cart-item strong { display: block; font-family: var(--serif); font-size: 18px; font-weight: 400; }

/* .cart-item small: السعر والكمية في السلة. */
.cart-item small { display: block; color: var(--muted); font-size: 10px; }

/* .cart-item button: رابط إزالة المنتج. */
.cart-item button { margin-top: 5px; padding: 0; border: 0; background: none; color: var(--gold); cursor: pointer; font-size: 10px; }

/* .cart-empty: رسالة السلة الفارغة. */
.cart-empty { margin: auto 0; color: var(--muted); font-family: var(--serif); font-size: 18px; text-align: center; }

/* .cart-summary: منطقة المجموع والطلب في أسفل السلة. */
.cart-summary { padding-top: 20px; border-top: 1px solid var(--line); }

/* .cart-summary > div: صف الإجمالي وسعره. */
.cart-summary > div { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; color: var(--muted); font-size: 12px; }

/* .cart-summary strong: القيمة الإجمالية بالخط البارز. */
.cart-summary strong { color: var(--ink); font-family: var(--serif); font-size: 24px; font-weight: 400; }

/* .cart-checkout: زر إتمام الطلب في السلة. */
.cart-checkout { width: 100%; justify-content: center; border: 0; cursor: pointer; }

/* .cart-summary small: ملاحظة الشحن أسفل زر الطلب. */
.cart-summary small { display: block; margin-top: 11px; color: var(--muted); font-size: 9px; text-align: center; }

/* cardRise: حركة دخول بطاقات المنتجات من الأسفل. */
@keyframes cardRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

/* الشاشات المتوسطة: تحويل القائمة إلى لوحة منسدلة وتحسين شبكة المنتجات. */
@media (max-width: 900px) {
  /* .main-nav.is-open: قائمة هاتف واضحة لا تختفي خلف المحتوى. */
  .main-nav.is-open { position: absolute; z-index: 20; top: calc(100% + 12px); inset-inline: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 10px; border: 1px solid var(--line); background: rgba(255,253,249,.98); box-shadow: 0 18px 35px rgba(34,32,30,.12); }

  /* .main-nav.is-open .nav-link: مساحة لمس أكبر لروابط الهاتف. */
  .main-nav.is-open .nav-link { padding: 13px 15px; border-bottom: 1px solid rgba(222,216,207,.55); }

  /* .main-nav.is-open .nav-link:last-child: إزالة الحد الأخير من القائمة. */
  .main-nav.is-open .nav-link:last-child { border-bottom: 0; }

  /* .main-nav.is-open .nav-link::after: إخفاء الخط السفلي القديم داخل القائمة. */
  .main-nav.is-open .nav-link::after { display: none; }

  /* .menu-button.is-open: تدوير بصري بسيط لزر الإغلاق. */
  .menu-button.is-open { color: var(--gold); transform: rotate(90deg); }

  /* .catalog-grid: تقليل شبكة المنتجات إلى ثلاثة أعمدة. */
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }

  /* .catalog-toolbar: جعل أدوات الكتالوج قابلة للالتفاف. */
  .catalog-toolbar { grid-template-columns: 1fr auto; }

  /* .filter-buttons: وضع الفلاتر في الصف الثاني. */
  .filter-buttons { grid-column: 1 / -1; justify-content: flex-start; padding: 0; }
}

/* الهواتف: شبكة عمودين ومساحة لمس مريحة. */
@media (max-width: 620px) {
  /* .products-hero-inner: جعل مقدمة الكتالوج عمودية. */
  .products-hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 28px; padding-top: 65px; padding-bottom: 45px; }

  /* .products-hero-art: حجم لوحة المقدمة على الهاتف. */
  .products-hero-art { width: 88%; height: 240px; margin-inline: auto; }

  /* .products-title: تصغير العنوان ليناسب الهاتف. */
  .products-title { font-size: clamp(45px, 14vw, 65px); }

  /* .catalog-toolbar: ترتيب عناصر التحكم عمودياً. */
  .catalog-toolbar { display: block; margin-bottom: 30px; }

  /* .filter-buttons: تمرير أفقي للفلاتر دون كسر العرض. */
  .filter-buttons { overflow-x: auto; margin-top: 24px; padding-bottom: 5px; }

  /* .filter-button: منع انكماش أزرار الفلترة. */
  .filter-button { flex: 0 0 auto; }

  /* .results-count: إظهار العداد أعلى الشبكة. */
  .results-count { margin-top: 16px; }

  /* .catalog-grid: عمود واحد مريح للصور والقراءة. */
  .catalog-grid { grid-template-columns: 1fr; gap: 18px; }

  /* .catalog-image: ارتفاع مناسب للصورة على الهاتف. */
  .catalog-image { height: 330px; }

  /* .quick-add: إبقاء زر الإضافة ظاهراً على الهاتف دون hover. */
  .quick-add { opacity: 1; transform: none; }

  /* .cart-drawer: تقليل الحشو الداخلي للسلة على الهاتف. */
  .cart-drawer { padding: 24px 18px; }
}


/* =========================================================
   09. الهوية الاحترافية والوضعان والتفاعل ثلاثي الأبعاد
   ========================================================= */

/* :root: لوحة نُور الجديدة، دافئة في الفاتح وهادئة في الداكن. */
:root { --ink: #171512; --muted: #756e64; --cream: #f1ece4; --paper: #fbfaf7; --line: #ddd5c9; --gold: #b4874c; --gold-light: #d9bc8c; --accent: #c8975b; --surface-raised: #fffdf9; --ease-luxury: cubic-bezier(.2,.8,.2,1); }

/* [data-theme="dark"]: ألوان الوضع الليلي المحفوظة في المتصفح. */
[data-theme="dark"] { --ink: #f5efe6; --muted: #aaa095; --cream: #171512; --paper: #0e0d0c; --line: #342f29; --gold: #d0a267; --gold-light: #80633f; --accent: #e0b377; --surface-raised: #211e1a; }

/* body: انتقال ناعم بين الثيمين مع الحفاظ على النبض الفاخر. */
body { background: var(--paper); transition: background .45s ease, color .45s ease; }

/* .site-header: زجاجية محسوبة تحافظ على وضوح الملاحة. */
.site-header { position: sticky; top: 0; background: color-mix(in srgb, var(--paper) 86%, transparent); border-bottom-color: color-mix(in srgb, var(--line) 75%, transparent); backdrop-filter: blur(18px); }

/* .brand-mark: شعار قطرة مخصص بدلاً من الرمز العام. */
.brand-mark { position: relative; display: inline-block; width: 31px; height: 36px; color: var(--gold); font-size: 0; transform: rotate(0); }

/* .brand-mark::before: قطرة الشعار الأساسية. */
.brand-mark::before { content: ''; position: absolute; inset: 2px 6px 5px; border: 1.5px solid currentColor; border-radius: 65% 35% 58% 42% / 48% 45% 55% 52%; transform: rotate(37deg); }

/* .brand-mark::after: هلال صغير يرمز لطبقات العطر. */
.brand-mark::after { content: ''; position: absolute; width: 11px; height: 11px; right: 3px; top: 0; border: 1px solid currentColor; border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; }

/* .brand-mark i: نقطة نور داخل العلامة. */
.brand-mark i { position: absolute; z-index: 1; left: 13px; top: 16px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

/* .brand-name: كتابة عربية أكثر تميزاً للعلامة. */
.brand-name { font-size: 28px; font-weight: 600; letter-spacing: .03em; }

/* .theme-toggle: زر التبديل البصري بين الشمس والقمر. */
.theme-toggle { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; }
.theme-toggle span, .theme-toggle b { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; font-weight: 400; }
[data-theme="dark"] .theme-toggle b, .theme-toggle span { background: var(--gold); color: #fff; }
[data-theme="dark"] .theme-toggle span, .theme-toggle b { background: transparent; color: var(--muted); }

/* .hero: إضافة هالة ضوئية تعكس الهوية الجديدة. */
.hero { position: relative; background: radial-gradient(circle at 78% 45%, color-mix(in srgb, var(--gold-light) 17%, transparent), transparent 30%), var(--cream); }
.hero::after { content: 'N'; position: absolute; z-index: 0; left: 4%; bottom: -12%; color: color-mix(in srgb, var(--gold) 11%, transparent); font-family: var(--serif); font-size: 32vw; line-height: .7; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; }

/* .hero-bottle: ظل أقوى ومجسم أكثر للعبوة الرئيسية. */
.hero-bottle { filter: drop-shadow(0 22px 28px rgba(70,41,18,.18)); }

/* .premium-heading: رأس أقسام غير مركزي يعطي إيقاعاً تحريرياً. */
.premium-heading { grid-template-columns: 1fr 1fr auto; align-items: end; }
.premium-heading .section-intro { max-width: 330px; margin: 0; }

/* .featured-products: تخطيط المجموعة المميزة بأسطح متداخلة. */
.featured-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1400px; }

/* .featured-product: بطاقة حقيقية تتحرك بمحورين مع المؤشر أو اللمس. */
.featured-product { position: relative; overflow: hidden; background: var(--surface-raised); box-shadow: 0 18px 50px color-mix(in srgb, var(--ink) 9%, transparent); transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .25s ease, box-shadow .4s ease; transform-style: preserve-3d; }
.featured-product:hover { box-shadow: 0 30px 70px color-mix(in srgb, var(--ink) 17%, transparent); }
.featured-product-offset { transform: translateY(35px) perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }
.featured-product-offset:hover { transform: translateY(25px) perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }

/* .featured-media: مساحة صورة حقيقية ذات قص مميز. */
.featured-media { position: relative; height: 330px; overflow: hidden; background: var(--cream); }
.featured-media::after, .catalog-image::before { content: ''; position: absolute; z-index: 1; inset: 0; background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255,255,255,.3), transparent 26%); opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.featured-product:hover .featured-media::after, .catalog-card:hover .catalog-image::before { opacity: 1; }
.featured-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .8s var(--ease-luxury); }
.featured-product:hover .featured-media img { transform: scale(1.09); }
.featured-index { position: absolute; z-index: 2; top: 16px; right: 18px; color: #fff; font: 14px var(--serif); text-shadow: 0 2px 10px #0005; }
.featured-orb { position: absolute; z-index: 2; width: 42px; height: 42px; bottom: 18px; left: 18px; border: 1px solid #fff8; border-radius: 50%; box-shadow: inset 0 0 0 8px #fff2; }
.featured-copy { padding: 24px 22px 26px; }
.featured-copy p, .featured-copy > span { display: block; margin: 0; color: var(--gold); font-size: 9px; letter-spacing: .1em; }
.featured-copy h3 { margin: 8px 0 2px; font: 30px var(--serif); }
.featured-copy .product-link { display: inline-flex; margin-top: 19px; color: var(--ink); font-size: 11px; }
.featured-copy .product-link span { margin-inline-start: 7px; color: var(--gold); }

/* .metrics: شريط مؤشرات المبيعات والزيارات بهوية لوحة تحكم فاخرة. */
.metrics { background: var(--ink); color: var(--paper); }
.metrics-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 1px; background: color-mix(in srgb, var(--paper) 20%, transparent); }
.metric-intro, .metric-card { min-height: 190px; padding: 28px; background: var(--ink); }
.metric-intro p:last-child { max-width: 240px; margin: 12px 0 0; color: color-mix(in srgb, var(--paper) 60%, transparent); font-size: 11px; }
.metric-card { display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.metric-card strong { color: var(--gold-light); font: 48px var(--serif); letter-spacing: -.05em; }
.metric-card span { font-size: 12px; }
.metric-card small { color: color-mix(in srgb, var(--paper) 54%, transparent); font-size: 10px; }
.metrics .section-kicker, .metrics em { color: var(--gold-light); }

/* .review-rating: تقييم إجمالي بجوار عنوان آراء العميلات. */
.review-rating { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.review-rating strong { font: 43px var(--serif); }
.review-rating span, .review-stars { color: var(--gold); letter-spacing: .16em; font-size: 12px; }
.review-rating small { color: var(--muted); font-size: 9px; }
.reviews { background: color-mix(in srgb, var(--cream) 56%, var(--paper)); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { min-height: 270px; padding: 28px; border: 1px solid var(--line); background: var(--surface-raised); transition: transform .35s var(--ease-luxury), box-shadow .35s ease; }
.review-card:hover { transform: translateY(-8px); box-shadow: 0 20px 45px color-mix(in srgb, var(--ink) 10%, transparent); }
.review-card-highlight { background: var(--ink); color: var(--paper); transform: translateY(-18px); }
.review-card-highlight:hover { transform: translateY(-26px); }
.review-card blockquote { margin: 24px 0 35px; font: 21px/1.8 var(--serif); }
.review-card footer { display: flex; align-items: center; gap: 10px; }
.review-card footer strong, .review-card footer small { display: block; }
.review-card footer strong { font-size: 11px; }
.review-card footer small { color: var(--muted); font-size: 9px; }
.review-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--gold); color: #fff; font: 15px var(--serif); }

/* .catalog-card: بطاقات الصفحة الداخلية بعمق 3D حقيقي. */
.catalog-card { transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .25s ease, box-shadow .4s ease; transform-style: preserve-3d; }
.catalog-card:hover { transform: perspective(1000px) translateY(-10px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }
.catalog-image { background: var(--cream); }
.catalog-image::before { z-index: 2; opacity: 0; }
.catalog-card:hover .catalog-image::before { opacity: 1; }
.card-actions { display: flex; align-items: center; gap: 12px; }
.details-button { padding: 7px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; font-size: 10px; }
.details-button:hover { color: var(--ink); border-color: var(--gold); }

/* .product-modal: نافذة التفاصيل الفاخرة مع صورة ومكونات وزر شراء. */
.product-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 22px; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.product-modal.is-open { opacity: 1; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,9,8,.68); backdrop-filter: blur(8px); }
.modal-dialog { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; width: min(830px, 100%); overflow: hidden; background: var(--surface-raised); box-shadow: 0 35px 100px #0006; transform: translateY(20px) scale(.97); transition: transform .45s var(--ease-luxury); }
.product-modal.is-open .modal-dialog { transform: translateY(0) scale(1); }
.modal-close { position: absolute; z-index: 2; top: 15px; left: 17px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 30px; line-height: 1; }
.modal-image { min-height: 500px; background: var(--cream); }
.modal-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-content { display: flex; flex-direction: column; justify-content: center; padding: 48px; }
.modal-content h2 { margin: 6px 0 10px; font: 53px var(--serif); }
.modal-notes { color: var(--muted); font-size: 13px; }
.scent-notes { display: grid; gap: 13px; margin: 29px 0 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.scent-notes span { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.scent-notes b { color: var(--ink); font-weight: 400; }
.modal-buy { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.modal-buy strong { font: 25px var(--serif); }
.modal-buy .button { border: 0; cursor: pointer; }
body.modal-open { overflow: hidden; }
.toast { position: fixed; z-index: 120; right: 24px; bottom: 24px; padding: 13px 18px; border: 1px solid var(--gold); background: var(--ink); color: var(--paper); font-size: 11px; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

/* .products-page .section-title: حجم مناسب لعناوين صفحة الكتالوج الجديدة. */
.products-page .section-title { color: var(--ink); }

/* responsive: الحفاظ على الفخامة دون التضحية بسرعة القراءة. */
@media (max-width: 900px) {
  .premium-heading { grid-template-columns: 1fr 1fr; }
  .premium-heading > .text-link, .premium-heading > .review-rating { justify-self: start; margin-top: 18px; }
  .featured-products, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-product:last-child, .review-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 10px); margin-inline: auto; width: 100%; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-intro { grid-column: 1 / -1; }
  .featured-media { height: 280px; }
}
@media (max-width: 620px) {
  .premium-heading { display: block; }
  .premium-heading .section-intro { margin-top: 18px; }
  .featured-products, .reviews-grid { grid-template-columns: 1fr; gap: 18px; }
  .featured-product-offset { transform: none; }
  .featured-product-offset:hover { transform: none; }
  .featured-product:last-child, .review-card:last-child { grid-column: auto; max-width: none; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric-intro { grid-column: 1 / -1; }
  .metric-intro, .metric-card { min-height: 155px; padding: 20px 15px; }
  .metric-card strong { font-size: 34px; }
  .review-card-highlight, .review-card-highlight:hover { transform: none; }
  .modal-dialog { display: block; max-height: calc(100vh - 40px); overflow-y: auto; }
  .modal-image { height: 240px; min-height: 0; }
  .modal-content { padding: 28px 22px 30px; }
  .modal-content h2 { font-size: 40px; }
  .modal-buy { align-items: stretch; flex-direction: column; }
  .modal-buy .button { justify-content: center; }
  .toast { right: 15px; bottom: 15px; left: 15px; text-align: center; }
}


/* =========================================================
   10. الشريط الحي وقصة العلامة التحريرية
   ========================================================= */

/* .marquee-bar: شريط أسود متحرك ذو طبقتين بدلاً من صف ثابت. */
.marquee-bar { position: relative; overflow: hidden; border: 0; background: var(--ink); color: var(--paper); }

/* .marquee-bar::before: خط ذهبي رفيع يضيف إطاراً للمنطقة المتحركة. */
.marquee-bar::before, .marquee-bar::after { content: ''; position: absolute; z-index: 2; right: 0; left: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.marquee-bar::before { top: 0; }
.marquee-bar::after { bottom: 0; }

/* .marquee-window: ارتفاع مرن يخفي أطراف المسارات أثناء الحركة. */
.marquee-window { display: flex; flex-direction: column; justify-content: center; min-height: 92px; overflow: hidden; }

/* .marquee-track: مسار طويل لا يلتف ويستمر بسلاسة على كل الشاشات. */
.marquee-track { display: flex; align-items: center; width: max-content; min-height: 42px; gap: 26px; color: var(--paper); font-family: var(--serif); font-size: 14px; white-space: nowrap; animation: marqueeForward 28s linear infinite; }

/* .marquee-track-reverse: طبقة ثانية أبطأ وباتجاه معاكس لخلق عمق بصري. */
.marquee-track-reverse { min-height: 32px; color: var(--gold-light); font-family: var(--sans); font-size: 9px; letter-spacing: .18em; animation-name: marqueeReverse; animation-duration: 34s; }

/* .marquee-track b: فواصل متوهجة بين عبارات الشريط. */
.marquee-track b { color: var(--gold); font-size: 14px; font-weight: 400; animation: sparkle 2.4s ease-in-out infinite; }

/* .marquee-bar:hover .marquee-track: إبطاء الحركة عند الاستكشاف بالماوس. */
.marquee-bar:hover .marquee-track { animation-play-state: paused; }

/* marqueeForward: تحريك الطبقة الرئيسية من اليمين إلى اليسار. */
@keyframes marqueeForward { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }

/* marqueeReverse: تحريك الطبقة الثانية في الاتجاه المعاكس. */
@keyframes marqueeReverse { from { transform: translateX(-33.333%); } to { transform: translateX(0); } }

/* sparkle: نبض النجوم الذهبية مع حركة الشريط. */
@keyframes sparkle { 0%, 100% { opacity: .45; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }

/* .story: خلفية جديدة أهدأ وأكثر تحريرية للقصة. */
.story { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); }

/* .story::before: شبكة خطوط هندسية خلف المحتوى. */
.story::before { content: ''; position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(90deg, transparent 49.8%, var(--gold-light) 50%, transparent 50.2%), linear-gradient(0deg, transparent 49.8%, var(--gold-light) 50%, transparent 50.2%); background-size: 95px 95px; mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); }

/* .story::after: رقم السنة الضخم كعلامة مائية. */
.story::after { content: '2024'; position: absolute; left: -2%; bottom: -9%; color: color-mix(in srgb, var(--gold) 12%, transparent); font: 22vw var(--serif); line-height: .7; pointer-events: none; }

/* .story-editorial: تخطيط غير متماثل جديد للقصة. */
.story-editorial { position: relative; z-index: 1; display: grid; grid-template-columns: .78fr 1.15fr .72fr; align-items: center; gap: 7%; }

/* .story-intro: عمود العنوان والوعد الخاص بالعلامة. */
.story-intro { max-width: 310px; }
.story .section-kicker { color: var(--gold-light); }
.story .section-title { color: var(--paper); font-size: clamp(42px, 5vw, 67px); }
.story .section-title em { color: var(--gold-light); }
.story-text { max-width: 300px; margin: 26px 0 28px; color: color-mix(in srgb, var(--paper) 62%, transparent); font-size: 13px; line-height: 2.1; }
.story .text-link { color: var(--gold-light); }

/* .story-film: لوحة فنية عمودية مستوحاة من صفحات مجلة العطور. */
.story-film { position: relative; min-height: 465px; padding: 18px 22px; border: 1px solid color-mix(in srgb, var(--gold-light) 55%, transparent); background: linear-gradient(155deg, #3b3026, #171512 65%); box-shadow: 20px 25px 0 color-mix(in srgb, var(--gold) 20%, transparent); transform: rotate(-2deg); transition: transform .6s var(--ease-luxury), box-shadow .6s ease; }
.story-film:hover { transform: rotate(0) translateY(-8px); box-shadow: 26px 35px 0 color-mix(in srgb, var(--gold) 27%, transparent); }

/* .story-film-top: رأس المجلة داخل اللوحة. */
.story-film-top, .story-film-bottom { display: flex; align-items: center; justify-content: space-between; color: var(--gold-light); font-size: 8px; letter-spacing: .14em; }
.story-film-top { padding-bottom: 15px; border-bottom: 1px solid color-mix(in srgb, var(--gold-light) 35%, transparent); }

/* .story-film-art: مركز اللوحة الذي يتحرك بصرياً حول كلمة نُور. */
.story-film-art { position: relative; display: grid; min-height: 355px; place-items: center; overflow: hidden; }
.story-film-art::before { content: ''; position: absolute; width: 180px; height: 260px; border-radius: 50%; background: linear-gradient(145deg, rgba(204,154,91,.5), rgba(81,48,24,.8)); filter: blur(1px); transform: rotate(25deg); animation: storyBottleFloat 7s ease-in-out infinite; }
.story-film-art::after { content: ''; position: absolute; inset: 23% 29%; border: 1px solid var(--gold-light); opacity: .45; transform: rotate(25deg); }
.story-film-art strong { position: relative; z-index: 2; color: #f5e8d4; font: 34px/1.2 var(--serif); text-align: center; }
.story-film-art strong em { color: var(--gold-light); }
.story-film-art small { position: absolute; z-index: 2; bottom: 22px; color: var(--gold-light); font-size: 8px; letter-spacing: .2em; }

/* .story-ring: حلقات عطرية تدور حول مركز القصة. */
.story-ring { position: absolute; z-index: 1; border: 1px solid color-mix(in srgb, var(--gold-light) 55%, transparent); border-radius: 50%; animation: storyOrbit 13s linear infinite; }
.story-ring-one { width: 310px; height: 160px; transform: rotate(-30deg); }
.story-ring-two { width: 220px; height: 310px; transform: rotate(33deg); animation-direction: reverse; animation-duration: 17s; }
.story-glow { position: absolute; width: 180px; height: 180px; border-radius: 50%; background: color-mix(in srgb, var(--gold) 22%, transparent); filter: blur(35px); animation: glowPulse 4s ease-in-out infinite; }

/* .story-film-bottom: سطر الخلاصة البصرية أسفل اللوحة. */
.story-film-bottom { padding-top: 15px; border-top: 1px solid color-mix(in srgb, var(--gold-light) 35%, transparent); }
.story-film-bottom b { color: var(--paper); font: 15px var(--serif); letter-spacing: 0; }

/* .story-steps: قائمة مراحل مختصرة بجانب اللوحة. */
.story-steps { display: grid; gap: 0; }
.story-steps article { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 19px 0; border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); }
.story-steps article:last-child { border-bottom: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); }
.story-steps article > span { color: var(--gold-light); font: 12px var(--serif); }
.story-steps h3 { margin: 0 0 5px; color: var(--paper); font: 20px var(--serif); }
.story-steps p { margin: 0; color: color-mix(in srgb, var(--paper) 54%, transparent); font-size: 10px; line-height: 1.9; }

/* storyBottleFloat: حركة خفيفة لجسم العطر داخل لوحة القصة. */
@keyframes storyBottleFloat { 0%, 100% { transform: rotate(25deg) translateY(0); } 50% { transform: rotate(28deg) translateY(-13px); } }
@keyframes storyOrbit { to { transform: rotate(330deg) scale(1.04); } }
@keyframes glowPulse { 0%, 100% { opacity: .45; transform: scale(.8); } 50% { opacity: .85; transform: scale(1.15); } }

/* .story .story-signature: إخفاء الشكل القديم إن بقي ضمن DOM قديم. */
.story-signature { display: none; }

/* .story .story-visual: إخفاء اللوحة القديمة بعد استبدالها. */
.story-visual { display: none; }

/* استجابة الشريط والقصة على الشاشات المتوسطة. */
@media (max-width: 900px) {
  .marquee-window { min-height: 82px; }
  .story-editorial { grid-template-columns: 1fr 1fr; gap: 45px 8%; }
  .story-intro { max-width: none; }
  .story-film { grid-row: span 2; min-height: 440px; }
  .story-steps { align-self: start; }
}

/* استجابة الهاتف: الشريط أوضح والقصة تتحول إلى مراحل عمودية. */
@media (max-width: 620px) {
  .marquee-window { min-height: 78px; }
  .marquee-track { gap: 18px; font-size: 12px; animation-duration: 22s; }
  .marquee-track-reverse { font-size: 8px; animation-duration: 27s; }
  .story-editorial { display: flex; flex-direction: column; align-items: stretch; gap: 42px; }
  .story-intro { max-width: 100%; }
  .story-film { min-height: 400px; margin-inline: 8px; transform: rotate(-1.2deg); }
  .story-film-art { min-height: 285px; }
  .story-film-art::after { inset: 19% 28%; }
  .story-ring-one { width: 250px; height: 130px; }
  .story-ring-two { width: 180px; height: 250px; }
  .story-steps { width: 100%; }
  .story-steps article { padding: 16px 0; }
}

/* تفضيل الحركة الهادئة: إيقاف المسارات والدوامات فقط مع بقاء التصميم. */
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .story-film-art::before, .story-ring, .story-glow { animation: none !important; }
}

/* =========================================================
   11. تحديث شامل: اللغة، الثيم، 3D، الأيقونات والقائمة
   ========================================================= */

/* :root: خطوط أوضح للعربية مع خط إنجليزي تحريري عند تبديل اللغة. */
:root { --sans: 'IBM Plex Sans Arabic', 'Cairo', Tahoma, sans-serif; --serif: 'Cairo', 'IBM Plex Sans Arabic', sans-serif; --english-serif: 'Playfair Display', Georgia, serif; color-scheme: light; }
[data-theme="dark"] { --ink: #f4eee5; --muted: #b9afa3; --cream: #1a1816; --paper: #0d0c0b; --line: #39342e; --gold: #d4a566; --gold-light: #e3c28d; --amber: #c58a4d; --rose: #d0928b; --moss: #93a78a; --surface-raised: #211e1a; color-scheme: dark; }

/* body: انتقال كامل وناعم بين الثيمين على مستوى الموقع كله. */
body { background: var(--paper); color: var(--ink); font-family: var(--sans); transition: background .45s ease, color .45s ease; }
.site-header, .catalog-section, .site-footer, .newsletter, .products-hero, .catalog-card, .catalog-info, .featured-copy, .review-card, .modal-dialog { background-color: var(--paper); color: var(--ink); transition: background-color .45s ease, color .45s ease, border-color .45s ease; }
.site-header { background: color-mix(in srgb, var(--paper) 92%, transparent); border-bottom-color: var(--line); }
.newsletter { background: var(--cream); }
.products-hero, .catalog-section { background: var(--cream); }
.site-footer { border-top-color: var(--line); }

/* .lang-en: إعادة توزيع الخطوط والوزن في الإنجليزية دون التأثير على العربية. */
.lang-en { font-family: var(--sans); }
.lang-en h1, .lang-en h2, .lang-en h3, .lang-en .brand-name, .lang-en .story-film-art strong, .lang-en .newsletter-title { font-family: var(--english-serif), var(--sans); letter-spacing: -.02em; }
.lang-en .hero-title, .lang-en .products-title { font-weight: 400; }

/* .cart-icon: أيقونة سلة عالمية بخط واضح بدلاً من الرمز الزخرفي. */
.cart-icon { display: block; width: 22px; height: 22px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; transition: transform .3s var(--ease-luxury), color .3s ease; }
.icon-button:hover .cart-icon { color: var(--gold); transform: translateY(-2px) rotate(-4deg); }
.icon-button { display: grid; place-items: center; }

/* .language-toggle: زر اللغة الصغير الواضح بجوار الثيم. */
.language-toggle { min-width: 34px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 9px; letter-spacing: .08em; transition: color .25s ease, border-color .25s ease, transform .25s ease; }
.language-toggle:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* .hero-art: مشهد 3D دوّار للعبوة بدلاً من صورة مسطحة. */
.hero-art { perspective: 1100px; }
.hero-bottle { transform-style: preserve-3d; animation: floatBottle 6s ease-in-out infinite, heroBottleTurn 12s ease-in-out infinite; }
.bottle-body { transform-style: preserve-3d; }
.art-orbit-one { animation: orbitTurn 18s linear infinite; }
.art-orbit-two { animation: orbitTurnReverse 14s linear infinite; }
@keyframes heroBottleTurn { 0%, 100% { rotate: -3deg; } 50% { rotate: 4deg; } }
@keyframes orbitTurn { to { rotate: 360deg; } }
@keyframes orbitTurnReverse { to { rotate: -360deg; } }

/* .products-hero-art: الصورة الافتتاحية في مربع كامل بلا حواف مستديرة. */
.products-hero-art { aspect-ratio: 1 / 1; height: auto; border-radius: 0; transform: rotate(2deg) perspective(800px) rotateY(-5deg); }
.products-hero-art img { aspect-ratio: 1 / 1; object-fit: cover; }

/* .catalog-image: صور بطاقات المنتجات مربعة وحادة الحواف كما طلب المستخدم. */
.catalog-image { height: auto; aspect-ratio: 1 / 1; border-radius: 0; }
.catalog-image img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 0; }

/* .catalog-card: أسطح البطاقات تتبع الثيم ولا تبقى بيضاء في الوضع الداكن. */
.catalog-card, .catalog-info { background: var(--surface-raised); }
.catalog-image { background: var(--cream); }

/* .main-nav على الهاتف: حالة مغلقة حقيقية تسمح بانتقال ناعم بدلاً من الظهور المفاجئ. */
@media (max-width: 900px) {
  .header-inner { position: relative; }
  .main-nav { position: absolute; z-index: 30; top: calc(100% + 14px); inset-inline: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 96%, transparent); box-shadow: 0 24px 55px color-mix(in srgb, var(--ink) 18%, transparent); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-16px) scale(.97); transform-origin: top center; transition: opacity .35s var(--ease-luxury), transform .45s var(--ease-luxury), visibility .45s; }
  .main-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
  .main-nav .nav-link { padding: 14px 16px; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); color: var(--ink); transform: translateY(-8px); opacity: 0; transition: opacity .3s ease, transform .35s var(--ease-luxury), color .2s ease; }
  .main-nav .nav-link:last-child { border-bottom: 0; }
  .main-nav.is-open .nav-link { opacity: 1; transform: translateY(0); }
  .main-nav.is-open .nav-link:nth-child(2) { transition-delay: .04s; }
  .main-nav.is-open .nav-link:nth-child(3) { transition-delay: .08s; }
  .main-nav.is-open .nav-link:nth-child(4) { transition-delay: .12s; }
  .main-nav .nav-link::after { display: none; }
  .menu-button { position: relative; display: block; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 0; transition: transform .4s var(--ease-luxury), border-color .25s ease; }
  .menu-button::before, .menu-button::after { content: ''; position: absolute; right: 9px; left: 9px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease-luxury), top .35s var(--ease-luxury), box-shadow .35s var(--ease-luxury); }
  .menu-button::before { top: 12px; box-shadow: 0 6px 0 currentColor; }
  .menu-button::after { top: 18px; opacity: 0; }
  .menu-button.is-open { border-color: var(--gold); transform: rotate(90deg); }
  .menu-button.is-open::before { top: 16px; transform: rotate(45deg); box-shadow: none; }
  .menu-button.is-open::after { top: 16px; opacity: 1; transform: rotate(-45deg); }
}

/* responsive: مربعات الصور تبقى متناسقة على الهاتف. */
@media (max-width: 620px) {
  .products-hero-art { width: min(88vw, 330px); height: auto; aspect-ratio: 1; }
  .catalog-image { aspect-ratio: 1; height: auto; }
  .header-actions { gap: 8px; }
  .language-toggle { min-width: 31px; padding-inline: 6px; }
}

/* reduced motion: تعطيل دوران العبوة والقائمة الحركية لمن يفضل ذلك. */
@media (prefers-reduced-motion: reduce) {
  .hero-bottle, .art-orbit-one, .art-orbit-two { animation: none !important; }
}

/* الوضع الداكن للعناصر القديمة ذات الخلفيات الثابتة. */
[data-theme="dark"] .hero-art::before { background: rgba(126, 91, 48, .18); }
[data-theme="dark"] .visual-amber { background: #4b3827; }
[data-theme="dark"] .visual-rose { background: #4a2f31; }
[data-theme="dark"] .visual-moss { background: #29372c; }
[data-theme="dark"] .catalog-label { background: rgba(33, 30, 26, .9); color: var(--ink); }
[data-theme="dark"] .main-nav.is-open { background: color-mix(in srgb, var(--paper) 96%, transparent); }
[data-theme="dark"] .marquee-bar { background: #080706; }

/* مراجعة بصرية دقيقة: منع أي امتداد أفقي خارج شاشة الهاتف. */
html, body { overflow-x: hidden; }

/* .art-caption على الهاتف: نقل تعريف العطر أسفل العبوة حتى لا يختفي خلفها. */
@media (max-width: 620px) {
  .art-caption { right: auto; bottom: 30px; left: 50%; width: max-content; max-width: 88%; align-items: center; padding: 9px 16px 0; border-top: 1px solid var(--gold); border-inline-start: 0; text-align: center; transform: translateX(-50%); }
}

/* dark contrast: الحفاظ على تباين حقيقي في الأزرار والأقسام الداكنة عند تفعيل الثيم. */
.button-primary { color: var(--paper); }
[data-theme="dark"] .button-primary, [data-theme="dark"] .filter-button.is-selected, [data-theme="dark"] .quick-add { color: var(--paper); }
[data-theme="dark"] .story, [data-theme="dark"] .metrics { background: #090807; color: var(--ink); }
[data-theme="dark"] .metric-intro, [data-theme="dark"] .metric-card { background: #090807; }
[data-theme="dark"] .marquee-track { color: var(--ink); }
[data-theme="dark"] .marquee-track-reverse { color: var(--gold-light); }
[data-theme="dark"] .newsletter .section-kicker, [data-theme="dark"] .newsletter-title em, [data-theme="dark"] .submit-button { color: var(--gold-light); }
[data-theme="dark"] .newsletter-form input { border-bottom-color: var(--gold-light); }

/* .story-steps: عكس واضح للتباين؛ نص داكن على سطح فاتح، ونص أبيض على السطح الداكن. */
.story { background: var(--cream); color: var(--ink); }
.story .section-title { color: var(--ink); }
.story-text { color: color-mix(in srgb, var(--ink) 66%, transparent); }
.story-steps article { border-color: color-mix(in srgb, var(--ink) 18%, transparent); }
.story-steps h3 { color: var(--ink); }
.story-steps p { color: color-mix(in srgb, var(--ink) 62%, transparent); }
[data-theme="dark"] .story { background: #090807; color: var(--ink); }
[data-theme="dark"] .story .section-title { color: var(--ink); }
[data-theme="dark"] .story-text { color: color-mix(in srgb, var(--ink) 68%, transparent); }
[data-theme="dark"] .story-steps article { border-color: color-mix(in srgb, var(--ink) 20%, transparent); }
[data-theme="dark"] .story-steps h3 { color: #fff; }
[data-theme="dark"] .story-steps p { color: color-mix(in srgb, #fff 70%, transparent); }

/* .hero-product-image: صورة واقعية لعطر عساف مع ظل ناعم وحركة عائمة. */
.hero-product-image { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 2px; box-shadow: 22px 28px 45px rgba(54, 35, 18, .24); transform: rotate(-2deg); transition: transform .8s var(--ease-luxury), filter .6s ease; }
.hero-bottle:hover .hero-product-image { transform: rotate(0deg) scale(1.04); filter: saturate(1.08); }
@media (max-width: 620px) { .hero-bottle { width: min(74vw, 290px); } .hero-product-image { box-shadow: 14px 18px 32px rgba(54, 35, 18, .22); } }

/* .hero-product-image: إجبار الصورة الواقعية على الحفاظ على مربعها دون تمدد رأسي. */
.hero-product-image { height: auto; max-height: 100%; }

/* .hero-bottle: حجم متوازن للصورة الواقعية على سطح المكتب مع بقاء الهاتف مرناً. */
.hero-bottle { width: clamp(220px, 24vw, 320px); }
@media (max-width: 620px) { .hero-bottle { width: min(74vw, 290px); } }

/* =========================================================
   12. إعادة بناء الواجهة: مسرح عطر عساف ثلاثي الأبعاد
   ========================================================= */

/* .hero: مساحة افتتاحية أكثر فخامة تعتمد على التباين والفراغ التحريري. */
.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 18% 52%, color-mix(in srgb, var(--gold-light) 18%, var(--cream)), var(--cream) 38%, var(--paper) 100%); }
.hero::after { content: 'ASSAF'; position: absolute; z-index: 0; right: -2%; bottom: -13%; color: color-mix(in srgb, var(--gold) 10%, transparent); font: 22vw/ .75 var(--english-serif); letter-spacing: -.08em; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; min-height: 720px; }
.hero-copy { position: relative; z-index: 2; }

/* .hero-art: مسرح مستقل يحافظ على التوازن بين الدوائر والصورة. */
.hero-art { min-height: 720px; perspective: 1500px; }
.hero-art::before { width: 570px; height: 570px; background: radial-gradient(circle, color-mix(in srgb, var(--gold-light) 32%, transparent), transparent 68%); filter: blur(3px); }
.art-orbit-one { width: 600px; height: 600px; border-color: color-mix(in srgb, var(--gold) 48%, transparent); animation: orbitTurn 22s linear infinite; }
.art-orbit-two { width: 650px; height: 300px; border-color: color-mix(in srgb, var(--gold) 32%, transparent); animation: orbitTurnReverse 17s linear infinite; }

/* .hero-product-stage: حاوية العمق التي تجعل الدوران واضحاً وليس مجرد صورة تدور مكانها. */
.hero-product-stage { position: relative; z-index: 3; width: min(31vw, 340px); aspect-ratio: .78; display: grid; place-items: center; perspective: 1300px; transform: rotate(-4deg); }
.hero-product-stage::before { content: ''; position: absolute; inset: 7% -8%; border: 1px solid color-mix(in srgb, var(--gold) 38%, transparent); background: linear-gradient(145deg, color-mix(in srgb, var(--paper) 9%, transparent), transparent); box-shadow: 24px 30px 0 color-mix(in srgb, var(--gold) 14%, transparent); transform: rotate(8deg); }
.hero-product-stage::after { content: '360°'; position: absolute; z-index: 6; right: -38px; top: 12%; display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid var(--gold); border-radius: 50%; background: var(--paper); color: var(--gold); font: 10px var(--english-serif); letter-spacing: .05em; animation: stagePulse 3s ease-in-out infinite; }

/* .hero-product-3d: جسم الصورة ذو الوجهين، يدور 360 درجة بلا توقف. */
.hero-product-3d { position: relative; z-index: 2; width: 82%; height: 82%; transform-style: preserve-3d; animation: fullProductRotation 16s linear infinite; }
.hero-product-face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; border: 8px solid color-mix(in srgb, var(--paper) 85%, transparent); background: var(--paper); box-shadow: 0 28px 55px color-mix(in srgb, var(--ink) 28%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--gold-light) 38%, transparent); }
.hero-product-face.front { transform: translateZ(16px); }
.hero-product-face.back { transform: rotateY(180deg) translateZ(16px); }
.hero-product-image { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 0; box-shadow: none; transform: none; filter: saturate(.96) contrast(1.04); }
.hero-product-edge { position: absolute; inset: 0; background: linear-gradient(90deg, #5b3c1e, #d19a50 45%, #6d431f); transform: translateZ(-1px); box-shadow: 0 30px 60px rgba(55, 35, 14, .32); }
@keyframes fullProductRotation { from { transform: rotateY(0deg) rotateX(2deg); } to { transform: rotateY(360deg) rotateX(2deg); } }
@keyframes stagePulse { 0%, 100% { transform: scale(1); opacity: .75; } 50% { transform: scale(1.08); opacity: 1; } }

/* .art-spec: بطاقة هوية صغيرة منفصلة عن تسمية المنتج لتقوية الإحساس الفاخر. */
.art-spec { position: absolute; z-index: 5; top: 14%; left: 4%; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-inline-start: 1px solid var(--gold); color: var(--muted); font-size: 8px; letter-spacing: .14em; }
.art-spec b { color: var(--ink); font: 19px var(--english-serif); letter-spacing: .05em; }
.art-spec small { font-size: 7px; letter-spacing: .16em; }
.art-caption { z-index: 6; bottom: 8%; inset-inline-start: 0; }

/* .hero-note: تحويل الملاحظة إلى سطر أكثر هدوءاً داخل التكوين الجديد. */
.hero-note { letter-spacing: .08em; }

@media (max-width: 900px) {
  .hero-grid { min-height: 650px; }
  .hero-art { min-height: 650px; }
  .hero-product-stage { width: min(38vw, 310px); }
  .art-orbit-one { width: 540px; height: 540px; }
  .art-orbit-two { width: 590px; height: 280px; }
}
@media (max-width: 620px) {
  .hero { background: radial-gradient(circle at 50% 72%, color-mix(in srgb, var(--gold-light) 25%, transparent), var(--cream) 50%, var(--paper) 100%); }
  .hero::after { right: -9%; bottom: 4%; font-size: 34vw; }
  .hero-grid { min-height: auto; }
  .hero-art { min-height: 570px; margin-top: 12px; transform: none; }
  .hero-art::before { width: 390px; height: 390px; }
  .art-orbit-one { width: 430px; height: 430px; }
  .art-orbit-two { width: 470px; height: 220px; }
  .hero-product-stage { width: min(74vw, 300px); aspect-ratio: .78; }
  .hero-product-stage::after { right: -19px; width: 44px; height: 44px; font-size: 9px; }
  .hero-product-3d { animation-duration: 13s; }
  .art-spec { top: 4%; left: 2%; }
  .art-caption { bottom: 4%; inset-inline-start: 50%; transform: translateX(-50%); width: max-content; align-items: center; padding: 9px 15px 0; border-top: 1px solid var(--gold); border-inline-start: 0; text-align: center; }
}

/* reduced motion: إيقاف دوران المنتج لمن يفضل الحركة الهادئة. */
@media (prefers-reduced-motion: reduce) { .hero-product-3d, .art-orbit-one, .art-orbit-two, .hero-product-stage::after { animation: none !important; } }

/* =========================================================
   13. فصل الزجاجة عن الإطار: دوران العطر وحده
   ========================================================= */

/* .hero-product-stage: الإطار والبطاقة ثابتان، ولا يدخلان في حركة الدوران. */
.hero-product-stage { transform: rotate(-4deg); }
.hero-product-stage::before { transform: rotate(8deg); }

/* .hero-product-3d: الدوران يطبق على جسم الزجاجة الشفافة فقط. */
.hero-product-3d { width: 70%; height: 92%; }
.hero-product-face { display: grid; place-items: center; border: 0; background: transparent; box-shadow: none; }
.hero-product-face.front, .hero-product-face.back { transform: translateZ(8px); }
.hero-product-face.back { transform: rotateY(180deg) translateZ(8px); }
.hero-bottle-cutout { display: block; width: 82%; height: 90%; object-fit: contain; filter: drop-shadow(18px 24px 18px rgba(30, 20, 12, .3)); transform: none; }
.hero-product-edge { display: none; }

@media (max-width: 620px) {
  .hero-product-3d { width: 72%; height: 92%; }
  .hero-bottle-cutout { width: 86%; height: 90%; filter: drop-shadow(12px 18px 14px rgba(30, 20, 12, .26)); }
}

/* .hero-bottle-label: هوية عساف المدمجة على الزجاجة لا على الإطار الخارجي. */
.hero-bottle-label { position: absolute; z-index: 3; top: 52%; left: 50%; width: 45%; padding: 8px 4px; border-block: 1px solid rgba(242, 224, 194, .5); color: #f5e4c7; font: 14px/1.25 var(--english-serif); letter-spacing: .12em; text-align: center; transform: translate(-50%, -50%); text-shadow: 0 1px 3px #0008; }
.hero-bottle-label small { display: block; margin-top: 3px; font: 5px var(--sans); letter-spacing: .18em; }

/* =========================================================
   14. التكوين الثابت الاحترافي
   ========================================================= */

/* .hero-product-3d: تثبيت الزجاجة في وضعية عرض تحريرية واضحة. */
.hero-product-3d { animation: none; transform: rotateY(0deg) rotateX(2deg) rotateZ(-2deg); }
.hero-product-face.front { transform: translateZ(8px); }
.hero-product-face.back { display: none; }

/* .art-orbit: خطوط ثابتة تزيّن الإطار دون تشتيت بصري. */
.art-orbit-one, .art-orbit-two { animation: none; }

/* .hero-product-stage: بطاقة ثابتة بظل عميق ولمسة متحف عطور. */
.hero-product-stage::after { content: 'ASSAF'; animation: none; width: 58px; height: 58px; font-family: var(--english-serif); letter-spacing: .08em; }
.hero-product-stage::before { box-shadow: 24px 30px 0 color-mix(in srgb, var(--gold) 14%, transparent), 0 26px 55px color-mix(in srgb, var(--ink) 12%, transparent); }
.hero-bottle-cutout { filter: drop-shadow(18px 25px 18px rgba(30, 20, 12, .32)); }

/* .hero-product-stage:hover: تفاعل هادئ عند المرور، بدون دوران تلقائي. */
.hero-product-stage:hover { transform: rotate(-2deg) translateY(-5px); transition: transform .55s var(--ease-luxury); }

@media (max-width: 620px) {
  .hero-product-stage::after { right: -15px; width: 48px; height: 48px; font-size: 8px; }
  .hero-product-stage:hover { transform: rotate(-4deg) translateY(-2px); }
}
