/* =========================================================================
   Storefront. Three themes share one structure:
   hanar (soft, light) · zagros (editorial, sharp) · shev (night)
   --brand is set per store inline on <html>.
   ========================================================================= */

:root {
  --brand: #B0243F;
  --brand-ink: #fff;
  --brand-soft: color-mix(in srgb, var(--brand) 11%, #fff);
  --brand-hover: color-mix(in srgb, var(--brand) 86%, #000);
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F4F1F3;
  --ink: #1F1A1F;
  --ink-2: #4A424A;
  --muted: #7C737B;
  --line: #ECE7EB;
  --ok: #1F7A4A; --ok-soft: #E4F3EA;
  --warn: #9A5B00; --warn-soft: #FFF1D6;
  --danger: #B42318; --danger-soft: #FDE8E6;
  --r-card: 18px; --r-btn: 14px; --r-img: 16px; --r-chip: 999px;
  --font-display: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Noto Sans Arabic", "Noto Sans", "Segoe UI", Tahoma, sans-serif;
  --title-weight: 800;
  --shadow: 0 14px 34px -18px rgba(31, 26, 31, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
[data-theme="zagros"] {
  --bg: #FAFAF7; --surface: #FFFFFF; --surface-2: #F0EFEA; --line: #E2E0D8;
  --ink: #161616; --ink-2: #3B3B3B; --muted: #75746F;
  --r-card: 2px; --r-btn: 2px; --r-img: 0; --r-chip: 2px;
  --title-weight: 700; --shadow: none;
}
[data-theme="shev"] {
  --bg: #121014; --surface: #1B181D; --surface-2: #252127; --line: #2E2A30;
  --ink: #F4EFF3; --ink-2: #D5CDD3; --muted: #9D949B;
  --brand-soft: color-mix(in srgb, var(--brand) 22%, #121014);
  --ok: #62C891; --ok-soft: #173024; --warn: #E9AE52; --warn-soft: #33260F; --danger: #F2796B; --danger-soft: #3A1B18;
  --r-card: 16px; --r-btn: 12px; --r-img: 14px;
  --shadow: 0 16px 40px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--title-weight); line-height: 1.35; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.i { width: 20px; height: 20px; flex: none; }
.i-sm { width: 16px; height: 16px; flex: none; }
.i-lg { width: 28px; height: 28px; flex: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 14.5px; cursor: pointer; white-space: nowrap; transition: background .15s, transform .08s, border-color .15s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-brand { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.btn-brand:hover { background: var(--brand-hover); }
.btn-ink { background: var(--ink); color: var(--bg); border-color: transparent; }
.btn-ink:hover { opacity: .9; background: var(--ink); }
.btn-lg { min-height: 54px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
[data-theme="zagros"] .btn-brand { background: var(--ink); color: var(--bg); }
[data-theme="zagros"] .btn-brand:hover { background: var(--brand); }

/* Forms */
.field { display: grid; gap: 6px; }
.label { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
.label .opt { color: var(--muted); font-weight: 400; }
.input, .select, .textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.input.num { direction: ltr; text-align: end; }
[dir="ltr"] .input.num { text-align: start; }
.error { color: var(--danger); font-size: 13px; font-weight: 600; }
.hint { color: var(--muted); font-size: 12.5px; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Top strip + header */
.strip { background: var(--brand); color: var(--brand-ink); text-align: center; font-size: 13px; font-weight: 600; padding: 7px 16px; }
[data-theme="zagros"] .strip { background: var(--ink); color: var(--bg); }
.s-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.s-header .wrap { display: flex; align-items: center; gap: 14px; height: 70px; }
.s-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.s-logo { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; flex: none; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 18px; }
[data-theme="zagros"] .s-logo { border-radius: 0; }
.s-name { font-family: var(--font-display); font-weight: var(--title-weight); font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-search { flex: 1; max-width: 420px; margin-inline: auto; position: relative; }
.s-search .i { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 14px; color: var(--muted); width: 18px; height: 18px; }
.s-search .input { min-height: 44px; padding-inline-start: 42px; background: var(--surface-2); border-color: transparent; }
@media (max-width: 720px) { .s-search { display: none; } }
.s-actions { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.cart-btn { position: relative; }
.cart-count { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }

.langs { position: relative; }
.langs summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: var(--r-btn); cursor: pointer; font-family: var(--font-display); font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); }
.langs summary::-webkit-details-marker { display: none; }
.langs .menu { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; min-width: 150px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 60; }
.langs .menu a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 9px; }
.langs .menu a:hover { background: var(--surface-2); }
.langs .menu a.is-current { color: var(--brand); font-weight: 700; }
@media (max-width: 460px) { .langs summary { padding: 0 10px; } .langs summary .lname { display: none; } }

/* Hero */
.s-hero { margin: 18px auto 0; }
.s-hero-inner { position: relative; overflow: hidden; border-radius: var(--r-card); min-height: 230px; display: flex; align-items: flex-end; padding: clamp(22px, 4vw, 44px); color: #fff; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000)); }
.s-hero-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-hero-inner.has-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,.05) 70%); }
.s-hero-inner > div { position: relative; z-index: 1; max-width: 640px; }
.s-hero h1 { font-size: clamp(26px, 4.4vw, 46px); }
.s-hero p { margin-top: 6px; font-size: clamp(15px, 1.6vw, 18px); opacity: .92; }
[data-theme="zagros"] .s-hero-inner:not(.has-cover) { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
[data-theme="zagros"] .s-hero h1 { font-size: clamp(32px, 6vw, 68px); letter-spacing: -.02em; }

/* Chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 18px; border-radius: var(--r-chip); background: var(--surface-2); font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink-2); border: 1px solid transparent; transition: background .15s; }
.chip:hover { border-color: var(--line); }
.chip.is-active { background: var(--ink); color: var(--bg); }

/* Sections + grid */
.s-section { padding: 26px 0; }
.s-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.s-section-head h2 { font-size: clamp(20px, 2.4vw, 26px); }
.p-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 2vw, 22px); }
@media (max-width: 1000px) { .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.p-card { display: grid; gap: 10px; }
.p-img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-img); overflow: hidden; background: var(--surface-2); }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.p-card:hover .p-img img { transform: scale(1.04); }
.p-img .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.p-badge { position: absolute; top: 10px; inset-inline-start: 10px; padding: 3px 10px; border-radius: var(--r-chip); font-size: 12px; font-weight: 700; font-family: var(--font-display); background: var(--surface); color: var(--ink); }
.p-badge.out { background: var(--ink); color: var(--bg); }
.p-name { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-price { font-family: var(--font-display); font-weight: 800; color: var(--brand); font-size: 15px; }
[data-theme="zagros"] .p-price { color: var(--ink); font-weight: 700; }
.p-price s { color: var(--muted); font-weight: 500; font-size: 13px; margin-inline-start: 6px; }
.p-card.is-out .p-img img { filter: grayscale(.6); opacity: .75; }

/* Product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 4vw, 56px); padding: 22px 0 40px; align-items: start; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; padding-top: 12px; } }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding-top: 18px; }
.crumbs a:hover { color: var(--ink); }
.gallery { position: sticky; top: 90px; display: grid; gap: 10px; }
@media (max-width: 860px) { .gallery { position: static; } }
.g-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r-img); background: var(--surface-2); scrollbar-width: none; }
.g-main::-webkit-scrollbar { display: none; }
.g-main img, .g-main .ph { flex: none; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: center; }
.g-main .ph { display: grid; place-items: center; color: var(--muted); }
.g-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.g-thumbs button { flex: none; width: 70px; aspect-ratio: 1; padding: 0; border-radius: calc(var(--r-img) * .6); overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--surface-2); opacity: .7; }
.g-thumbs button.is-active { border-color: var(--brand); opacity: 1; }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { display: grid; gap: 18px; }
.pdp-info h1 { font-size: clamp(24px, 3vw, 34px); }
.pdp-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pdp-price b { font-family: var(--font-display); font-size: clamp(24px, 3vw, 30px); font-weight: 800; color: var(--brand); }
[data-theme="zagros"] .pdp-price b { color: var(--ink); }
.pdp-price s { color: var(--muted); font-size: 17px; }
.save-tag { padding: 3px 10px; border-radius: var(--r-chip); background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 700; font-family: var(--font-display); }
.stock-line { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.stock-line::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.stock-line.low::before { background: var(--warn); }
.stock-line.out { color: var(--danger); }
.stock-line.out::before { background: var(--danger); }
.opt-group { display: grid; gap: 8px; }
.opt-group .label b { color: var(--ink); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-width: 52px; padding: 10px 16px; border-radius: var(--r-btn); border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.pill:hover { border-color: var(--ink-2); }
.pill[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.pill.is-unavailable { opacity: .45; text-decoration: line-through; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--surface); height: 54px; }
.qty button { width: 46px; height: 100%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.qty input { width: 48px; border: 0; background: transparent; text-align: center; font-weight: 700; font-size: 16px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm { height: 40px; }
.qty.sm button { width: 36px; }
.qty.sm input { width: 36px; font-size: 14px; }
.buy-row { display: flex; gap: 10px; }
.buy-row .btn { flex: 1; }
@media (max-width: 860px) {
  .buy-bar { position: sticky; bottom: 0; z-index: 30; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
}
.perks { display: grid; gap: 10px; padding: 16px; border-radius: var(--r-card); background: var(--surface-2); }
.perks div { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.perks .i { color: var(--brand); }
.desc { line-height: 1.95; color: var(--ink-2); white-space: pre-line; }
.desc-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 6px; }

/* Cart + checkout */
.page-title { padding: 26px 0 10px; font-size: clamp(24px, 3vw, 32px); }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; padding-bottom: 50px; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.panel-pad { padding: 20px; }
.line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line img, .line .ph { width: 84px; height: 100px; border-radius: calc(var(--r-img) * .7); object-fit: cover; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.line b { font-family: var(--font-display); font-weight: 700; }
.line .meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 8px; }
.line .remove { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; padding: 0; }
.line.sm { grid-template-columns: 56px minmax(0, 1fr) auto; padding: 12px 0; }
.line.sm img, .line.sm .ph { width: 56px; height: 66px; }
.summary { position: sticky; top: 90px; display: grid; gap: 12px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.sum-row.total { padding-top: 12px; border-top: 1px dashed var(--line); font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-btn); background: var(--brand-soft); color: var(--ink); font-size: 14px; align-items: flex-start; }
.notice .i { color: var(--brand); margin-top: 2px; }
.notice.warn { background: var(--warn-soft); }
.notice.warn .i { color: var(--warn); }
.notice.danger { background: var(--danger-soft); }
.notice.danger .i { color: var(--danger); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Order status */
.order-hero { text-align: center; padding: 36px 0 18px; }
.order-hero .ok { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); animation: pop .5s var(--ease) both; }
.order-hero .ok .i { width: 38px; height: 38px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.order-hero h1 { font-size: clamp(24px, 3.4vw, 34px); }
.order-hero p { color: var(--muted); margin-top: 6px; }

/* Empty + pager + footer */
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 60px 20px; }
.empty .ico { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 4px; }
.empty .ico .i { width: 32px; height: 32px; }
.empty h3 { font-size: 20px; }
.empty p { color: var(--muted); max-width: 380px; }
.pager { display: flex; gap: 6px; justify-content: center; align-items: center; padding: 26px 0; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--r-btn); display: grid; place-items: center; font-weight: 600; border: 1px solid var(--line); background: var(--surface); }
.pager span.is-current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager span.gap { border: 0; background: transparent; }

.s-footer { margin-top: 40px; border-top: 1px solid var(--line); background: var(--surface-2); padding: 36px 0 110px; }
.s-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .s-footer .wrap { grid-template-columns: 1fr; } }
.s-footer h3 { font-size: 15px; margin-bottom: 10px; }
.s-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--ink-2); font-size: 14px; }
.s-footer li a { display: inline-flex; align-items: center; gap: 8px; }
.s-footer li a:hover { color: var(--brand); }
.powered { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.powered a { font-weight: 700; color: var(--ink-2); }

.wa-float { position: fixed; z-index: 45; bottom: 18px; inset-inline-end: 18px; width: 56px; height: 56px; border-radius: 50%; background: #1FA855; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(0,0,0,.45); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.wa-float .i { width: 26px; height: 26px; }
body.has-buy-bar .wa-float { bottom: 96px; }
@media (min-width: 861px) { body.has-buy-bar .wa-float { bottom: 18px; } }

.toasts { position: fixed; z-index: 90; inset-inline: 0; top: 14px; display: grid; justify-items: center; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 440px; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; animation: toast-in .35s var(--ease) both; }
.toast.is-error { background: var(--danger); color: #fff; }
.toast.is-leaving { animation: toast-out .25s ease-in both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Mobile refinements ---------- */
.pdp > *, .cart-layout > *, .s-footer .wrap > * { min-width: 0; }
.buy-row .btn { min-width: 0; padding: 0 14px; }
.buy-row .btn span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) { .qty button { width: 38px; } .qty input { width: 36px; } }
.s-brand { min-width: 0; flex-shrink: 1; }
.stack, .pdp-info, .opt-group, .field, .summary { grid-template-columns: minmax(0, 1fr); }
.buy-row { min-width: 0; }
.buy-row .btn span { min-width: 0; white-space: nowrap; }
.select { max-width: 100%; }
.pay-options { display: grid; gap: 10px; }
.pay-option { position: relative; cursor: pointer; }
.pay-option input { position: absolute; opacity: 0; }
.pay-option > span { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-btn); border: 1.5px solid var(--line); background: var(--surface); }
.pay-option > span .i { grid-row: span 2; color: var(--muted); }
.pay-option b { font-family: var(--font-display); }
.pay-option small { color: var(--muted); font-size: 12.5px; }
.pay-option input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.pay-option input:checked + span .i { color: var(--brand); }
.pay-option input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.coupon-box { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.coupon-row { display: flex; gap: 8px; }
.coupon-row .input { min-height: 46px; }
.coupon-applied { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-btn); background: var(--ok-soft); color: var(--ok); font-size: 14px; }
.link-btn { border: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; padding: 0; font-size: 13px; }
.pay-card { justify-items: center; }
.qr { width: min(240px, 70vw); height: auto; aspect-ratio: 1; border-radius: 16px; background: #fff; padding: 10px; border: 1px solid var(--line); image-rendering: pixelated; }
.readable { font-family: ui-monospace, Consolas, monospace; font-size: 22px; font-weight: 700; letter-spacing: .12em; margin-top: 2px; }
.pay-wait { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 14px; flex-wrap: wrap; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.center { text-align: center; }
.pay-card > .stack, .pay-card > .pay-wait { width: 100%; }

/* ---------- Delivery location picker ---------- */
.map-pick { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-btn); border: 1.5px dashed color-mix(in srgb, var(--brand) 55%, var(--line)); background: var(--brand-soft); color: var(--ink); cursor: pointer; text-align: start; font: inherit; transition: border-color .15s, background .15s; }
.map-pick:hover { border-color: var(--brand); }
.map-pick b { display: block; font-family: var(--font-display); font-size: 15px; }
.map-pick small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-pick-ico { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); }
.map-pick.is-set { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.map-pick.is-set .map-pick-ico { background: var(--ok); color: #fff; }
.map-sheet { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; grid-template-rows: auto 1fr auto; }
.map-sheet[hidden] { display: none; }
.map-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); border-bottom: 1px solid var(--line); background: var(--surface); z-index: 2; }
.map-top b { font-family: var(--font-display); font-size: 16px; }
.map-canvas { position: relative; min-height: 0; background: var(--surface-2); direction: ltr; }
.map-center-pin { position: absolute; z-index: 1000; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.map-center-pin span { position: absolute; left: -18px; top: -46px; width: 36px; height: 36px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--brand); box-shadow: 0 8px 18px -6px rgba(0,0,0,.45); transition: transform .18s var(--ease); }
.map-center-pin span::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #fff; }
.map-center-pin::before { content: ""; position: absolute; left: -7px; top: -4px; width: 14px; height: 6px; border-radius: 50%; background: rgba(0,0,0,.25); }
.map-sheet.is-moving .map-center-pin span { transform: translateY(-10px) rotate(-45deg); }
.map-sheet .map-center-pin { top: calc(50% + 29px); }
.map-bottom { position: relative; display: grid; gap: 10px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -18px rgba(0,0,0,.35); z-index: 2; }
.map-locate { position: absolute; top: -58px; inset-inline-end: 14px; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 99px; border: 0; background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 13px; box-shadow: var(--shadow); cursor: pointer; }
.map-locate .i { color: var(--brand); }
.map-address { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-2); min-height: 22px; }
.map-address .i-sm { color: var(--brand); margin-top: 3px; }
.leaflet-container { font-family: var(--font-body); }

/* ---------- Customer dark mode (only when chosen) ---------- */
html[data-mode="dark"]:not([data-theme="shev"]) {
  --bg: #121014; --surface: #1B181D; --surface-2: #252127; --line: #2E2A30;
  --ink: #F4EFF3; --ink-2: #D5CDD3; --muted: #9D949B;
  --brand-soft: color-mix(in srgb, var(--brand) 22%, #121014);
  --ok: #62C891; --ok-soft: #173024; --warn: #E9AE52; --warn-soft: #33260F; --danger: #F2796B; --danger-soft: #3A1B18;
  --shadow: 0 16px 40px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
html[data-mode="light"][data-theme="shev"] {
  --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #F4F1F3; --line: #ECE7EB;
  --ink: #1F1A1F; --ink-2: #4A424A; --muted: #7C737B;
  --brand-soft: color-mix(in srgb, var(--brand) 11%, #fff);
  --ok: #1F7A4A; --ok-soft: #E4F3EA; --warn: #9A5B00; --warn-soft: #FFF1D6; --danger: #B42318; --danger-soft: #FDE8E6;
  --shadow: 0 14px 34px -18px rgba(31, 26, 31, .35);
  color-scheme: light;
}
.mode-toggle .ico-sun { display: none; }
html[data-mode="dark"] .mode-toggle .ico-sun, html[data-theme="shev"]:not([data-mode="light"]) .mode-toggle .ico-sun { display: block; }
html[data-mode="dark"] .mode-toggle .ico-moon, html[data-theme="shev"]:not([data-mode="light"]) .mode-toggle .ico-moon { display: none; }

/* ---------- Store profile hero (round 3) ---------- */
.s-hero { margin-top: 16px; }
.s-cover { position: relative; height: clamp(150px, 26vw, 280px); border-radius: var(--r-card); overflow: hidden; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 45%, #000)); }
.s-cover.has-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45), transparent 60%); }
.s-cover img { width: 100%; height: 100%; object-fit: cover; }
.s-profile { display: flex; align-items: flex-end; gap: 18px; margin: -46px 18px 0; position: relative; z-index: 1; }
.s-avatar { width: 96px; height: 96px; flex: none; border-radius: 26px; overflow: hidden; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); border: 4px solid var(--bg); font: 800 34px var(--font-display); box-shadow: var(--shadow); }
.s-avatar img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.s-profile-main { flex: 1; min-width: 0; padding-bottom: 4px; }
.s-profile-main h1 { display: flex; align-items: center; gap: 8px; font-size: clamp(22px, 3.4vw, 34px); line-height: 1.25; }
.s-verified { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; flex: none; }
.s-profile-main p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.s-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.s-trust span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: var(--r-chip); background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.s-trust .i-sm { color: var(--brand); }
.s-profile-actions { display: flex; gap: 8px; padding-bottom: 6px; }
.s-profile-actions .is-copied { color: var(--ok); }
@media (max-width: 720px) {
  .s-profile { flex-wrap: wrap; gap: 12px; margin-inline: 10px; }
  .s-avatar { width: 74px; height: 74px; border-radius: 20px; font-size: 26px; }
  .s-profile-main { flex-basis: calc(100% - 92px); }
  .s-profile-actions { flex-basis: 100%; }
  .s-profile-actions .btn-brand { flex: 1; }
}
.chips.is-sticky { position: sticky; top: 70px; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); margin-inline: calc(var(--pad, 0px) * -1); }

/* ---------- Product cards ---------- */
.p-img { position: relative; overflow: hidden; }
.p-img-alt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s var(--ease); }
@media (hover: hover) { .p-card:hover .p-img-alt { opacity: 1; } }
.p-body { display: grid; gap: 4px; }
.p-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.p-compare { color: var(--muted); font-size: 13px; }
.p-badge.off { background: var(--danger); color: #fff; }
.p-low { font-size: 12px; color: var(--warn); font-weight: 600; }

/* ---------- Delivery estimate on the product page ---------- */
.ship-est { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-card); background: var(--surface-2); }
.ship-est .label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.ship-est .label .i-sm { color: var(--brand); }
.ship-est .select { width: 100%; }
.ship-est-out { margin: 0; font-size: 14px; color: var(--muted); }
.ship-est.is-set .ship-est-out { color: var(--ok); font-weight: 700; }
.pdp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pdp-head h1 { flex: 1; min-width: 0; }

/* Only the avatar overlaps the cover; the text always sits on the page background */
.s-profile { margin-top: 0; align-items: flex-start; }
.s-avatar { margin-top: -46px; }
.s-profile-main { padding-top: 10px; }
@media (max-width: 720px) {
  .s-avatar { margin-top: -38px; }
  .s-profile-main { flex-basis: 100%; padding-top: 4px; }
  .s-profile { margin-inline: 4px; gap: 10px; }
}
@media (max-width: 420px) {
  .buy-row { flex-wrap: wrap; }
  .buy-row .btn { flex-basis: 100%; }
  .buy-row .btn span { white-space: normal; }
}

/* =========================================================================
   BROWSING EXPERIENCE v2: cards, toolbar, filters, dock
   ========================================================================= */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
@media (min-width: 900px) { .p-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; } }
.p-grid-scroll { grid-auto-flow: column; grid-auto-columns: minmax(165px, 46%); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.p-grid-scroll::-webkit-scrollbar { display: none; }
.p-grid-scroll > * { scroll-snap-align: start; }
@media (min-width: 900px) { .p-grid-scroll { grid-auto-columns: minmax(230px, 24%); } }

.p-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; transition: border-color .18s, box-shadow .18s var(--ease), transform .18s var(--ease); }
.p-card:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow); transform: translateY(-3px); }
.p-media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--surface-2); overflow: hidden; }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.p-card:hover .p-media img:first-of-type { transform: scale(1.04); }
.p-media .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--line); }
.p-card.is-out .p-media { opacity: .55; }
.p-flags { position: absolute; top: 10px; inset-inline-start: 10px; display: grid; gap: 6px; justify-items: start; }
.p-flag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-chip); background: var(--surface); color: var(--ink-2); font-size: 11.5px; font-weight: 700; box-shadow: var(--shadow-1, 0 2px 8px rgba(0,0,0,.12)); }
.p-flag.off { background: var(--danger); color: #fff; }
.p-flag.low { background: var(--warn-soft); color: var(--warn); }
.p-flag.out { background: var(--ink); color: var(--bg); }
.p-fav { position: absolute; top: 8px; inset-inline-end: 8px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--surface) 86%, transparent); color: var(--ink-2); cursor: pointer; backdrop-filter: blur(6px); transition: color .15s, transform .18s var(--ease); }
.p-fav:hover { color: var(--brand); }
.p-fav.is-on { color: var(--brand); }
.p-fav.is-on .i { fill: currentColor; }
.p-fav.is-pop { transform: scale(1.25); }
.p-body { display: flex; flex-direction: column; gap: 8px; padding: 12px; flex: 1; }
.p-name { font-size: 14px; line-height: 1.55; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.p-price { font-family: var(--font-display); font-weight: var(--title-weight); font-size: 15.5px; color: var(--brand); }
[data-theme="zagros"] .p-price { color: var(--ink); }
.p-compare { color: var(--muted); font-size: 12.5px; }
.p-add { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--brand); color: var(--brand-ink); cursor: pointer; font-size: 18px; line-height: 1; transition: transform .15s var(--ease), background .15s; }
.p-add:hover { transform: scale(1.06); }
.p-add.is-busy { opacity: .6; }
.p-add.is-done { background: var(--ok); }
.p-add.is-error { background: var(--danger); }

