/* ==========================================================================
   Lumo Cafe menu. Layout from fajr-menu-classic (Muhammad Al-Madani, used with permission): big titles, a giant
   pale word down the edge of each section, photos alternating sides, gold prices, light/dark themes, hidden prices.
   Adapted by MAWJOOD to Lumo's brand (gold #EEC271, charcoal #1E1C1A, cream #F9E7C9) with an ONYX-style opening
   screen, photo tabs with a gliding gold pill, and the Google review bell. Fonts are self-hosted (SIL OFL).
   ========================================================================== */
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/ibm-plex-sans-arabic-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/ibm-plex-sans-arabic-semibold.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/assets/fonts/cormorant-garamond-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
	/* dark (default): Lumo charcoal and gold */
	--bg: #1E1C1A;
	--bg-rgb: 30 28 26;
	--bg-2: #252321;
	--surface: rgb(249 231 201 / 0.05);
	--ink: #F9E7C9;
	--muted: rgb(249 231 201 / 0.64);
	--gold: #EEC271;
	--gold-rgb: 238 194 113;
	--gold-bright: #EEC271;
	--gold-line: rgb(238 194 113 / 0.32);
	--line: rgb(249 231 201 / 0.12);
	--mark: rgb(238 194 113 / 0.06);
	--button: #EEC271;
	--button-ink: #1E1C1A;
	--gold-grad: linear-gradient(135deg, #F7D995 0%, #EEC271 48%, #D6A552 100%);
	--shadow: 0 10px 30px rgb(0 0 0 / 0.45);
	--photo-ring: 0 0 0 2px rgb(238 194 113 / 0.55), 0 12px 26px rgb(0 0 0 / 0.5);

	--font-body: "Plex Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
	--font-serif: "Cormorant", "Times New Roman", serif;
	--wrap: 640px;
	--top: 128px;
	--spring: cubic-bezier(.34, 1.36, .5, 1);
	--ease: cubic-bezier(.2, .7, .2, 1);
	color-scheme: dark;
}
:root[data-theme="light"] {
	/* light: cream paper, darker gold for contrast */
	--bg: #F5ECDD;
	--bg-rgb: 245 236 221;
	--bg-2: #FBF5EA;
	--surface: rgb(255 255 255 / 0.55);
	--ink: #2A2420;
	--muted: #6A5E52;
	--gold: #8E6216;
	--gold-bright: #C99A45;
	--gold-line: rgb(142 98 22 / 0.3);
	--line: rgb(42 36 32 / 0.14);
	--mark: rgb(142 98 22 / 0.08);
	--button: #2A2420;
	--button-ink: #F9E7C9;
	--shadow: 0 10px 30px rgb(42 36 32 / 0.16);
	--photo-ring: 0 0 0 2px rgb(201 154 69 / 0.6), 0 10px 22px rgb(42 36 32 / 0.22);
	color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
html:has(dialog[open]) { overflow: hidden; }
body {
	margin: 0;
	min-height: 100vh;
	padding-bottom: 24px;
	background-color: var(--bg);
	background-image:
		radial-gradient(120% 60% at 85% 0%, rgb(var(--gold-rgb) / 0.06), transparent 60%),
		radial-gradient(90% 50% at 0% 45%, rgb(0 0 0 / 0.18), transparent 60%);
	background-attachment: fixed;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.55;
	overflow-x: hidden;
}
:root[data-theme="light"] body {
	background-image:
		radial-gradient(120% 60% at 85% 0%, rgb(255 255 255 / 0.5), transparent 60%),
		radial-gradient(90% 50% at 0% 45%, rgb(142 98 22 / 0.05), transparent 60%);
}
body.has-order { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

/* ---------- opening screen (ONYX style): storefront, logo with halo and a gold light sweep ---------- */
.opening {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: radial-gradient(70% 38% at 50% 18%, rgb(var(--gold-rgb) / 0.16), transparent 70%), var(--bg);
}
.opening-photo {
	position: absolute;
	z-index: -2;
	inset: auto 0 0 0;
	height: min(86vw, 60%);
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%);
	mask-image: linear-gradient(180deg, transparent 0%, #000 16%);
}
.opening-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.opening-veil {
	position: absolute;
	z-index: -1;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(180deg, var(--bg) 0%, var(--bg) 34%, rgb(var(--bg-rgb) / 0.55) 46%, rgb(var(--bg-rgb) / 0.05) 62%,
			rgb(var(--bg-rgb) / 0) 76%, rgb(var(--bg-rgb) / 0.55) 92%, var(--bg) 100%),
		radial-gradient(120% 60% at 50% 100%, transparent 40%, rgb(var(--bg-rgb) / 0.55) 100%);
}
.opening-content { position: relative; width: 100%; padding: calc(max(18px, env(safe-area-inset-top, 0px)) + 6svh) 16px 0; }
.opening-brand { position: relative; width: min(230px, 60vw); margin: 0 auto; }
.opening-logo { position: relative; width: 100%; height: auto; filter: drop-shadow(0 8px 24px rgb(0 0 0 / 0.45)); }
.opening-halo {
	position: absolute;
	inset: -30% -24%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgb(var(--gold-rgb) / 0.3), rgb(var(--gold-rgb) / 0.08) 55%, transparent 75%);
	pointer-events: none;
}
.opening-sweep {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(105deg, transparent 45%, rgb(255 236 190 / 0.65) 50%, transparent 55%);
	background-size: 300% 100%;
	background-position: 100% 0;
	background-repeat: no-repeat;
	-webkit-mask: url("/images/logo.webp") center / contain no-repeat;
	mask: url("/images/logo.webp") center / contain no-repeat;
}
.opening-tagline {
	display: inline-block;
	margin: 16px 0 0;
	padding: 3px 18px 4px;
	border: 1px solid var(--gold-line);
	border-radius: 999px;
	font-size: 15px;
	letter-spacing: 0.06em;
	color: var(--ink);
}
.opening-hint {
	display: flex;
	width: max-content;
	max-width: 100%;
	align-items: center;
	gap: 7px;
	margin: 14px auto 0;
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid rgb(var(--gold-rgb) / 0.24);
	background: rgb(var(--bg-rgb) / 0.5);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	font-size: 13.5px;
	color: var(--ink);
}
.opening-hint svg { width: 16px; height: 16px; stroke: var(--gold-bright); stroke-width: 1.8; }
.opening-cue {
	position: absolute;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	inset-inline: 0;
	width: max-content;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 6px 18px;
	color: #F7D995;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-shadow: 0 1px 10px rgb(0 0 0 / 0.9);
}
.opening-cue svg { width: 22px; height: 22px; stroke-width: 1.8; filter: drop-shadow(0 1px 6px rgb(0 0 0 / 0.8)); }
@media (min-width: 700px) {
	.opening-photo { height: 72%; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%); mask-image: linear-gradient(180deg, transparent 0%, #000 26%); }
	.opening-photo img { object-position: 50% 60%; }
	.opening-veil {
		background:
			linear-gradient(180deg, rgb(var(--bg-rgb) / 0.92) 0%, rgb(var(--bg-rgb) / 0.4) 34%, rgb(var(--bg-rgb) / 0) 55%, rgb(var(--bg-rgb) / 0.4) 84%, var(--bg) 100%),
			radial-gradient(90% 80% at 50% 45%, transparent 50%, rgb(var(--bg-rgb) / 0.7) 100%);
	}
	.opening-content { padding-top: calc(28px + 5svh); }
}

/* ---------- top bar: logo, language, hide prices, theme; then the category tabs ---------- */
.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgb(var(--bg-rgb) / 0.94);
	border-bottom: 1px solid transparent;
	transition: border-color .4s var(--ease), box-shadow .4s var(--ease), background-color .4s var(--ease);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
	.topbar.is-stuck { background: rgb(var(--bg-rgb) / 0.72); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
}
.topbar.is-stuck { border-bottom-color: var(--line); box-shadow: 0 12px 30px -18px rgb(0 0 0 / 0.9); }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: var(--wrap); margin: 0 auto; padding: 10px 16px 4px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { width: auto; height: 38px; }
.controls { display: flex; align-items: center; gap: 6px; }
.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lang button {
	min-width: 38px;
	height: 36px;
	padding: 0 10px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--gold-grad); color: #1E1C1A; }
.round-btn {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--surface);
	color: var(--ink);
	cursor: pointer;
}
.round-btn[aria-pressed="true"] { border-color: transparent; background: var(--gold-grad); color: #1E1C1A; }

.navrow { display: flex; align-items: center; max-width: var(--wrap); margin: 0 auto; }
.nav {
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
	mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}
.nav::-webkit-scrollbar { display: none; }
.nav-track { position: relative; display: flex; align-items: center; gap: 8px; width: max-content; padding: 6px 16px 11px; }
.chip {
	position: relative;
	z-index: 1;
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	height: 48px;
	padding-inline: 5px 16px;
	border-radius: 999px;
	border: 1px solid var(--gold-line);
	background: var(--surface);
	color: var(--ink);
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
	transition: color .4s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease), transform .15s var(--ease);
}
.chip:active { transform: scale(.96); }
.chip-thumb {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
	box-shadow: 0 0 0 1.5px rgb(var(--gold-rgb) / 0.45);
	filter: saturate(.85) brightness(.9);
	transition: filter .4s var(--ease), box-shadow .4s var(--ease);
}
.chip[aria-current] { border-color: transparent; background: var(--gold-grad); color: #1E1C1A; }
.chip[aria-current] .chip-thumb { filter: none; box-shadow: 0 0 0 2px rgb(30 28 26 / 0.5); }
.nav-track.has-pill .chip[aria-current] { background: transparent; }
.nav-pill {
	position: absolute;
	z-index: 0;
	top: calc(50% - 2.5px);
	left: 0;
	height: 48px;
	margin-top: -24px;
	border-radius: 999px;
	background: var(--gold-grad);
	overflow: hidden;
	pointer-events: none;
	opacity: 0;
	box-shadow: 0 0 0 1px rgb(255 240 210 / 0.35) inset, 0 0 22px rgb(var(--gold-rgb) / 0.45), 0 6px 16px -6px rgb(0 0 0 / 0.6);
}
.has-pill .nav-pill { opacity: 1; }
.nav-pill::after {
	content: "";
	position: absolute;
	inset: 0;
	width: 45%;
	transform: translateX(-120%) skewX(-20deg);
	background: linear-gradient(90deg, transparent, rgb(255 250 235 / 0.55), transparent);
}

/* ---------- sections ---------- */
main { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; overflow-x: hidden; outline: none; }
.intro { margin: 22px 0 6px; color: var(--muted); font-size: 14.5px; text-align: center; }
.section { position: relative; padding: 44px 0 28px; scroll-margin-top: var(--top); overflow-x: visible; overflow-y: clip; }
.section + .section { margin-top: 18px; padding-top: 64px; scroll-margin-top: calc(var(--top) - 34px); }
/* divider between categories: a thin gold line that fades out at both ends, with a small diamond in the middle */
.section + .section::before {
	content: "";
	position: absolute;
	top: 6px;
	inset-inline: 12%;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--gold-line) 20%, rgb(var(--gold-rgb) / 0.55) 50%, var(--gold-line) 80%, transparent);
}
.section + .section::after {
	content: "";
	position: absolute;
	top: 2px;
	left: calc(50% - 4.5px);
	width: 9px;
	height: 9px;
	rotate: 45deg;
	background: var(--bg);
	border: 1px solid rgb(var(--gold-rgb) / 0.7);
	box-shadow: 0 0 10px rgb(var(--gold-rgb) / 0.35);
}
.section-head { position: relative; z-index: 1; margin-bottom: 18px; padding-bottom: 14px; }
.section-head::after { /* short gold accent under the title */
	content: "";
	position: absolute;
	bottom: 0;
	inset-inline-start: 0;
	width: 44px;
	height: 2px;
	border-radius: 2px;
	background: var(--gold-grad);
}

