/* BELTAKKA — storefront design system
   Direction: editorial black & bone, one signal color (Tap Blue) that only appears where a "tap" happens:
   NFC arcs, focus rings, the primary action. Products are the color. */

:root {
  --paper: #f3f1ec;
  --paper-2: #ebe8e1;
  --bone: #dfdbd2;
  --line: #d5d0c6;
  --ink: #0b0b0c;
  --ink-2: #2a2a2e;
  --muted: #6b6860;
  --tap: #2d4bff;
  --tap-ink: #1a2fd6;
  --tap-soft: #e3e7ff;
  --ok: #127a4b;
  --warn: #a15c00;
  --bad: #b3261e;
  --card: #fbfaf7;
  --stage: #0a0a0b;
  --stage-2: #141416;
  --stage-line: #26262a;

  --f-display: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans Arabic', 'Alexandria', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --r-s: 10px; --r-m: 16px; --r-l: 26px;
  --gut: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --shadow-1: 0 1px 0 rgba(255,255,255,.7) inset, 0 18px 40px -26px rgba(11,11,12,.35);
  --shadow-2: 0 40px 80px -40px rgba(11,11,12,.45);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0; background: var(--paper); color: var(--ink); transition: background-color .3s;
  font-family: var(--f-body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:lang(en) body, [lang="en"] body { line-height: 1.55; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--tap); color: #fff; }
:focus-visible { outline: 2px solid var(--tap); outline-offset: 3px; border-radius: 6px; }
.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; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ── type ───────────────────────────── */
.display, h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; margin: 0; }
:lang(ar) .display, :lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.22; }
.t-hero { font-size: clamp(44px, 8.4vw, 132px); font-weight: 700; }
.t-xl { font-size: clamp(30px, 4.4vw, 64px); }
.t-l { font-size: clamp(26px, 3.4vw, 48px); }
.t-m { font-size: clamp(20px, 2vw, 28px); }
.lede { font-size: clamp(17px, 1.45vw, 21px); color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.num { font-family: var(--f-mono); font-feature-settings: 'tnum'; }
p { margin: 0 0 1em; }

/* ── layout ─────────────────────────── */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(72px, 11vw, 160px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.stack > * + * { margin-top: var(--s, 16px); }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.dark { background: var(--stage); color: #f2f1ee; }
.dark .muted, .dark .lede { color: #a9a7a0; }
.dark .rule { background: var(--stage-line); }
.dark .eyebrow { color: #8d8b85; }

/* ── buttons ────────────────────────── */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font-family: var(--f-display); font-weight: 500; font-size: 15px;
  transition: transform .5s var(--ease), background .3s, color .3s, box-shadow .4s var(--ease);
  isolation: isolate; overflow: hidden; white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.btn::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--tap); transform: scale(0); transform-origin: var(--mx, 50%) var(--my, 50%); transition: transform .6s var(--ease); z-index: -1; }
.btn:hover::after { transform: scale(1.6); }
.btn:active { transform: scale(.97); }
.btn--tap { --bg: var(--tap); --fg: #fff; }
.btn--tap::after { background: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { color: #fff; border-color: var(--tap); }
.dark .btn--ghost { --fg: #f2f1ee; border-color: #f2f1ee; }
.btn--light { --bg: #f2f1ee; --fg: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn .arr { transition: transform .5s var(--ease); }
.btn:hover .arr { transform: translateX(var(--arr-x, 4px)); }
[dir="rtl"] .btn .arr { --arr-x: -4px; transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(4px); }
.link { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
[dir="rtl"] .link { background-position: 100% 100%; }
.link:hover { background-size: 100% 1px; }

/* ── header ─────────────────────────── */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; transition: transform .6s var(--ease), background .4s, color .4s, box-shadow .4s; }
.hdr__in { display: flex; align-items: center; gap: 20px; height: 72px; }
.hdr.is-stuck { background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr--on-dark:not(.is-stuck) { color: #f2f1ee; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; letter-spacing: .16em; font-size: 15px; }
.logo svg, .logo img { width: 26px; height: auto; }
.nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; transition: background .3s; }
.nav a:hover, .nav a[aria-current="page"] { background: color-mix(in srgb, currentColor 9%, transparent); }
.hdr__end { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; transition: background .3s; }
.icon-btn:hover { background: color-mix(in srgb, currentColor 9%, transparent); }
.icon-btn svg { width: 20px; height: 20px; }
.badge { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--tap); color: #fff; font-size: 11px; font-family: var(--f-mono); display: grid; place-items: center; transform: scale(0); transition: transform .4s var(--ease); }
.badge.on { transform: scale(1); }
.badge.bump { animation: badge-bump .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes badge-bump { 45% { scale: 1.4; } }
.lang { font-family: var(--f-display); font-size: 13px; padding: 8px 12px; border-radius: 999px; }
.lang:hover { background: color-mix(in srgb, currentColor 9%, transparent); }
.burger { display: none; }
.announce { background: var(--ink); color: var(--paper); text-align: center; font-size: 13px; padding: 8px var(--gut); }

/* mobile menu */
.mnav { position: fixed; inset: 0; z-index: 60; background: var(--stage); color: #f2f1ee; clip-path: circle(0 at var(--cx, 90%) 36px); transition: clip-path .5s var(--ease-io); display: flex; flex-direction: column; padding: 90px var(--gut) 32px; overflow-y: auto; }
.mnav.open { clip-path: circle(150% at var(--cx, 90%) 36px); }
.mnav a.big { font-family: var(--f-display); font-size: clamp(32px, 9vw, 54px); font-weight: 600; padding: 8px 0; border-bottom: 1px solid var(--stage-line); display: flex; justify-content: space-between; align-items: baseline; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .7s var(--ease); }
.mnav.open a.big { opacity: 1; transform: none; }
.mnav a.big small { font-family: var(--f-mono); font-size: 12px; color: #77756f; }
.mnav__close { position: absolute; top: 14px; inset-inline-end: var(--gut); color: #f2f1ee; }

@media (max-width: 960px) {
  .nav { display: none; }
  .burger { display: inline-grid; }
}

/* ── cart drawer ────────────────────── */
.drawer { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(11,11,12,.45); opacity: 0; transition: opacity .5s; }
.drawer__panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(440px, 100%); background: var(--paper); display: flex; flex-direction: column; transform: translateX(var(--off, 104%)); transition: transform .7s var(--ease); box-shadow: var(--shadow-2); }
[dir="rtl"] .drawer__panel { --off: -104%; }
.drawer.open { pointer-events: auto; }
.drawer.open .drawer__scrim { opacity: 1; }
.drawer.open .drawer__panel { transform: none; }
.drawer__hd { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 22px; overscroll-behavior: contain; }
.drawer__ft { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: var(--card); }
.cline { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; animation: cline-in .6s var(--ease) both; }
@keyframes cline-in { from { opacity: 0; transform: translateY(10px); } }
.cline.leaving { animation: cline-out .4s var(--ease) forwards; }
@keyframes cline-out { to { opacity: 0; transform: translateX(30px); height: 0; padding: 0; } }
.cline__img { width: 72px; aspect-ratio: 1; border-radius: 12px; background: var(--paper-2); overflow: hidden; display: grid; place-items: center; }
.cline__img img { max-height: 64px; width: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
.cline__t { font-family: var(--f-display); font-size: 14.5px; font-weight: 500; line-height: 1.35; }
.cline__m { font-size: 12.5px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 36px; }
.qty button { width: 34px; height: 34px; border: 0; background: none; font-size: 17px; border-radius: 999px; }
.qty button:hover { background: var(--paper-2); }
.qty input { width: 38px; text-align: center; border: 0; background: none; font-family: var(--f-mono); font-size: 14px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.empty { text-align: center; padding: 60px 10px; color: var(--muted); }

/* fly-to-cart (technique adapted from our Aghapy Mart store) */
.fly { position: fixed; z-index: 90; top: 0; left: 0; width: 64px; height: 64px; border-radius: 14px; background: var(--paper-2) center / contain no-repeat; pointer-events: none; opacity: 0;
  translate: var(--sx, 0) var(--sy, 0); transform: translate(-50%, -50%); will-change: translate, transform, opacity; contain: strict;
  animation-name: fly-x, fly-y, fly-s; animation-duration: .7s; animation-composition: accumulate; animation-fill-mode: both;
  animation-timing-function: cubic-bezier(.7,-4,.98,.5), cubic-bezier(.15,.57,.9,1.05), cubic-bezier(.85,.05,.96,1); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
@keyframes fly-x { 100% { translate: var(--tx, 0) 0; } }
@keyframes fly-y { 100% { translate: 0 var(--ty, 0); } }
@keyframes fly-s { 0% { opacity: 0; } 6% { opacity: 1; } 100% { opacity: 1; border-radius: 50%; transform: translate(-50%, -50%) scale(.22); } }

/* toast */
.toasts { position: fixed; z-index: 95; bottom: 18px; inset-inline: 0; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding-inline: 16px; }
.toast { pointer-events: auto; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 14px; font-size: 14px; box-shadow: var(--shadow-2); animation: toast-in .5s var(--ease) both; display: flex; gap: 12px; align-items: center; max-width: 520px; }
.toast.out { animation: toast-out .35s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* ── cards & product tiles ──────────── */
.tile { position: relative; }
.tile__stage { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-l); background: var(--paper-2); overflow: hidden; display: grid; place-items: center; isolation: isolate; }
.tile__stage::before { content: ''; position: absolute; inset: auto 12% 9% 12%; height: 14%; background: radial-gradient(closest-side, rgba(11,11,12,.28), transparent); filter: blur(10px); z-index: -1; transition: transform .8s var(--ease), opacity .8s; }
.tile__stage img { width: auto; max-width: 68%; max-height: 74%; object-fit: contain; transition: transform 1s var(--ease), opacity .6s; filter: drop-shadow(0 22px 26px rgba(11,11,12,.22)); }
.tile__stage img.alt { position: absolute; opacity: 0; transform: translateY(14px) scale(.96) rotate(-2deg); }
.tile:hover .tile__stage img.main { transform: translateY(-10px) scale(1.035) rotate(-1.2deg); }
.tile:hover .tile__stage img.alt { opacity: 1; transform: translateY(-8px) scale(1) rotate(1.5deg); }
.tile:hover .tile__stage img.main.has-alt { opacity: 0; }
.tile:hover .tile__stage::before { transform: scaleX(.86); opacity: .7; }
.tile__tags { position: absolute; top: 14px; inset-inline-start: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: rgba(255,255,255,.7); backdrop-filter: blur(6px); font-size: 12px; font-family: var(--f-display); border: 1px solid rgba(11,11,12,.06); }
.chip--ink { background: var(--ink); color: var(--paper); }
.chip--tap { background: var(--tap); color: #fff; border-color: transparent; }
.tile__name { font-family: var(--f-display); font-weight: 500; font-size: 17px; line-height: 1.3; }
.tile__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.price { font-family: var(--f-display); font-weight: 600; font-size: 16px; white-space: nowrap; }
.price s { color: var(--muted); font-weight: 400; margin-inline-start: 6px; font-size: 13px; }
.price small { font-weight: 400; color: var(--muted); font-size: 12px; }

.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(18px, 2.4vw, 34px) clamp(14px, 2vw, 26px); }
@media (max-width: 560px) { .grid-products { grid-template-columns: 1fr 1fr; gap: 22px 12px; } .tile__name { font-size: 14.5px; } .price { font-size: 14px; } .tile__stage { border-radius: 18px; } }

/* ── forms ──────────────────────────── */
.field { display: grid; gap: 7px; }
.field > label, .label { font-family: var(--f-display); font-size: 14px; font-weight: 500; }
.field .help { font-size: 12.5px; color: var(--muted); }
.field .err { font-size: 12.5px; color: var(--bad); min-height: 0; }
.input, select.input, textarea.input {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--card); transition: border-color .2s, box-shadow .3s; font-size: 16px; /* 16px stops iOS zoom */
}
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { outline: none; border-color: var(--tap); box-shadow: 0 0 0 4px var(--tap-soft); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.input[dir="ltr"] { text-align: left; }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--tap); margin-top: 2px; flex: none; }
.file-drop { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--card); cursor: pointer; transition: border-color .2s, background .2s; }
.file-drop:hover, .file-drop.drag { border-color: var(--tap); background: var(--tap-soft); }
.file-drop input { display: none; }

/* option pills (variants, designs) */
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt > span { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-family: var(--f-display); font-size: 14px; transition: border-color .2s, box-shadow .3s, background .2s; }
.opt input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt input:focus-visible + span { outline: 2px solid var(--tap); outline-offset: 2px; }
.design-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.design-pick label { position: relative; aspect-ratio: 1; border-radius: 14px; background: var(--paper-2); display: grid; place-items: center; cursor: pointer; border: 1px solid transparent; transition: border-color .2s, transform .4s var(--ease); overflow: hidden; }
.design-pick label:hover { transform: translateY(-2px); }
.design-pick img { max-height: 86%; max-width: 86%; width: auto; }
.design-pick input { position: absolute; opacity: 0; }
.design-pick input:checked + img { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.design-pick label:has(input:checked) { border-color: var(--ink); }

/* ── notices ────────────────────────── */
.note { padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.note--tap { background: var(--tap-soft); border-color: transparent; color: var(--tap-ink); }
.note--warn { background: #fff4e0; border-color: #f0d9ad; color: #6e4300; }
.note--bad { background: #fde9e7; border-color: #f2c4bf; color: #7c1b14; }
.note--ok { background: #e3f4ec; border-color: #bfe3d1; color: #0d5535; }

/* ── reveal motion (JS adds .in) ─────── */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform .65s var(--ease); transition-delay: calc(var(--i, 0) * 25ms + var(--d, 0s)); }
.split.in .w > span { transform: none; }
.no-js .rv, .no-js .split .w > span { opacity: 1; transform: none; }

/* skeleton */
.sk { background: linear-gradient(90deg, var(--paper-2) 0 40%, #f7f5f1 50%, var(--paper-2) 60% 100%) 0 0 / 300% 100%; animation: sk 1.4s linear infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -150% 0; } }

/* ── footer ─────────────────────────── */
.ftr { background: var(--stage); color: #d9d7d1; padding: clamp(64px, 9vw, 120px) 0 28px; }
.ftr a:hover { color: #fff; }
.ftr__cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 28px; }
.ftr__cols h4 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #77756f; font-weight: 400; margin: 0 0 14px; }
.ftr__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
@media (max-width: 820px) { .ftr__cols { grid-template-columns: 1fr 1fr; } }

/* ── page heads / breadcrumbs ───────── */
.page-hd { padding-top: clamp(120px, 14vw, 180px); padding-bottom: clamp(28px, 4vw, 48px); }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ── generic panels ─────────────────── */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(18px, 2.4vw, 30px); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; }
.sum-row--total { font-family: var(--f-display); font-weight: 600; font-size: 20px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }
.sum-row .neg { color: var(--ok); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: start; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-family: var(--f-display); }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--muted)) 18%, transparent); }
.status--ok { --c: var(--ok); } .status--warn { --c: var(--warn); } .status--bad { --c: var(--bad); } .status--tap { --c: var(--tap); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv, .split .w > span { opacity: 1 !important; transform: none !important; }
}

/* ── brand logo (approved brand kit) ── */
:root { --tap: #2f3cf0; --tap-ink: #2427c9; --grad: linear-gradient(120deg, #0aa2ff 0%, #3a2bdb 55%, #8a2ef5 100%); }
.logo img { width: auto; height: 38px; }
.logo__dark { display: none; }
.hdr--on-dark:not(.is-stuck) .logo__light { display: none; }
.hdr--on-dark:not(.is-stuck) .logo__dark { display: block; }
.logo--on-dark .logo__dark { display: block; height: 52px; }
.btn--tap { --bg: transparent; background: var(--grad); background-size: 140% 100%; background-position: 0 0; transition: background-position .6s var(--ease), transform .5s var(--ease), box-shadow .4s var(--ease); }
.btn--tap:hover { background-position: 100% 0; box-shadow: 0 14px 34px -14px rgba(58, 43, 219, .65); }
.btn--tap::after { background: rgba(11, 11, 12, .18); }
@media (max-width: 560px) { .logo img { height: 32px; } }

/* icon sizing inside components (SVGs carry no width attribute) */
.chip { white-space: nowrap; }
.chip svg { width: 14px; height: 14px; flex: none; }
.file-drop svg { width: 22px; height: 22px; flex: none; color: var(--muted); }
.note svg { width: 18px; height: 18px; display: inline-block; vertical-align: -4px; margin-inline-end: 6px; }
.status svg, .link svg { width: 16px; height: 16px; }
.btn svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .tile__tags .chip:not(.chip--ink) { display: none; } .tile__tags .chip { height: 24px; font-size: 11px; padding: 0 9px; } }
@media (max-width: 560px) { .tile__meta { flex-direction: column; align-items: flex-start; gap: 2px; } }
.tile__tag { font-size: 13.5px; margin-top: -8px; }

/* ══ dark theme ═════════════════════════════════════════════════════════════
   One token swap; the few hand-picked colors that sit on page surfaces follow below. */
:root[data-theme="dark"] {
  --paper: #0e0e10; --paper-2: #17171a; --bone: #232327; --line: #2b2b30; --card: #131316;
  --ink: #f2f1ee; --ink-2: #cfcdc7; --muted: #9a988f;
  --tap-soft: #1a1f4d; --tap-ink: #aab4ff;
  --ok: #49c189; --warn: #e3a64c; --bad: #ff7b70;
  --stage: #060607; --stage-2: #111114; --stage-line: #24242a;
  --shadow-1: 0 1px 0 rgba(255,255,255,.04) inset, 0 18px 40px -26px rgba(0,0,0,.8);
  --shadow-2: 0 40px 80px -40px rgba(0,0,0,.9);
  color-scheme: dark;
}
[data-theme="dark"] .logo__light { display: none; }
[data-theme="dark"] .logo__dark { display: block; }
[data-theme="dark"] .chip { background: rgba(23,23,26,.72); border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .chip--ink { background: var(--ink); color: var(--paper); }
[data-theme="dark"] .chip--tap { background: var(--tap); color: #fff; }
[data-theme="dark"] .note--warn { background: #2a1f0c; border-color: #4a3613; color: #f1c27a; }
[data-theme="dark"] .note--bad { background: #2c1311; border-color: #4f201c; color: #ffaba4; }
[data-theme="dark"] .note--ok { background: #0f251b; border-color: #1c4330; color: #8fdcb5; }
[data-theme="dark"] .sk { background-image: linear-gradient(90deg, var(--paper-2) 0 40%, #222226 50%, var(--paper-2) 60% 100%); }
[data-theme="dark"] .tile__stage::before { background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); }
[data-theme="dark"] .ftr { border-top: 1px solid var(--stage-line); }
[data-theme="dark"] .dark { border-block: 1px solid var(--stage-line); }
[data-theme="dark"] .btn--tap::after { background: rgba(0,0,0,.2); }
[data-theme="dark"] img { color-scheme: normal; }

/* theme switch: the new theme grows out of the button (View Transitions; instant elsewhere) */
html.theme-vt::view-transition-old(root), html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-vt::view-transition-new(root) { animation: theme-reveal .6s var(--ease-io); }
@keyframes theme-reveal { from { clip-path: circle(0 at var(--vt-x, 90%) var(--vt-y, 36px)); } to { clip-path: circle(150vmax at var(--vt-x, 90%) var(--vt-y, 36px)); } }

.theme-btn { display: inline-grid; }
.theme-btn > span { grid-area: 1 / 1; display: grid; place-items: center; transition: transform .5s var(--ease), opacity .3s; }
.theme-btn svg { width: 19px; height: 19px; }
:root:not([data-theme="dark"]) .theme-btn__sun, [data-theme="dark"] .theme-btn__moon { opacity: 0; transform: rotate(-90deg) scale(.5); }

/* ══ language switch: a two-option pill with a sliding thumb ═══════════════ */
.lsw {
  --lsw-on: var(--paper); --lsw-x: 100%;
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center; height: 36px; padding: 3px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 24%, transparent); isolation: isolate; flex: none;
}
[dir="rtl"] .lsw { --lsw-x: -100%; }
.lsw::before {
  content: ''; position: absolute; z-index: 0; top: 3px; bottom: 3px; inset-inline-start: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: currentColor; transition: transform .38s var(--ease);
}
.lsw--en::before { transform: translateX(var(--lsw-x)); }
.lsw[data-to="en"]::before { transform: translateX(var(--lsw-x)); }
.lsw[data-to="ar"]::before { transform: none; }
.lsw a { position: relative; z-index: 1; display: grid; place-items: center; min-width: 36px; height: 28px; padding: 0 9px; border-radius: 999px; font-family: var(--f-display); font-size: 12px; font-weight: 600; letter-spacing: .06em; transition: color .3s; -webkit-tap-highlight-color: transparent; }
.lsw a[lang="ar"] { font-family: 'IBM Plex Sans Arabic', var(--f-body); font-size: 15px; letter-spacing: 0; padding-bottom: 2px; }
.lsw a[aria-current="true"] { color: var(--lsw-on); }
.lsw[data-to] a[aria-current="true"] { color: inherit; }
.lsw[data-to="en"] a[lang="en"], .lsw[data-to="ar"] a[lang="ar"] { color: var(--lsw-on); }
.lsw a:not([aria-current="true"]):hover { opacity: .7; }
.hdr--on-dark:not(.is-stuck) .lsw, .hdr--over-hero .lsw, .lsw--dark { --lsw-on: #0b0b0c; }
[data-theme="dark"] .hdr .lsw { --lsw-on: #0b0b0c; }
.mnav__tools { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.mnav__tools .theme-btn { color: #f2f1ee; border: 1px solid #333; }
@media (max-width: 600px) {
  .hdr__theme, .hdr__acc { display: none; }
  .hdr__end { gap: 2px; }
  .lsw { height: 34px; }
  .lsw a { min-width: 32px; padding: 0 7px; }
}

/* ══ product card: quick view ═══════════════════════════════════════════════ */
.tile__a { display: flex; flex-direction: column; gap: 14px; }
.tile { container-type: inline-size; }
.tile__qv {
  position: absolute; z-index: 2; top: calc(125cqw - 52px); inset-inline: 0; margin-inline: auto; width: max-content;
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 24px -14px rgba(11,11,12,.45);
  color: var(--ink); font-family: var(--f-display); font-size: 13px; opacity: 0; transform: translateY(8px);
  transition: opacity .25s, transform .35s var(--ease), background .2s, color .2s; -webkit-tap-highlight-color: transparent;
}
.tile__qv svg { width: 16px; height: 16px; flex: none; }
.tile:hover .tile__qv, .tile:focus-within .tile__qv { opacity: 1; transform: none; }
.tile__qv:hover { background: var(--ink); color: var(--paper); }
@media (hover: none) {
  .tile__qv { opacity: 1; transform: none; width: 36px; height: 36px; padding: 0; justify-content: center; margin: 0; inset-inline: auto 10px; top: calc(125cqw - 46px); }
  .tile__qv span { display: none; }
}
@media (max-width: 560px) { .tile__a > .tile__tag { display: none; } .tile__stage { border-radius: 18px; } }

/* ══ quick view window ══════════════════════════════════════════════════════ */
.qv {
  width: min(980px, calc(100vw - 32px)); max-width: none; max-height: min(720px, calc(100dvh - 32px)); padding: 0; border: 0;
  border-radius: var(--r-l); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-2); overflow: hidden;
}
.qv::backdrop { background: rgba(8,8,9,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.qv[open] { animation: qv-in .32s var(--ease) both; }
.qv[open]::backdrop { animation: qv-fade .25s ease both; }
@keyframes qv-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes qv-fade { from { opacity: 0; } }
html.qv-open { overflow: hidden; }
.qv__close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3; background: var(--card); box-shadow: 0 1px 0 var(--line); }
.qv__body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); max-height: inherit; }
.qv__media { background: var(--paper-2); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.qv__main { flex: 1; min-height: 320px; display: grid; place-items: center; border-radius: var(--r-m); }
.qv__main img { max-height: min(460px, 52dvh); width: auto; max-width: 86%; object-fit: contain; filter: drop-shadow(0 22px 26px rgba(11,11,12,.25)); }
.qv__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.qv__thumbs::-webkit-scrollbar { display: none; }
.qv__thumbs button { flex: none; width: 58px; height: 58px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; padding: 4px; transition: border-color .2s; }
.qv__thumbs button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.qv__thumbs img { max-height: 46px; width: auto; }
.qv__info { padding: 40px 32px 28px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.qv__title { font-size: clamp(24px, 2.6vw, 34px); }
.qv__tag { color: var(--muted); margin: 0; }
.qv__price { font-family: var(--f-display); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.qv__price strong { font-size: 22px; font-weight: 600; }
.qv__price small, .qv__price s { color: var(--muted); }
.qv__desc { font-size: 14.5px; color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.qv__sizes { width: 100%; }
.qv__sizes ul { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.qv__sizes li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.qv__meta { font-size: 13px; color: var(--muted); margin: 0; }
.qv__note { font-size: 13px; margin: 2px 0; }
.qv__ctas { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.qv__more { font-family: var(--f-display); font-size: 14px; }
.qv__err { grid-column: 1 / -1; padding: 64px 30px; text-align: center; }
@media (max-width: 760px) {
  .qv { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .qv[open] { animation-name: qv-up; }
  @keyframes qv-up { from { transform: translateY(40%); opacity: 0; } }
  .qv__body { grid-template-columns: 1fr; overflow-y: auto; max-height: 92dvh; overscroll-behavior: contain; }
  .qv__media { padding: 18px 18px 14px; }
  .qv__main { min-height: 220px; }
  .qv__main img { max-height: 32dvh; }
  .qv__info { padding: 20px 20px 30px; overflow: visible; }
}

/* ══ footer ═════════════════════════════════════════════════════════════════ */
.ftr__about p { margin: 18px 0 14px; max-width: 36ch; color: #8d8b85; font-size: 14.5px; line-height: 1.7; }
.ftr__cta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: 14.5px; color: #f2f1ee; padding-bottom: 4px; border-bottom: 1px solid rgba(242,241,238,.28); transition: border-color .3s, gap .4s var(--ease); }
.ftr__cta:hover { border-color: #f2f1ee; gap: 12px; }
.ftr__cta svg { width: 16px; height: 16px; }
[dir="rtl"] .ftr__cta .arr { transform: scaleX(-1); }
.ftr__cols ul a { display: inline-block; color: #b9b7b0; transition: color .2s, transform .3s var(--ease); }
.ftr__cols ul a:hover { color: #fff; transform: translateX(var(--ftr-n, 3px)); }
[dir="rtl"] .ftr__cols ul a:hover { --ftr-n: -3px; }
.ftr__mark { margin-top: clamp(48px, 7vw, 96px); line-height: 0; user-select: none; }
.ftr__mark svg { width: 100%; height: auto; overflow: visible; }
.ftr__word { font-family: 'Alexandria', var(--f-display); font-weight: 700; font-size: 212px; }
.ftr__word--brand { opacity: 0; transition: opacity .9s var(--ease); }
.ftr__mark:hover .ftr__word--brand { opacity: .92; }
.ftr__base { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; border-top: 1px solid var(--stage-line); padding-top: 22px; margin-top: clamp(20px, 3vw, 36px); font-size: 13px; color: #77756f; }
.ftr__pay { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ftr__pill { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--stage-line); color: #c9c7c0; font-family: var(--f-display); font-size: 12px; }
.ftr__nocod { margin-inline-start: 4px; }
.ftr__top { justify-self: end; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--stage-line); background: none; color: #d9d7d1; font-family: var(--f-display); font-size: 13px; transition: background .3s, color .3s, border-color .3s; }
.ftr__top:hover { background: #f2f1ee; color: #0b0b0c; border-color: #f2f1ee; }
.ftr__top svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.ftr__top:hover svg { transform: translateY(-2px); }
@media (max-width: 900px) {
  .ftr__base { grid-template-columns: 1fr; justify-items: start; }
  .ftr__pay { justify-content: flex-start; }
  .ftr__top { justify-self: start; }
}

/* product images can't be dragged out, selected or long-pressed to save (site.js blocks the right-click menu) */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

/* ── product cards: the mockup photo fills the whole card (2026-11-28) ── */
.tile__stage { display: block; background: #ecebe7; }
.tile__stage::before { display: none; }
.tile__stage img, .tile__stage img.alt {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  object-fit: cover; filter: none; transform: none; transition: transform .9s var(--ease), opacity .5s;
}
.tile__stage img.alt { opacity: 0; }
.tile:hover .tile__stage img.main { transform: scale(1.04); }
.tile:hover .tile__stage img.alt { opacity: 1; transform: scale(1.04); }
.tile__tags { z-index: 2; }
