/* Shared foundation for every surface (storefront, panel, admin, public site).
   One self-hosted variable face (Cairo, OFL — fonts/OFL-Cairo.txt) covers Arabic + Latin;
   unicode-range means a page only downloads the subset its text needs (~31 KB AR, ~34 KB Latin).
   Logical properties only (RTL/LTR). No surface identity here — that lives in app.css / shop.css. */
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/assets/fonts/cairo-arabic.woff2") format("woff2-variations"), url("/assets/fonts/cairo-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/assets/fonts/cairo-latin.woff2") format("woff2-variations"), url("/assets/fonts/cairo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: "Cairo", system-ui, "Segoe UI", Tahoma, sans-serif;
  /* Type scale (1.2 minor third, 16px base). Rank comes from these steps, not boxes. */
  --step--1: 0.8125rem;  /* 13px meta */
  --step-0: 1rem;        /* 16px body */
  --step-1: 1.1875rem;   /* 19px lead / card title */
  --step-2: 1.4375rem;   /* 23px h2 */
  --step-3: 1.75rem;     /* 28px h1 */
  --step-4: 2.125rem;    /* 34px price card / display on phones */
  --step-5: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem); /* marketing display */
  /* Spacing scale (4px grid). */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;   --sp-7: 3rem;    --sp-8: 4.5rem;
  --radius-sm: 6px; --radius: 10px; --radius-lg: 14px;
  --tap: 44px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--step-0); line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { line-height: 1.25; text-wrap: balance; margin-block: 0 var(--sp-3); }
h1 { font-size: var(--step-3); font-weight: 800; }
h2 { font-size: var(--step-2); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin-block: 0 var(--sp-3); }
img, svg, video { max-inline-size: 100%; block-size: auto; display: block; }
input, select, textarea, button { font: inherit; color: inherit; }
table { font-variant-numeric: tabular-nums; }
a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* Keyboard focus is always visible; mouse clicks stay quiet. */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus, #1d4ed8); outline-offset: 2px; border-radius: 4px; }

/* LTR islands inside RTL text: phones, prices, SKUs, #1042. */
[dir="ltr"] { unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; unicode-bidi: isolate; direction: ltr; }

.visually-hidden { position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: var(--sp-2); inset-block-start: -10rem; z-index: 100; padding: var(--sp-2) var(--sp-4); background: #fff; color: #000; border-radius: var(--radius-sm); }
.skip-link:focus { inset-block-start: var(--sp-2); }
.honeypot { display: none !important; }
.break { overflow-wrap: anywhere; }

@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; }
}
