/* SYRIABAB — brand stylesheet. */
:root {
  --navy: #0B1F3A; --navy-2: #132B4F; --emerald: #0E7C5A; --emerald-2: #12A174;
  --gold: #C9A227; --gold-2: #E6C766; --cream: #F7F1E3; --ink: #0A1526;
  --ember: #C2562B;
  --font-ar: "Dubai", "Segoe UI", "Tahoma", sans-serif;
  --font-lat: "Segoe UI", "Dubai", system-ui, sans-serif;
  --radius: 18px; --radius-sm: 12px;
  --wrap: 1180px;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23C9A227' stroke-width='1' opacity='.55'%3E%3Cpath d='M36 8l8 12 14-2-2 14 12 8-12 8 2 14-14-2-8 12-8-12-14 2 2-14L4 40l12-8-2-14 14 2z'/%3E%3Ccircle cx='36' cy='40' r='9'/%3E%3C/g%3E%3C/svg%3E");
}
html[data-theme="dark"], html:not([data-theme]) {
  --bg: #08182E; --bg-2: var(--navy); --surface: #10274A; --surface-2: #163259; --line: rgba(230, 199, 102, .16);
  --text: #F3EEE2; --muted: #B4BED0; --soft: #8E9BB2; --accent: var(--gold-2); --action: var(--emerald-2); --action-ink: #fff;
  --chip: rgba(255, 255, 255, .06); --shadow: 0 18px 50px rgba(0, 0, 0, .35); --hero-ink: #F7F1E3;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #FBF7EE; --bg-2: var(--cream); --surface: #FFFFFF; --surface-2: #F4EDDC; --line: rgba(11, 31, 58, .12);
  --text: #0A1526; --muted: #43506A; --soft: #6A7489; --accent: #9C7A12; --action: var(--emerald); --action-ink: #fff;
  --chip: rgba(11, 31, 58, .05); --shadow: 0 14px 40px rgba(11, 31, 58, .10); --hero-ink: #F7F1E3;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-lat); font-size: 16px; line-height: 1.6;
  overflow-x: hidden; min-height: 100vh;
}
html[lang="ar"] body { font-family: var(--font-ar); font-size: 17px; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.ico { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }

/* ---------- wordmark */
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); text-decoration: none; }
.wm-star { width: 34px; height: 34px; }
.wm-text { font-family: var(--font-lat); font-weight: 800; letter-spacing: .06em; font-size: 22px; line-height: 1; }
.wm-sham { color: var(--text); }
.wm-go { color: var(--gold); }
.wordmark--big .wm-star { width: 54px; height: 54px; }
.wordmark--big .wm-text { font-size: 34px; }
.brand-ar { font-family: var(--font-ar); font-weight: 700; color: var(--gold); font-size: 15px; }

/* ---------- header */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 14px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--chip); }
.tools { display: flex; gap: 6px; align-items: center; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--chip); padding: 7px 11px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.pill-btn:hover { border-color: var(--gold); }
.pill-btn .ico { width: 17px; height: 17px; }
html[data-theme="dark"] .ico-moon, html:not([data-theme]) .ico-moon { display: none; }
html[data-theme="light"] .ico-sun { display: none; }
.demo-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; color: var(--accent); border: 1px dashed color-mix(in srgb, var(--gold) 60%, transparent); white-space: nowrap; }

