/* Dr. Bahgat Perfumes — "midnight oud" theme. Tokens first; dark mode redefines them. */
:root {
  --bg: #f8f3ea;
  --bg-2: #f1e9dc;
  --card: #ffffff;
  --ink: #2a1f17;
  --ink-2: #5d4d40;
  --muted: #8a7a6c;
  --line: #e7dccb;
  --gold: #b88a3e;
  --gold-2: #d9b56b;
  --gold-soft: #f4e8cf;
  --night: #16110d;
  --night-2: #241a12;
  --on-night: #f6ecdc;
  --on-night-2: #cdbba3;
  --ok: #2f8a5b;
  --danger: #b83a2b;
  --shadow: 0 1px 2px rgb(42 31 23 / 6%), 0 8px 24px -12px rgb(42 31 23 / 22%);
  --shadow-lg: 0 24px 60px -20px rgb(22 17 13 / 45%);
  --radius: 18px;
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-brand: "Aref Ruqaa", "IBM Plex Sans Arabic", serif;
  --font-latin: "Cormorant Garamond", Georgia, serif;
  --nav-h: 0px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #110d0a; --bg-2: #18120e; --card: #1d1712; --ink: #f1e7d9; --ink-2: #cbbba8; --muted: #9a8a79;
    --line: #33281f; --gold: #d6ac5e; --gold-2: #e9c983; --gold-soft: #2c2217; --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px -14px rgb(0 0 0 / 70%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #110d0a; --bg-2: #18120e; --card: #1d1712; --ink: #f1e7d9; --ink-2: #cbbba8; --muted: #9a8a79;
  --line: #33281f; --gold: #d6ac5e; --gold-2: #e9c983; --gold-soft: #2c2217; --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px -14px rgb(0 0 0 / 70%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.6;
  padding-bottom: var(--nav-h); overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; }
.latin { font-family: var(--font-latin); font-style: italic; letter-spacing: .2px; direction: ltr; unicode-bidi: isolate; }
.mono { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--night) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); color: var(--on-night); border-bottom: 1px solid rgb(217 181 107 / 18%);
}
.topbar .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand svg { flex: none; }
.brand-name { font-family: var(--font-brand); font-size: 24px; line-height: 1; color: var(--gold-2); white-space: nowrap; }
.brand-sub { white-space: nowrap; font-family: var(--font-latin); font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--on-night-2); display: block; margin-top: 3px; }
.top-actions { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: rgb(255 255 255 / 6%); border: 1px solid rgb(217 181 107 / 22%); color: var(--on-night);
}
.icon-btn:hover { background: rgb(255 255 255 / 12%); }
.badge {
  position: absolute; top: -5px; inset-inline-end: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--gold-2); color: var(--night); font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.badge:empty { display: none; }
.who-btn {
  display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid rgb(217 181 107 / 35%);
  background: linear-gradient(135deg, rgb(217 181 107 / 22%), rgb(217 181 107 / 6%)); color: var(--on-night); font-weight: 600; font-size: 14px; white-space: nowrap;
}
.who-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 3px rgb(217 181 107 / 25%); }

