/* SYRIABAB — brand stylesheet. */
:root {
  --navy: #0B1F3A; --navy-2: #132B4F; --emerald: #0E7C5A; --emerald-2: #12A174;
  --gold: #C9A227; --gold-2: #E6C766; --cream: #F8F9FA; --ink: #111827;
  --ember: #C2562B;
  --font-ar: "Dubai", "Segoe UI", "Tahoma", sans-serif;
  --font-lat: "Segoe UI", "Dubai", system-ui, sans-serif;
  --radius: 16px; --radius-sm: 10px;
  --wrap: 1180px;
  --pattern: none;
}
html[data-theme="light"], html:not([data-theme]) {
  --bg: #F8F9FA; --bg-2: #FFFFFF; --surface: #FFFFFF; --surface-2: #F1F3F5; --line: #E5E7EB;
  --text: #111827; --muted: #4B5563; --soft: #6B7280; --accent: #0E7C5A; --action: #0E7C5A; --action-ink: #fff;
  --chip: #F3F4F6; --shadow: 0 4px 20px rgba(0, 0, 0, .05); --hero-ink: #111827;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #0C131F; --bg-2: #141F32; --surface: #141F32; --surface-2: #1C2B44; --line: rgba(255, 255, 255, .1);
  --text: #F3F4F6; --muted: #9CA3AF; --soft: #6B7280; --accent: var(--gold-2); --action: var(--emerald-2); --action-ink: #fff;
  --chip: rgba(255, 255, 255, .06); --shadow: 0 10px 30px rgba(0, 0, 0, .35); --hero-ink: #F3F4F6;
  color-scheme: dark;
}

