/* =========================================================================================
   Multistore — Modern Commerce Workspace · Design tokens
   The ONLY place where colours, type, spacing, radii, shadows and motion are defined.
   Every other stylesheet reads these variables; change a value here and every page follows.
   ========================================================================================= */
:root{
  /* ---- Brand ---- */
  --primary:#315CF5;
  --primary-hover:#2448D8;
  --primary-soft:#EEF2FF;
  --primary-soft-2:#DDE5FE;           /* selected / pressed soft surfaces */
  --primary-ring:rgb(49 92 245 / .22);

  /* ---- Surfaces ---- */
  --bg:#F6F7F9;                        /* app background */
  --surface:#FFFFFF;                   /* cards, sidebar, header */
  --surface-2:#FAFBFC;                 /* table header, quiet wells */
  --surface-3:#F1F3F6;                 /* disabled, skeleton, hover on white */
  --surface-hover:#F7F8FA;

  /* ---- Text ---- */
  --text:#17233B;                      /* main */
  --text-2:#334155;                    /* body copy inside cards and tables */
  --muted:#64748B;                     /* secondary */
  --subtle:#94A3B8;                    /* muted: hints, placeholders, axis labels */
  --on-primary:#FFFFFF;

  /* ---- Lines ---- */
  --border:#E5E9F0;
  --border-strong:#D3DAE4;             /* inputs, secondary buttons */
  --divider:#EEF1F5;                   /* rows inside a card */

  /* ---- Semantic ---- */
  --success:#15803D; --success-bg:#ECFDF3; --success-border:#BBE8CB;
  --warning:#B76A10; --warning-bg:#FFF4E5; --warning-border:#F7D9AE; --warning-text:#96560A;
  --danger:#DC3545;  --danger-bg:#FFF1F2;  --danger-border:#F9CDD2;  --danger-text:#B4232F; --danger-hover:#C02A39;
  --info:#2563EB;    --info-bg:#EFF5FF;    --info-border:#C7DAFC;
  --neutral-bg:#F1F3F6;
  --disabled-bg:#F1F3F6; --disabled-text:#A3AEBE;

  /* ---- Data visualisation (order statuses, charts) ---- */
  --status-new:#2563EB; --status-confirmed:#8EA4FA; --status-preparing:#E9A23B; --status-completed:#2FA36B; --status-cancelled:#CBD3DE;
  --chart-bar:#315CF5; --chart-bar-soft:#C9D5FD; --chart-grid:#EEF1F5;

  /* ---- Type ---- */
  --font:'IBM Plex Sans Arabic','Tajawal',sans-serif;
  --font-num:'Inter','IBM Plex Sans Arabic',sans-serif;   /* figures, prices, codes */
  --fs-kpi-hero:40px; --fs-kpi:28px;
  --fs-title:24px;     /* page title, 700 */
  --fs-section:18px;   /* section title, 600 */
  --fs-card:16px;      /* card title, 600 */
  --fs-body:14px;      /* body, 400, lh 1.7 */
  --fs-label:13px;     /* labels 500, secondary text 400 */
  --fs-small:13px;
  --fs-xs:12px;
  --lh-body:1.7; --lh-tight:1.35;

  /* ---- Spacing (4 / 8 / 12 / 16 / 24 / 32) ---- */
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:20px; --s-6:24px; --s-8:32px; --s-10:40px;

  /* ---- Shape ---- */
  --r-xs:4px; --r-sm:6px; --r:8px; --radius:12px; --r-lg:16px; --r-pill:999px;

  /* ---- Elevation (light: borders do the work, shadows only lift floating layers) ---- */
  --shadow-xs:0 1px 2px rgb(23 35 59 / .04);
  --shadow-sm:0 1px 3px rgb(23 35 59 / .06),0 1px 2px rgb(23 35 59 / .04);
  --shadow-md:0 8px 24px -8px rgb(23 35 59 / .14),0 2px 6px -2px rgb(23 35 59 / .06);
  --shadow-lg:0 24px 56px -16px rgb(23 35 59 / .26);

  /* ---- Layout ---- */
  --sidebar-w:248px; --topbar-h:64px; --content-max:1440px;
  --gutter:24px; --gap:24px;

  /* ---- Controls ---- */
  --control-h:40px; --control-h-sm:32px; --control-h-lg:44px;
  --icon:18px; --icon-nav:20px;

  /* ---- Motion ---- */
  --ease:cubic-bezier(.2,.7,.2,1);
  --t-fast:150ms; --t:200ms;
}
@media (max-width:640px){
  :root{--gutter:16px;--gap:16px;--fs-title:21px;--fs-kpi-hero:32px;--fs-kpi:24px}
}
