/* =====================================================
   COFFEE SHOP MENU — Prototype with 5 themes
   ===================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* ===== Theme switcher (fixed top strip) ===== */
.theme-switcher {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(20,12,6,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f4ede1;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 8px 24px rgba(0,0,0,0.35);
}
.theme-switcher-label {
  margin-right: 10px;
  color: rgba(244,237,225,0.65);
  font-weight: 600;
}
.theme-btn {
  background: transparent;
  border: 1px solid rgba(244,237,225,0.22);
  color: rgba(244,237,225,0.85);
  padding: 6px 12px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.theme-btn:hover { border-color: rgba(244,237,225,0.6); color: #fff; }
.theme-btn .num {
  display: inline-block;
  font-weight: 700;
  color: #b8893e;
  font-size: 11px;
}
.theme-btn .name { font-weight: 500; }
.theme-btn.active {
  background: #f4ede1;
  border-color: #f4ede1;
  color: #2a1c10;
}
.theme-btn.active .num { color: #946a26; }
@media (max-width: 720px) {
  .theme-switcher { gap: 4px; padding: 6px 8px; font-size: 10px; }
  .theme-switcher-label { display: none; }
  .theme-btn { padding: 5px 8px; gap: 5px; }
  .theme-btn .name { display: none; }
}

/* ===== Shared layout structure ===== */
.masthead {
  max-width: 880px;
  margin: 0 auto;
  padding: 100px 28px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.ornament { width: min(360px, 70%); display: block; }
.ornament svg { width: 100%; height: auto; display: block; }
.ornament-top { margin-bottom: 4px; }
.ornament-bottom { margin-top: 8px; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.brand-flourish { width: 100px; margin: 4px 0; }
.brand-flourish svg { width: 100%; height: auto; display: block; }

.shop-name-en {
  margin: 0;
  font-size: clamp(38px, 6vw, 60px);
  letter-spacing: 0.04em;
  line-height: 1;
}
.shop-name-ar {
  margin: 0;
  direction: rtl;
  font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.1;
}
.tagline {
  margin: 6px 0 0;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.tagline:empty { display: none; }

.controls {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  background: transparent;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-icon { font-size: 14px; }
.btn.ghost { border-style: solid; border-width: 1px; }

.menu-root {
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 32px 96px;
  position: relative;
  z-index: 1;
}
.category {
  margin: 56px 0 28px;
  page-break-inside: avoid;
}
.category:first-child { margin-top: 32px; }
.category-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  position: relative;
}
.category-name-en {
  margin: 0;
  text-align: left;
  font-size: 28px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.category-name-ar {
  margin: 0;
  text-align: right;
  direction: rtl;
  font-size: 28px;
  font-weight: 700;
}
.category-ornament {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 24px;
}
.category-ornament svg { width: 100%; height: 100%; }

.item {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: baseline;
  gap: 22px;
  padding: 11px 0;
}
.item-en {
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}
.item-ar {
  font-size: 18px;
  font-weight: 600;
  text-align: right;
  direction: rtl;
}
.item-en .note, .item-ar .note {
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 3px;
  letter-spacing: 0.02em;
}
.item-price {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.loading, .error {
  text-align: center;
  padding: 96px 0;
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0.05em;
}
.error { color: #8a3a1f; }

.footer {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px 48px;
  font-size: 11px;
  text-align: center;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.footer-ornament { width: 140px; margin: 0 auto 14px; }
.footer-ornament svg { width: 100%; height: auto; display: block; }

/* ===== Flip book (mechanics shared, look themed) ===== */
.flip-wrapper {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
}
.flip-wrapper[hidden] { display: none; }
.flip-stage { width: min(1100px, 100%); height: min(760px, 80vh); }
.flip-page { overflow: hidden; }
.flip-inner {
  width: 100%; height: 100%;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.flip-controls { display: flex; gap: 12px; margin-top: 22px; }
.flip-page .page-shop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 22px;
  padding-bottom: 10px;
}
.flip-page .page-shop .ar {
  direction: rtl;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}
.flip-page .page-shop .ornament-mini { font-size: 12px; }
.flip-page .category-header { margin-bottom: 14px; padding-bottom: 10px; }
.flip-page .category-name-en { font-size: 22px; letter-spacing: 0.16em; }
.flip-page .category-name-ar { font-size: 22px; }
.flip-page .item { padding: 7px 0; gap: 14px; grid-template-columns: 1fr 90px 1fr; }
.flip-page .item-en { font-size: 13.5px; }
.flip-page .item-price { font-size: 18px; }
.flip-page .item-ar { font-size: 15px; }
.flip-page .page-foot {
  margin-top: auto;
  padding-top: 14px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.18em;
}

/* =====================================================
   THEME 1 — VINTAGE CREAM
   Egyptian-Jordanian heritage. Parchment, brass-gold, ornaments.
   ===================================================== */
[data-theme="vintage"] {
  --paper: #f3ebde;
  --ink: #221710;
  --ink-soft: #41301f;
  --muted: #8a7253;
  --gold: #b8893e;
  --gold-deep: #946a26;
  --rule: #d4c4a8;
}
[data-theme="vintage"] body {
  color: var(--ink);
  background:
    radial-gradient(ellipse at top, rgba(184,137,62,0.04), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(74,53,34,0.04), transparent 60%),
    var(--paper);
  background-attachment: fixed;
}
[data-theme="vintage"] body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(74,53,34,0.03) 0, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(74,53,34,0.03) 0, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(74,53,34,0.025) 0, transparent 2px);
  background-size: 80px 80px, 140px 140px, 100px 100px;
}
[data-theme="vintage"] .ornament,
[data-theme="vintage"] .brand-flourish,
[data-theme="vintage"] .footer-ornament,
[data-theme="vintage"] .btn-icon { color: var(--gold); }
[data-theme="vintage"] .shop-name-en {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--ink);
}
[data-theme="vintage"] .shop-name-ar {
  font-family: 'Amiri', serif;
  font-weight: 700;
  color: var(--ink);
}
[data-theme="vintage"] .tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-size: 14px;
}
[data-theme="vintage"] .btn {
  border: 1px solid var(--ink);
  color: var(--ink);
}
[data-theme="vintage"] .btn:hover { background: var(--ink); color: var(--paper); }
[data-theme="vintage"] .btn.ghost { border-color: rgba(244,237,225,0.55); color: #f0e4c8; }
[data-theme="vintage"] .btn.ghost:hover { background: var(--paper); color: var(--ink); }
[data-theme="vintage"] .category-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(to right,
    transparent 0%, var(--ink) 12%, var(--ink) 88%, transparent 100%);
  opacity: 0.55;
}
[data-theme="vintage"] .category-name-en {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  color: var(--ink);
}
[data-theme="vintage"] .category-name-ar {
  font-family: 'Amiri', serif;
  font-weight: 700;
  color: var(--ink);
}
[data-theme="vintage"] .category-ornament { color: var(--gold); }
[data-theme="vintage"] .item {
  border-bottom: 1px dotted var(--rule);
  color: var(--ink-soft);
}
[data-theme="vintage"] .item:last-child { border-bottom: none; }
[data-theme="vintage"] .item-en { color: var(--ink-soft); }
[data-theme="vintage"] .item-en .note {
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  color: var(--muted);
}
[data-theme="vintage"] .item-ar {
  font-family: 'Cairo', sans-serif;
  color: var(--ink-soft);
}
[data-theme="vintage"] .item-ar .note {
  font-family: 'Cairo', sans-serif;
  color: var(--muted);
}
[data-theme="vintage"] .item-price {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold-deep);
}
[data-theme="vintage"] .item-price:not(:empty)::before,
[data-theme="vintage"] .item-price:not(:empty)::after {
  content: "·";
  color: var(--rule);
  margin: 0 8px;
  font-size: 18px;
  vertical-align: middle;
}
[data-theme="vintage"] .footer { color: var(--muted); }
[data-theme="vintage"] .footer-ornament { color: var(--gold); }
[data-theme="vintage"] .flip-wrapper {
  background: radial-gradient(ellipse at center, #2c1f12 0%, #181009 80%);
}
[data-theme="vintage"] .flip-page {
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(184,137,62,0.18);
}
[data-theme="vintage"] .flip-page .page-shop {
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  font-family: 'Cormorant Garamond', serif;
}
[data-theme="vintage"] .flip-page .page-shop .ar { font-family: 'Amiri', serif; }
[data-theme="vintage"] .flip-page .page-shop .ornament-mini { color: var(--gold); }
[data-theme="vintage"] .flip-page .page-foot {
  color: var(--muted);
  font-family: 'Cormorant Garamond', serif;
}

/* =====================================================
   THEME 2 — ESPRESSO NOIR
   Almost-black background, cream menu "card", gold prices.
   ===================================================== */
[data-theme="espresso"] {
  --paper: #f4ede1;
  --ink: #0f0a06;
  --ink-soft: #2b2018;
  --muted: #6b5a45;
  --gold: #d4a857;
  --gold-deep: #b08a3a;
  --rule: #d4c8b0;
}
[data-theme="espresso"] body {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, #1a1209 0%, #0a0604 100%);
  color: var(--paper);
}
[data-theme="espresso"] .masthead {
  background: var(--paper);
  color: var(--ink);
  margin: 80px auto 0;
  padding: 56px 40px 32px;
  max-width: 880px;
  border-radius: 0;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 8px 24px rgba(0,0,0,0.4);
}
[data-theme="espresso"] .menu-root {
  background: var(--paper);
  color: var(--ink);
  margin: 0 auto;
  padding: 8px 40px 64px;
  max-width: 880px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
[data-theme="espresso"] .footer {
  margin: 0 auto 0;
  background: var(--paper);
  padding: 24px 40px 56px;
  max-width: 880px;
  color: var(--muted);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  margin-bottom: 64px;
}
[data-theme="espresso"] .ornament,
[data-theme="espresso"] .brand-flourish,
[data-theme="espresso"] .footer-ornament,
[data-theme="espresso"] .btn-icon { color: var(--gold); }
[data-theme="espresso"] .shop-name-en {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}
[data-theme="espresso"] .shop-name-ar {
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  color: var(--ink);
}
[data-theme="espresso"] .tagline {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-weight: 500;
  font-size: 11px;
  color: var(--muted);
}
[data-theme="espresso"] .btn {
  border: 1px solid var(--ink);
  color: var(--ink);
}
[data-theme="espresso"] .btn:hover { background: var(--ink); color: var(--paper); }
[data-theme="espresso"] .btn:hover .btn-icon { color: var(--gold); }
[data-theme="espresso"] .btn.ghost { border-color: rgba(244,237,225,0.55); color: var(--paper); }
[data-theme="espresso"] .btn.ghost:hover { background: var(--paper); color: var(--ink); }
[data-theme="espresso"] .category { margin: 48px 0 22px; }
[data-theme="espresso"] .category-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--ink);
}
[data-theme="espresso"] .category-name-en {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--ink);
  font-size: 24px;
  letter-spacing: 0.22em;
}
[data-theme="espresso"] .category-name-ar {
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  color: var(--ink);
}
[data-theme="espresso"] .category-ornament { color: var(--gold); }
[data-theme="espresso"] .item {
  border-bottom: 1px solid rgba(15,10,6,0.08);
}
[data-theme="espresso"] .item-en {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  font-weight: 600;
}
[data-theme="espresso"] .item-en .note {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  color: var(--muted);
  font-weight: 400;
}
[data-theme="espresso"] .item-ar {
  font-family: 'Tajawal', sans-serif;
  color: var(--ink);
  font-weight: 600;
}
[data-theme="espresso"] .item-ar .note {
  font-family: 'Tajawal', sans-serif;
  color: var(--muted);
  font-weight: 400;
}
[data-theme="espresso"] .item-price {
  font-family: 'Playfair Display', serif;
  color: var(--gold-deep);
  font-weight: 700;
}
[data-theme="espresso"] .flip-wrapper { background: #050302; }
[data-theme="espresso"] .flip-page { background: var(--paper); }
[data-theme="espresso"] .flip-page .page-shop {
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  font-family: 'Playfair Display', serif;
}
[data-theme="espresso"] .flip-page .page-shop .ar { font-family: 'Tajawal', sans-serif; }
[data-theme="espresso"] .flip-page .page-shop .ornament-mini { color: var(--gold); }

/* =====================================================
   THEME 3 — CAIRO GEOMETRIC
   Teal + sienna, Reem Kufi Arabic, geometric ornaments.
   ===================================================== */
[data-theme="cairo"] {
  --paper: #f7f2e8;
  --ink: #1a1410;
  --ink-soft: #322a22;
  --muted: #7d6a52;
  --teal: #1a5e5e;
  --sienna: #b04e2e;
  --gold: #c9962b;
  --rule: #cdb98f;
}
[data-theme="cairo"] body {
  color: var(--ink);
  background:
    radial-gradient(ellipse at top, rgba(26,94,94,0.06), transparent 60%),
    var(--paper);
  background-attachment: fixed;
}
[data-theme="cairo"] .ornament,
[data-theme="cairo"] .brand-flourish { color: var(--teal); }
[data-theme="cairo"] .footer-ornament { color: var(--sienna); }
[data-theme="cairo"] .btn-icon { color: var(--sienna); }
[data-theme="cairo"] .shop-name-en {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: clamp(34px, 5.4vw, 52px);
}
[data-theme="cairo"] .shop-name-ar {
  font-family: 'Reem Kufi', sans-serif;
  font-weight: 700;
  color: var(--sienna);
}
[data-theme="cairo"] .tagline {
  font-family: 'Reem Kufi', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--muted);
  font-size: 11px;
}
[data-theme="cairo"] .btn {
  border: 1.5px solid var(--teal);
  color: var(--teal);
}
[data-theme="cairo"] .btn:hover { background: var(--teal); color: var(--paper); }
[data-theme="cairo"] .btn.ghost { border-color: rgba(244,237,225,0.55); color: var(--paper); }
[data-theme="cairo"] .btn.ghost:hover { background: var(--paper); color: var(--teal); }
[data-theme="cairo"] .category {
  background: transparent;
  position: relative;
}
[data-theme="cairo"] .category-header {
  background: linear-gradient(to right, var(--teal), #154848);
  color: var(--paper);
  padding: 18px 22px;
  margin-left: -22px;
  margin-right: -22px;
  border-radius: 0;
  box-shadow: 0 8px 20px rgba(26,94,94,0.15);
}
[data-theme="cairo"] .category-header::after { display: none; }
[data-theme="cairo"] .category-name-en {
  font-family: 'Reem Kufi', sans-serif;
  font-weight: 700;
  color: var(--paper);
  font-size: 22px;
  letter-spacing: 0.2em;
}
[data-theme="cairo"] .category-name-ar {
  font-family: 'Reem Kufi', sans-serif;
  font-weight: 700;
  color: var(--paper);
  font-size: 24px;
}
[data-theme="cairo"] .category-ornament { color: var(--gold); }
[data-theme="cairo"] .item {
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
}
[data-theme="cairo"] .item:last-child { border-bottom: none; }
[data-theme="cairo"] .item-en {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.01em;
}
[data-theme="cairo"] .item-en .note {
  font-family: 'Inter', sans-serif;
  color: var(--muted);
  font-weight: 400;
  font-style: normal;
}
[data-theme="cairo"] .item-ar {
  font-family: 'Cairo', sans-serif;
  color: var(--ink);
  font-weight: 700;
}
[data-theme="cairo"] .item-ar .note {
  font-family: 'Cairo', sans-serif;
  color: var(--muted);
  font-weight: 400;
}
[data-theme="cairo"] .item-price {
  font-family: 'Inter', sans-serif;
  color: var(--sienna);
  font-weight: 800;
  font-size: 20px;
}
[data-theme="cairo"] .footer { color: var(--muted); }
[data-theme="cairo"] .flip-wrapper { background: #0a2222; }
[data-theme="cairo"] .flip-page { background: var(--paper); box-shadow: inset 0 0 0 1px rgba(26,94,94,0.18); }
[data-theme="cairo"] .flip-page .page-shop {
  color: var(--teal);
  border-bottom: 2px solid var(--teal);
  font-family: 'Reem Kufi', sans-serif;
}
[data-theme="cairo"] .flip-page .page-shop .ar { font-family: 'Reem Kufi', sans-serif; }
[data-theme="cairo"] .flip-page .page-shop .ornament-mini { color: var(--sienna); }
[data-theme="cairo"] .flip-page .category-header {
  margin-left: 0; margin-right: 0; padding: 10px 12px;
}

/* =====================================================
   THEME 4 — EDITORIAL
   Pure off-white, all-black, Playfair, magazine vibe.
   ===================================================== */
[data-theme="editorial"] {
  --paper: #fbf9f3;
  --ink: #0a0a0a;
  --ink-soft: #2c2c2c;
  --muted: #6e6e6e;
  --rule: #1a1a1a;
}
[data-theme="editorial"] body {
  color: var(--ink);
  background: var(--paper);
}
[data-theme="editorial"] .ornament,
[data-theme="editorial"] .brand-flourish,
[data-theme="editorial"] .footer-ornament,
[data-theme="editorial"] .btn-icon { color: var(--ink); }
[data-theme="editorial"] .masthead { padding-bottom: 56px; border-bottom: 3px double var(--ink); margin-bottom: 24px; max-width: 880px; }
[data-theme="editorial"] .shop-name-en {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-style: italic;
  color: var(--ink);
  letter-spacing: 0;
  font-size: clamp(48px, 7vw, 78px);
  line-height: 0.95;
}
[data-theme="editorial"] .shop-name-ar {
  font-family: 'Amiri', serif;
  font-weight: 700;
  color: var(--ink);
}
[data-theme="editorial"] .tagline {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  color: var(--ink);
  font-weight: 600;
  font-size: 10px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 8px 16px;
  margin-top: 12px;
}
[data-theme="editorial"] .btn {
  border: 1px solid var(--ink);
  color: var(--ink);
}
[data-theme="editorial"] .btn:hover { background: var(--ink); color: var(--paper); }
[data-theme="editorial"] .btn.ghost { border-color: rgba(251,249,243,0.5); color: var(--paper); }
[data-theme="editorial"] .btn.ghost:hover { background: var(--paper); color: var(--ink); }
[data-theme="editorial"] .category { margin: 60px 0 24px; }
[data-theme="editorial"] .category-header {
  display: block;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 16px;
  text-align: center;
}
[data-theme="editorial"] .category-header::after { display: none; }
[data-theme="editorial"] .category-name-en {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  color: var(--ink);
  font-size: 36px;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  display: block;
  margin-bottom: 4px;
}
[data-theme="editorial"] .category-name-ar {
  font-family: 'Amiri', serif;
  font-weight: 700;
  color: var(--ink);
  font-size: 18px;
  text-align: center;
  display: block;
}
[data-theme="editorial"] .category-ornament { display: none; }
[data-theme="editorial"] .item {
  border-bottom: 1px solid rgba(10,10,10,0.12);
  padding: 12px 0;
}
[data-theme="editorial"] .item:last-child { border-bottom: none; }
[data-theme="editorial"] .item-en {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
[data-theme="editorial"] .item-en .note {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 500;
}
[data-theme="editorial"] .item-ar {
  font-family: 'Cairo', sans-serif;
  color: var(--ink);
  font-weight: 600;
}
[data-theme="editorial"] .item-ar .note {
  font-family: 'Cairo', sans-serif;
  color: var(--muted);
  font-weight: 400;
}
[data-theme="editorial"] .item-price {
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  font-weight: 700;
  font-size: 22px;
}
[data-theme="editorial"] .footer { color: var(--muted); border-top: 1px solid var(--ink); padding-top: 24px; max-width: 880px; }
[data-theme="editorial"] .flip-wrapper { background: #1a1a1a; }
[data-theme="editorial"] .flip-page { background: var(--paper); }
[data-theme="editorial"] .flip-page .page-shop {
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  font-family: 'Playfair Display', serif;
  font-style: italic;
}
[data-theme="editorial"] .flip-page .page-shop .ar { font-family: 'Amiri', serif; font-style: normal; }
[data-theme="editorial"] .flip-page .category-header { border-bottom-width: 2px; }

/* =====================================================
   THEME 5 — BOTANICAL
   Cream + sage, Caveat script, olive-branch motif.
   ===================================================== */
[data-theme="botanical"] {
  --paper: #faf6ec;
  --ink: #2a2a1f;
  --ink-soft: #4a4a3a;
  --muted: #7a7a65;
  --sage: #6b8a5a;
  --sage-deep: #4f6b42;
  --olive: #948f5a;
  --rule: #d4d0b8;
}
[data-theme="botanical"] body {
  color: var(--ink);
  background:
    radial-gradient(ellipse at top right, rgba(107,138,90,0.08), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(107,138,90,0.06), transparent 50%),
    var(--paper);
  background-attachment: fixed;
}
[data-theme="botanical"] body::after {
  content: "";
  position: fixed; top: 60px; right: -40px; width: 280px; height: 280px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%236b8a5a' stroke-width='1.2' opacity='0.35'><path d='M30 180 Q60 120 120 60 T180 20'/><ellipse cx='50' cy='150' rx='12' ry='5' transform='rotate(-30 50 150)' fill='%236b8a5a' opacity='0.5'/><ellipse cx='70' cy='130' rx='12' ry='5' transform='rotate(-30 70 130)' fill='%236b8a5a' opacity='0.5'/><ellipse cx='90' cy='110' rx='12' ry='5' transform='rotate(-30 90 110)' fill='%236b8a5a' opacity='0.5'/><ellipse cx='110' cy='90' rx='12' ry='5' transform='rotate(-30 110 90)' fill='%236b8a5a' opacity='0.5'/><ellipse cx='130' cy='70' rx='12' ry='5' transform='rotate(-30 130 70)' fill='%236b8a5a' opacity='0.5'/><ellipse cx='150' cy='50' rx='10' ry='4' transform='rotate(-30 150 50)' fill='%236b8a5a' opacity='0.5'/></g></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}
[data-theme="botanical"] body::before {
  content: "";
  position: fixed; bottom: 40px; left: -40px; width: 240px; height: 240px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%236b8a5a' stroke-width='1.2' opacity='0.3' transform='scale(-1,1) translate(-200,0)'><path d='M30 180 Q60 120 120 60 T180 20'/><ellipse cx='50' cy='150' rx='12' ry='5' transform='rotate(-30 50 150)' fill='%236b8a5a' opacity='0.5'/><ellipse cx='70' cy='130' rx='12' ry='5' transform='rotate(-30 70 130)' fill='%236b8a5a' opacity='0.5'/><ellipse cx='90' cy='110' rx='12' ry='5' transform='rotate(-30 90 110)' fill='%236b8a5a' opacity='0.5'/><ellipse cx='110' cy='90' rx='12' ry='5' transform='rotate(-30 110 90)' fill='%236b8a5a' opacity='0.5'/><ellipse cx='130' cy='70' rx='12' ry='5' transform='rotate(-30 130 70)' fill='%236b8a5a' opacity='0.5'/></g></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}
[data-theme="botanical"] .ornament,
[data-theme="botanical"] .brand-flourish,
[data-theme="botanical"] .footer-ornament { color: var(--sage); }
[data-theme="botanical"] .btn-icon { color: var(--sage-deep); }
[data-theme="botanical"] .shop-name-en {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  font-size: clamp(56px, 8vw, 84px);
}
[data-theme="botanical"] .shop-name-ar {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  color: var(--ink);
}
[data-theme="botanical"] .tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.06em;
  color: var(--sage-deep);
  font-size: 15px;
}
[data-theme="botanical"] .btn {
  border: 1px solid var(--sage-deep);
  color: var(--sage-deep);
  border-radius: 24px;
}
[data-theme="botanical"] .btn:hover { background: var(--sage-deep); color: var(--paper); }
[data-theme="botanical"] .btn.ghost { border-color: rgba(250,246,236,0.6); color: var(--paper); border-radius: 24px; }
[data-theme="botanical"] .btn.ghost:hover { background: var(--paper); color: var(--sage-deep); }
[data-theme="botanical"] .category-header::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 60%; height: 1px;
  background: var(--sage);
  opacity: 0.45;
}
[data-theme="botanical"] .category-name-en {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  color: var(--sage-deep);
  text-transform: none;
  letter-spacing: 0;
  font-size: 38px;
}
[data-theme="botanical"] .category-name-ar {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  color: var(--sage-deep);
  font-size: 26px;
}
[data-theme="botanical"] .category-ornament { color: var(--sage); }
[data-theme="botanical"] .item {
  border-bottom: 1px dashed var(--rule);
}
[data-theme="botanical"] .item:last-child { border-bottom: none; }
[data-theme="botanical"] .item-en {
  font-family: 'Cormorant Garamond', serif;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
}
[data-theme="botanical"] .item-en .note {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--muted);
}
[data-theme="botanical"] .item-ar {
  font-family: 'Cairo', sans-serif;
  color: var(--ink);
  font-weight: 600;
}
[data-theme="botanical"] .item-ar .note {
  font-family: 'Cairo', sans-serif;
  color: var(--muted);
  font-weight: 400;
}
[data-theme="botanical"] .item-price {
  font-family: 'Cormorant Garamond', serif;
  color: var(--sage-deep);
  font-weight: 700;
  font-size: 22px;
}
[data-theme="botanical"] .footer { color: var(--muted); }
[data-theme="botanical"] .flip-wrapper { background: #1a2418; }
[data-theme="botanical"] .flip-page { background: var(--paper); box-shadow: inset 0 0 0 1px rgba(107,138,90,0.2); }
[data-theme="botanical"] .flip-page .page-shop {
  color: var(--sage-deep);
  border-bottom: 1px solid var(--rule);
  font-family: 'Caveat', cursive;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
}
[data-theme="botanical"] .flip-page .page-shop .ar { font-family: 'Cairo', sans-serif; }
[data-theme="botanical"] .flip-page .page-shop .ornament-mini { color: var(--sage); }

/* ===== Print / PDF (A4 portrait, theme-aware) ===== */
@page { size: A4 portrait; margin: 16mm 14mm; }
@media print {
  .no-print { display: none !important; }
  body::before, body::after { display: none !important; }
  body { background: var(--paper) !important; }
  .masthead { padding: 0 0 18px; margin-bottom: 8px; max-width: none; }
  .menu-root, .footer { padding-left: 0; padding-right: 0; max-width: none; box-shadow: none; }
  .category { margin: 22px 0 12px; page-break-inside: avoid; }
  .category-header { margin-bottom: 10px; padding-bottom: 8px; }
  .item { padding: 5px 0; }
  .shop-name-en { font-size: 36px; }
  .shop-name-ar { font-size: 28px; }
  .category-name-en, .category-name-ar { font-size: 20px; }
  .item-en, .item-ar { font-size: 12px; }
  .item-price { font-size: 16px; font-weight: 700; }
  .item-en .note, .item-ar .note { font-size: 10px; }
  [data-theme="espresso"] .masthead,
  [data-theme="espresso"] .menu-root,
  [data-theme="espresso"] .footer { background: var(--paper) !important; }
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .masthead { padding: 90px 18px 20px; }
  .menu-root { padding: 8px 18px 64px; }
  .item { grid-template-columns: 1fr 80px 1fr; gap: 10px; }
  .item-en { font-size: 14px; }
  .item-price { font-size: 18px; }
  .item-ar { font-size: 15px; }
  .category-name-en { font-size: 22px; letter-spacing: 0.14em; }
  .category-name-ar { font-size: 24px; }
  .item-price:not(:empty)::before,
  .item-price:not(:empty)::after { display: none; }
  [data-theme="espresso"] .masthead,
  [data-theme="espresso"] .menu-root,
  [data-theme="espresso"] .footer { padding-left: 22px; padding-right: 22px; }
  [data-theme="cairo"] .category-header { padding: 12px 16px; margin-left: -16px; margin-right: -16px; }
}