*, *::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; transition: transform .15s ease; }
.wordmark:hover { transform: scale(1.02); }
.wm-star { width: 34px; height: 34px; flex-shrink: 0; filter: drop-shadow(0 2px 8px rgba(201, 162, 39, .35)); }
.wm-text { font-family: var(--font-lat); font-weight: 800; letter-spacing: .06em; font-size: 22px; line-height: 1; }
.wm-syria, .wm-sham { color: var(--text); }
.wm-bab, .wm-go { color: var(--gold); text-shadow: 0 0 16px rgba(201, 162, 39, .25); }
.wm-ar { font-family: var(--font-ar); font-size: 15px; font-weight: 700; color: var(--gold-2); margin-inline-start: 4px; padding-inline-start: 8px; border-inline-start: 1px solid rgba(201, 162, 39, .35); line-height: 1; display: inline-flex; align-items: center; letter-spacing: .02em; }
.wordmark--big .wm-star { width: 54px; height: 54px; }
.wordmark--big .wm-text { font-size: 34px; }
.wordmark--big .wm-ar { font-size: 20px; }
.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(--text); background: linear-gradient(180deg, #F0F4F8 0%, #FFFFFF 100%); border-bottom: 1px solid var(--line); }
html[data-theme="dark"] .hero { color: #fff; background: linear-gradient(180deg, #0C131F 0%, #141F32 100%); }
.hero::before { display: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--emerald); font-weight: 700; letter-spacing: .06em; font-size: 13px; text-transform: uppercase; background: rgba(14, 124, 90, .08); padding: 4px 12px; border-radius: 999px; }
html[lang="ar"] .kicker { letter-spacing: 0; font-size: 14px; text-transform: none; }
.kicker::before { display: none; }
.hero h1 { font-family: var(--font-ar); font-weight: 800; font-size: clamp(32px, 4.8vw, 54px); line-height: 1.16; margin: 16px 0 16px; letter-spacing: -.01em; color: var(--text); text-wrap: balance; }
html[lang="tr"] .hero h1 { font-family: var(--font-lat); font-weight: 800; letter-spacing: -.02em; }
.hero .lead { color: var(--muted); font-size: clamp(15px, 1.4vw, 18px); max-width: 540px; margin: 0 0 24px; line-height: 1.6; }
.price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 24px; }
.price-tag { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 16px; border-radius: 12px; background: rgba(14, 124, 90, .10); border: 1px solid rgba(14, 124, 90, .25); }
.price-tag small { color: var(--emerald); font-weight: 700; font-size: 13px; }
.price-tag strong { font-size: 24px; color: var(--emerald); font-weight: 800; line-height: 1.1; }
.reserve { color: var(--soft); font-weight: 600; max-width: 330px; font-size: 14px; line-height: 1.4; }
.searchbar { display: flex; flex-wrap: wrap; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .06); max-width: 620px; }
.searchbar .field { display: flex; align-items: center; gap: 8px; flex: 1 1 200px; padding: 0 12px; color: var(--muted); min-width: 0; }
.searchbar input, .searchbar select { border: 0; background: transparent; color: var(--text); padding: 10px 0; width: 100%; outline: none; font-size: 15px; min-width: 0; }
.searchbar select { flex: 0 1 180px; border-inline-start: 1px solid var(--line); padding-inline: 12px; cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 700; text-decoration: none; font-size: 15px; line-height: 1.2; transition: transform .12s ease, filter .12s ease, background-color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--emerald); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-gold { background: #D97706; color: #fff; }
.btn-ghost { background: var(--chip); border: 1px solid var(--line); color: var(--text); }
.btn-wa { background: #16A34A; color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* hero showcase card */
.hero-showcase { display: flex; justify-content: center; width: 100%; }
.showcase-card { width: 100%; max-width: 380px; background: var(--surface); border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 16px 36px rgba(0, 0, 0, .08); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease; }
.showcase-card:hover { transform: translateY(-3px); }
.showcase-media { position: relative; width: 100%; height: 180px; overflow: hidden; background: var(--surface-2); }
.showcase-img { width: 100%; height: 100%; object-fit: cover; }
.showcase-badge { position: absolute; top: 12px; inset-inline-end: 12px; background: rgba(17, 24, 39, .82); color: #FCD34D; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.showcase-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.showcase-header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.showcase-title { font-size: 18px; font-weight: 800; color: var(--text); }
.showcase-price { font-size: 13px; font-weight: 700; color: var(--emerald); }
.showcase-meta { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.showcase-qr-row { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface-2); border-radius: 12px; border: 1px dashed var(--line); }
.showcase-qr-box { width: 48px; height: 48px; border-radius: 8px; background: #fff; padding: 4px; display: grid; place-items: center; border: 1px solid var(--line); flex: none; }
.showcase-qr-info { display: flex; flex-direction: column; min-width: 0; }
.showcase-qr-info strong { font-size: 13px; color: var(--text); font-family: var(--font-lat); direction: ltr; text-align: start; }
.showcase-qr-info small { font-size: 12px; color: var(--soft); }

/* ---------- sections */
.section { padding: 48px 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: 20px; }
.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 .2s ease, border-color .2s ease, box-shadow .2s ease; min-width: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .04); }
.shop-card:hover { transform: translateY(-4px); border-color: var(--emerald); box-shadow: 0 12px 28px rgba(0, 0, 0, .08); }
.shop-cover { position: relative; height: 130px; background: var(--surface-2); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.shop-cover::after { display: none; }
.shop-cover-img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.shop-card:hover .shop-cover-img { transform: scale(1.04); }
.shop-cover .glyph { position: absolute; inset-inline-end: 14px; bottom: 8px; width: 54px; height: 54px; color: var(--soft); opacity: .4; z-index: 1; }
.shop-body { display: flex; gap: 14px; padding: 0 18px 16px; margin-top: -24px; position: relative; z-index: 2; align-items: flex-end; }
.monogram, .shop-logo { flex: none; width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 2px solid var(--surface); box-shadow: 0 4px 10px rgba(0, 0, 0, .08); color: var(--emerald); font-weight: 800; font-size: 22px; overflow: hidden; }
.shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.shop-info { min-width: 0; padding-top: 28px; }
.shop-name { font-weight: 800; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; margin: 0; color: var(--text); }
.shop-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.shop-meta span { display: inline-flex; align-items: center; gap: 4px; }
.shop-meta .ico { width: 14px; height: 14px; color: var(--soft); }
.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(--emerald); font-weight: 700; font-size: 13.5px; background: var(--surface-2); }
.shop-foot .ico { width: 16px; height: 16px; }
html[dir="rtl"] .shop-foot .ico, html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.chip { display: inline-flex; padding: 2px 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; color: var(--muted); 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: var(--text); background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; }
html[data-theme="dark"] .t-hero { color: #fff; background: var(--surface); }
.t-hero::before { display: none; }
.t-hero .wrap { position: relative; padding-top: 32px; padding-bottom: 30px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; }
.t-logo { width: 96px; height: 96px; border-radius: 16px; background: var(--surface-2); border: 2px solid var(--line); display: grid; place-items: center; overflow: hidden; color: var(--emerald); font-size: 38px; font-weight: 800; box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.t-logo img { width: 100%; height: 100%; object-fit: cover; }
.t-logo .glyph { width: 60px; height: 60px; }
.t-title { margin: 6px 0 6px; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; overflow-wrap: anywhere; color: var(--text); }
html[lang="ar"] .t-title { font-family: var(--font-ar); }
.t-desc { margin: 0 0 12px; color: var(--muted); max-width: 720px; overflow-wrap: anywhere; font-size: 15px; }
.t-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--soft); font-size: 14px; }
.t-meta span { display: inline-flex; align-items: center; gap: 6px; }
.t-meta .ico { width: 16px; height: 16px; color: var(--emerald); }
.t-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.t-actions .btn { padding: 9px 16px; font-size: 14.5px; }
.t-actions .btn-ghost { color: var(--text); border-color: var(--line); background: var(--chip); }

.t-toolbar { position: sticky; top: 66px; z-index: 20; background: color-mix(in srgb, var(--surface) 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: 8px; height: 18px; background: var(--emerald); border-radius: 4px; }
.prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.prod { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .03); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.prod:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .06); border-color: var(--emerald); }
.prod-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; }
html[data-theme="dark"] .prod-media { background: #1C2B44; }
.prod-media[data-kind="textile"] { background: var(--surface-2); }
.prod-media[data-kind="neutral"] { background: var(--surface-2); }
.prod-media img.photo { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.prod:hover .prod-media img.photo { transform: scale(1.04); }
.prod-media svg.illus { width: 65%; height: 75%; opacity: .85; }
.prod-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-name { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; color: var(--text); }
.prod-desc { margin: 0; color: var(--muted); font-size: 13.5px; 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; border-top: 1px dashed var(--line); }
.price { font-weight: 800; font-size: 18px; color: var(--emerald); 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%; flex-wrap: wrap; 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; }



@media (max-width: 480px) {
  .wm-ar { display: none; }
}

.discount-badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(14, 124, 90, 0.12);
  border: 1px solid var(--emerald);
  color: var(--emerald);
  font-weight: 700;
  font-size: 13px;
}