/* Toolbar: count, sort, filters */
.s-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 16px; flex-wrap: wrap; }
.s-toolbar-count { color: var(--muted); font-size: 14px; }
.s-toolbar-count b { font-family: var(--font-display); color: var(--ink); font-size: 16px; }
.s-toolbar-actions { display: flex; gap: 8px; }
.sort-select { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.sort-select select { border: 0; background: transparent; font: inherit; font-size: 14px; color: inherit; outline: none; max-width: 150px; }
.filter-btn { height: 42px; gap: 6px; }
.filter-btn .n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); font-size: 11.5px; }
.filter-sheet { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: flex-end; }
.filter-sheet[hidden] { display: none; }
.filter-backdrop { position: absolute; inset: 0; background: rgba(15, 12, 15, .5); backdrop-filter: blur(2px); }
.filter-panel { position: relative; width: min(420px, 100%); background: var(--bg); display: flex; flex-direction: column; box-shadow: var(--shadow); animation: slideIn .24s var(--ease); }
@keyframes slideIn { from { transform: translateX(var(--from, 100%)); } to { transform: none; } }
[dir="rtl"] .filter-panel { --from: -100%; }
.filter-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.filter-head b { font-family: var(--font-display); font-size: 17px; }
.filter-body { flex: 1; overflow-y: auto; padding: 18px; display: grid; gap: 22px; align-content: start; }
.filter-label { display: block; font-family: var(--font-display); font-size: 14px; margin-bottom: 10px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fchip span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--r-chip); border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; cursor: pointer; transition: all .15s; }
.fchip input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.filter-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter-prices label { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.ftoggle { display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; font-size: 14.5px; }
.ftoggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ftoggle .track { width: 44px; height: 26px; flex: none; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); position: relative; transition: background .2s; }
.ftoggle .track::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: inset-inline-start .2s var(--ease); }
.ftoggle input:checked + .track { background: var(--brand); border-color: var(--brand); }
.ftoggle input:checked + .track::after { inset-inline-start: 23px; }
.filter-foot { display: flex; gap: 10px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.filter-foot .grow { flex: 1; }

/* Floating dock (phones) */
.s-dock { display: none; }
@media (max-width: 860px) {
  .s-dock { position: fixed; z-index: 60; inset-inline: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; gap: 4px; padding: 8px; border-radius: 24px; background: color-mix(in srgb, var(--ink) 94%, transparent); backdrop-filter: blur(12px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); }
  .s-dock a, .s-dock button { position: relative; flex: 1; display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border: 0; background: none; border-radius: 18px; color: color-mix(in srgb, var(--bg) 72%, transparent); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
  .s-dock .i { width: 22px; height: 22px; }
  .s-dock .is-active { background: var(--brand); color: var(--brand-ink); }
  .s-dock .dock-count { position: absolute; top: 2px; inset-inline-end: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); font-size: 10.5px; display: grid; place-items: center; }
  .s-dock .is-active .dock-count { background: var(--bg); color: var(--brand); }
  body { padding-bottom: 86px; }
  .s-header .s-search { display: none; }
  .fav-btn { display: none; }
  .buy-bar { bottom: calc(86px + env(safe-area-inset-bottom)); }
}
.search-sheet { position: fixed; inset: 0; z-index: 95; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(8px); padding-top: 14vh; }
.search-sheet[hidden] { display: none; }
.search-panel { display: flex; gap: 8px; align-items: center; width: min(640px, calc(100% - 28px)); margin: 0 auto; padding: 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.search-field { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); outline: none; height: 44px; }
.search-field .i { color: var(--muted); flex: none; }

/* Product page: benefits + accordions */
.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.benefit { display: grid; gap: 2px; padding: 12px; border-radius: var(--r-card); background: var(--surface-2); }
.benefit b { font-family: var(--font-display); font-size: 13.5px; }
.benefit small { color: var(--muted); font-size: 12px; line-height: 1.6; }
.b-ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: 4px; }
.pdp-ask { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; font-size: 14px; }
.acc { border-top: 1px solid var(--line); }
.acc summary { display: flex; align-items: center; gap: 10px; padding: 14px 0; cursor: pointer; font-family: var(--font-display); font-size: 15px; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary > .i:first-child { color: var(--brand); }
.acc summary > .i:last-child { margin-inline-start: auto; transition: transform .2s var(--ease); transform: rotate(90deg); }
.acc[open] summary > .i:last-child { transform: rotate(-90deg); }
.acc-body { padding-bottom: 16px; color: var(--ink-2); font-size: 14.5px; line-height: 1.9; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap.narrow { max-width: 620px; }
.s-foot-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Digital menu ---------- */
.menu-page { padding-bottom: 40px; }
.menu-hero { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 26px 0 18px; }
.menu-logo { width: 84px; height: 84px; border-radius: 26px; object-fit: cover; box-shadow: var(--shadow); }
.menu-hero h1 { font-size: clamp(24px, 5vw, 36px); }
.menu-hero p { margin: 0; color: var(--muted); }
.menu-note { padding: 8px 14px; border-radius: var(--r-chip); background: var(--brand-soft); color: var(--brand); font-size: 13.5px; }
.menu-nav { margin-bottom: 8px; }
.menu-section { margin-top: 26px; scroll-margin-top: 120px; }
.menu-section-head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--line); }
.menu-section-head h2 { font-size: 21px; }
.menu-section-head span { color: var(--muted); font-size: 13px; }
.menu-list { display: grid; gap: 12px; }
@media (min-width: 760px) { .menu-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.menu-item { display: flex; gap: 12px; padding: 12px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.menu-item.is-featured { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.menu-item img { width: 84px; height: 84px; flex: none; border-radius: 14px; object-fit: cover; }
.menu-item-body { flex: 1; min-width: 0; display: grid; gap: 4px; align-content: start; }
.menu-item-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.menu-item-top b { font-family: var(--font-display); font-size: 15.5px; }
.menu-item-price { font-family: var(--font-display); font-weight: 700; color: var(--brand); white-space: nowrap; }
.menu-item-price s { color: var(--muted); font-size: 12.5px; margin-inline-start: 6px; font-weight: 400; }
.menu-item p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.menu-tag { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-size: 12px; font-weight: 700; }
.menu-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 34px; }

/* ---------- Assistant ---------- */
.assist-btn { position: fixed; z-index: 55; inset-inline-start: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border: 0; border-radius: 99px; background: var(--ink); color: var(--bg); font: inherit; font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow); cursor: pointer; }
@media (min-width: 861px) { .assist-btn { bottom: 24px; } }
.assist-sheet { position: fixed; inset: 0; z-index: 96; display: flex; align-items: flex-end; justify-content: center; }
.assist-sheet[hidden] { display: none; }
.assist-backdrop { position: absolute; inset: 0; background: rgba(15, 12, 15, .5); }
.assist-panel { position: relative; width: min(520px, 100%); max-height: min(86vh, 700px); display: flex; flex-direction: column; background: var(--bg); border-radius: 24px 24px 0 0; box-shadow: var(--shadow); animation: assistUp .25s var(--ease); }
@media (min-width: 620px) { .assist-sheet { align-items: center; } .assist-panel { border-radius: 24px; } }
@keyframes assistUp { from { transform: translateY(20px); opacity: .6; } to { transform: none; opacity: 1; } }
.assist-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.assist-head b { display: block; font-family: var(--font-display); font-size: 15.5px; }
.assist-head small { color: var(--muted); font-size: 12.5px; }
.assist-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); }
.assist-body { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 10px; align-content: start; }
.assist-msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.8; }
.assist-msg.is-bot { justify-self: start; background: var(--surface-2); border-end-start-radius: 4px; }
.assist-msg.is-me { justify-self: end; background: var(--brand); color: var(--brand-ink); border-end-end-radius: 4px; }
.assist-suggest { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.assist-suggest::-webkit-scrollbar { display: none; }
.assist-chip { flex: none; height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.assist-chip:hover { border-color: var(--brand); color: var(--brand); }
.assist-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.assist-form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 15px; color: var(--ink); }
.assist-human { display: block; padding: 0 16px 14px; color: var(--brand); font-size: 13.5px; font-weight: 700; text-align: center; }

/* ---------- Order tracking ---------- */
.order-page { display: grid; gap: 16px; padding-top: 18px; padding-bottom: 40px; max-width: 980px; }
.track-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.track-head h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; }
.track-badge { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.track-badge.st-pending { background: var(--warn-soft); color: var(--warn); }
.track-badge.st-confirmed, .track-badge.st-processing { background: var(--info-soft, #e8f1ff); color: var(--info, #2563eb); }
.track-badge.st-shipped { background: var(--brand-soft); color: var(--brand); }
.track-badge.st-delivered { background: var(--ok-soft); color: var(--ok); }
.track-badge.st-cancelled, .track-badge.st-returned { background: var(--danger-soft); color: var(--danger); }
.track-card { padding: 18px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.track-card h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.track-card h2 .i { color: var(--brand); }
.track-grid { display: grid; gap: 16px; grid-template-columns: 1.3fr 1fr; }
@media (max-width: 820px) { .track-grid { grid-template-columns: 1fr; } }

/* grace countdown */
.grace { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--r-card); background: linear-gradient(135deg, var(--brand-soft), var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); }
.grace.is-done { opacity: .6; }
.grace-ring { position: relative; width: 64px; height: 64px; flex: none; }
.grace-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.grace-ring circle { fill: none; stroke-width: 4; }
.grace-ring .bg { stroke: var(--line); }
.grace-ring .fg { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.grace-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 20px; }
.grace-text { flex: 1; min-width: 200px; }
.grace-text b { font-family: var(--font-display); font-size: 16px; }
.grace-text p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.track-thanks { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-card); background: var(--ok-soft); }
.track-thanks .ok-dot { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; }
.track-thanks b { font-family: var(--font-display); font-size: 16px; }
.track-thanks p { margin: 2px 0 0; color: var(--ink-2); font-size: 13.5px; }
.track-stopped { grid-template-columns: auto 1fr auto; align-items: center; }
.track-stopped > .i { color: var(--danger); width: 28px; height: 28px; }
.track-stopped b { font-family: var(--font-display); }
.track-stopped p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
@media (max-width: 600px) { .track-stopped { grid-template-columns: auto 1fr; } .track-stopped .btn { grid-column: 1 / -1; } }

/* timeline */
.track-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.track-steps li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; }
.track-steps li::before { content: ""; position: absolute; top: 21px; inset-inline-start: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.track-steps li:last-child::before { display: none; }
.track-steps li.is-done::before { background: var(--brand); }
.track-steps li.is-current::before { background: linear-gradient(90deg, var(--brand), var(--line)); }
[dir="rtl"] .track-steps li.is-current::before { background: linear-gradient(270deg, var(--brand), var(--line)); }
.track-steps .dot { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.track-steps li.is-done .dot { background: var(--brand); color: var(--brand-ink); box-shadow: none; }
.track-steps li.is-current .dot { box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 20%, transparent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand) 8%, transparent); } }
.track-steps .txt b { display: block; font-family: var(--font-display); font-size: 13.5px; }
.track-steps .txt small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
@media (max-width: 640px) {
  .track-steps { grid-template-columns: 1fr; gap: 0; }
  .track-steps li { grid-template-columns: 44px 1fr; justify-items: start; text-align: start; gap: 12px; padding-bottom: 18px; }
  .track-steps li::before { top: 44px; inset-inline-start: 20px; width: 3px; height: calc(100% - 44px); }
  .track-steps li.is-current::before { background: var(--line); }
  .track-steps .txt { padding-top: 10px; }
}
.track-courier { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }

