/* kiosk — G318 Accessories.
   Charcoal + WhatsApp green. One narrow column, on a phone, ordering in one thumb.
   No shadows, no gradients: flat surfaces separated by hairlines. */

:root {
  --bg: #101215;          /* page surround, darker than the column so the column reads as the app */
  --surface: #16181c;     /* the column */
  --card: #1b1e23;
  --tile: #20242b;        /* photo-less product tile */
  --motif: #2a2f37;
  --line: #2b3038;
  --line-soft: #23272e;
  --ink: #f3f5f6;
  --ink-2: #b6bec6;
  --ink-3: #8b949e;
  --wa: #25d366;          /* the action colour, and only the action colour */
  --wa-ink: #0d1a12;
  --accent: #c9a06a;      /* muted sand: prices "from", step numbers, focus of attention */
  --en: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ar: 'IBM Plex Sans Arabic', 'Manrope', system-ui, 'Segoe UI', sans-serif;
  --col: 560px;
  --bar: 68px;            /* sticky order bar */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--en);
  overflow-x: hidden;
}
[lang="ar"] { font-family: var(--ar); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol { margin: 0; }

:focus-visible { outline: 3px solid #f3f5f6; outline-offset: 2px; border-radius: 6px; }

.shell {
  max-width: var(--col);
  margin: 0 auto;
  background: var(--surface);
  border-inline: 1px solid var(--line-soft);
  min-height: 100vh;
  padding-bottom: calc(var(--bar) + 20px + env(safe-area-inset-bottom, 0px));
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px 8px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
}
.wordmark {
  display: flex; align-items: center; min-height: 44px;
  font: 800 19px/1 var(--en); letter-spacing: -.01em; text-decoration: none;
}
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-contact {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px;
  font: 700 16px/1 var(--en); text-decoration: none;
}
.top-wa {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 10px;
  color: var(--wa); text-decoration: none;
}
.top-wa svg { width: 22px; height: 22px; }
.top-contact:hover, .top-wa:hover { border-color: var(--ink-3); }

/* ---------- category rail ---------- */
.rail-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 18px 16px 0; }
.rail-head h2 { font: 800 20px/1.25 var(--en); letter-spacing: -.01em; }
.rail-head p { font: 700 18px/1.5 var(--ar); color: var(--ink-2); }
.rail {
  display: flex; gap: 10px;
  padding: 12px 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.rail::-webkit-scrollbar { height: 4px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.chip {
  flex: 0 0 auto; width: 224px; scroll-snap-align: start;
  display: grid; gap: 3px; align-content: start;
  min-height: 44px; padding: 11px 13px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none;
}
.chip-ar { font: 700 16px/1.45 var(--ar); color: var(--ink-2); }
.chip-en { font: 800 17px/1.25 var(--en); }
.chip-meta { margin-top: 2px; font: 600 15px/1.35 var(--en); color: var(--accent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip:hover { border-color: var(--ink-3); }
.chip[aria-current="page"] { background: var(--tile); border-color: var(--ink-3); }

/* ---------- statement / page heads ---------- */
.statement, .cathead { padding: 18px 16px 20px; }
.eyebrow {
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  font: 700 15px/1.3 var(--en); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow [lang="ar"] { letter-spacing: 0; text-transform: none; }
.statement h1, .cathead h1 {
  margin-top: 10px;
  font: 800 32px/1.12 var(--en); letter-spacing: -.025em;
}
.ar-title { margin-top: 8px; font: 700 24px/1.4 var(--ar); color: var(--ink); }
.lede { margin-top: 12px; color: var(--ink-2); }
.lede[lang="ar"] { font-family: var(--ar); font-size: 17px; line-height: 1.85; }
.cat-meta { margin-top: 12px; font: 700 16px/1.4 var(--en); color: var(--accent); }
.statement .wa, .cathead .wa { margin-top: 18px; }
.tel {
  display: flex; align-items: center; justify-content: center;
  margin-top: 10px; min-height: 44px;
  font: 800 19px/1 var(--en); letter-spacing: .01em; text-decoration: none;
}

/* ---------- category group head (home feed) ---------- */
.grouphead {
  padding: 20px 16px 0;
  border-top: 1px solid var(--line-soft);
  /* first group head sits right under the rail, no rule needed */
}
.grouphead:first-of-type { border-top: 0; }
.grouphead h2 {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px;
  font: 800 18px/1.25 var(--en); letter-spacing: -.01em;
}
.grouphead .cat-meta { margin-top: 4px; font-size: 15px; }
.grouphead h2 [lang="ar"] { font: 700 16px/1.5 var(--ar); color: var(--ink-2); }

/* --- "see all" -> the category page for the rest of the items --- */
.see-all {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 16px 0 22px; padding: 14px 16px; min-height: 48px;
  border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink-2); text-decoration: none;
  font: 600 15px/1.4 var(--sans, system-ui, sans-serif);
}
.see-all:hover, .see-all:focus-visible { border-color: var(--wa); color: var(--wa); }

/* ---------- product feed ---------- */
.feed { display: grid; gap: 16px; padding: 8px 16px 6px; }
.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
}
.card-open { display: block; color: inherit; text-decoration: none; }
.shot {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 4 / 3;
  background: var(--tile);
  overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot.noimg::after {
  content: ""; position: absolute; left: 50%; bottom: 20px; margin-left: -20px;
  width: 40px; height: 3px; border-radius: 2px; background: var(--accent);
}
.shot.noimg .motif {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 800 clamp(64px, 27vw, 104px)/1 var(--en); letter-spacing: -.06em;
  color: var(--motif);
}
.shot.noimg .pname {
  position: relative; z-index: 1; padding: 0 30px 22px;
  text-align: center; font: 700 19px/1.3 var(--en); color: var(--ink);
}
.ct { display: grid; gap: 3px; padding: 14px 16px 0; }
.ct h3 { font: 800 21px/1.25 var(--en); letter-spacing: -.015em; }
.pname-ar { font: 700 19px/1.55 var(--ar); color: var(--ink-2); }
.card-body { display: grid; gap: 10px; padding: 10px 16px 16px; }
.fits { font: 600 16px/1.4 var(--en); color: var(--ink-3); }
.price {
  display: flex; align-items: baseline; gap: 6px;
  font: 800 27px/1.1 var(--en); letter-spacing: -.025em;
}
.price .cur { font: 700 16px/1 var(--en); letter-spacing: .02em; color: var(--ink-3); }
.desc { font-size: 17px; line-height: 1.6; color: var(--ink-2); }

/* ---------- the action ---------- */
.wa {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 54px; padding: 12px 14px;
  background: var(--wa); color: var(--wa-ink);
  border-radius: 12px;
  font: 800 17px/1.2 var(--en); text-align: center; text-decoration: none;
}
.wa svg { flex: none; width: 22px; height: 22px; }
.wa .wa-ar { font-family: var(--ar); font-weight: 700; font-size: 16px; }
.wa:hover { background: #1fc65f; }
.wa:active { transform: translateY(1px); }

/* ---------- how to order ---------- */
.steps { margin-top: 22px; padding: 26px 16px 6px; border-top: 1px solid var(--line-soft); }
.steps h2 { font: 800 21px/1.3 var(--en); letter-spacing: -.01em; }
.steps h2 [lang="ar"] { font: 700 18px/1.5 var(--ar); color: var(--ink-2); }
.steps ol { list-style: none; padding: 0; margin: 12px 0 0; }
.steps li {
  display: grid; grid-template-columns: 30px 1fr; gap: 12px;
  padding: 16px 0; border-top: 1px solid var(--line-soft);
}
.steps li:first-child { border-top: 0; }
.steps .n { font: 800 20px/1.3 var(--en); color: var(--accent); }
.steps h3 { font: 800 19px/1.3 var(--en); }
.steps h3 [lang="ar"] { font: 700 18px/1.5 var(--ar); color: var(--ink-2); }
.steps p { margin-top: 4px; color: var(--ink-2); }
.steps p[lang="ar"] { font-family: var(--ar); line-height: 1.85; }

/* ---------- tail call to action ---------- */
.cta { display: grid; padding: 26px 16px 30px; border-top: 1px solid var(--line-soft); margin-top: 22px; }
.cta .wa { margin-top: 16px; }
.cta .tel { color: var(--ink); }

/* ---------- footer ---------- */
.foot {
  display: grid; gap: 16px;
  padding: 22px 16px 12px;
  border-top: 1px solid var(--line-soft);
}
.foot-mark { font: 800 18px/1.4 var(--en); letter-spacing: -.01em; }
.foot-mark [lang="ar"] { font: 700 17px/1.4 var(--ar); color: var(--ink-2); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line-soft); border-radius: 10px;
  font: 600 16px/1 var(--en); color: var(--ink-2); text-decoration: none;
}
.foot-nav a:hover { color: var(--ink); border-color: var(--ink-3); }
.disclosure { max-width: 54ch; font: 400 16px/1.6 var(--en); color: var(--ink-3); }
.disclosure[lang="ar"] { font-family: var(--ar); line-height: 1.9; }

/* ---------- sticky order bar ---------- */
.orderbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: #1a1d22;
  border-top: 1px solid var(--line);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
}
.orderbar-in { display: flex; align-items: center; gap: 10px; max-width: var(--col); margin: 0 auto; }
.ob-tel {
  flex: 1 1 auto; min-width: 0; min-height: 44px;
  display: flex; align-items: center;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font: 700 16px/1 var(--en); text-decoration: none;
}
.ob-wa {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px;
  background: var(--wa); color: var(--wa-ink); border-radius: 12px;
  font: 800 16px/1 var(--en); text-decoration: none;
}
.ob-wa svg { flex: none; width: 20px; height: 20px; }

/* ---------- wider screens: the column stays a column ---------- */
@media (min-width: 600px) {
  .statement h1, .cathead h1 { font-size: 36px; }
  .ar-title { font-size: 25px; }
  .ct h3 { font-size: 22px; }
  .feed { gap: 18px; }
}
@media (min-width: 900px) {
  body { background: #0d0f12; }
  .shell { border-inline: 1px solid var(--line); }
}
