/* ==========================================================
   Dalura — الأساس: الألوان، الخطوط، المسافات، القواعد العامة
   ========================================================== */

:root {
  /* الألوان المعتمدة (النسخة ب) */
  --c-white: #FFFFFF;
  --c-nude: #F3EAE5;      /* خلفيات الأقسام وصور المنتجات */
  --c-ink: #111111;       /* الشعار والنصوص والأزرار */
  --c-rose: #C9A397;      /* زخرفة فقط — ليس للنصوص */
  --c-wine: #9B1C2E;      /* العروض والخصومات فقط */
  --c-muted: #6B6664;     /* نصوص ثانوية وسعر قبل الخصم */
  --c-line: #EADFD9;      /* حدود وفواصل */

  /* الخطوط */
  --font-display: "Amiri", "Times New Roman", serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

  /* أحجام نصوص مرنة (موبايل ← كمبيوتر) */
  --fs-xs: 0.8125rem;                              /* 13px */
  --fs-sm: 0.875rem;                               /* 14px */
  --fs-base: 1rem;                                 /* 16px */
  --fs-lg: clamp(1.125rem, 1rem + 0.4vw, 1.25rem);
  --fs-h3: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3vw, 4rem);

  /* المسافات */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: clamp(2rem, 1.5rem + 2vw, 3rem);
  --space-2xl: clamp(3rem, 2rem + 4vw, 6rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --container: 1440px;

  /* الحركة */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.2s;
  --dur-base: 0.45s;

  /* ارتفاعات ثابتة */
  --announce-h: 36px;
  --header-h-mobile: 56px;
}

/* ---------- Reset خفيف ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.25; }

/* ---------- إمكانية الوصول ---------- */
:focus-visible {
  outline: 2px solid var(--c-ink);
  outline-offset: 3px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  inset-inline-start: var(--space-md);
  top: -100px;
  z-index: 1000;
  background: var(--c-ink);
  color: var(--c-white);
  padding: var(--space-xs) var(--space-md);
  font-size: var(--fs-sm);
}
.skip-link:focus { top: var(--space-xs); }

/* ---------- أدوات عامة ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.icon {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.logo-img { height: auto; }

/* أزرار */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 48px;
  padding-inline: var(--space-lg);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.btn--primary { background: var(--c-ink); color: var(--c-white); }
.btn--primary:hover { background: #2b2626; }
.btn--light { background: var(--c-white); color: var(--c-ink); }

/* منع الإسكرول عند فتح القائمة */
body.is-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* تعريفات SVG مخفية (بدل style="" لأجل CSP) */
.svg-defs { position: absolute; }

/* حماية النماذج: الخانة المخفية للبرامج الآلية + مكان تحقق Turnstile عند الحاجة */
.hp-field { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ts-box:empty { display: none; }
.ts-box { margin-top: 8px; }
/* مخزن الأيقونات (SVG sprite): لا يأخذ أي مساحة.
   ملاحظة: خاصية hidden لا تعمل على عناصر SVG في المتصفحات، لذلك نستخدم هذا الصنف. */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