/* the big pale word down the edge of each section (fajr), in Lumo's serif */
.section-mark {
	position: absolute;
	top: 14px;
	right: -18px;
	color: var(--mark);
	font-family: var(--font-serif);
	font-size: 124px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	writing-mode: vertical-rl;
	pointer-events: none;
	user-select: none;
}
[dir="rtl"] .section-mark { right: auto; left: -18px; }
.section .items { position: relative; z-index: 1; }
.section-title { margin: 0; color: var(--gold); font-size: clamp(34px, 10vw, 46px); font-weight: 700; line-height: 1.15; }
[lang="en"] .section-title { font-family: var(--font-serif); font-size: clamp(40px, 12vw, 56px); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.section-sub { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.section-sub { display: flex; align-items: baseline; gap: 8px; }
.sub-dot { color: var(--gold); }
.section-sub .sub-other[lang="en"] { font-family: var(--font-serif); font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- items with a photo: alternate left and right (fajr) ---------- */
.item { position: relative; border-radius: 18px; transition: background-color .3s var(--ease); }
.item.picked { background: linear-gradient(to left, rgb(var(--gold-rgb) / 0.1), transparent 75%); }
[dir="ltr"] .item.picked { background: linear-gradient(to right, rgb(var(--gold-rgb) / 0.1), transparent 75%); }
.item.has-photo { display: flex; align-items: center; gap: 18px; padding: 18px 0; }
.item.has-photo:nth-child(even of .has-photo) { flex-direction: row-reverse; }
.item-photo {
	flex: none;
	width: 124px;
	height: 124px;
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 62%;
	box-shadow: var(--photo-ring);
	background: var(--bg-2);
}
.item-body { flex: 1; min-width: 0; }
.item-name { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.35; }
[lang="en"] .item-name { font-size: 17px; }
.item-alt { margin: 1px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.35; text-align: right; }
[dir="ltr"] .item-alt { text-align: left; }
.item-desc { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }

.buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; margin-top: 10px; }
.price-wrap { display: flex; flex-direction: column; line-height: 1.2; }
.price { color: var(--gold); font-weight: 700; white-space: nowrap; }
.price .amount { font-size: 20px; font-variant-numeric: tabular-nums; }
.price .cur { font-size: 12.5px; font-weight: 400; opacity: .9; }
.price.pending { color: var(--muted); font-size: 13.5px; font-weight: 400; white-space: normal; }

.add {
	display: grid;
	place-items: center;
	flex: none;
	width: 46px;
	height: 46px;
	border: 1.5px solid var(--gold-bright);
	border-radius: 50%;
	background: transparent;
	color: var(--gold);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.add:active, .stepper button:active { transform: scale(0.92); }
.stepper { display: inline-flex; flex: none; align-items: center; border-radius: 999px; background: var(--gold-grad); color: #1E1C1A; box-shadow: 0 6px 16px -6px rgb(var(--gold-rgb) / 0.6); }
:root[data-theme="light"] .stepper { background: var(--button); color: var(--button-ink); box-shadow: none; }
.stepper button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.stepper output { min-width: 26px; font-size: 15px; font-weight: 700; text-align: center; }
.stepper svg { width: 18px; height: 18px; }

.variants { margin: 6px 0 0; padding: 0; list-style: none; }
.variant { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; }
.variant + .variant { border-top: 1px dashed var(--line); }
.variant-name {
	padding: 1px 10px;
	border: 1px solid var(--gold-line);
	border-radius: 8px;
	color: var(--gold);
	font-size: 13.5px;
	font-weight: 600;
	white-space: nowrap;
}
.variant .buy { flex: 1; margin-top: 0; justify-content: flex-end; gap: 14px; }

/* ---------- items without a photo: price-list rows ---------- */
.item:not(.has-photo) { padding: 16px 4px; border-bottom: 1px dashed var(--line); }
.item:not(.has-photo):has(+ .has-photo), .item:not(.has-photo):last-child { border-bottom: 0; }
.item:not(.has-photo) .item-body { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.item:not(.has-photo) .item-text { flex: 1 1 150px; min-width: 0; }
.item:not(.has-photo) .item-body > .buy { margin: 0; margin-inline-start: auto; }
.item:not(.has-photo) .price-wrap { align-items: flex-end; text-align: end; }
.item:not(.has-photo) .variants { flex-basis: 100%; margin-top: 0; }

/* ---------- footer ---------- */
.footer { max-width: var(--wrap); margin: 40px auto 0; padding: 32px 16px 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; }
.footer-logo { width: 96px; height: auto; margin: 0 auto 18px; }
.footer p { margin: 0 0 6px; }
.footer-address { max-width: 30ch; margin: 16px auto 6px !important; font-size: 13.5px; }
.footer-note { font-size: 12.5px; opacity: .85; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--gold-line);
	border-radius: 999px;
	color: var(--ink);
	text-decoration: none;
	font-size: 14.5px;
}
.pill svg { width: 18px; height: 18px; color: var(--gold); }
.pill bdi { color: var(--gold); }
.review-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	width: min(100%, 320px);
	margin: 0 auto 14px;
	padding: 12px 18px;
	border-radius: 16px;
	background: var(--gold-grad);
	color: #1E1C1A;
	text-decoration: none;
	font-weight: 700;
	font-size: 16.5px;
	box-shadow: 0 10px 26px rgb(var(--gold-rgb) / 0.2);
}
.review-stars { letter-spacing: .2em; font-size: 13px; }

/* ---------- «قائمتي» bar ---------- */
.orderbar {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 30;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	background: linear-gradient(to top, var(--bg) 55%, transparent);
}
.orderbar-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	max-width: calc(var(--wrap) - 32px);
	min-height: 58px;
	margin: 0 auto;
	padding: 0 18px;
	border: 0;
	border-radius: 18px;
	background: var(--gold-grad);
	color: #1E1C1A;
	box-shadow: var(--shadow), 0 0 24px rgb(var(--gold-rgb) / 0.25);
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}
.orderbar-icon { display: grid; place-items: center; }
.orderbar-count { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: #1E1C1A; color: #F7D995; font-size: 13px; }
.orderbar-total { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.orderbar-total .cur { font-size: 12.5px; font-weight: 600; }

/* ---------- list sheet ---------- */
dialog { color: var(--ink); }
dialog::backdrop { background: rgb(10 10 10 / 0.6); }
.sheet {
	width: 100%;
	max-width: var(--wrap);
	max-height: 88vh;
	margin: auto auto 0;
	padding: 0;
	border: 1px solid var(--gold-line);
	border-bottom: 0;
	border-radius: 24px 24px 0 0;
	background: var(--bg-2);
	box-shadow: var(--shadow);
}
.sheet-inner { display: flex; flex-direction: column; max-height: 88vh; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 2px; }
.sheet-head h2 { margin: 0; color: var(--gold); font-size: 28px; font-weight: 700; }
[lang="en"] .sheet-head h2 { font-family: var(--font-serif); font-size: 34px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.sheet-hint { margin: 0; padding: 0 18px 6px; color: var(--muted); font-size: 13px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
#order-lines { padding: 0 18px; overflow-y: auto; }
.line {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "text sum" "text stepper";
	align-items: center;
	gap: 6px 12px;
	padding: 12px 0;
	border-bottom: 1px dashed var(--line);
}
.line-text { grid-area: text; display: flex; flex-direction: column; }
.line-name { font-weight: 700; }
.line-variant { color: var(--gold); font-size: 13.5px; }
.line-unit { color: var(--muted); font-size: 13px; }
.line .stepper { grid-area: stepper; justify-self: end; }
.line-sum { grid-area: sum; justify-self: end; color: var(--gold); font-weight: 700; white-space: nowrap; }
.empty { padding: 24px 0; color: var(--muted); text-align: center; }
.sheet-foot { padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.total-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; font-size: 16px; }
.total-row strong { color: var(--gold); font-size: 24px; font-weight: 700; }
.primary, .secondary { display: block; width: 100%; min-height: 52px; border-radius: 14px; font-size: 16px; font-weight: 700; cursor: pointer; }
.primary { border: 0; background: var(--gold-grad); color: #1E1C1A; }
:root[data-theme="light"] .primary { background: var(--button); color: var(--button-ink); }
.primary:disabled { opacity: 0.45; cursor: default; }
.secondary { margin-top: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); }

/* ---------- staff screen: large and high-contrast, always Arabic ---------- */
.staff {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: #FBF6EE;
	color: #1E1C1A;
}
.staff-inner {
	display: flex;
	flex-direction: column;
	max-width: var(--wrap);
	height: 100%;
	margin: 0 auto;
	padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
}
.staff-logo { width: 104px; height: auto; margin: 0 auto 6px; filter: brightness(.82) saturate(1.2); }
.staff h2 { margin: 0 0 10px; font-size: 34px; font-weight: 700; text-align: center; }
.staff-list { flex: 1; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.staff-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid #E6DccC; font-size: 23px; line-height: 1.3; }
.s-qty { flex: none; min-width: 64px; font-weight: 700; color: #8E6216; }
.s-name { font-weight: 600; }
.s-local { display: block; margin-top: 2px; color: #6A5E52; font-size: 15px; font-weight: 400; }
.staff-total { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 0 6px; font-size: 22px; font-weight: 700; }
.staff-total strong { font-size: 32px; color: #8E6216; }
.staff-note { margin: 0 0 12px; color: #6A5E52; font-size: 14px; }
.staff .primary { background: #1E1C1A; color: #F9E7C9; }

/* ---------- hidden prices: blurred everywhere (fajr) ---------- */
.price, .line-sum, .line-unit bdi, .total, .orderbar-total { transition: filter 0.2s ease; }
:root[data-prices="hidden"] :is(.price:not(.pending), .line-sum, .line-unit bdi, .total, .orderbar-total) { filter: blur(7px); -webkit-user-select: none; user-select: none; }

.toast {
	position: fixed;
	top: calc(var(--top) + 10px);
	left: 50%;
	z-index: 40;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--gold-grad);
	color: #1E1C1A;
	box-shadow: 0 8px 24px rgb(0 0 0 / 0.3);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	transform: translateX(-50%);
	pointer-events: none;
}

/* ---------- Google review: bell, invitation card ---------- */
.bell {
	position: relative;
	flex: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-inline: 2px 14px;
	margin-bottom: 5px;
	border-radius: 50%;
	border: 1px solid var(--gold-line);
	background: transparent;
	color: var(--gold);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.bell[hidden] { display: none; }
.bell-icon { width: 22px; height: 22px; stroke-width: 1.7; }
.bell-badge {
	position: absolute;
	top: -3px;
	inset-inline-end: -3px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: #D9534F;
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	display: none;
}
.bell.is-ringing { border-color: transparent; background: var(--gold-grad); color: #1E1C1A; }
.bell.is-ringing .bell-badge { display: block; }
.bell-staff { position: absolute; z-index: 2; top: max(16px, env(safe-area-inset-top)); inset-inline-end: 16px; width: 52px; height: 52px; margin: 0; border-color: rgb(142 98 22 / 0.4); color: #8E6216; }
.bell-staff .bell-icon { width: 26px; height: 26px; }
.invite {
	position: fixed;
	z-index: 40;
	width: min(288px, calc(100vw - 24px));
	padding: 16px 16px 14px;
	border-radius: 18px;
	background: #252321;
	border: 1px solid rgb(238 194 113 / 0.35);
	box-shadow: 0 18px 40px rgb(0 0 0 / 0.55);
	text-align: center;
	color: #F9E7C9;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity .2s, transform .2s;
}
.invite.is-open { opacity: 1; transform: none; }
.invite::before {
	content: "";
	position: absolute;
	top: -7px;
	left: var(--arrow, 24px);
	width: 14px;
	height: 14px;
	rotate: 45deg;
	background: #252321;
	border-top: 1px solid rgb(238 194 113 / 0.35);
	border-left: 1px solid rgb(238 194 113 / 0.35);
}
.invite-stars { width: 112px; height: 19px; margin: 2px auto 6px; fill: #EEC271; stroke: none; }
.invite-title { margin: 0; font-weight: 700; font-size: 18px; color: #EEC271; }
.invite-body { margin: 2px 0 12px; color: rgb(249 231 201 / 0.7); font-size: 14.5px; }
.invite-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.invite-rate, .invite-later { min-height: 44px; border-radius: 12px; display: grid; place-items: center; font: inherit; text-decoration: none; cursor: pointer; }
.invite-rate { background: var(--gold-grad); color: #1E1C1A; font-weight: 700; }
.invite-later { padding: 0 16px; background: transparent; color: #F9E7C9; border: 1px solid rgb(238 194 113 / 0.35); }

/* ---------- motion (all off for "reduce motion") ---------- */
@media (prefers-reduced-motion: no-preference) {
	.opening-logo { animation: logo-in 1s var(--ease) both; }
	.opening-halo { animation: halo-in 1.2s var(--ease) both, halo-breathe 5s ease-in-out 1.2s infinite; }
	.opening-sweep { animation: sweep 2.4s ease-in-out .8s 1 both, sweep 2.4s ease-in-out 7s infinite; }
	.opening-tagline, .opening-hint { animation: rise .8s var(--ease) .5s both; }
	.opening-cue svg { animation: cue 2s ease-in-out infinite; }
	@supports (animation-timeline: view()) {
		.opening { view-timeline: --opening block; }
		.opening-photo img { animation: opening-drift linear both; animation-timeline: --opening; animation-range: exit 0% exit 100%; }
		.opening-content { animation: opening-fade linear both; animation-timeline: --opening; animation-range: exit 0% exit 70%; }
	}

	.has-pill .nav-pill { transition: transform .55s var(--spring), width .55s var(--spring), opacity .4s var(--ease); }
	.nav-pill::after { animation: pill-shine 5.5s ease-in-out 1.5s infinite; }

	.reveal .section:not(.is-in) .section-head, .reveal .section:not(.is-in) .item { opacity: 0; transform: translateY(18px); }
	.reveal .section:not(.is-in) .item-photo { transform: scale(.82) rotate(-6deg); }
	.section.is-in .section-head, .section.is-in .item { transition: opacity .6s var(--ease), transform .7s var(--ease), background-color .3s var(--ease); }
	.section.is-in .item-photo { transition: transform .9s var(--spring); }
	.section.is-in .item:nth-child(1) { transition-delay: .08s; }
	.section.is-in .item:nth-child(2) { transition-delay: .13s; }
	.section.is-in .item:nth-child(3) { transition-delay: .18s; }
	.section.is-in .item:nth-child(4) { transition-delay: .23s; }
	.section.is-in .item:nth-child(5) { transition-delay: .28s; }
	.section.is-in .item:nth-child(n + 6) { transition-delay: .32s; }
	.reveal .section:not(.is-in) .section-mark { opacity: 0; transform: translateY(40px); }
	.section.is-in .section-mark { transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }

	.sheet[open] { animation: sheet-up .45s var(--ease); }
	.staff[open] { animation: fade-in .3s var(--ease); }
	.stepper { animation: pop-in .28s var(--spring); }
	.bell:not([hidden]) { animation: bell-in .35s ease-out; }
	.bell.is-ringing { animation: bell-in .35s ease-out, bell-glow 1.6s ease-out .35s 3; }
	.bell.is-ringing .bell-icon { animation: bell-swing 1.1s ease-in-out .35s 2; transform-origin: 50% 12%; }
	.review-btn { animation: glow-breathe 3.2s ease-in-out infinite; }
}
@keyframes logo-in { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes halo-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes halo-breathe { 50% { opacity: 0.65; transform: scale(1.06); } }
@keyframes sweep { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes cue { 0%, 100% { transform: none; } 50% { transform: translateY(5px); } }
@keyframes opening-drift { to { transform: translateY(18%); } }
@keyframes opening-fade { to { opacity: 0; transform: translateY(-36px) scale(0.96); } }
@keyframes pill-shine { 0%, 62% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(330%) skewX(-20deg); } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { transform: scale(.85); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes glow-breathe { 50% { box-shadow: 0 10px 34px rgb(var(--gold-rgb) / 0.42); } }
@keyframes bell-in { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bell-glow { 0% { box-shadow: 0 0 0 0 rgb(var(--gold-rgb) / .55); } 100% { box-shadow: 0 0 0 16px rgb(var(--gold-rgb) / 0); } }
@keyframes bell-swing {
	0%, 100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); }
	45% { transform: rotate(10deg); } 60% { transform: rotate(-7deg); } 75% { transform: rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
