/* Customer menu themes. The business picks a preset; --brand-accent is its own brand colour. */
:root { --brand-navy:#0f172a; --brand-navy-light:#1e293b; --page-bg:#f8fafc; --heading-font:inherit; }
html[data-theme="cafe"] { --brand-navy:#3b2416; --brand-navy-light:#5a3a26; --page-bg:#fbf6ef; }
html[data-theme="modern"] { --brand-navy:#111827; --brand-navy-light:#374151; --page-bg:#f3f4f6; }
html[data-theme="fresh"] { --brand-navy:#14532d; --brand-navy-light:#166534; --page-bg:#f0fdf4; }
html[data-theme="elegant"] { --brand-navy:#1c1917; --brand-navy-light:#44403c; --page-bg:#faf7f2; --heading-font:Georgia,'Times New Roman',serif; }
html[data-theme] { background-color:var(--page-bg); }
html[data-theme] .bg-brand-navy { background-color:var(--brand-navy); }
html[data-theme] .action:not(.secondary) { background-color:var(--brand-navy); }
html[data-theme] .hover\:bg-brand-navyLight:hover { background-color:var(--brand-navy-light); }
html[data-theme] .text-brand-navy, html[data-theme] .group:hover .group-hover\:text-brand-navy { color:var(--brand-navy); }
html[data-theme] h1, html[data-theme] h2, html[data-theme] h3, html[data-theme] #brand-title-text { font-family:var(--heading-font); }
html[data-theme="modern"] .rounded-2xl { border-radius:10px; }
html[data-theme="elegant"] #menu-container .group { border-color:#d6c7a6; }

/* Page direction: Arabic reads right to left. */
html[dir="rtl"] .text-left { text-align:right; }
html[dir="rtl"] #category-drawer { right:auto; left:0; }
html[dir="rtl"] #category-drawer.translate-x-full { transform:translateX(-100%); }

/* Additions: info strip, cart, feedback, announcement, language list. */
.info-strip { display:flex; flex-wrap:wrap; gap:8px; }
.info-chip { display:inline-flex; align-items:center; gap:6px; padding:8px 12px; border-radius:999px; background:#fff; border:1px solid #cbd5e1; font-size:13px; font-weight:600; color:#0f172a; }
.info-chip:hover { border-color:#64748b; }
.call-types { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr)); gap:8px; }
.cart-fab { position:fixed; inset-inline-end:16px; bottom:16px; z-index:45; display:flex; align-items:center; gap:8px; padding:12px 16px; border-radius:999px; background:var(--brand-navy); color:#fff; font-weight:700; box-shadow:0 8px 24px #0f172a40; }
.cart-fab .count { background:var(--brand-accent); border-radius:999px; min-width:24px; padding:0 6px; text-align:center; }
.option-group { border:1px solid #e2e8f0; border-radius:12px; padding:10px 12px; }
.option-group legend { font-size:12px; font-weight:700; color:#475569; padding:0 4px; }
.option-row { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:6px 0; font-size:14px; }
.qty { display:inline-flex; align-items:center; border:1px solid #cbd5e1; border-radius:10px; overflow:hidden; }
.qty button { width:36px; height:36px; font-weight:700; background:#f1f5f9; }
.qty span { min-width:36px; text-align:center; font-weight:700; }
.stars { display:flex; gap:6px; justify-content:center; }
.stars button { font-size:32px; line-height:1; color:#cbd5e1; }
.stars button.on { color:#f59e0b; }
.lang-menu { position:absolute; top:calc(100% + 6px); inset-inline-end:0; z-index:60; min-width:160px; background:#fff; border:1px solid #cbd5e1; border-radius:12px; box-shadow:0 12px 30px #0f172a2e; padding:6px; }
.lang-menu button { display:flex; width:100%; gap:8px; align-items:center; padding:8px 10px; border-radius:8px; font-size:14px; text-align:start; }
.lang-menu button:hover, .lang-menu button[aria-current="true"] { background:#f1f5f9; font-weight:700; }
/* Components above set display; the utility .hidden must still win. */
.cart-fab.hidden, .info-strip.hidden, .offline-bar.hidden { display:none; }
.offline-bar { position:sticky; top:0; z-index:41; background:#78350f; color:#fff; font-size:13px; padding:8px 16px; text-align:center; }

/* Dark mode (device setting, when the business allows it). */
html.dark { color-scheme:dark; --page-bg:#0b1120; background-color:#0b1120; }
html.dark body { background-color:#0b1120; color:#e2e8f0; }
html.dark .bg-white, html.dark .bg-white\/95, html.dark .bg-slate-50, html.dark .bg-slate-50\/50, html.dark .bg-slate-50\/90 { background-color:#111827; }
html.dark .bg-slate-100, html.dark .hover\:bg-slate-200:hover, html.dark .hover\:bg-slate-100:hover { background-color:#1f2937; }
html.dark .bg-slate-200 { background-color:#334155; }
html.dark .text-slate-900, html.dark .text-slate-800, html.dark .text-slate-700 { color:#e5e7eb; }
html.dark .text-slate-600, html.dark .text-slate-500, html.dark .text-slate-400 { color:#cbd5e1; }
html.dark .border-slate-100, html.dark .border-slate-200, html.dark .border-slate-200\/80, html.dark .border-slate-200\/70, html.dark .border-slate-200\/60, html.dark .border-slate-300, html.dark .border-b { border-color:#334155; }
html.dark .text-brand-navy, html.dark .group:hover .group-hover\:text-brand-navy { color:#f8fafc; }
html.dark .bg-brand-navy, html.dark .cart-fab { background-color:#334155; }
html.dark .text-brand-orange { color:color-mix(in srgb, var(--brand-accent) 55%, white); }
html.dark .bg-amber-50 { background-color:#422006; } html.dark .text-amber-900, html.dark .text-amber-700 { color:#fde68a; }
html.dark .bg-red-50 { background-color:#450a0a; } html.dark .bg-blue-50 { background-color:#172554; } html.dark .text-blue-900 { color:#bfdbfe; }
html.dark .notice { background:#1f2937; color:#e5e7eb; } html.dark .notice.ok { background:#052e16; color:#bbf7d0; } html.dark .notice.error { background:#450a0a; color:#fecaca; }
html.dark .call-card, html.dark .utility-card, html.dark .info-chip, html.dark .lang-menu { background:#111827; border-color:#334155; color:#e5e7eb; }
html.dark .lang-menu button:hover, html.dark .lang-menu button[aria-current="true"], html.dark .qty button { background:#1f2937; }
html.dark .field input, html.dark .field select, html.dark .field textarea, html.dark input, html.dark textarea, html.dark select { background:#0f172a; color:#e5e7eb; border-color:#475569; }
html.dark .option-group { border-color:#334155; } html.dark .option-group legend { color:#cbd5e1; }
html.dark img[src$="logo.png?v=2"], html.dark #header-logo-img { background:#f8fafc; border-radius:8px; }
html.dark .action { background:#475569; color:#fff; } html.dark .action.secondary { background:#1f2937; color:#e5e7eb; border:1px solid #475569; }