/* ---------- hero */
.hero { position: relative; overflow: hidden; color: var(--hero-ink); background: radial-gradient(1200px 500px at 85% -10%, rgba(18, 161, 116, .28), transparent 60%), linear-gradient(160deg, #0B1F3A 0%, #0A1A31 55%, #0B2A3C 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 72px; opacity: .14; mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-2); font-weight: 700; letter-spacing: .08em; font-size: 13px; text-transform: uppercase; }
html[lang="ar"] .kicker { letter-spacing: 0; font-size: 15px; text-transform: none; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.hero h1 { font-family: var(--font-ar); font-weight: 700; font-size: clamp(34px, 5.4vw, 62px); line-height: 1.12; margin: 16px 0 18px; letter-spacing: -.01em; color: #fff; text-wrap: balance; }
html[lang="tr"] .hero h1 { font-family: var(--font-lat); font-weight: 800; letter-spacing: -.02em; }
.hero .lead { color: #C9D2E1; font-size: clamp(16px, 1.6vw, 19px); max-width: 560px; margin: 0 0 28px; }
.price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 24px; }
.price-tag { display: inline-flex; align-items: baseline; gap: 10px; padding: 10px 20px; border-radius: 14px; background: linear-gradient(135deg, rgba(201, 162, 39, .22), rgba(201, 162, 39, .06)); border: 1px solid rgba(230, 199, 102, .45); }
.price-tag small { color: var(--gold-2); font-weight: 700; font-size: 14px; }
.price-tag strong { font-size: 30px; color: #fff; font-weight: 800; line-height: 1.1; }
.reserve { color: #E9DFC4; font-weight: 600; max-width: 330px; font-size: 15px; line-height: 1.45; }
.searchbar { display: flex; flex-wrap: wrap; gap: 8px; background: rgba(255, 255, 255, .96); border-radius: 18px; padding: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); max-width: 640px; }
.searchbar .field { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; padding: 0 12px; color: #43506A; min-width: 0; }
.searchbar input, .searchbar select { border: 0; background: transparent; color: #0A1526; padding: 11px 0; width: 100%; outline: none; font-size: 16px; min-width: 0; }
.searchbar select { flex: 0 1 190px; border-inline-start: 1px solid #E4DCC8; padding-inline: 12px; cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 13px; padding: 12px 20px; font-weight: 700; text-decoration: none; font-size: 16px; line-height: 1.2; transition: transform .12s ease, filter .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--emerald); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-ghost { background: var(--chip); border: 1px solid var(--line); color: var(--text); }
.btn-wa { background: #128C5E; color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* hero art: Damascus arch */
.hero-art { position: relative; aspect-ratio: 4 / 5; max-width: 380px; width: 100%; justify-self: center; }
.arch { position: absolute; inset: 0; border-radius: 50% 50% 22px 22px / 38% 38% 22px 22px; border: 2px solid rgba(230, 199, 102, .6); background: linear-gradient(180deg, rgba(18, 161, 116, .25), rgba(11, 31, 58, .2)); overflow: hidden; }
.arch::before { content: ""; position: absolute; inset: 14px; border-radius: inherit; border: 1px solid rgba(230, 199, 102, .35); }
.arch::after { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 54px; opacity: .25; }
.arch-inner { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; z-index: 1; }
.arch-card { width: 100%; background: rgba(8, 24, 46, .82); border: 1px solid rgba(230, 199, 102, .35); border-radius: 16px; padding: 18px; backdrop-filter: blur(4px); }
.arch-card .sub { display: block; color: var(--gold-2); font-size: 13px; margin-bottom: 6px; }
.arch-card .addr { display: block; font-family: var(--font-lat); color: #fff; font-weight: 700; font-size: 17px; word-break: break-all; direction: ltr; text-align: start; }
.arch-card .addr.ar { margin-top: 8px; direction: ltr; text-align: start; word-break: normal; overflow-wrap: anywhere; }
.arch-card .addr.ar bdi { font-family: var(--font-ar); unicode-bidi: isolate; direction: rtl; }
.arch-card .note { color: #A9B4C7; font-size: 12px; margin-top: 10px; line-height: 1.4; }

/* ---------- sections */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section h2 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; font-weight: 700; }
html[lang="ar"] .section h2 { font-family: var(--font-ar); }
.section h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--gold); border-radius: 3px; margin-top: 10px; }
.muted { color: var(--muted); }

.sector-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.sector-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 16px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: start; transition: border-color .15s, transform .15s; min-width: 0; }
.sector-tile:hover { border-color: var(--gold); transform: translateY(-2px); }
.sector-tile[aria-pressed="true"] { border-color: var(--emerald-2); background: color-mix(in srgb, var(--emerald) 18%, var(--surface)); box-shadow: inset 0 0 0 1px var(--emerald-2); }
.sector-tile .glyph { width: 46px; height: 46px; color: var(--accent); }
.sector-tile .st-name { font-weight: 700; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.sector-tile .st-count { font-size: 13px; color: var(--soft); }

.result-meta { color: var(--muted); font-size: 15px; }
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.shop-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; min-width: 0; }
.shop-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gold) 60%, transparent); box-shadow: var(--shadow); }
.shop-cover { position: relative; height: 110px; background: linear-gradient(135deg, var(--navy-2), #0E3A44); overflow: hidden; }
.shop-cover::after { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 56px; opacity: .22; }
.shop-cover[data-accent="gold"] { background: linear-gradient(135deg, #3B2F0E, #6A5212); }
.shop-cover[data-accent="ember"] { background: linear-gradient(135deg, #4A1F12, #7A3518); }
.shop-cover[data-accent="emerald"] { background: linear-gradient(135deg, #0B3A33, #0E5C48); }
.shop-cover .glyph { position: absolute; inset-inline-end: 14px; bottom: 8px; width: 64px; height: 64px; color: rgba(247, 241, 227, .75); z-index: 1; }
.shop-body { display: flex; gap: 14px; padding: 0 18px 18px; margin-top: -28px; position: relative; z-index: 2; align-items: flex-end; }
.monogram, .shop-logo { flex: none; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); border: 3px solid var(--surface); color: var(--accent); font-weight: 800; font-size: 26px; overflow: hidden; }
.shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.shop-info { min-width: 0; padding-top: 32px; }
.shop-name { font-weight: 700; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; margin: 0; }
.shop-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 14px; margin-top: 4px; }
.shop-meta span { display: inline-flex; align-items: center; gap: 4px; }
.shop-meta .ico { width: 15px; height: 15px; }
.shop-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--accent); font-weight: 700; font-size: 14px; }
.shop-foot .ico { width: 18px; height: 18px; }
html[dir="rtl"] .shop-foot .ico, html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.chip { display: inline-flex; padding: 2px 9px; border-radius: 999px; background: var(--chip); border: 1px solid var(--line); font-size: 12px; color: var(--soft); font-weight: 600; }
.empty { padding: 34px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature .f-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--emerald) 22%, transparent); color: var(--emerald-2); margin-bottom: 14px; }
html[data-theme="light"] .feature .f-ico { color: var(--emerald); }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--soft); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- tenant page */
.t-hero { position: relative; color: #fff; background: linear-gradient(160deg, #0B1F3A, #0E3A44); overflow: hidden; }
.t-hero[data-accent="ember"] { background: linear-gradient(160deg, #2A1410 0%, #5A2614 55%, #0B1F3A 100%); }
.t-hero[data-accent="gold"] { background: linear-gradient(160deg, #241C08 0%, #4E3C0E 55%, #0B1F3A 100%); }
.t-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 64px; opacity: .16; }
.t-hero .wrap { position: relative; padding-top: 36px; padding-bottom: 34px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; }
.t-logo { width: 104px; height: 120px; border-radius: 52px 52px 16px 16px; background: rgba(8, 24, 46, .55); border: 2px solid rgba(230, 199, 102, .65); display: grid; place-items: center; overflow: hidden; color: var(--gold-2); font-size: 44px; font-weight: 800; }
.t-logo img { width: 100%; height: 100%; object-fit: cover; }
.t-logo .glyph { width: 70px; height: 70px; }
.t-title { margin: 6px 0 6px; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; overflow-wrap: anywhere; }
html[lang="ar"] .t-title { font-family: var(--font-ar); }
.t-desc { margin: 0 0 12px; color: #D5DCE8; max-width: 720px; overflow-wrap: anywhere; }
.t-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #E7DFC9; font-size: 15px; }
.t-meta span { display: inline-flex; align-items: center; gap: 6px; }
.t-meta .ico { width: 17px; height: 17px; color: var(--gold-2); }
.t-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.t-actions .btn { padding: 10px 16px; font-size: 15px; }
.t-actions .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); }

.t-toolbar { position: sticky; top: 66px; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.t-toolbar .wrap { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; padding: 2px; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab { flex: none; border: 1px solid var(--line); background: var(--surface); padding: 8px 15px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--muted); white-space: nowrap; }
.cat-tab[aria-selected="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.cur-switch { flex: none; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.cur-switch button { border: 0; background: transparent; padding: 6px 11px; border-radius: 999px; font-weight: 800; font-size: 13px; color: var(--muted); font-family: var(--font-lat); }
.cur-switch button[aria-pressed="true"] { background: var(--emerald); color: #fff; }
.rates-note { color: var(--soft); font-size: 13px; margin: 14px 0 0; }

.menu { padding: 26px 0 140px; }
.cat-block { margin-bottom: 34px; }
.cat-block h2 { font-size: 22px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.cat-block h2::before { content: ""; width: 14px; height: 14px; background: var(--gold); clip-path: polygon(50% 0, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 36%); }
.prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.prod { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.prod-media { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(120% 90% at 50% 100%, #F3E2BE 0%, #E9CF9B 55%, #C99A55 100%); overflow: hidden; display: grid; place-items: center; }
html[data-theme="dark"] .prod-media { background: radial-gradient(120% 90% at 50% 100%, #3A2A17 0%, #2A2016 50%, #142238 100%); }
.prod-media[data-kind="textile"] { background: linear-gradient(135deg, #1B3358, #23466F); }
.prod-media[data-kind="neutral"] { background: linear-gradient(135deg, var(--surface-2), var(--surface)); }
.prod-media img.photo { width: 100%; height: 100%; object-fit: cover; }
.prod-media svg.illus { width: 82%; height: 92%; }
.prod-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-name { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.prod-desc { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.prod-row { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 800; font-size: 18px; color: var(--accent); font-family: var(--font-lat); white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.price small { font-weight: 600; color: var(--soft); font-size: 12px; margin-inline-start: 4px; font-family: var(--font-ar); }
.qty { display: inline-flex; align-items: center; gap: 2px; background: var(--chip); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.qty button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface-2); font-weight: 800; font-size: 19px; line-height: 1; display: grid; place-items: center; }
.qty button.plus { background: var(--emerald); color: #fff; }
.qty output { min-width: 26px; text-align: center; font-weight: 800; font-family: var(--font-lat); }

.qr-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-top: 10px; }
.qr-frame { background: #fff; padding: 10px; border-radius: 14px; border: 2px solid var(--gold); width: 172px; }
.qr-frame img { width: 150px; height: 150px; image-rendering: pixelated; }
.qr-card h2 { margin: 0 0 6px; font-size: 22px; }
.qr-card p { margin: 0 0 14px; color: var(--muted); }
.qr-url { font-family: var(--font-lat); direction: ltr; unicode-bidi: isolate; color: var(--accent); font-weight: 700; word-break: break-all; }
.qr-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.cartbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg-2) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(0, 0, 0, .18); }
.cartbar .wrap { display: flex; align-items: center; gap: 14px; padding: 0; }
.cart-sum { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cart-sum .c-count { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-sum .c-total { font-weight: 800; font-size: 20px; font-family: var(--font-lat); direction: ltr; unicode-bidi: isolate; text-align: start; color: var(--text); white-space: nowrap; }
.cartbar .btn-wa { padding: 13px 18px; flex: none; }
.cartbar .btn-wa .ico { width: 22px; height: 22px; }
.cart-clear { background: transparent; border: 0; color: var(--soft); font-size: 13px; text-decoration: underline; padding: 6px; white-space: nowrap; flex: none; }
.cart-lines { list-style: none; margin: 0 0 10px; padding: 0; max-height: 34vh; overflow: auto; font-size: 14px; color: var(--muted); }
.cart-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }

/* ---------- panel */
.panel-head { padding: 40px 0 10px; }
.panel-head h1 { margin: 10px 0 6px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--gold) 55%, transparent); color: var(--muted); font-size: 14px; background: color-mix(in srgb, var(--gold) 6%, transparent); }
.form { display: grid; gap: 22px; padding: 18px 0 70px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h2 { margin: 0 0 16px; font-size: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld label { font-weight: 700; font-size: 15px; }
.fld .hint { font-size: 13px; color: var(--soft); }
.fld input, .fld select, .fld textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; font-size: 16px; min-width: 0; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
.fld textarea { min-height: 80px; resize: vertical; }
.slug-input { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); direction: ltr; }
.slug-input input { border: 0; border-radius: 0; flex: 1; font-family: var(--font-lat); }
.slug-input input:focus { box-shadow: none; }
.slug-input span { display: grid; place-items: center; padding: 0 12px; color: var(--soft); background: var(--chip); font-family: var(--font-lat); font-size: 14px; white-space: nowrap; }
.slug-status { font-size: 14px; font-weight: 700; min-height: 1.4em; }
.slug-status.ok { color: var(--emerald-2); }
.slug-status.bad, .field-error { color: #E5735A; }
html[data-theme="light"] .slug-status.ok { color: var(--emerald); }
html[data-theme="light"] .slug-status.bad, html[data-theme="light"] .field-error { color: #B23A1E; }
.upload { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; }
.preview { width: 120px; height: 120px; border-radius: 16px; border: 2px dashed var(--line); display: grid; place-items: center; color: var(--soft); overflow: hidden; background: var(--bg); }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview .ico { width: 34px; height: 34px; }
.file-btn { position: relative; display: inline-flex; overflow: hidden; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.prod-rows { display: grid; gap: 14px; }
.prod-row-f { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr) minmax(0, .9fr) minmax(0, 1fr); gap: 12px; align-items: end; padding: 14px; border-radius: 14px; background: var(--chip); border: 1px solid var(--line); }
.prod-row-f .num { font-weight: 800; color: var(--accent); font-size: 14px; grid-column: 1 / -1; }
.prod-row-f input[type=file] { padding: 8px; font-size: 13px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-error { color: #E5735A; font-weight: 700; }
html[data-theme="light"] .form-error { color: #B23A1E; }
.success { text-align: center; padding: 34px 22px; }
.success .ok-ico { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald); color: #fff; }
.success .ok-ico .ico { width: 34px; height: 34px; }
.success .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }

/* ---------- 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.nf .arch-mini { width: 120px; height: 150px; margin: 0 auto 20px; border-radius: 60px 60px 14px 14px; border: 2px solid var(--gold); display: grid; place-items: center; color: var(--gold); font-size: 44px; font-weight: 800; font-family: var(--font-lat); }

/* ---------- responsive */
@media (max-width: 1100px) {
  .sector-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-top: 40px; padding-bottom: 48px; }
  .hero-art { max-width: 340px; aspect-ratio: 5 / 4; }
  .arch { border-radius: 50% 50% 18px 18px / 46% 46% 18px 18px; }
  .shop-grid, .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-sub { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topbar .wrap { gap: 8px; min-height: 58px; }
  .t-toolbar { top: 58px; }
  .nav a { padding: 7px 9px; font-size: 14px; }
  .nav .hide-sm, .tools .tt-label { display: none; }
  .wm-text { font-size: 19px; }
  .wm-star { width: 28px; height: 28px; }
  /* mobile topbar: row 1 = brand + tools, row 2 = nav links (no overlap / no squeezed star) */
  .wm-star { flex: 0 0 auto; }
  .topbar .wrap { flex-wrap: wrap; row-gap: 0; }
  .topbar .brand { flex: 0 0 auto; }
  .topbar .tools { margin-inline-start: auto; }
  .topbar .nav { order: 3; flex: 1 1 100%; margin-inline-start: 0; padding-bottom: 8px; }
  .pill-btn { padding: 7px 9px; }
  .demo-badge { display: none; }
  .searchbar select { flex: 1 1 100%; border-inline-start: 0; border-top: 1px solid #E4DCC8; }
  .searchbar .btn { flex: 1 1 100%; }
  .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shop-grid, .prod-grid, .feature-grid, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 38px 0; }
  .t-hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .t-logo { width: 84px; height: 98px; font-size: 36px; }
  .t-toolbar .wrap { flex-wrap: wrap; }
  .cur-switch { order: -1; margin-inline-start: auto; }
  .qr-card { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .qr-actions { justify-content: center; }
  .upload { grid-template-columns: 96px minmax(0, 1fr); }
  .preview { width: 96px; height: 96px; }
  .prod-row-f { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .prod-row-f .pn { grid-column: 1 / -1; }
  .prod-row-f .pp { grid-column: 1 / -1; }
  .cartbar .btn-wa { padding: 12px 14px; font-size: 15px; }
  .cart-sum .c-total { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.section[data-flush] { padding-top: 0; }

/* Compact two-row sticky cart on narrow screens: summary+total+clear, then full-width CTA */
@media (max-width: 560px) {
  .cartbar { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .cartbar .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "sum clear" "cta cta"; gap: 8px 10px; align-items: center; }
  .cartbar .cart-sum { grid-area: sum; flex-direction: row; align-items: baseline; gap: 10px; flex-wrap: nowrap; }
  .cartbar .cart-clear { grid-area: clear; }
  .cartbar .btn-wa { grid-area: cta; width: 100%; justify-content: center; }
  .cart-sum .c-total { font-size: 18px; flex: none; }
  .cart-sum .c-count { flex: 0 1 auto; min-width: 0; }
}

.card-head-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-head-row h2 { margin: 0; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 9px; }
.btn-rm-prod { border: 0; background: transparent; color: #E5735A; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: underline; margin-inline-start: auto; }
.prod-row-f .num { display: flex; align-items: center; justify-content: space-between; font-weight: 800; color: var(--accent); font-size: 14px; grid-column: 1 / -1; }
.cart-note { flex: 1 1 180px; max-width: 280px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 7px 11px; font-size: 14px; color: var(--text); }
.cart-note:focus { outline: none; border-color: var(--gold); }
@media (max-width: 768px) {
  .cartbar-wrap { flex-wrap: wrap; }
  .cart-note { flex: 1 1 100%; max-width: 100%; order: 2; margin-top: 4px; }
}

/* 3-Step simple guide bar */
.steps-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; margin-bottom: 20px; }
.step-item { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.step-item.active { color: var(--gold); }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--text); }
.step-item.active .step-num { background: var(--gold); color: #0B1F3A; }
.step-sep { flex: 1; height: 2px; background: var(--line); max-width: 60px; }
@media (max-width: 600px) {
  .steps-bar { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .step-sep { display: none; }
}

/* Quick country code buttons for WhatsApp */
.wa-wrap { display: flex; flex-direction: column; gap: 6px; }
.quick-codes { display: flex; gap: 6px; align-items: center; }
.quick-codes span { font-size: 11px; color: var(--muted); }
.btn-code { border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer; }
.btn-code:hover { border-color: var(--gold); }

/* Optional Details accordion */
details.optional-details { cursor: pointer; }
details.optional-details summary { font-size: 15px; font-weight: 700; color: var(--gold); padding: 4px 0; outline: none; list-style-position: inside; }
details.optional-details summary:hover { opacity: .9; }
details.optional-details[open] summary { margin-bottom: 16px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }

/* Download brochure cards */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 14px; }
.dl-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.dl-card h3 { font-size: 16px; color: var(--gold); margin: 0; display: flex; align-items: center; gap: 8px; }
.dl-card p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.4; }
.dl-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

/* Cover Banner */
.t-cover-banner { width: 100%; height: 220px; background-size: cover; background-position: center; border-bottom: 2px solid var(--gold); margin-bottom: -40px; position: relative; }
.t-cover-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--bg) 100%); }

/* Out of Stock Badges */
.prod.is-out { opacity: .65; filter: grayscale(.4); }
.badge-out-stock { position: absolute; top: 8px; right: 8px; background: #e03131; color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; z-index: 2; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
html[dir="ltr"] .badge-out-stock { right: auto; left: 8px; }
.out-notice { font-size: 12px; font-weight: 700; color: #ff6b6b; padding: 4px 8px; }

/* Emergency & On-Duty Directory Styles */
.hero--emergency { background: radial-gradient(1000px 450px at 80% -10%, rgba(220, 53, 69, .22), transparent 60%), linear-gradient(160deg, #1A0D15 0%, #0B1F3A 60%); }
.kicker--red { color: #FF6B6B; }
.kicker--red::before { background: #FF6B6B; }
.filter-strip { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.city-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab-btn { background: var(--surface); border: 1px solid var(--line); color: var(--text); padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; transition: all .15s; }
.tab-btn.active, .tab-btn:hover { background: var(--gold); color: #0B1F3A; border-color: var(--gold); }
.cat-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.emergency-alert { background: rgba(220, 53, 69, .12); border: 1px solid rgba(220, 53, 69, .4); border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: #FF4D4D; box-shadow: 0 0 10px #FF4D4D; animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 0% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1.3); opacity: 1; } 100% { transform: scale(.9); opacity: .7; } }
.alert-txt strong { color: #FF8787; display: block; font-size: 14px; }
.alert-txt span { font-size: 13px; color: var(--muted); }

.emergency-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.em-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: transform .15s ease; }
.em-card:hover { transform: translateY(-2px); border-color: var(--gold); }
.em-top { display: flex; justify-content: space-between; align-items: center; }
.em-ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(201, 162, 39, .15); color: var(--gold-2); display: grid; place-items: center; }
.em-ico svg { width: 22px; height: 22px; }
.em-meta { display: flex; align-items: center; gap: 8px; }
.em-tag { font-size: 11px; font-weight: 700; color: var(--gold); text-transform: uppercase; }
.em-duty { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #51CF66; background: rgba(81, 207, 102, .12); padding: 2px 8px; border-radius: 999px; }
.duty-dot { width: 6px; height: 6px; border-radius: 50%; background: #51CF66; }
.em-title { font-size: 17px; margin: 0; color: var(--text); }
.em-area { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 0; }
.em-area .ico { width: 15px; height: 15px; }
.em-phone-box { background: var(--surface-2); padding: 8px 12px; border-radius: 8px; font-weight: 800; font-size: 16px; color: var(--gold-2); text-align: center; }
.em-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 8px; }

/* KPI Grid & Admin Styling */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.kpi-card--gold { border-color: var(--gold); background: linear-gradient(135deg, rgba(201,162,39,.12), var(--surface)); }
.kpi-lbl { display: block; font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.kpi-val { font-size: 26px; color: var(--text); font-weight: 800; }
.kpi-card--gold .kpi-val { color: var(--gold-2); }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.admin-tabs { display: flex; gap: 6px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.admin-table { width: 100%; border-collapse: collapse; text-align: start; font-size: 14px; }
.admin-table th, .admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.admin-table th { background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; border: 0; cursor: pointer; }
.badge--green { background: rgba(81,207,102,.2); color: #51CF66; }
.badge--gold { background: rgba(201,162,39,.2); color: var(--gold-2); }
.badge--blue { background: rgba(34,139,230,.2); color: #339AF0; }
.badge--red { background: rgba(224,49,49,.2); color: #FF6B6B; }

/* Merchant Product List */
.m-prod-list { display: flex; flex-direction: column; gap: 12px; }
.m-prod-item { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.m-prod-item.is-out { opacity: .7; border-color: #e03131; }

/* Status pill (Open / Closed) */
.status-pill { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.status-pill--open { background: rgba(81,207,102,.15); color: #51CF66; border: 1px solid rgba(81,207,102,.3); }
.status-pill--closed { background: rgba(255,146,43,.15); color: #FF922B; border: 1px solid rgba(255,146,43,.3); }
.cart-closed-notice { width: 100%; font-size: 11px; color: #FF922B; background: rgba(255,146,43,.1); border-radius: 6px; padding: 4px 8px; text-align: center; margin-bottom: 6px; }

/* Chai Referral Box */
.chai-box {
  background: var(--surface-2);
  border: 1.5px dashed var(--gold);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.chai-content { display: flex; align-items: center; gap: 14px; min-width: 240px; flex: 1; }
.chai-icon { font-size: 28px; line-height: 1; }
.chai-content strong { color: var(--gold-2); font-size: 15px; display: block; margin-bottom: 3px; }
.chai-content p { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.35; }

/* Cart Order Types (Dine-in / Takeaway) */
.cart-order-types { display: flex; gap: 8px; width: 100%; margin-bottom: 6px; }
.btn-otype {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
}
.btn-otype.active {
  background: rgba(201, 162, 39, .15);
  border-color: var(--gold);
  color: var(--gold-2);
}
.cart-inputs { display: flex; gap: 8px; width: 100%; margin-bottom: 6px; flex-wrap: wrap; }
.cart-inputs .cart-note { margin: 0; flex: 1 1 140px; }

/* Top Discount Hero Banner */
.discount-hero-banner {
  background: rgba(14, 124, 90, 0.15);
  border: 1px solid var(--emerald);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: #51CF66;
}
.discount-hero-banner .disc-icon { font-size: 20px; line-height: 1; }
.discount-hero-banner strong { color: #fff; }


