/* El Classico Resto — styles (mobile-first, logical properties for RTL) */

:root {
  --ink: #0f1113;
  --ink-2: #16191c;
  --slate: #3f5561;
  --slate-2: #2b3a43;
  --cream: #f5efe6;
  --cream-2: #ebe2d4;
  --paper: #fbf8f3;
  --accent: #c8862a;
  --accent-hover: #d99a3d;
  --accent-ink: #8a5a17;   /* accent text on light backgrounds (AA) */
  --wa: #25d366;
  --wa-hover: #3be07a;

  --text: #1b1d1f;
  --muted: #555b61;
  --line: rgba(15, 17, 19, 0.14);
  --line-strong: rgba(15, 17, 19, 0.28);
  --focus: #8a5a17;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 60px;
  --chips-h: 60px;
  --container: 1120px;
  --gutter: 16px;
  --shadow: 0 10px 30px rgba(15, 17, 19, 0.12);
}

html[lang="ar"] {
  --font-display: Cairo, "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  --font-body: Cairo, "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
}

/* Hide the page while an Arabic visitor's translations load (avoids a flash of French).
   Fails open after 2s even without JavaScript. */
.i18n-pending body { visibility: hidden; animation: reveal 0s 2s forwards; }
@keyframes reveal { to { visibility: visible; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.dark { --focus: #e7ae57; }

.sr-only {
  position: absolute; 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(--cream); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 10px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.mt { margin-block-start: 1.75rem; }

.icon { width: 22px; height: 22px; flex: none; }
[dir="rtl"] .flip-rtl, [dir="rtl"] .cat-arrow { transform: scaleX(-1); }

.price { direction: ltr; unicode-bidi: isolate; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.25rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-wa { background: var(--wa); color: var(--ink); }
.btn-wa:hover { background: var(--wa-hover); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--slate-2); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); }
.dark .btn-outline { color: var(--cream); border-color: rgba(245, 239, 230, 0.4); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 999px; background: transparent; color: inherit;
}
.icon-btn:hover { background: rgba(15, 17, 19, 0.07); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(15, 17, 19, 0.96); color: var(--cream);
  border-block-end: 1px solid rgba(245, 239, 230, 0.08);
  --focus: #e7ae57;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(15, 17, 19, 0.86); backdrop-filter: blur(10px); }
}
.header-inner { display: flex; align-items: center; gap: 0.5rem; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; direction: ltr; min-height: 44px; white-space: nowrap; }
.logo-main { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 600; font-size: 1.3rem; letter-spacing: 0.01em; }
.logo-sub { font-family: Inter, system-ui, sans-serif; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); padding-block-start: 0.2rem; }
.header-nav { display: flex; gap: 0.25rem; margin-inline-start: auto; }
.header-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.75rem;
  text-decoration: none; font-weight: 500; border-radius: 999px; color: rgba(245, 239, 230, 0.9);
}
.header-nav a:hover { color: #fff; background: rgba(245, 239, 230, 0.08); }
.lang-toggle {
  min-height: 44px; min-width: 44px; padding-inline: 0.9rem;
  border: 1.5px solid rgba(245, 239, 230, 0.35); border-radius: 999px; background: transparent; color: var(--cream);
  font-weight: 600; font-size: 1rem;
}
.lang-toggle[lang="ar"] { font-family: Cairo, "Segoe UI", Tahoma, sans-serif; }
.lang-toggle[lang="fr"] { font-family: Inter, system-ui, sans-serif; }
.lang-toggle:hover { border-color: var(--accent); }
@media (max-width: 420px) { .header-nav .hide-sm { display: none; } }

/* ---------- Sections ---------- */
.dark { background: var(--ink); color: var(--cream); }
.light { background: var(--cream); }
.section { padding-block: 4rem; }
.section-head { text-align: center; margin-block-end: 2.25rem; }
.section-head h2 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.section-head h2::after {
  content: ""; display: block; width: 48px; height: 2px; margin: 0.9rem auto 0; background: var(--accent);
}
.section-lead { margin-block-start: 0.9rem; color: var(--muted); }
.dark .section-lead { color: #c9c2b8; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(78svh, 680px);
  display: grid; align-items: center;
  padding-block: 4.5rem 4rem;
  background:
    radial-gradient(120% 80% at 15% 0%, rgba(63, 85, 97, 0.55), transparent 60%),
    radial-gradient(90% 70% at 100% 100%, rgba(200, 134, 42, 0.14), transparent 60%),
    var(--ink);
}
/* marble veins, drawn in CSS (no image to download) */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.9;
  background:
    linear-gradient(118deg, transparent 38%, rgba(255, 255, 255, 0.07) 38.4%, transparent 39.6%),
    linear-gradient(104deg, transparent 58%, rgba(255, 255, 255, 0.05) 58.3%, transparent 59.2%),
    linear-gradient(152deg, transparent 70%, rgba(255, 255, 255, 0.06) 70.3%, transparent 71.4%),
    linear-gradient(28deg, transparent 20%, rgba(255, 255, 255, 0.035) 20.2%, transparent 21%);
}
.hero-inner { text-align: center; display: grid; justify-items: center; gap: 1.25rem; }
.wordmark { display: grid; justify-items: center; gap: 0.35rem; font-weight: 600; }
.wordmark-main {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-style: italic; font-weight: 600;
  font-size: clamp(3rem, 14vw, 6.5rem); line-height: 1; letter-spacing: -0.01em;
}
.wordmark-sub {
  display: flex; align-items: center; gap: 0.9rem;
  font-family: Inter, system-ui, sans-serif; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.5em; text-transform: uppercase; color: var(--accent); padding-inline-start: 0.5em;
}
.wordmark-sub::before, .wordmark-sub::after { content: ""; width: 36px; height: 1px; background: rgba(200, 134, 42, 0.7); }
.hero-tagline { font-size: clamp(1.1rem, 3.6vw, 1.35rem); color: #e6ded2; max-width: 32ch; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-block-start: 0.5rem; }
.hero-actions .btn { min-width: 220px; }
.hero-note { font-size: 1rem; color: #bdb5aa; }

/* ---------- Status badge ---------- */
.status {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.45rem 0.95rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1px solid rgba(245, 239, 230, 0.22); background: rgba(245, 239, 230, 0.06);
}
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9aa3a8; flex: none; }
.status.is-open::before { background: #3fd07a; box-shadow: 0 0 0 4px rgba(63, 208, 122, 0.18); }
.status.is-closed::before { background: #e0705a; }
.status-light { border-color: var(--line); background: var(--paper); margin-block-start: 1rem; }
.status-light.is-open::before { background: #1f9a55; }
.status-light.is-closed::before { background: #b6452e; }

/* ---------- Category grid ---------- */
.cat-grid { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; gap: 0.85rem; }
.cat-card {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto;
  column-gap: 1rem; align-items: center;
  padding: 1.15rem 1.25rem; min-height: 88px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-num { grid-row: 1 / 3; font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: 1.1rem; color: var(--accent-ink); }
.cat-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.25; }
.cat-sub { grid-column: 2; color: var(--muted); font-size: 1rem; line-height: 1.45; }
.cat-arrow { grid-column: 3; grid-row: 1 / 3; color: var(--accent-ink); transition: translate 0.2s; }
.cat-card:hover .cat-arrow { translate: 3px 0; }
[dir="rtl"] .cat-card:hover .cat-arrow { translate: -3px 0; }

@media (min-width: 640px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(5, 1fr); }
  .cat-card { grid-template-columns: 1fr auto; grid-template-rows: auto auto 1fr; align-items: start; row-gap: 0.4rem; min-height: 200px; padding: 1.5rem; }
  .cat-num { grid-row: 1; grid-column: 1; }
  .cat-name { grid-row: 2; grid-column: 1 / -1; }
  .cat-sub { grid-row: 3; grid-column: 1 / -1; }
  .cat-arrow { grid-row: 1; grid-column: 2; }
}

/* ---------- Gallery ---------- */
.gallery-section { background: var(--ink-2); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.shot { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: #22272b; }
.shot-wide { grid-column: 1 / -1; }
.shot-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.5s ease; }
.shot-wide img { aspect-ratio: 5 / 4; }
.shot-btn:hover img { transform: scale(1.03); }
.shot figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 2.5rem 1rem 0.85rem; pointer-events: none;
  background: linear-gradient(transparent, rgba(15, 17, 19, 0.85));
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: #fff;
}
.shot-btn:focus-visible { outline-offset: -4px; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .shot-wide { grid-column: auto; }
  .shot-wide img, .shot img { aspect-ratio: 4 / 5; }
}

.zoom {
  padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; margin: 0;
  display: none; place-items: center;
}
.zoom[open] { display: grid; }
.zoom::backdrop { background: rgba(8, 9, 10, 0.92); }
.zoom img { max-width: min(94vw, 1400px); max-height: 88vh; width: auto; height: auto; border-radius: var(--radius-sm); object-fit: contain; }
.zoom-close { position: fixed; top: 12px; inset-inline-end: 12px; background: rgba(245, 239, 230, 0.14); color: #fff; --focus: #e7ae57; }
.zoom-close:hover { background: rgba(245, 239, 230, 0.26); }

/* ---------- Info ---------- */
.info-grid { display: grid; gap: 1rem; }
@media (min-width: 860px) { .info-grid { grid-template-columns: 1.1fr 1fr; gap: 1.5rem; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { font-size: 1.35rem; margin-block-end: 0.85rem; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.55rem; border-block-end: 1px dashed var(--line); }
.hours li:last-child { border-block-end: 0; }
.hours .time { font-weight: 600; }
.address { margin-block-start: 1rem; }
.phone-line { font-size: 1.2rem; font-weight: 600; margin-block-end: 1rem; }
.phone-line a { text-decoration: none; }
.phone-line a:hover { text-decoration: underline; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.steps { margin: 0 0 1.25rem; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 0.8rem; }
.steps li { counter-increment: step; display: flex; gap: 0.85rem; align-items: baseline; }
.steps li::before {
  content: counter(step); flex: none; display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--cream);
  font-weight: 600; font-size: 1rem; translate: 0 -1px;
}
.note {
  padding: 0.85rem 1rem; margin-block-end: 1.25rem; border-radius: var(--radius-sm);
  background: var(--cream); border-inline-start: 3px solid var(--accent); color: var(--text);
}

/* ---------- Footer ---------- */
.site-footer { padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; justify-items: center; gap: 0.6rem; text-align: center; }
.logo-static { min-height: 0; }
.site-footer a { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.site-footer a:hover { text-decoration: underline; }
.footer-small { font-size: 1rem; color: #b4ada3; }
[data-page="menu"] .site-footer { padding-block-end: calc(6.5rem + env(safe-area-inset-bottom)); }

/* ---------- Menu page ---------- */
.menu-hero { padding-block: 2.5rem 2.25rem; text-align: center; background:
  radial-gradient(100% 120% at 10% 0%, rgba(63, 85, 97, 0.5), transparent 60%), var(--ink); }
.menu-hero h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); font-style: italic; }
html[lang="ar"] .menu-hero h1 { font-style: normal; }
.menu-lead { color: #d4ccc0; margin: 0.75rem auto 1.1rem; max-width: 46ch; }

.chips {
  position: sticky; top: var(--header-h); z-index: 20;
  background: var(--cream); border-block-end: 1px solid var(--line);
  box-shadow: 0 6px 16px -12px rgba(15, 17, 19, 0.35);
}
.chips-list {
  list-style: none; margin: 0 auto; display: flex; gap: 0.5rem; overflow-x: auto; overscroll-behavior-x: contain;
  padding-block: 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips-list::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 1rem; white-space: nowrap;
  border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  text-decoration: none; font-weight: 500; font-size: 1rem; color: var(--text);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.menu-body { background: var(--paper); padding-block: 1rem 3rem; }
.menu-container { max-width: 780px; }
.menu-loading, .menu-error { padding-block: 3rem; text-align: center; color: var(--muted); }

.menu-section { padding-block: 2.25rem 0.5rem; scroll-margin-top: calc(var(--header-h) + var(--chips-h) + 8px); }
.menu-section + .menu-section { border-block-start: 1px solid var(--line); }
.menu-section h2 {
  display: flex; align-items: center; gap: 1rem; justify-content: center; text-align: center;
  font-size: clamp(1.65rem, 5vw, 2.1rem); margin-block-end: 1.25rem;
}
.menu-section h2::before, .menu-section h2::after { content: ""; flex: 0 1 60px; height: 1px; background: var(--accent); }
.section-note { text-align: center; color: var(--muted); margin: -0.5rem auto 1.25rem; max-width: 46ch; font-size: 1rem; }

.items { list-style: none; margin: 0; padding: 0; }
.item {
  display: grid; grid-template-columns: 1fr auto; column-gap: 0.75rem; align-items: center;
  padding-block: 0.8rem; border-block-end: 1px solid rgba(15, 17, 19, 0.07);
}
.item:last-child { border-block-end: 0; }
.item-main { min-width: 0; }
.item-line { display: flex; align-items: baseline; gap: 0.5rem; }
.item-name { font-family: var(--font-body); font-size: 1.06rem; font-weight: 600; line-height: 1.35; min-width: 0; }
.item-alt { display: block; font-weight: 400; font-size: 1rem; color: var(--muted); font-family: Inter, system-ui, sans-serif; }
.leader { flex: 1 1 1.25rem; min-width: 1.25rem; border-block-end: 2px dotted rgba(15, 17, 19, 0.35); translate: 0 -0.3em; }
.item-price { font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.item-desc { margin-block-start: 0.2rem; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.add-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  width: 44px; height: 44px; padding: 0; border-radius: 999px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-weight: 600;
  transition: background-color 0.15s, color 0.15s;
}
.add-btn:hover { background: var(--ink); color: var(--cream); }
.add-btn .add-text { display: none; }
@media (min-width: 600px) {
  .add-btn { width: auto; padding-inline: 0.9rem 1.05rem; }
  .add-btn .add-text { display: inline; }
  .add-btn .icon { width: 18px; height: 18px; }
}
.item-static { grid-template-columns: 1fr; }

/* ---------- Cart bar ---------- */
.cart-bar-wrap {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 25;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.cart-bar {
  pointer-events: auto; display: flex; align-items: center; gap: 0.75rem; width: 100%; max-width: 560px; margin-inline: auto;
  min-height: 60px; padding: 0.6rem 1rem 0.6rem 1.1rem; border: 0; border-radius: 16px;
  background: var(--ink); color: var(--cream); box-shadow: 0 14px 34px rgba(15, 17, 19, 0.35);
  text-align: start; --focus: #e7ae57;
}
.cart-bar:hover { background: #1c2024; }
.cart-bar-sum { font-weight: 600; flex: 1; }
.cart-bar-open { display: inline-flex; align-items: center; gap: 0.2rem; color: var(--accent); font-weight: 600; font-size: 1rem; }
.cart-bar.bump { animation: bump 0.35s ease; }
@keyframes bump { 40% { transform: scale(1.03); } }

.toast {
  position: fixed; inset-inline: 0; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 26;
  width: max-content; max-width: calc(100% - 32px); margin-inline: auto;
  padding: 0.6rem 1rem; border-radius: 999px; background: var(--slate); color: #fff; font-weight: 500;
  opacity: 0; translate: 0 8px; transition: opacity 0.2s, translate 0.2s; pointer-events: none;
}
.toast.show { opacity: 1; translate: 0 0; }
.toast:empty { display: none; }

/* ---------- Sheets (dialogs) ---------- */
.sheet {
  padding: 0; border: 0; color: var(--text); background: var(--paper);
  width: 100%; max-width: 100%; max-height: 92svh;
  margin: auto 0 0; border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}
.sheet[open] { animation: sheet-up 0.25s ease-out; }
.sheet::backdrop { background: rgba(8, 9, 10, 0.55); }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } }
@media (min-width: 768px) {
  .sheet { margin: auto; width: min(540px, calc(100% - 48px)); max-height: 86vh; border-radius: 20px; }
}
.sheet-inner { display: flex; flex-direction: column; max-height: inherit; }
.sheet-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
  padding: 1.1rem 1rem 0.9rem 1.25rem; border-block-end: 1px solid var(--line);
}
[dir="rtl"] .sheet-head { padding: 1.1rem 1.25rem 0.9rem 1rem; }
.sheet-title { font-size: 1.45rem; padding-block-start: 0.35rem; }
.sheet-desc { color: var(--muted); font-size: 1rem; margin-block-start: 0.3rem; }
.sheet-desc:empty { display: none; }
.sheet-body { overflow-y: auto; padding: 1rem 1.25rem; overscroll-behavior: contain; }
.sheet-foot { padding: 0.9rem 1.25rem calc(0.9rem + env(safe-area-inset-bottom)); border-block-start: 1px solid var(--line); background: var(--paper); }

.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.25rem 1rem; }
.qty-label { font-weight: 600; }
.stepper { display: inline-flex; align-items: center; gap: 0.25rem; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px; }
.step-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; }
.step-btn:hover { background: var(--cream-2); }
.step-btn[disabled] { opacity: 0.35; cursor: not-allowed; background: transparent; }
.step-btn .icon { width: 18px; height: 18px; }
.qty-val { min-width: 2ch; text-align: center; font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; }

.supps { border: 0; margin: 0; padding: 0; }
.supps legend { font-weight: 600; padding: 0; margin-block-end: 0.5rem; }
.supp {
  display: flex; align-items: center; gap: 0.8rem; min-height: 52px; padding: 0.35rem 0.25rem;
  border-block-end: 1px solid rgba(15, 17, 19, 0.07); cursor: pointer;
}
.supp:last-child { border-block-end: 0; }
.supp input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); flex: none; cursor: pointer; }
.supp-name { flex: 1; }
.supp-price { color: var(--muted); font-weight: 500; }

/* cart lines */
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 0.75rem; padding-block: 0.9rem; border-block-end: 1px solid var(--line); }
.cart-line-name { font-weight: 600; line-height: 1.35; }
.cart-line-supps { display: block; font-weight: 400; color: var(--muted); font-size: 1rem; }
.cart-line-total { font-weight: 600; }
.cart-line-ctrl { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.cart-line-unit { color: var(--muted); font-size: 1rem; }
.cart-line-actions { display: flex; align-items: center; gap: 0.35rem; }
.remove-btn { color: #9b3a26; }
.remove-btn:hover { background: rgba(155, 58, 38, 0.08); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding-block: 1rem 0.35rem; font-size: 1.2rem; font-weight: 600; }
.pay-note { color: var(--text); font-weight: 500; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); background: var(--cream); border-inline-start: 3px solid var(--accent); margin-block: 0.5rem 1rem; }
.closed-warning { padding: 0.8rem 0.95rem; border-radius: var(--radius-sm); background: #fbe9e4; color: #7a2716; border: 1px solid #efc3b7; margin-block-end: 1rem; font-weight: 500; }
.cart-empty { padding-block: 1.5rem; text-align: center; color: var(--muted); }
.sent-notice { padding: 1rem; margin-block-end: 1rem; border-radius: var(--radius-sm); background: #e7f6ec; border: 1px solid #b9e3c7; color: #14432a; display: grid; gap: 0.5rem; justify-items: start; }
.sent-title { font-weight: 700; font-size: 1.2rem; line-height: 1.4; }
.sent-order strong { font-size: 1.1rem; letter-spacing: 0.02em; }
.sent-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-block-start: 0.25rem; }

.field { display: grid; gap: 0.35rem; margin-block-end: 1rem; align-content: start; }
.field-row { display: grid; column-gap: 0.75rem; }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }
/* the number is typed left-to-right, but sits on the reading side in Arabic */
[dir="rtl"] .field input[type="tel"] { text-align: right; }
.field label { font-weight: 600; }
.req { color: #9b3a26; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.65rem 0.85rem; font-size: 1rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff;
}
.field textarea { resize: vertical; min-height: 72px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--ink); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #b6452e; }
.field-error { color: #9b3a26; font-weight: 500; font-size: 1rem; }
.nowrap { white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .shot-btn:hover img, .cat-card:hover { transform: none; }
}
