/* Sukkar & Hail — demo bakery. Deliberately light, warm theme (explicit background). */

:root {
  color-scheme: light;
  --bg: #FBF5EC;
  --bg-2: #F5EADB;
  --surface: #FFFDF9;
  --ink: #2A1C14;
  --ink-2: #5F4B3D;
  --ink-3: #7A6556;
  --line: #E8D9C4;
  --line-2: #DCC8AE;
  --accent: #A9561F;          /* saffron/caramel — text-safe on cream */
  --accent-soft: #F6E3CC;
  --green: #2F4A3A;           /* cardamom */
  --green-2: #3D5E4A;
  --green-soft: #E3EBDD;
  --gold: #D9A441;
  --rose: #E58FA0;
  --wa: #137A3E;
  --wa-hover: #0F6533;
  --danger: #B42318;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(59, 36, 22, .05), 0 8px 24px -12px rgba(59, 36, 22, .18);
  --shadow-lg: 0 20px 50px -20px rgba(59, 36, 22, .35);
  --gutter: 16px;
  --header-h: 64px;
  --font-body: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'El Messiri', 'Tajawal', serif;
  --font-latin-display: 'Fraunces', Georgia, serif;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23A9561F' stroke-opacity='.13' stroke-width='1'%3E%3Crect x='17' y='17' width='22' height='22'/%3E%3Crect x='17' y='17' width='22' height='22' transform='rotate(45 28 28)'/%3E%3Ccircle cx='28' cy='28' r='4'/%3E%3C/g%3E%3C/svg%3E");
}
html[lang="en"] { --font-display: 'Fraunces', Georgia, serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 24px; } }

