/* ==========================================================================
   HALWI MOTO & BIKE COD DESIGN SYSTEM — TOKENS
   ثيم خاص بنيش قطع غيار الدراجات النارية والهوائية (Racing Amber & Carbon Dark)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Readex+Pro:wght@300;400;500;600;700&family=Tajawal:wght@400;500;700;800&family=Inter:wght@400;500;600;700&display=swap');

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (min-width: 768px) {
  html {
    font-size: 16.5px;
  }
}
@media (min-width: 1200px) {
  html {
    font-size: 17px;
  }
}

:root {
  /* ==========================================================================
     1. PALETTE (الألوان الرئيسية: الأحمر المغربي والسباقات #D3141E والأخضر الزاهي #00A859)
     ========================================================================== */
  --primary: #D3141E;           /* الأحمر الملكي الرئيسي */
  --primary-hover: #b30f18;
  --primary-active: #940a12;
  --primary-light: #fef2f2;
  --primary-border: #fecaca;
  --primary-glow: rgba(211, 20, 30, 0.28);

  --accent-cta: #D3141E;
  --accent-cta-hover: #b30f18;
  --accent-cta-text: #ffffff;

  /* لون أخضر رئيسي زاهي (الثقة، الواتساب، والتحويل الناجح) */
  --secondary-brand: #00A859;
  --secondary-brand-hover: #008f4c;
  --secondary-brand-light: #e6f7ef;
  --secondary-brand-border: #a3e6c5;

  --whatsapp: #00A859;
  --whatsapp-hover: #008f4c;
  --whatsapp-dark: #00733d;
  --whatsapp-bg: #e6f7ef;

  /* الألوان الوظيفية وسيكولوجية الشراء */
  --urgency-red: #D3141E;
  --urgency-red-bg: #fef2f2;
  --urgency-red-border: #fecaca;
  --discount-badge-bg: #D3141E;
  --discount-badge-text: #ffffff;
  --star-gold: #f59e0b;

  --success: #00A859;
  --success-bg: #e6f7ef;
  --success-border: #a3e6c5;

  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;

  --info: #0284c7;
  --info-bg: #f0f9ff;
  --info-border: #bae6fd;

  /* درجات الحياد والأسطح (Surfaces & Neutrals) */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;

  --text-main: #0f172a;        /* كربوني داكن صلب */
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-inverse: #ffffff;

  --border-light: #f1f5f9;
  --border-base: #e2e8f0;
  --border-dark: #cbd5e1;
  --border-focus: var(--primary);

  /* الأسعار */
  --price-current: #D3141E;
  --price-old: #94a3b8;
  --price-currency: #0f172a;

  /* ==========================================================================
     2. TYPOGRAPHY (الطباعة والخطوط العربية - واضحة ومتناسبة ومريحة للعين)
     ========================================================================== */
  --font-heading: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-body: 'Readex Pro', 'Tajawal', system-ui, -apple-system, sans-serif;
  --font-mono: 'Inter', monospace;

  --fs-xs: 0.8125rem;   /* ~13-14px (نصوص مساعدة، وسوم، ملاحظات) */
  --fs-sm: 0.9375rem;   /* ~15-16px (نصوص ثانوية، أزرار فرعية، تفاصيل) */
  --fs-base: 1.0625rem; /* ~17-18px (النص الأساسي، الحقول، الوصف) */
  --fs-lg: 1.25rem;     /* ~20-21px (عناوين فرعية، أزرار رئيسية) */
  --fs-xl: 1.45rem;     /* ~23-25px (عناوين الأقسام، البطاقات) */
  --fs-2xl: 1.75rem;    /* ~28-30px (الأسعار البارزة، عناوين ثانوية) */
  --fs-3xl: 2.15rem;    /* ~34-37px (عناوين رئيسية للمنتجات) */
  --fs-4xl: 2.65rem;    /* ~42-45px (عناوين الهيرو في الأجهزة الكبيرة) */
  --fs-5xl: 3.25rem;    /* ~52-55px (أرقام وإحصائيات كبرى) */

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;

  --lh-tight: 1.3;
  --lh-snug: 1.45;
  --lh-normal: 1.68;
  --lh-relaxed: 1.88;

  /* ==========================================================================
     3. SPACING & SIZING (المسافات والأبعاد)
     ========================================================================== */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;

  /* ==========================================================================
     4. RADIUS & SHADOWS
     ========================================================================== */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 25px var(--primary-glow);
  --shadow-cta: 0 8px 24px rgba(211, 20, 30, 0.38);

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}