/* items and totals */
.track-items { display: grid; gap: 10px; }
.track-item { display: flex; align-items: center; gap: 12px; }
.track-item img, .track-item .ph { width: 54px; height: 54px; flex: none; border-radius: 12px; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; color: var(--line); }
.track-item b { font-family: var(--font-display); font-size: 14px; }
.track-item small { display: block; color: var(--muted); font-size: 12.5px; }
.track-totals { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 14px; }
.track-totals dt { color: var(--muted); }
.track-totals dd { margin: 0; text-align: end; }
.track-totals .grand { font-family: var(--font-display); font-size: 17px; color: var(--ink); padding-top: 6px; border-top: 1px solid var(--line); }
.track-pay { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 13.5px; }
.track-addr { margin: 0; line-height: 1.9; font-size: 14.5px; }
.track-map { height: 180px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); direction: ltr; }
.track-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.track-help { margin: 0; font-size: 13px; color: var(--muted); }
.track-help a { color: var(--brand); font-weight: 600; }

/* my orders */
.my-orders { display: grid; gap: 10px; }
.my-order { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, transform .15s var(--ease); }
.my-order:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); transform: translateY(-2px); }
.my-order img, .my-order .ph { width: 56px; height: 56px; flex: none; border-radius: 12px; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.my-order b { font-family: var(--font-display); font-size: 15px; }
.my-order small { display: block; color: var(--muted); font-size: 12.5px; }
.find-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
@media (max-width: 600px) { .find-grid { grid-template-columns: 1fr; } }
.s-dock { gap: 2px; }
.s-dock a, .s-dock button { font-size: 10.5px; }

/* ---------- Order confirmation on Telegram (fake-order protection) ---------- */
.btn-telegram { background: #229ED9; color: #fff; border-color: transparent; }
.btn-telegram:hover { background: #1c8cc2; }
.confirm-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--r-card); background: color-mix(in srgb, #229ED9 9%, var(--surface)); border: 1px solid color-mix(in srgb, #229ED9 28%, var(--line)); }
.confirm-card.is-required { align-items: flex-start; border-width: 2px; }
.confirm-card .grow { flex: 1; min-width: 200px; display: grid; gap: 6px; }
.confirm-card b { font-family: var(--font-display); font-size: 16px; }
.confirm-card p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.confirm-card .row-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.confirm-ico { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #229ED9; color: #fff; }
.confirm-done { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: var(--r-card); background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 14px; }

/* ---------- Pay by wallet transfer (FastPay, ZainCash, FIB, Qi, AsiaHawala) ---------- */
.wallet-list { display: grid; gap: 8px; }
.wallet-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.wallet-row b { font-family: var(--font-display); min-width: 90px; }
.wallet-row .num { font-weight: 700; letter-spacing: .5px; }
.wallet-row .btn { margin-inline-start: auto; min-height: 36px; padding: 0 12px; }
.stack-sm { display: grid; gap: 10px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.alert.danger { background: var(--danger-soft); color: var(--danger); }
.alert .grow p { margin: 0; color: inherit; }

/* ---------- Reviews from real buyers ---------- */
.rating-line { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.stars { color: #E7A93C; letter-spacing: 1px; }
.review-list { display: grid; gap: 12px; }
.review { padding: 14px 16px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; }
.review p { margin: 0; line-height: 1.8; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.review-head b { font-family: var(--font-display); }
.badge-verified { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 600; }
.review-reply { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.review-form { display: grid; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.review-form-head { display: flex; align-items: center; gap: 10px; }
.review-form-head img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.star-pick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
[dir="rtl"] .star-pick { justify-content: flex-start; }
.star-pick input { position: absolute; opacity: 0; pointer-events: none; }
.star-pick label { font-size: 30px; line-height: 1; color: var(--line); cursor: pointer; transition: color .12s; }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label { color: #E7A93C; }
.star-pick input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }

/* ---------- Privacy policy / terms inside a store ---------- */
.legal-page { max-width: 760px; margin: 0 auto; padding: 30px 18px 60px; line-height: 1.95; }
.legal-page h1 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 16px; }
.legal-page h2 { font-size: 18px; margin: 24px 0 8px; }
.legal-page p { color: var(--ink-2); margin: 0 0 12px; }
.legal-note { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.legal-links a { color: var(--brand); font-weight: 600; }
.powered a { text-decoration: underline; text-underline-offset: 3px; }