.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-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--green); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.muted { color: var(--ink-3); font-weight: 400; }
.noscript { padding: 16px; text-align: center; background: #fff3cd; }

/* ---------- Demo banner ---------- */
.demo-banner { background: #1F3328; color: #F3EBDD; font-size: 13px; line-height: 1.45; }
.demo-banner__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; padding-block: 7px; text-align: center; }
.demo-banner__tag {
  font-family: system-ui, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .08em;
  background: var(--gold); color: #1F3328; padding: 1px 7px; border-radius: 999px;
}
.demo-banner__link { color: #FFD98A; font-weight: 700; text-underline-offset: 3px; }
.demo-banner__link:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 245, 236, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 19px; white-space: nowrap; }
.brand__sub { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
html[lang="ar"] .brand__sub { font-family: var(--font-latin-display); font-style: italic; }
.site-nav { display: none; gap: 4px; margin-inline-start: auto; }
.site-nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; color: var(--ink-2); }
.site-nav a:hover { background: var(--bg-2); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.site-nav + .header-actions { margin-inline-start: 8px; }
@media (min-width: 900px) { .site-nav { display: flex; } }

.lang-toggle {
  border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px;
  padding: 7px 14px; font-weight: 700; font-size: 14px; min-height: 40px;
}
.lang-toggle:lang(ar) { font-family: 'Tajawal', sans-serif; }
.lang-toggle:hover { border-color: var(--accent); }
.header-cart {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  border: 0; background: var(--green); color: #fff; border-radius: 999px; padding: 7px 12px;
  font-weight: 700; font-size: 14px;
}
.header-cart svg { width: 20px; height: 20px; }
.header-cart__label { display: none; }
@media (min-width: 480px) { .header-cart__label { display: inline; } }
.header-cart:hover { background: var(--green-2); }

.count-badge {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 6px;
  border-radius: 999px; background: var(--gold); color: #2A1C14; font-size: 12px; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.count-badge.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; text-decoration: none; line-height: 1.2; transition: background .2s, transform .15s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-2); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); background: var(--surface); }
.btn--light { background: #FBF5EC; color: var(--green); }
.btn--light:hover { background: #fff; }
.btn--add { min-height: 44px; padding: 10px 16px; background: var(--green); color: #fff; font-size: 15px; }
.btn--add:hover { background: var(--green-2); }
.btn--wa { width: 100%; background: var(--wa); color: #fff; font-size: 17px; min-height: 54px; }
.btn--wa:hover { background: var(--wa-hover); }
.btn--wa svg { width: 22px; height: 22px; }
.btn-link { background: none; border: 0; padding: 4px 2px; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.btn-link--muted { color: var(--ink-3); font-weight: 500; font-size: 14px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(217, 164, 65, .18), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(229, 143, 160, .14), transparent 70%),
    var(--pattern), var(--bg);
}
.hero__inner { display: grid; gap: 28px; padding-block: 28px 40px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 14px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); padding: 4px 12px; border-radius: 999px;
}
.hero__title { margin-top: 14px; font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 13vw, 76px); line-height: 1.05; letter-spacing: -.01em; }
.hero__alt { display: block; margin-top: 6px; font-size: .36em; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
html[lang="ar"] .hero__alt { font-family: var(--font-latin-display); font-style: italic; }
html[lang="en"] .hero__alt { font-family: 'El Messiri', serif; }
.hero__tagline { margin-top: 14px; font-size: 18px; color: var(--ink-2); max-width: 34em; }
.hero__badges { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__badges li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; font-size: 14px; font-weight: 700;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.hero__badges li:first-child { background: var(--green); border-color: var(--green); color: #fff; }
.hero__badges .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero__ctas .btn { flex: 1 1 auto; white-space: nowrap; padding-inline: 18px; }
.hero__areas { margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.hero__areas-label { font-weight: 700; color: var(--ink); margin-inline-end: 4px; }

.hero__art { position: relative; justify-self: center; width: min(78%, 300px); }
.arch {
  aspect-ratio: 4 / 4.4; border-radius: 999px 999px 28px 28px; overflow: hidden;
  background: linear-gradient(170deg, #EEF3E3, #D6E4C4);
  border: 6px solid var(--surface); box-shadow: var(--shadow-lg);
  position: relative;
}
.arch::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .9; }
.arch__art { position: absolute; inset: 0; display: grid; place-items: end center; }
.hero-svg { width: 118%; height: auto; background: none !important; margin-bottom: -6%; }
.hero__sticker {
  position: absolute; bottom: 14%; inset-inline-start: -6px;
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: var(--gold); color: #2A1C14; text-align: center; line-height: 1.05;
  box-shadow: var(--shadow); transform: rotate(-8deg);
}
.hero__sticker strong { font-family: var(--font-latin-display); font-size: 26px; display: block; }
.hero__sticker span { font-size: 12px; font-weight: 700; display: block; padding-inline: 6px; }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.15fr .85fr; padding-block: 56px 72px; gap: 48px; }
  .hero__ctas .btn { flex: 0 0 auto; }
  .hero__art { width: 100%; max-width: 400px; }
}

/* ---------- Sections ---------- */
.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 6vw, 36px); }
.section-sub { margin-top: 6px; color: var(--ink-2); }

.how { padding-block: 36px; background: var(--surface); border-block: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; counter-reset: s; }
.step { position: relative; padding: 18px 18px 18px; padding-inline-start: 70px; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--line); }
.step__num {
  position: absolute; inset-inline-start: 16px; top: 18px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 800; font-size: 18px;
  font-family: var(--font-latin-display);
}
.step:nth-child(2) .step__num { background: var(--wa); }
.step:nth-child(3) .step__num { background: var(--accent); }
.step h3 { font-size: 18px; font-weight: 700; font-family: var(--font-body); }
.step p { margin-top: 4px; color: var(--ink-2); font-size: 15px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

/* ---------- Menu ---------- */
.menu-section { padding-block: 40px 56px; }
.menu-layout { display: grid; gap: 32px; align-items: start; }
.menu-col { min-width: 0; }
@media (min-width: 1024px) { .menu-layout { grid-template-columns: minmax(0, 1fr) 380px; } }

.cat-nav {
  position: sticky; top: var(--header-h); z-index: 20;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 16px calc(var(--gutter) * -1) 0; padding: 10px var(--gutter);
  background: linear-gradient(var(--bg) 80%, rgba(251, 245, 236, 0));
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a {
  flex: none; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap;
}
.cat-nav a:hover { border-color: var(--accent); color: var(--ink); }
.cat-nav a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.menu-cat { padding-top: 22px; }
.menu-cat__title {
  display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 14px;
}
.menu-cat__title::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }

.cards { display: grid; gap: 14px; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }

.card {
  display: grid; grid-template-columns: 104px minmax(0, 1fr);
  grid-template-areas: "art head" "opts opts" "foot foot";
  gap: 12px 14px; padding: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.card__art { grid-area: art; position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; align-self: start; }
.card__art svg { width: 100%; height: 100%; }
.card__badge {
  position: absolute; top: 6px; inset-inline-start: 6px; max-width: calc(100% - 12px);
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card__head { grid-area: head; min-width: 0; }
.card__name { font-size: 17px; font-weight: 800; line-height: 1.3; }
.card__desc { margin-top: 4px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.card__opts { grid-area: opts; display: grid; gap: 10px; }
.card__foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 2px; }
@media (min-width: 600px) {
  .card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "head" "opts" "foot"; grid-template-rows: auto auto 1fr auto; padding: 14px; }
  .card__art { aspect-ratio: 16 / 10; }
  .card__badge { top: 10px; inset-inline-start: 10px; font-size: 12px; padding: 3px 10px; }
  .card__name { font-size: 18px; }
  .card__opts { align-content: start; }
}

.opt { border: 0; margin: 0; padding: 0; min-width: 0; }
.opt legend { padding: 0; font-size: 13px; font-weight: 700; color: var(--ink-3); margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1.4;
  background: var(--bg); border: 1px solid var(--line-2); color: var(--ink-2); transition: background .15s, color .15s, border-color .15s;
}
.chip small { font-size: 12px; opacity: .85; font-variant-numeric: tabular-nums; }
.chip input:hover + span { border-color: var(--accent); }
.chip input:checked + span { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.price { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.price__num { font-family: var(--font-latin-display); font-weight: 600; font-size: 22px; font-variant-numeric: tabular-nums; }
.price__cur { font-size: 13px; font-weight: 700; color: var(--ink-3); }

/* ---------- Order panel ---------- */
.order-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; outline: none;
}
.order-panel:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.order-panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.order-panel__head h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.order-panel__body { padding: 14px 18px 18px; overflow-y: auto; overscroll-behavior: contain; }
.order-empty { padding: 14px; text-align: center; color: var(--ink-2); background: var(--bg); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); font-size: 15px; }

.order-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.line__art { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; }
.line__art svg { width: 100%; height: 100%; }
.line__top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.line__name { font-weight: 800; font-size: 15px; line-height: 1.35; }
.line__price { font-weight: 700; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.line__opts { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.line__controls { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); }
.stepper button { width: 36px; height: 36px; border: 0; background: none; font-size: 20px; font-weight: 700; line-height: 1; border-radius: 999px; color: var(--green); }
.stepper button:hover { background: var(--green-soft); }
.stepper output { min-width: 28px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.line__note {
  margin-top: 8px; width: 100%; font-size: 16px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg);
}
.line__note::placeholder { color: var(--ink-3); opacity: .9; font-size: 14px; }

.order-form { margin-top: 18px; display: grid; gap: 12px; }
.order-form__title { font-size: 16px; font-weight: 800; }
.field { display: grid; gap: 5px; min-width: 0; align-content: start; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field input, .field select {
  width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border-radius: 12px; font-size: 16px;
  border: 1px solid var(--line-2); background: #fff;
}
.field select { appearance: none; -webkit-appearance: none; padding-inline-end: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%235F4B3D' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: right 12px center; }
html[dir="rtl"] .field select { background-position: left 12px center; }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); background-color: #FFF6F5; }
.field-error { color: var(--danger); font-size: 13px; font-weight: 700; }
.field-error:empty { display: none; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.hint { font-size: 13px; color: var(--ink-3); }
.field input::placeholder { color: var(--ink-3); opacity: .7; }
html[dir="rtl"] .field input[dir="ltr"] { text-align: right; } /* phone digits stay LTR but line up with the label */
.opt-tag { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.order-form [hidden] { display: none !important; }

/* Grouped fields: address box and payment choice */
.order-form { container-type: inline-size; }
.group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.group__title { padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 800; color: var(--ink); }
.addr { padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.addr .group__title { float: left; width: 100%; margin-bottom: 0; } /* float = legend sits inside the box, not on its border */
.precise { display: grid; gap: 10px; padding-bottom: 12px; border-bottom: 1px dashed var(--line-2); }
@container (min-width: 460px) { .precise { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.addr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
@container (min-width: 460px) { .addr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.btn--sm { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.loc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.loc .btn { background: var(--surface); }
.loc__status { font-size: 14px; color: var(--ink-2); min-width: 0; }
.loc__status:empty { display: none; }
.loc__ok { color: var(--green); font-weight: 700; }
.loc__status .btn-link { padding: 0 2px; font-size: 14px; }
.loc__fill { flex-basis: 100%; font-size: 14px; font-weight: 700; line-height: 1.5; }
.loc__fill:empty { display: none; }
.loc__fill--ok { color: var(--green); }
.loc__fill--warn { color: #8A4517; }
.loc__fill--busy { color: var(--ink-3); font-weight: 500; }
.field input.is-autofilled, .field select.is-autofilled { animation: autofilled 2.6s ease; }
@keyframes autofilled { 0%, 60% { background-color: #FFF1C9; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 164, 65, .35); } }

.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; cursor: pointer; }
.check input, .pay-opt input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--green); cursor: pointer; }
.gift { display: grid; gap: 8px; }

.pay-opts { display: grid; gap: 8px; }
.pay-opt {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 15px; line-height: 1.4;
  transition: border-color .15s, background .15s;
}
.pay-opt:hover { border-color: var(--accent); }
.pay-opt:has(input:checked) { border-color: var(--green); background: var(--green-soft); font-weight: 700; }
.group[aria-invalid="true"] .pay-opt { border-color: var(--danger); background: #FFF6F5; }
.order-confirm { flex-basis: 100%; text-align: center; font-weight: 700; color: var(--ink); line-height: 1.5; }
.order-confirm bdi { font-family: var(--font-latin-display); font-size: 19px; color: var(--green); white-space: nowrap; }
.order-confirm small { display: block; font-weight: 500; font-size: 13px; color: var(--ink-2); }

.totals { margin: 4px 0 0; padding: 14px; background: var(--bg); border-radius: var(--radius-sm); display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.totals__grand { padding-top: 8px; margin-top: 2px; border-top: 1px dashed var(--line-2); }
.totals__grand dt { color: var(--ink); font-weight: 800; }
.totals__grand dd { font-size: 19px; font-weight: 800; }

.form-error { color: var(--danger); font-weight: 700; font-size: 14px; text-align: center; }
.form-error:empty { display: none; }
.demo-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--ink-3); text-align: center; }
.demo-note__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.wa-fallback { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 14px; padding: 10px; border-radius: 12px; background: var(--green-soft); }
.wa-fallback[hidden] { display: none; }
.wa-fallback a { color: var(--green); font-weight: 700; text-underline-offset: 3px; }
.wa-fallback .receipt-link { flex-basis: 100%; text-align: center; }

/* WAMD instructions (inside the payment group) */
.wamd-box { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: var(--accent-soft); border: 1px solid #EBCBA6; font-size: 15px; line-height: 1.55; }
.wamd-box bdi { font-weight: 800; white-space: nowrap; }
.wamd-box__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wamd-box .btn { background: var(--surface); }

/* "Pay now with KNET (test)" */
.knet-pay { display: grid; gap: 6px; }
.btn--knet { width: 100%; background: var(--surface); color: var(--green); border: 1.5px solid var(--green); font-size: 16px; min-height: 50px; }
.btn--knet:hover { background: var(--green-soft); }
.btn--knet:disabled { cursor: progress; opacity: .85; }
.spinner { display: none; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2.5px solid currentColor; border-inline-end-color: transparent; animation: spin .8s linear infinite; }
.is-busy .spinner { display: inline-block; }
.is-busy svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.knet-note { font-size: 12.5px; color: var(--ink-3); text-align: center; line-height: 1.45; }
.knet-msg { font-size: 14px; font-weight: 700; color: var(--danger); text-align: center; line-height: 1.5; }
.knet-msg:empty { display: none; }

/* Desktop: panel sits next to the menu */
@media (min-width: 1024px) {
  .order-panel { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); }
  .order-close { display: none; }
}

/* Mobile/tablet: panel becomes a bottom sheet */
@media (max-width: 1023.98px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .order-panel {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
    max-height: 92vh; max-height: 92dvh; border-radius: 24px 24px 0 0; border-bottom: 0;
    transform: translateY(105%); visibility: hidden;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s;
  }
  .order-panel__head { position: relative; padding-top: 22px; }
  .order-panel__head::before {
    content: ""; position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px;
    border-radius: 99px; background: var(--line-2);
  }
  .order-panel__body { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .sheet-open .order-panel { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
  .sheet-open { overflow: hidden; }
  .order-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(42, 28, 20, .45); }
  .order-backdrop[hidden] { display: none; }
}
@media (min-width: 640px) and (max-width: 1023.98px) {
  .order-panel { left: 50%; right: auto; width: 560px; margin-left: -280px; }
}

/* Sticky mobile order bar */
.mobile-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(251, 245, 236, 0), var(--bg) 35%);
}
.mobile-bar__btn {
  width: 100%; max-width: 560px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 8px 10px 8px 18px; border: 0; border-radius: 999px;
  background: var(--green); color: #fff; font-weight: 800; font-size: 16px; box-shadow: var(--shadow-lg);
}
html[dir="rtl"] .mobile-bar__btn { padding: 8px 18px 8px 10px; }
.mobile-bar__count { display: inline-flex; align-items: center; gap: 10px; }
.mobile-bar__total { background: rgba(255, 255, 255, .14); padding: 8px 14px; border-radius: 999px; font-variant-numeric: tabular-nums; white-space: nowrap; }
body:not(.has-items) .mobile-bar__btn { background: var(--ink); }
.sheet-open .mobile-bar { visibility: hidden; }
@media (min-width: 1024px) { .mobile-bar { display: none; } }

/* ---------- Info ---------- */
.info { padding-block: 48px; background: var(--bg-2); background-image: var(--pattern); }
.info-grid { display: grid; gap: 14px; margin-top: 20px; }
@media (min-width: 768px) { .info-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; } }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 10px; align-content: start; }
.info-card h3 { font-size: 18px; font-weight: 800; }
.area-list { list-style: none; margin: 0; padding: 0; display: grid; }
.area-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.area-list li:last-child { border-bottom: 0; }
.area-fee { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours { margin: 0; display: grid; gap: 8px; }
.hours div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px; padding: 10px 12px; background: var(--bg); border-radius: 10px; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; color: var(--ink-2); }
.info-card--ig { background: linear-gradient(160deg, #FFFDF9, #FBEDE6); }
.ig-handle { font-family: var(--font-latin-display); font-size: 22px; font-weight: 600; color: var(--accent); text-align: start; }
html[dir="rtl"] .ig-handle { text-align: right; }
.info-card--ig .btn { justify-self: start; }

/* ---------- FAQ ---------- */
.faq { padding-block: 48px; }
.faq__inner { max-width: 820px; }
.faq-list { margin-top: 18px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); font-size: 18px; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline-offset: -3px; border-radius: 16px; }
.faq details p { padding: 0 18px 18px; color: var(--ink-2); }

/* ---------- Pitch & footer ---------- */
.pitch { background: var(--green); color: #F3EBDD; padding-block: 36px; }
.pitch__inner { display: grid; gap: 18px; align-items: center; }
.pitch__eyebrow { font-size: 13px; font-weight: 700; color: var(--gold); }
.pitch h2 { font-family: var(--font-display); font-size: clamp(24px, 5.5vw, 32px); color: #fff; margin-top: 4px; }
.pitch p:not(.pitch__eyebrow) { margin-top: 6px; max-width: 40em; }
.pitch .btn { justify-self: start; }
@media (min-width: 768px) { .pitch__inner { grid-template-columns: 1fr auto; } }

.site-footer { padding-block: 24px; font-size: 13px; color: var(--ink-3); text-align: center; display: grid; }
.site-footer p + p { margin-top: 4px; }
.site-footer a { color: var(--accent); font-weight: 700; }
.site-footer .footer-shop { margin-top: 10px; font-size: 12px; }
.site-footer .footer-shop a { color: var(--ink-3); font-weight: 500; text-underline-offset: 3px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 80;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow-lg); transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1024px) { .toast { bottom: 28px; } }

/* Desktop refinements */
@media (min-width: 1024px) {
  .cat-nav { margin-inline: -8px; padding-inline: 8px; }
  .info-grid { align-items: start; }
}

/* =====================================================================
 * Sub-pages: receipt.html and confirm.html (shop helper)
 * ===================================================================== */
body.subpage { padding-bottom: 0; }
.sub-main { padding-block: 24px 48px; display: grid; gap: 18px; }
.sub-back { text-align: center; font-size: 14px; }
.sub-back a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.sub-empty { padding: 18px; text-align: center; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--ink-2); }
.sub-empty[hidden], .pay-panel[hidden], .receipt[hidden], .rc-actions[hidden] { display: none; }

/* ---------- Receipt ---------- */
.receipt-main { max-width: 680px; }
.receipt {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.receipt__head {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px 16px;
  background: var(--green); color: #fff; border-bottom: 4px solid var(--gold);
}
.receipt__markwrap { flex: none; width: 46px; height: 46px; }
.receipt__mark { width: 46px; height: 46px; }
.receipt__brand { min-width: 0; line-height: 1.15; }
.receipt__name { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.receipt__alt { font-size: 13px; color: #F3D9A0; }
html[lang="ar"] .receipt__alt { font-family: var(--font-latin-display); font-style: italic; }
.receipt__kind { margin-inline-start: auto; font-weight: 700; font-size: 14px; color: var(--gold); text-align: end; }
.receipt__top { display: grid; justify-items: center; gap: 4px; padding: 22px 20px 18px; text-align: center; border-bottom: 1px dashed var(--line-2); }
.receipt__label { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.receipt__no { font-family: var(--font-latin-display); font-weight: 600; font-size: clamp(34px, 10vw, 46px); line-height: 1.1; letter-spacing: .01em; }
.receipt__date { font-size: 14px; color: var(--ink-2); }
.status-pill { margin-top: 8px; display: inline-block; padding: 5px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.status-pill--wait { background: var(--accent-soft); color: #8A4517; }
.status-pill--ok { background: var(--green-soft); color: var(--green); }
.status-pill--bad { background: #FBE4E1; color: var(--danger); }

.receipt__items { width: calc(100% - 40px); margin: 14px 20px 0; border-collapse: collapse; font-size: 15px; }
.receipt__items th { font-size: 12.5px; font-weight: 700; color: var(--ink-3); padding: 6px 0 8px; border-bottom: 1px solid var(--line); text-align: start; }
.receipt__items td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.receipt__items .c-qty { width: 54px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.receipt__items .c-amt { width: 104px; text-align: end; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt__items th.c-qty { text-align: center; }
.receipt__items th.c-amt { text-align: end; }
.receipt__item { display: block; font-weight: 800; line-height: 1.35; }
.receipt__opts { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.receipt__note { display: block; font-size: 13px; color: var(--accent); font-weight: 500; margin-top: 2px; }
.receipt__totals { margin: 12px 20px 4px; display: grid; gap: 4px; }
.receipt__totals div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.receipt__totals dt { color: var(--ink-2); }
.receipt__totals dd { margin: 0; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt__totals .is-grand { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: 19px; }
.receipt__totals .is-grand dt { color: var(--ink); font-weight: 800; }
.receipt__totals .is-grand dd { font-weight: 800; }
.receipt__sec { margin: 14px 20px 0; }
.receipt__sec h2 { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; color: var(--accent); margin-bottom: 6px; }
.receipt__sec h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.receipt__sec dl { margin: 0; display: grid; gap: 4px; }
.receipt__sec dl div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; font-size: 15px; }
.receipt__sec dt { color: var(--ink-3); font-size: 14px; }
.receipt__sec dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
html[dir="rtl"] .receipt__sec dd[dir="ltr"] { text-align: right; }
.receipt__sec dd a { color: var(--green); font-weight: 700; text-underline-offset: 3px; }
.receipt__foot { margin-top: 18px; padding: 14px 20px 18px; border-top: 1px dashed var(--line-2); text-align: center; font-size: 12.5px; color: var(--ink-3); background: var(--bg); }
.receipt__foot-main { font-weight: 700; font-size: 14px; color: var(--ink-2); }

.rc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rc-actions .btn { padding-inline: 14px; }
.rc-actions .btn--primary { grid-column: 1 / -1; }
.rc-actions .btn--ghost { background: var(--surface); }
@media (min-width: 560px) { .rc-actions { grid-template-columns: auto auto auto; justify-content: center; } .rc-actions .btn--primary { grid-column: auto; } }

/* KNET result panel */
.pay-panel { display: grid; gap: 8px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.pay-panel--ok { border-color: #B9CDB2; background: var(--green-soft); }
.pay-panel--wait { border-color: #EBCBA6; background: #FCF1E3; }
.pay-panel--bad { border-color: #F1C3BD; background: #FFF6F5; }
.pay-panel__title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.pay-panel--ok .pay-panel__title { color: var(--green); }
.pay-panel--bad .pay-panel__title { color: var(--danger); }
.pay-panel .spinner { display: inline-block; color: var(--accent); }
.pay-panel__text { color: var(--ink-2); font-size: 15px; }
.pay-panel__info { margin: 2px 0 0; display: grid; gap: 2px; font-size: 14px; }
.pay-panel__info div { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.pay-panel__info dt { color: var(--ink-3); }
.pay-panel__info dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.pay-panel__warn { font-size: 14px; font-weight: 700; color: #8A4517; }
.pay-panel__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pay-panel__actions .btn { flex: 1 1 auto; }
.pay-panel__actions .btn--wa { width: auto; font-size: 16px; }
.pay-panel__actions .btn--ghost { background: var(--surface); }
.pay-panel__test { font-size: 12px; color: var(--ink-3); }
.pay-panel__msg { font-size: 14px; font-weight: 700; color: var(--danger); }
.pay-panel__msg:empty { display: none; }

/* ---------- Shop helper (confirm.html) ---------- */
.helper-main { max-width: 1100px; }
.helper__intro { display: grid; gap: 8px; justify-items: start; }
.helper__intro h1 { font-family: var(--font-display); font-size: clamp(26px, 6vw, 36px); }
.helper__intro p:not(.eyebrow) { color: var(--ink-2); max-width: 46em; }
.helper-grid { display: grid; gap: 18px; align-items: start; }
@media (min-width: 900px) { .helper-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.helper-card { display: grid; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.helper-card h2 { font-size: 17px; font-weight: 800; }
.helper-card .field textarea, .helper-card .field input {
  width: 100%; min-width: 0; padding: 10px 12px; border-radius: 12px; font-size: 16px;
  border: 1px solid var(--line-2); background: #fff; line-height: 1.5;
}
.helper-card .field input { min-height: 46px; }
.helper-card textarea { resize: vertical; }
#orderText { min-height: 200px; font-size: 14px; }
.helper-card .field textarea:focus-visible, .helper-card .field input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.helper-card [aria-invalid="true"] { border-color: var(--danger) !important; background-color: #FFF6F5 !important; }
.helper-samples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; color: var(--ink-3); }
.helper-samples .btn-link { font-size: 14px; padding: 2px; }
.parse-status { font-size: 14px; font-weight: 700; }
.parse-status:empty { display: none; }
.parse-status.is-ok { color: var(--green); }
.parse-status.is-bad { color: var(--danger); }
.parsed { margin: 0; display: grid; gap: 4px; padding: 12px 14px; background: var(--bg); border-radius: var(--radius-sm); font-size: 14px; }
.parsed[hidden] { display: none; }
.parsed div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; }
.parsed dt { color: var(--ink-3); }
.parsed dd { margin: 0; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.parsed ul { margin: 0; padding-inline-start: 18px; font-weight: 500; }
.out {
  margin: 0; padding: 14px; min-height: 160px; background: #E7F3EA; border: 1px solid #C3DEC9; border-radius: 14px;
  white-space: pre-wrap; overflow-wrap: anywhere; font: 15px/1.6 var(--font-body); color: var(--ink);
}
.out:empty::before { content: attr(data-empty); color: var(--ink-3); }
.helper-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 480px) { .helper-actions { grid-template-columns: auto 1fr; } }
.helper-actions .btn--wa { font-size: 16px; min-height: 48px; }
.helper-actions .btn--ghost { background: var(--surface); }
.selftest { padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font: 13px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.selftest[hidden] { display: none; }

/* ---------- Print: only the receipt ---------- */
@media print {
  @page { margin: 12mm; }
  body.subpage { background: #fff; }
  .subpage .demo-banner, .subpage .site-header, .rc-actions, .sub-back, .pay-panel, .toast, .sub-empty, .skip-link { display: none !important; }
  .sub-main { padding: 0; }
  .receipt-main { max-width: none; }
  .receipt { box-shadow: none; border: 1px solid #ccc; border-radius: 0; break-inside: auto; }
  .receipt__head, .status-pill, .receipt__foot { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .receipt__items tr { break-inside: avoid; }
  .receipt__sec dd a { color: inherit; text-decoration: none; }
}