.announce { background: var(--gold); color: #fff; text-align: center; font-size: 14px; padding: 8px 16px; font-weight: 500; }
.announce:empty { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-night);
  background:
    radial-gradient(900px 420px at 85% -10%, rgb(217 181 107 / 28%), transparent 60%),
    radial-gradient(700px 380px at 0% 110%, rgb(184 106 47 / 30%), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  padding: 44px 0 30px;
}
.hero::after { /* fine grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.hero .wrap > * { min-width: 0; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--gold-2); font-size: 13px; letter-spacing: .4px; font-weight: 600; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(30px, 5.2vw, 54px); line-height: 1.15; margin: 10px 0 10px; font-weight: 700; letter-spacing: -.3px; }
.hero h1 em { font-style: normal; font-family: var(--font-brand); color: var(--gold-2); font-weight: 700; }
.hero p.lead { margin: 0 0 22px; color: var(--on-night-2); font-size: 16.5px; max-width: 560px; }
.search {
  position: relative; display: flex; align-items: center; background: #fffaf2; border-radius: 16px; box-shadow: var(--shadow-lg);
  border: 1px solid rgb(217 181 107 / 55%); max-width: 640px;
}
.search svg { position: absolute; inset-inline-start: 16px; color: #9c8463; pointer-events: none; }
.search input {
  flex: 1; border: 0; background: transparent; padding: 17px 50px 17px 16px; font-size: 16.5px; color: #2a1f17; min-width: 0; border-radius: 16px;
}
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--gold-2); box-shadow: 0 0 0 4px rgb(217 181 107 / 25%), var(--shadow-lg); }
.search .clear { border: 0; background: transparent; color: #9c8463; padding: 0 14px; height: 52px; display: none; }
.search.has-text .clear { display: block; }
.ask-inline {
  margin-inline-end: 6px; border: 0; border-radius: 12px; height: 44px; padding: 0 14px; white-space: nowrap; font-weight: 600; font-size: 14px;
  background: linear-gradient(135deg, #2a1f17, #4b3524); color: var(--gold-2); display: inline-flex; align-items: center; gap: 6px;
}
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.quick button {
  border: 1px solid rgb(217 181 107 / 30%); background: rgb(255 255 255 / 5%); color: var(--on-night); border-radius: 999px; padding: 6px 13px; font-size: 13.5px;
}
.quick button:hover { background: rgb(217 181 107 / 18%); }
.hero-stats { display: flex; gap: 22px; margin-top: 22px; color: var(--on-night-2); font-size: 13.5px; flex-wrap: wrap; }
.hero-stats b { display: block; color: var(--on-night); font-size: 22px; font-weight: 700; line-height: 1.2; }
.hero-art { position: relative; height: 300px; }
.hero-art .b { position: absolute; filter: drop-shadow(0 30px 30px rgb(0 0 0 / 45%)); animation: float 7s ease-in-out infinite; }
.hero-art .b1 { width: 150px; inset-inline-end: 34%; top: 10px; }
.hero-art .b2 { width: 120px; inset-inline-end: 6%; top: 70px; animation-delay: -2.4s; }
.hero-art .b3 { width: 105px; inset-inline-end: 62%; top: 120px; animation-delay: -4.2s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-12px) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art .b { animation: none; } html { scroll-behavior: auto; } }

/* ---------- scent families ---------- */
.families { padding-top: 22px; padding-bottom: 6px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.section-title h2 { margin: 0; font-size: 19px; }
.section-title span { color: var(--muted); font-size: 13px; }
.fam-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; scroll-snap-type: x proximity; }
.fam-row::-webkit-scrollbar { display: none; }
.fam {
  flex: none; scroll-snap-align: start; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 600; font-size: 14px;
}
.fam i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 15px;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 35%, white), var(--c)); color: #fff; box-shadow: inset 0 -3px 6px rgb(0 0 0 / 18%); }
.fam small { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; line-height: 1.1; }
.fam[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--card)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 35%, transparent); }

