/* QPOS public site — tokens locked 2026-11-06 (docs/M0_Design_Proposals.md). Mobile-first, RTL-safe. */
:root {
  --ink: #0F1B24;
  --surface: #FFFFFF;
  --surface-alt: #F5F2EC;
  --line: #E2DED6;
  --accent: #0D7A5F;
  --accent-ink: #0A5C47;
  --accent-wash: #DCEFE8;
  --splash: #D6453C;
  --status-available: #2E7D52;
  --status-garde: #28406B;
  --radius: 8px;
  --gap: 16px;
  --touch: 44px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.5;
}
a { color: var(--accent-ink); }
main { max-width: 880px; margin: 0 auto; padding: 0 var(--gap) 48px; }

.topbar, .footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap); max-width: 880px; margin: 0 auto; padding: 12px var(--gap);
}
.topbar { border-bottom: 1px solid var(--line); }
.footer { border-top: 1px solid var(--line); margin-top: 32px; font-size: 14px; color: #5b6670; }
.brand { font-weight: 700; font-size: 20px; color: var(--accent-ink); text-decoration: none; }
.langs { display: flex; gap: 4px; }
.lang {
  min-width: var(--touch); min-height: 32px; display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; font-size: 13px; color: var(--ink);
}
.lang[aria-current="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

.hero { padding: 24px 0; }
.hero--home h1 { font-size: clamp(24px, 6vw, 40px); margin: 0; }
.hero--pharmacy { display: flex; gap: var(--gap); align-items: center; flex-wrap: wrap; }
.hero__art { width: 96px; height: 96px; flex: none; }
.hero__head h1 { margin: 4px 0; font-size: clamp(22px, 5vw, 32px); }
.addr { margin: 0 0 8px; color: #5b6670; }
.back { font-size: 13px; text-decoration: none; }

.filters { display: flex; gap: var(--gap); flex-wrap: wrap; align-items: center; margin-bottom: var(--gap); }
.search {
  flex: 1 1 220px; min-height: var(--touch); padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius); font-size: 16px; background: var(--surface);
}
.toggle { display: inline-flex; align-items: center; gap: 6px; min-height: var(--touch); }
.count { color: #5b6670; font-size: 14px; margin: 0 0 var(--gap); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); }
.card__link { display: grid; gap: 2px; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.card__name { font-weight: 600; }
.card__place { font-size: 13px; color: #5b6670; }
.empty { color: #5b6670; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; width: fit-content;
  border: 1px solid var(--line); background: var(--surface-alt);
}
.pill__dot { font-size: 11px; }
.pill--open { color: var(--status-available); border-color: var(--status-available); background: #eaf5ef; }
.pill--garde { color: var(--status-garde); border-color: var(--status-garde); background: #e8edf6; }
.pill--closed { color: #5b6670; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: var(--gap) 0; }
.btn {
  min-height: var(--touch); display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); background: var(--surface); font-weight: 600;
}
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }

.hours { border-collapse: collapse; width: 100%; max-width: 420px; margin: var(--gap) 0; }
.hours caption { text-align: start; font-weight: 700; margin-bottom: 6px; }
.hours th, .hours td { text-align: start; padding: 6px 8px; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours th { color: #5b6670; }

.chips, .medresults { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.medresults { flex-direction: column; }
.medresults li { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; }
.med__ppv { color: var(--accent-ink); font-weight: 600; }

.cc__form { display: grid; gap: 10px; max-width: 420px; }
.cc__form textarea { min-height: 80px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }
.legal { margin-top: 24px; font-size: 13px; color: #5b6670; }
.activate { padding: 24px 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
