/* Laptop World design tokens. Arabic-first (lang=ar, dir=rtl); Latin faces only cover brand names, units and digits.
   Strict spec sheet design system: zero gradients, zero backdrop-filter, <= 25 colors, 4 font families, <= 9 font sizes. */
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:400 700;font-display:swap;src:url('../fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url('../fonts/instrument-sans-latin-wght-normal.woff2') format('woff2');}
@font-face{font-family:'Noto Kufi Arabic';font-style:normal;font-weight:400 700;font-display:swap;src:url('../fonts/noto-kufi-arabic-arabic-wght-normal.woff2') format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-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:'IBM Plex Sans Arabic';font-style:normal;font-weight:400 500;font-display:swap;src:url('../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-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:'IBM Plex Sans Arabic';font-style:normal;font-weight:600 700;font-display:swap;src:url('../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2') format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;}

:root {
  /* Exactly 8 strict palette colors derived from logo.png & engineering spec sheet */
  --ink: #001B4A;          /* Navy Circle from logo.png (Ink) */
  --ink-hover: #002D7A;    /* Primary button hover */
  --blue: #0B6BE6;         /* Precision Blue from 'W' in logo.png */
  --blue-subtle: #EFF6FF;  /* Ice blue technical highlight */
  --white: #FFFFFF;        /* Spec Sheet Paper */
  --paper: #FFFFFF;        /* Alias for white */
  --wash: #F8FAFC;         /* Technical ground / wash */
  --fog: #F8FAFC;          /* Alias for wash */
  --fog-2: #F1F5F9;        /* Input background / secondary wash */
  --line: #CBD5E1;         /* 1px Technical Hairline Rule */
  --line-dark: #94A3B8;    /* Stronger technical rule */
  --slate: #475569;        /* Secondary technical data */
  --ink-2: #334155;        /* Body text high contrast */
  --ink-3: #475569;        /* Muted captions */
  --sale: #B91C1C;         /* Semantic Red for discounts / alert */
  --ok: #047857;           /* Semantic Green for in-stock */

  /* legacy aliases */
  --danger: var(--sale);
  --navy: var(--ink);
  --mist: var(--fog);
  --muted: var(--ink-2);
  --tint: var(--blue-subtle);

  /* typography: 4 font families */
  --f-display: 'Noto Kufi Arabic', system-ui, sans-serif;
  --f-mono: 'Bricolage Grotesque', monospace, sans-serif;
  --f-body: 'IBM Plex Sans Arabic', 'Instrument Sans', system-ui, -apple-system, sans-serif;

  /* font sizes: 9 strict scale steps */
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-22: 22px;
  --fs-28: 28px;
  --fs-36: 36px;
  --fs-56: 56px;

  /* shape: EXACTLY 2 STRICT RADII ONLY (2px & 4px) - ZERO PILL */
  --r-s: 2px;
  --r-m: 4px;
  --r-tech: 2px;
  --r-box: 4px;
  --r-pill: 0px;

  --max: 1320px;
  --gutter: clamp(16px, 4vw, 44px);
  --tap: 44px;

  /* ZERO CARD SHADOWS: STRICT 1px TECHNICAL HAIRLINE */
  --shadow-elevated: 0 4px 16px rgba(0, 27, 74, 0.08);
  --shadow-sheet: 0 16px 40px rgba(0, 27, 74, 0.14);
  --shadow-card: none;
  --shadow-card-hover: none;
  --shadow-btn: none;
  --shadow-blue-btn: none;

  --bw: 1px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 120px;
  overflow-x: clip;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--f-body); font-size: 15px; line-height: 1.6;
  direction: rtl;
  letter-spacing: 0 !important;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overscroll-behavior-y: contain;
}

/* ZERO 300ms TAP DELAY & ZERO TAP FLASH ON ALL TOUCH DEVICES */
a, button, input, select, textarea, [role="button"], .tabbar a, .card, .hero-cat-tile {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* CLEAN LAYER STACKING FOR FIXED & STICKY CONTROLS (NO TRANSFORM GLITCHES ON MOBILE) */
.hdr, .tabbar, .cmpbar, .pdp__mobile-bar {
  contain: layout style;
}

/* FAST TACTILE BUTTON ACTIVE FEEDBACK (ZERO JITTER ON SCROLL) */
@media (hover: none) and (pointer: coarse) {
  .btn:active,
  .tabbar a:active,
  .pdp__mobile-bar-actions .btn:active {
    opacity: 0.82;
  }
}

/* ZERO LETTER-SPACING ON ALL ARABIC TEXT TO PREVENT DISCONNECTED CURSIVE GLYPHS */
[lang="ar"], [dir="rtl"], body, h1, h2, h3, h4, h5, h6, p, a, button, input, select, textarea, span, strong, em, label, th, td, bdi, bdo {
  letter-spacing: 0 !important;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: var(--r-s); }
.on-ink :focus-visible { outline-color: var(--white); }

.skip {
  position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 18px; border-radius: var(--r-pill); font-weight: 600;
}
.skip:focus { top: 8px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.num, .price, .tnum { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Shared components (storefront + admin) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 24px; border-radius: var(--r-pill);
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--white);
  font-weight: 600; font-size: 14px; line-height: 1; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: #0f172a; border-color: #0f172a; }
.btn:active { background: #000; }
.btn--blue { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-ink); border-color: var(--blue-ink); }
.btn--ghost { background: var(--white); color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { background: var(--fog); border-color: var(--line-dark); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--fog); color: var(--ink-3); border-color: var(--fog-2); cursor: not-allowed; }

.toasts { position: fixed; inset-inline-end: 16px; bottom: 90px; z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: var(--r-m); font-size: 14px; max-width: 320px; box-shadow: var(--shadow-sheet); }
.toast--err { background: var(--danger); }
.toast--warn { background: var(--ink-2); }

.chk { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); font-size: 14px; font-weight: 500; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }

.linkbtn { border: 0; background: none; padding: 0; text-decoration: underline; text-underline-offset: 3px; min-height: var(--tap); display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; }