/* ---------- filter bar ---------- */
.filters { position: sticky; top: 60px; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.filters .wrap { display: flex; gap: 8px; align-items: center; padding-top: 10px; padding-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.filters .wrap::-webkit-scrollbar { display: none; }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 12px; padding: 3px; flex: none; border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 7px 13px; border-radius: 9px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 12px;
  padding: 8px 12px; font-size: 14px; white-space: nowrap; color: var(--ink-2);
}
.chip[aria-pressed="true"], .chip.on { border-color: var(--gold); color: var(--ink); background: var(--gold-soft); font-weight: 600; }
.chip select { border: 0; background: transparent; padding: 0; }
.chip select:focus { outline: none; }
.clear-filters { color: var(--danger); border-color: transparent; background: transparent; }

/* ---------- results ---------- */
main { padding: 18px 0 40px; }
.result-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.result-meta strong { color: var(--ink); font-size: 16px; }
.price-gate {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 16px;
  background: linear-gradient(135deg, var(--night), #3a2817); color: var(--on-night); box-shadow: var(--shadow);
}
.price-gate p { margin: 0; flex: 1; font-size: 14.5px; }
.price-gate b { color: var(--gold-2); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 11px 18px; font-weight: 700; font-size: 15px;
  text-decoration: none; white-space: nowrap;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1b130c; box-shadow: 0 6px 16px -6px rgb(184 138 62 / 70%); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-dark { background: var(--night); color: var(--gold-2); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-wa { background: #1fa855; color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.strip { margin: 4px 0 26px; }
.strip-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.strip-row > * { scroll-snap-align: start; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; cursor: pointer; text-align: start;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow), 0 18px 40px -22px rgb(42 31 23 / 45%); }
.card-art {
  position: relative; height: 150px; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%),
              linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, var(--card)), var(--card));
}
.card-art > svg { height: 128px; width: auto; filter: drop-shadow(0 12px 12px rgb(0 0 0 / 18%)); transition: transform .3s ease; }
.card:hover .card-art > svg { transform: scale(1.04) rotate(-2deg); }
.tags { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 5px; flex-wrap: wrap; max-width: calc(100% - 60px); }
.tag { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgb(255 255 255 / 85%); color: #4a3a2c; border: 1px solid rgb(0 0 0 / 6%); }
.tag.new { background: #2a1f17; color: var(--gold-2); }
.tag.hot { background: var(--gold-2); color: #2a1f17; }
.tag.out { background: #f6dfdb; color: var(--danger); }
.fav {
  position: absolute; top: 8px; inset-inline-end: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgb(255 255 255 / 85%); color: #8a7a6c; box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}
.fav[aria-pressed="true"] { color: #d0435b; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { margin: 0; font-size: 18px; line-height: 1.35; }
.inspired { color: var(--ink-2); font-size: 13.5px; line-height: 1.4; }
.card .inspired { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.inspired .latin { font-size: 16px; color: var(--ink); }
.meta-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; margin-top: 2px; flex-wrap: wrap; }
.meta-line .code { font-weight: 700; color: var(--gold); letter-spacing: .5px; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); display: inline-block; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.price { font-weight: 800; font-size: 18px; color: var(--ink); }
.price small { font-weight: 500; font-size: 12px; color: var(--muted); }
.locked { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gold); font-weight: 600; background: transparent; border: 0; padding: 0; }
.add {
  width: 40px; height: 40px; border-radius: 12px; border: 0; display: grid; place-items: center; background: var(--night); color: var(--gold-2); flex: none;
}
.add.in { background: var(--gold-2); color: var(--night); }

.empty { text-align: center; padding: 40px 16px; background: var(--card); border-radius: var(--radius); border: 1px dashed var(--line); }
.empty h3 { margin: 6px 0; }
.empty p { color: var(--muted); margin: 0 0 14px; }
.suggest { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }

/* ---------- sheets (bottom on phones, side/center on desktop) ---------- */
.scrim { position: fixed; inset: 0; background: rgb(14 10 7 / 55%); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 70; background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  inset-inline: 0; bottom: 0; max-height: 92vh; border-radius: 22px 22px 0 0; transform: translateY(105%); visibility: hidden;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s linear .28s;
}
.sheet.on { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font-size: 18px; flex: 1; }
.sheet-head .x { border: 0; background: var(--bg-2); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.sheet-body { overflow-y: auto; padding: 16px; overscroll-behavior: contain; }
.sheet-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 8px; }
.grabber { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto -4px; }
@media (min-width: 820px) {
  .sheet { inset-inline-start: auto; inset-inline-end: 0; top: 0; bottom: 0; width: 460px; max-height: none; border-radius: 0; transform: translateX(-105%); }
  [dir="rtl"] .sheet { transform: translateX(-105%); }
  .sheet.on { transform: none; }
  .sheet.center { inset: 50% auto auto 50%; width: min(460px, 92vw); max-height: 90vh; border-radius: 22px; transform: translate(-50%, -46%) scale(.97); opacity: 0; pointer-events: none; transition: transform .2s, opacity .2s, visibility 0s linear .2s; }
  .sheet.center.on { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; transition: transform .2s, opacity .2s, visibility 0s; }
  .grabber { display: none; }
}

/* product detail */
.pd-art { margin: -16px -16px 14px; height: 230px; display: grid; place-items: center; position: relative;
  background: radial-gradient(90% 90% at 50% 100%, color-mix(in srgb, var(--c) 38%, transparent), transparent 70%), linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, var(--card)), var(--card)); }
.pd-art > svg { height: 200px; filter: drop-shadow(0 18px 18px rgb(0 0 0 / 22%)); }
.pd-art img { max-height: 210px; border-radius: 12px; }
.pd h2 { font-size: 24px; margin: 0; line-height: 1.3; }
.pd .inspired { font-size: 15px; margin: 2px 0 10px; }
.pd .inspired .latin { font-size: 20px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.fact { background: var(--bg-2); border-radius: 12px; padding: 9px 12px; font-size: 13px; color: var(--muted); }
.fact b { display: block; color: var(--ink); font-size: 15px; }
.pyramid { display: grid; gap: 8px; margin: 14px 0; }
.tier { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--c) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--c) 22%, var(--line)); }
.tier span { font-size: 12px; color: var(--muted); font-weight: 700; }
.approx { font-size: 12px; color: var(--muted); margin-top: -4px; }
.pd-price { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; border-radius: 14px; background: var(--gold-soft); margin: 12px 0; }
.pd-price .price { font-size: 24px; }
.variants { display: grid; gap: 8px; margin-top: 8px; }
.variant { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-align: start; width: 100%; }
.variant.cur { border-color: var(--gold); background: var(--gold-soft); }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
h4 { margin: 18px 0 6px; font-size: 15px; }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 14px; }
.field label small { color: var(--muted); font-weight: 400; }
.input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 16px;
}
.input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgb(184 138 62 / 18%); }
.phone-wrap { display: flex; direction: ltr; }
.phone-wrap span { display: grid; place-items: center; padding: 0 12px; background: var(--bg-2); border: 1px solid var(--line); border-inline-end: 0; border-radius: 12px 0 0 12px; color: var(--muted); }
.phone-wrap input { border-radius: 0 12px 12px 0; text-align: left; letter-spacing: 1px; }
.opt-row { display: flex; gap: 8px; flex-wrap: wrap; }
.opt-row button { border: 1px solid var(--line); background: var(--card); padding: 8px 12px; border-radius: 10px; font-size: 14px; }
.opt-row button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); font-weight: 700; }
.err { color: var(--danger); font-size: 13px; min-height: 18px; }
.fine { font-size: 12px; color: var(--muted); line-height: 1.6; }
.perks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.perks li { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.perks li::before { content: "✓"; color: var(--ok); font-weight: 800; }

/* order list */
.line { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line svg { width: 40px; height: 52px; }
.line h5 { margin: 0; font-size: 15px; }
.line p { margin: 0; color: var(--muted); font-size: 12.5px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stepper button { border: 0; background: var(--bg-2); width: 32px; height: 32px; font-size: 18px; }
.stepper span { min-width: 30px; text-align: center; font-weight: 700; }
.total { display: flex; justify-content: space-between; padding: 14px 0; font-size: 17px; font-weight: 800; }

/* house picker */
.house-list { display: grid; gap: 4px; }
.house-list button { display: flex; justify-content: space-between; border: 0; background: transparent; padding: 11px 10px; border-radius: 10px; text-align: start; }
.house-list button:hover, .house-list button[aria-pressed="true"] { background: var(--gold-soft); }
.house-list small { color: var(--muted); }

/* ---------- assistant ---------- */
.fab {
  position: fixed; z-index: 40; inset-inline-start: auto; inset-inline-end: 18px; bottom: calc(18px + var(--nav-h)); height: 56px; padding: 0 20px 0 16px; border-radius: 28px; border: 0;
  background: linear-gradient(135deg, #2a1f17, #4e3622); color: var(--gold-2); font-weight: 700; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 14px 34px -10px rgb(22 17 13 / 65%), inset 0 0 0 1px rgb(217 181 107 / 35%);
}
.fab .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 0 rgb(217 181 107 / 70%); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgb(217 181 107 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(217 181 107 / 0%); } }
.chat { display: flex; flex-direction: column; height: 100%; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; line-height: 1.7; white-space: pre-wrap; word-wrap: break-word; font-size: 15px; }
.msg.user { align-self: flex-start; background: var(--night); color: var(--on-night); border-end-start-radius: 4px; }
.msg.bot { align-self: flex-end; background: var(--bg-2); border-end-end-radius: 4px; }
[dir="rtl"] .msg.user { align-self: flex-start; }
.msg.bot .typing { display: inline-flex; gap: 4px; }
.msg.bot .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.msg.bot .typing i:nth-child(2) { animation-delay: .2s; } .msg.bot .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.pcard { display: flex; align-items: center; gap: 10px; margin: 6px 0; padding: 8px 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); width: 100%; text-align: start; white-space: normal; }
.pcard svg { width: 34px; height: 44px; flex: none; }
.pcard b { display: block; font-size: 14.5px; }
.pcard small { color: var(--muted); font-size: 12px; }
.pcard .go { margin-inline-start: auto; color: var(--gold); font-weight: 700; font-size: 13px; }
.msg .btn { margin: 6px 0; padding: 8px 14px; font-size: 14px; }
.chat-suggest { display: flex; flex-direction: column; gap: 8px; }
.chat-suggest button { text-align: start; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.chat-suggest button:hover { border-color: var(--gold); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; background: var(--bg); max-height: 120px; font-size: 16px; }
.chat-form button { width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--night); color: var(--gold-2); flex: none; display: grid; place-items: center; align-self: flex-end; }
.intro { text-align: center; padding: 6px 4px 14px; }
.intro h3 { margin: 6px 0 4px; }
.intro p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- bottom nav (phones) ---------- */
.bottom-nav { display: none; }
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .bottom-nav {
    position: fixed; z-index: 35; inset-inline: 0; bottom: 0; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    display: grid; grid-template-columns: repeat(4, 1fr); background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .bottom-nav button { border: 0; background: transparent; display: grid; place-items: center; align-content: center; gap: 2px; font-size: 11.5px; color: var(--muted); position: relative; }
  .bottom-nav button[aria-current="true"] { color: var(--gold); font-weight: 700; }
  .bottom-nav .badge { top: 6px; inset-inline-end: calc(50% - 22px); }
  .fab { display: none; }
  .top-actions .hide-sm { display: none; }
  .hero { padding: 28px 0 22px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .brand-name { font-size: 21px; }
  .brand-sub { display: none; }
  .hero h1 { font-size: 30px; margin: 6px 0; }
  .hero p.lead { font-size: 15px; margin-bottom: 16px; }
  .quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .quick button { flex: none; }
  .hero-stats { margin-top: 16px; }
  .section-title span { display: none; }
  .price-gate { flex-wrap: wrap; }
  .price-gate .btn { width: 100%; }
  .ask-inline span { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-art { height: 122px; }
  .card-art > svg { height: 104px; }
  .card h3 { font-size: 15.5px; }
  .card-body { padding: 10px 11px 12px; }
  .inspired { font-size: 12.5px; }
  .inspired .latin { font-size: 14.5px; }
  .price { font-size: 15.5px; }
  .add { width: 36px; height: 36px; }
  .strip-row { grid-auto-columns: 46%; }
}
@media (max-width: 360px) { .grid { grid-template-columns: 1fr; } .strip-row { grid-auto-columns: 70%; } }

footer { background: var(--night); color: var(--on-night-2); padding: 28px 0 calc(28px + var(--nav-h)); font-size: 13.5px; }
footer .wrap { display: grid; gap: 10px; }
footer a { color: var(--gold-2); }
footer .brand-name { font-size: 22px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-link {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  color: var(--gold-2); text-decoration: none; border: 1px solid rgb(217 181 107 / 40%); background: rgb(255 255 255 / 4%);
}
.admin-link:hover { background: rgb(217 181 107 / 14%); }

.toast {
  position: fixed; z-index: 90; left: 50%; bottom: calc(24px + var(--nav-h)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--night); color: var(--on-night); padding: 10px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); transition: .2s; font-size: 14px; max-width: 90vw; text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.skeleton { height: 290px; border-radius: var(--radius); background: linear-gradient(90deg, var(--bg-2), var(--card), var(--bg-2)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- printable price list ---------- */
#print-area { display: none; }
@media print {
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block; color: #000; font-size: 11pt; }
  #print-area h1 { font-size: 18pt; margin: 0 0 4px; }
  #print-area table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
  #print-area th, #print-area td { border: 1px solid #bbb; padding: 4px 6px; text-align: start; }
  #print-area th { background: #eee; }
  #print-area h2 { font-size: 13pt; margin: 12px 0 4px; }
}
