/* ==========================================================================
   Orivis · A house of jewellers — design system
   Inspired by Tanishq · Malabar Gold · Tarinika
   White cream bg · single maroon jewel · sparing gold · display serif
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:           #FFFCF7;     /* warm cream — page */
  --surface:      #FFFFFF;     /* product cards, panels */
  --surface-2:    #FAF3E7;     /* festive cream tint */
  --surface-3:    #F2E7D2;     /* warmer */
  --surface-dark: #1B0F0E;     /* footer / promo strip */

  /* Ink */
  --ink:          #1B0F0E;     /* deep maroon-tinted near-black */
  --ink-2:        #3A2722;
  --ink-muted:    #6B5750;
  --ink-dim:      #9A867D;
  --ink-faint:    #C8B9AE;

  /* Brand maroon (jewelry-house oxblood) */
  --maroon:       #7A1126;     /* primary brand */
  --maroon-deep:  #5C0E1E;
  --maroon-soft:  #F4DAE0;
  --maroon-wash:  #FAEDF0;

  /* Burnished gold — sparingly */
  --gold:         #A87E2C;
  --gold-soft:    #DEC589;
  --gold-wash:    #F6EAD0;

  /* Borders */
  --border:       #E8DBC9;
  --border-strong:#C8B59A;
  --border-gold:  #D4B373;

  /* Semantic */
  --sage:         #4A6B4F;
  --sage-soft:    #DBE7DC;
  --honey:        #A86F1F;
  --honey-soft:   #F4E4C8;
  --crimson:      #9E1F19;
  --crimson-soft: #F6D9D7;

  /* Typography */
  --font-display: "Cormorant Garamond", "Playfair Display", "Cormorant", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii */
  --r-xs: 3px;  --r-sm: 6px;  --r-md: 10px;  --r-lg: 14px;  --r-xl: 22px;
  --r-pill: 999px;

  /* Shadows — soft warm */
  --shadow-1:  0 1px 2px rgba(27, 15, 14, 0.04), 0 2px 6px rgba(27, 15, 14, 0.04);
  --shadow-2:  0 4px 14px rgba(27, 15, 14, 0.06), 0 2px 6px rgba(27, 15, 14, 0.04);
  --shadow-3:  0 24px 60px rgba(27, 15, 14, 0.10), 0 6px 14px rgba(27, 15, 14, 0.05);
  --shadow-gold: 0 0 0 1px rgba(168, 126, 44, 0.30);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container: 1320px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
button, input, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: transparent; }
.hidden { display: none !important; }
.m0 { margin: 0; }
.p0 { padding: 0; }
em { font-style: italic; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ============================================================
   Promo strip (very top)
   ============================================================ */
.promo-strip {
  background: var(--maroon);
  color: var(--surface);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 9px 28px;
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
  text-align: center;
}
.promo-strip .dot-sep { color: rgba(255,255,255,0.45); }
.promo-strip span:first-child { color: var(--gold-soft); }

/* Multi-rate strip — 22k · 24k · silver · source */
.rates-strip {
  display: inline-flex; align-items: center; gap: 8px;
  flex-wrap: wrap; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.rates-strip .rate-item { color: var(--gold-soft); font-weight: 600; }
.rates-strip .rate-sep  { color: rgba(255,255,255,0.32); }
.rates-strip .rate-source {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em; margin-left: 4px;
}
.rates-strip .rate-source-stale {
  color: #FFD27A;
  background: rgba(255, 210, 122, 0.12);
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid rgba(255, 210, 122, 0.35);
}
.rates-strip .rate-spark {
  vertical-align: middle; margin-left: 4px;
  opacity: 0.9;
}
.rates-strip .rate-item .rate-spark { margin-top: -1px; }
/* Inline hint under merchant field inputs */
.field-hint {
  display: block; margin-top: 4px;
  font-size: 11px; color: var(--ink-muted); line-height: 1.4;
  font-style: italic;
}
@media (max-width: 600px) {
  .rates-strip { gap: 6px; font-size: 11px; }
  .rates-strip .rate-source { display: none; }   /* keep mobile strip tight */
}

/* Admin gold-rate card — "Also pulled" line below the input */
.rates-other {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
  color: var(--ink-muted);
}
.rates-other .ro-label { color: var(--gold); font-weight: 600; margin-right: 6px; }
#rates-refresh-btn {
  display: inline-flex; align-items: center; gap: 6px;
}
#rates-refresh-btn:disabled { opacity: 0.6; cursor: wait; }

/* ============================================================
   Language toggle (EN ↔ తెలుగు)
   ============================================================ */
.lang-toggle {
  background: rgba(255,255,255,0.10);
  color: var(--gold-soft);
  border: 1px solid rgba(222,197,137,0.32);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-left: 8px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-body);
}
.lang-toggle:hover { background: rgba(255,255,255,0.18); color: var(--surface); }

/* When Telugu is active, swap to a Telugu-capable webfont. Numbers and roman
   letters within strings continue rendering in the body / display fonts via
   font fallback, so prices and brand wordmarks read crisply. */
body.lang-te {
  font-family: 'Inter', 'Noto Sans Telugu', system-ui, -apple-system, sans-serif;
}
body.lang-te .display-xl,
body.lang-te .display-lg,
body.lang-te .display-md,
body.lang-te .display-sm,
body.lang-te .display,
body.lang-te .hero-title,
body.lang-te .card-title,
body.lang-te .ws-name,
body.lang-te .hero-name,
body.lang-te .modal-body h2,
body.lang-te .order .what,
body.lang-te .product .name,
body.lang-te .lb-title,
body.lang-te .photo-cta-title {
  font-family: 'Cormorant Garamond', 'Noto Serif Telugu', 'Noto Sans Telugu', Georgia, serif;
  line-height: 1.2;     /* Telugu needs more vertical breathing room than Latin */
}
body.lang-te .display-xl, body.lang-te .hero-title { line-height: 1.18; }
body.lang-te .eyebrow,
body.lang-te .modal-eyebrow,
body.lang-te .hero-eyebrow,
body.lang-te .lq-head,
body.lang-te .ad-role,
body.lang-te .ad-email,
body.lang-te .promo-strip,
body.lang-te .footer-h,
body.lang-te .field > span,
body.lang-te .pill,
body.lang-te .more-toggle-label,
body.lang-te .more-toggle-sub,
body.lang-te .kpi-head,
body.lang-te .merchant {
  /* Telugu doesn't render uppercase/letter-spacing well — relax both */
  text-transform: none;
  letter-spacing: 0.02em;
  font-family: 'Inter', 'Noto Sans Telugu', sans-serif;
}

/* ============================================================
   Masthead
   ============================================================ */
.masthead {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
}
.masthead-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 12px 28px;
}
.m-left { justify-self: start; width: 100%; max-width: 360px; }
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 9px 16px;
  color: var(--ink-muted);
  transition: border-color 0.18s, background 0.18s;
}
.search:focus-within { border-color: var(--ink); background: var(--surface); }
.search input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--ink); font-size: 13px;
}
.search input::placeholder { color: var(--ink-dim); }
.search .ic-sm { color: var(--ink-muted); }

.m-brand {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none; color: var(--ink);
}
.brand-flourish svg { color: var(--gold); width: 80px; height: 18px; }
.sj-mark {
  display: inline-block;
  margin-bottom: 6px;
}
.sj-mark svg { width: 36px; height: 44px; filter: drop-shadow(0 2px 6px rgba(140, 104, 23, 0.30)); }
.brand-name {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  background: linear-gradient(180deg, #C99B30 0%, #8C6817 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.brand-tag {
  font-family: var(--font-display); font-style: italic;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.m-right {
  justify-self: end;
  display: flex; align-items: center; gap: 4px;
}
.iconbtn {
  position: relative;
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); transition: background 0.15s;
}
.iconbtn:hover { background: var(--surface-2); }
.iconbtn .ic-sm { width: 18px; height: 18px; }
.bell-dot {
  position: absolute; top: 9px; right: 11px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--maroon);
  border: 1.5px solid var(--surface);
}
.cart-btn { background: var(--ink); color: var(--surface); padding: 0 14px 0 12px; width: auto; gap: 8px; height: 38px; border-radius: var(--r-pill); }
.cart-btn:hover { background: var(--maroon-deep); }
.cart-count { font-size: 12px; font-weight: 600; }
.whatsapp-btn {
  background: #25D366; color: white !important;
  width: auto; padding: 0 14px 0 12px;
  height: 38px; gap: 8px;
  border: 0; text-decoration: none;
  font-weight: 600; font-size: 12.5px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(37,211,102,0.35);
}
.whatsapp-btn:hover { background: #128C7E; }
.whatsapp-btn .wa-label { white-space: nowrap; }

/* ============================================================
   Staff dropdown (subtle gear in masthead)
   ============================================================ */
.staff-menu { position: relative; }
.staff-toggle {
  background: var(--surface-2);
  color: var(--ink-muted);
  border: 1px solid var(--border);
}
.staff-toggle:hover { color: var(--ink); border-color: var(--border-strong); }
.staff-toggle[aria-expanded="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.staff-toggle[aria-expanded="true"] svg { color: var(--gold-soft); }

.staff-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: 8px;
  z-index: 60;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0s 0.18s;
}
.staff-dropdown.open {
  opacity: 1; visibility: visible;
  transform: translateY(0);
  transition: opacity 0.18s, transform 0.18s;
}
.staff-dropdown::before {
  content: ''; position: absolute;
  top: -6px; right: 16px;
  width: 12px; height: 12px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  transform: rotate(45deg);
}
.sd-head {
  font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink-dim);
  padding: 8px 12px 6px;
}
.sd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: var(--r-md);
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.12s;
}
.sd-item:hover { background: var(--surface-2); }
.sd-item .ic-sm { color: var(--maroon); flex-shrink: 0; }
.sd-t { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.sd-s { font-size: 11.5px; color: var(--ink-muted); margin-top: 2px; }
.sd-foot {
  display: flex; align-items: center; gap: 8px;
  margin-top: 6px; padding: 8px 12px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--ink-dim);
}

/* ============================================================
   Staff bar (visible only when staff is in a back-office pane)
   ============================================================ */
.staff-bar {
  background: var(--ink);
  color: var(--surface);
  border-bottom: 1px solid var(--maroon-deep);
}
.staff-bar.hidden { display: none; }
.staff-bar-inner {
  display: flex; align-items: center; gap: 18px;
  padding: 10px 28px;
  flex-wrap: wrap;
}
.back-storefront {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 252, 247, 0.08);
  color: var(--gold-soft);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 500;
  border: 1px solid rgba(222, 197, 137, 0.2);
  transition: background 0.15s;
}
.back-storefront:hover { background: rgba(255, 252, 247, 0.14); color: var(--surface); }
.staff-bar-context { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.sb-eyebrow { font-size: 9.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft); }
.sb-current { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--surface); letter-spacing: -0.01em; }
.staff-bar-tabs { display: flex; gap: 4px; margin-left: auto; }
.sbt {
  background: transparent; color: rgba(255,252,247,0.6);
  font-size: 12.5px; font-weight: 500;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  transition: all 0.12s;
  display: inline-flex; align-items: center; gap: 6px;
}
.sbt:hover { color: var(--surface); background: rgba(255,252,247,0.06); }
.sbt.active { background: var(--surface); color: var(--ink); }
.staff-bar .conn { color: rgba(255,252,247,0.55); }
.staff-bar .conn-dot { background: var(--gold-soft); }
.staff-bar .conn .ok { background: var(--gold-soft); }

/* In staff mode, dim the gold promo strip — it's a customer-facing message */
body.mode-staff .promo-strip { display: none; }
body.mode-staff .category-strip { display: none; }

/* ============================================================
   Account dropdown (logged-in user menu)
   ============================================================ */
.account-menu { position: relative; }
.account-btn { position: relative; }
.account-pip {
  position: absolute; top: 4px; right: 4px;
  background: var(--maroon); color: var(--surface);
  font-family: var(--font-display); font-weight: 600;
  font-size: 11px; line-height: 1;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface);
  letter-spacing: -0.02em;
}
.account-btn.signed-in .account-ic-out { display: none; }
.account-btn.signed-in {
  background: var(--maroon-wash);
  border-color: var(--maroon-soft);
}
.account-btn.signed-in .account-pip {
  position: static; width: 24px; height: 24px;
  border: 0; font-size: 12px;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: 10px;
  z-index: 60;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0s 0.18s;
}
.account-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity 0.18s, transform 0.18s; }
.account-dropdown::before {
  content: ''; position: absolute;
  top: -6px; right: 16px;
  width: 12px; height: 12px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  transform: rotate(45deg);
}
.ad-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  margin: -10px -10px 8px;
  background: var(--surface-2);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.ad-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink); }
.ad-email { font-size: 11.5px; color: var(--ink-muted); font-family: var(--font-mono); margin-top: 2px; }
.ad-role {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--maroon-wash); color: var(--maroon);
  border: 1px solid var(--maroon-soft);
  padding: 2px 8px; border-radius: var(--r-pill);
}
.ad-role.admin { background: var(--gold-wash); color: var(--gold); border-color: var(--border-gold); }
.ad-role.merchant { background: var(--sage-soft); color: var(--sage); border-color: rgba(74,107,79,0.35); }
.ad-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  width: 100%;
  background: transparent; border: 0; border-radius: var(--r-md);
  text-align: left; color: var(--ink); cursor: pointer;
  font-size: 13.5px;
  transition: background 0.12s;
}
.ad-item:hover { background: var(--surface-2); }
.ad-item .ic-sm { color: var(--ink-muted); flex-shrink: 0; }
.ad-divider { height: 1px; background: var(--border); margin: 6px 0; }
.ad-cta {
  display: block; text-align: center;
  padding: 10px 14px; margin: 4px 0;
  background: var(--maroon); color: var(--surface);
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 13px;
  border: 0;
}
.ad-cta:hover { background: var(--maroon-deep); }
.ad-hint { font-size: 11.5px; color: var(--ink-muted); padding: 6px 12px 10px; line-height: 1.4; }

/* ============================================================
   Modals (login + add-product)
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 200;
  pointer-events: none;
}
.modal[aria-hidden="false"] { pointer-events: auto; }
.modal-shade {
  position: absolute; inset: 0;
  background: rgba(27, 15, 14, 0); transition: background 0.22s;
}
.modal[aria-hidden="false"] .modal-shade { background: rgba(27, 15, 14, 0.55); backdrop-filter: blur(3px); }
.modal-panel {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -48%);
  width: min(440px, 92vw);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-3);
  opacity: 0;
  transition: opacity 0.22s, transform 0.22s;
}
.modal-panel.modal-wide { width: min(720px, 94vw); }
.modal[aria-hidden="false"] .modal-panel { opacity: 1; transform: translate(-50%, -50%); }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); z-index: 2;
}
.modal-close:hover { background: var(--surface-3); }
.modal-body { padding: 36px 36px 32px; }
.modal-eyebrow {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.modal-brand {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.modal-brand .sj-mark svg { width: 44px; height: 52px; }
.modal-hint { color: var(--ink-muted); font-size: 13.5px; line-height: 1.55; margin: 14px 0 22px; }

/* ---- Login form ---- */
.login-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted);
}
.field input, .field select, .field textarea {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: 14.5px;
  color: var(--ink);
  font-family: inherit;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--maroon);
  box-shadow: 0 0 0 3px var(--maroon-wash);
}
.field textarea { resize: vertical; min-height: 70px; }
.login-form .btn-primary { margin-top: 6px; height: 46px; font-size: 14px; }

.login-error, #ap-error {
  background: var(--crimson-soft); color: var(--crimson);
  border: 1px solid rgba(158,31,25,0.3);
  border-radius: var(--r-md);
  padding: 10px 14px; font-size: 13px;
}

.login-quick {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px dashed var(--border);
}
.lq-head {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 10px;
}
.lq-list { display: flex; flex-wrap: wrap; gap: 6px; }
.lq-pill {
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--ink); font-size: 11.5px; font-weight: 500;
  padding: 6px 10px; border-radius: var(--r-pill);
  transition: all 0.12s;
}
.lq-pill:hover { background: var(--maroon); color: var(--surface); border-color: var(--maroon); }

/* ---- Add Piece form (simplified) ---- */
.add-form { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }

/* Primary photo CTA — big, tap-friendly, dual-purpose: empty state + preview */
.photo-cta {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--surface-2);
  border: 2px dashed var(--border-gold);
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.photo-cta:hover { border-color: var(--maroon); background: var(--maroon-wash); }
.photo-cta.drag-over { border-color: var(--gold); background: var(--gold-wash); transform: scale(0.99); }
.photo-cta.drag-over .photo-cta-title { color: var(--maroon); }
.photo-cta input[type=file] {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: pointer; z-index: 3;
}
.photo-cta-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 24px; text-align: center;
  pointer-events: none;
}
.photo-cta-icon {
  width: 64px; height: 64px;
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
  box-shadow: 0 4px 14px rgba(168,126,44,0.18);
}
.photo-cta-icon svg { width: 30px; height: 30px; color: var(--maroon); }
.photo-cta-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.photo-cta-sub { color: var(--ink-muted); font-size: 13.5px; }
.photo-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-change {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(255,252,247,0.92);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 600;
  z-index: 4;
  backdrop-filter: blur(6px);
}
.photo-change:hover { background: var(--surface); }

.primary-fields {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

.more-toggle {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  width: 100%; text-align: left;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s, border-color 0.12s;
}
.more-toggle:hover { background: var(--surface-3); border-color: var(--border-strong); }
.more-toggle-label { font-weight: 600; font-size: 14px; }
.more-toggle-sub { color: var(--ink-muted); font-size: 12px; flex: 1; }
.more-chev { color: var(--ink-muted); transition: transform 0.18s; flex-shrink: 0; }
.more-toggle.open .more-chev { transform: rotate(180deg); }
.more-fields {
  display: flex; flex-direction: column; gap: 12px;
  padding: 4px 2px 0;
  animation: fade-in 0.22s ease-out;
}

.add-actions {
  display: flex; gap: 14px;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  flex-wrap: wrap;
}
.big-cta {
  height: 52px !important;
  padding: 0 28px !important;
  font-size: 15px !important;
  flex: 1;
}
.link-btn {
  background: transparent; border: 0;
  color: var(--ink-muted);
  font-size: 13.5px; font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px;
  padding: 6px 12px;
  cursor: pointer;
}
.link-btn:hover { color: var(--ink); }

@media (max-width: 760px) {
  .primary-fields { grid-template-columns: 1fr; }
  .photo-cta { aspect-ratio: 4/5; }
  .modal-body { padding: 28px 22px 24px; }
  .big-cta { width: 100%; flex: 0 1 auto; }
}

/* ---- Show password toggle ---- */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px !important; }
.pw-eye {
  position: absolute;
  right: 8px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  background: transparent; border: 0;
  color: var(--ink-muted);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.pw-eye:hover { color: var(--ink); background: var(--surface-2); }

/* ---- Auth tabs (Sign in / Create account) ---- */
.auth-tabs {
  display: flex; gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 3px;
  margin-bottom: 16px;
}
.auth-tab {
  flex: 1;
  background: transparent; border: 0;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 13px;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.auth-tab.active { background: var(--surface); color: var(--maroon); box-shadow: var(--shadow-1); }
.signup-form { display: flex; flex-direction: column; gap: 14px; }
.signup-form[hidden] { display: none; }

/* ---- Search clear button ---- */
.search-clear {
  background: var(--surface-3); color: var(--ink-muted);
  border: 0; border-radius: 50%;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1; padding: 0;
  cursor: pointer;
}
.search-clear:hover { color: var(--ink); }

/* ---- Wishlist heart + share button on product card ---- */
.product { position: relative; }
.card-heart, .card-share {
  position: absolute;
  width: 36px; height: 36px;
  background: rgba(255, 252, 247, 0.9);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 4;
  cursor: pointer;
  color: var(--ink-muted);
  backdrop-filter: blur(8px);
  transition: all 0.15s;
}
.card-heart svg, .card-share svg { width: 16px; height: 16px; }
.card-heart { top: 10px; right: 10px; }
.card-share { top: 10px; right: 52px; }
.card-heart:hover, .card-share:hover { color: var(--maroon); transform: scale(1.06); }
.card-heart.on { color: var(--maroon); background: var(--maroon-wash); }
.product:hover .card-heart, .product:hover .card-share { background: var(--surface); }

/* When a piece has a rank-badge (For You row), shift the heart left a bit */
.product:has(.rank-badge) .card-heart { right: 56px; }
.product:has(.rank-badge) .card-share { right: 98px; }

/* ---- Wishlist + bell badges in masthead ---- */
.iconbtn-pip {
  position: absolute; top: -2px; right: -2px;
  background: var(--maroon); color: var(--surface);
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface);
  font-variant-numeric: tabular-nums;
}

/* ---- Bell dropdown ---- */
.bell-menu { position: relative; }
.bell-dropdown {
  position: absolute;
  top: calc(100% + 10px); right: 0;
  min-width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: 8px;
  z-index: 60;
  max-height: 420px;
  overflow-y: auto;
}
.bell-head {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim);
  padding: 8px 12px 6px;
}
.bell-list { display: flex; flex-direction: column; gap: 2px; }
.bell-item {
  padding: 10px 12px;
  border-radius: var(--r-md);
  display: flex; flex-direction: column; gap: 2px;
}
.bell-item:hover { background: var(--surface-2); }
.bell-item.order  { border-left: 3px solid var(--maroon); padding-left: 10px; }
.bell-item.search { border-left: 3px solid var(--gold); padding-left: 10px; }
.bell-item.agent  { border-left: 3px solid var(--sage); padding-left: 10px; }
.bell-tag {
  display: inline-block; font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 1px 6px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-muted);
  margin-left: 4px;
}
.bell-item.search .bell-tag { background: var(--gold-wash); color: var(--gold); }
.bell-item.agent  .bell-tag { background: var(--sage-soft); color: var(--sage); }
.bell-time {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--ink-dim);
}
.bell-body { font-size: 13px; color: var(--ink); }

/* ---- Edit piece "Delete" link ---- */
.delete-link {
  margin-top: 14px;
  color: var(--crimson) !important;
  text-align: center;
  width: 100%;
}
.delete-link:hover { color: var(--maroon-deep) !important; }

/* ---- Gold rate admin card ---- */
.admin-only-card { border-color: var(--gold-soft) !important; background: linear-gradient(180deg, var(--gold-wash), var(--surface)); }
.goldrate-row {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.goldrate-prefix, .goldrate-suffix {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  color: var(--ink);
}
#goldrate-input {
  flex: 0 1 200px;
  font-family: var(--font-display); font-size: 28px; font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 10px 14px;
  color: var(--maroon);
  font-variant-numeric: tabular-nums;
}
#goldrate-input:focus { outline: 0; border-color: var(--maroon); box-shadow: 0 0 0 3px var(--maroon-wash); }
.goldrate-msg { font-size: 12.5px; }

/* ---- Festival mode (subtle palette tints) ---- */
body.festival-akshaya .promo-strip { background: linear-gradient(90deg, #8C6817 0%, #7A1126 100%); }
body.festival-akshaya .promo-strip::before {
  content: '✦ Akshaya Tritiya '; color: var(--gold-soft); font-weight: 700; letter-spacing: 0.08em;
}
body.festival-diwali .promo-strip { background: linear-gradient(90deg, #5A0E22 0%, #A87E2C 100%); }
body.festival-diwali .promo-strip::before {
  content: '🪔 Happy Diwali '; color: var(--gold-soft); font-weight: 700; letter-spacing: 0.08em;
}
body.festival-ugadi .promo-strip { background: linear-gradient(90deg, #4A6B4F 0%, #7A1126 100%); }
body.festival-ugadi .promo-strip::before {
  content: '🌿 Happy Ugadi '; color: var(--gold-soft); font-weight: 700; letter-spacing: 0.08em;
}

/* ---- Loading skeletons ---- */
.skeleton, .skel {
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s linear infinite;
  border-radius: var(--r-md);
  color: transparent;
  pointer-events: none;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel-card {
  aspect-ratio: 1/1;
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s linear infinite;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.skel-line { height: 14px; border-radius: 4px; margin: 6px 0; }
.skel-line.short { width: 35%; }
.skel-line.med { width: 60%; }

/* ---- Admin campaigns + settings cards ---- */
.card-sub {
  font-size: 12.5px; color: var(--ink-muted); margin: 6px 0 0; line-height: 1.5;
  font-family: var(--font-mono);
}
#campaigns-table { width: 100%; }
#campaigns-table td { vertical-align: top; padding: 14px 12px; }
.cm-cell-msg .cm-eyebrow {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 3px;
}
.cm-cell-msg .cm-msg { font-family: var(--font-display); font-size: 14.5px; color: var(--ink); }
.cm-status-pill {
  display: inline-block; font-family: var(--font-mono);
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  padding: 4px 10px; border-radius: 999px;
}
.cm-status-pill.on  { background: #DDE9DF; color: #355C40; }
.cm-status-pill.off { background: var(--surface-3); color: var(--ink-muted); }
.cm-theme-badge {
  display: inline-block; font-family: var(--font-mono);
  font-size: 10.5px; padding: 3px 8px; border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.cm-window {
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--ink-muted); line-height: 1.5;
}
.cm-row-edit {
  background: transparent; border: 1px solid var(--border);
  color: var(--ink); padding: 6px 12px; border-radius: var(--r-sm);
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.cm-row-edit:hover { border-color: var(--maroon); color: var(--maroon); }
.cm-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
@media (max-width: 700px) { .cm-grid-2 { grid-template-columns: 1fr; } }
.checkbox-row {
  display: flex; align-items: center; gap: 10px; margin: 14px 0 6px;
  font-size: 14px; color: var(--ink);
}
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--maroon); }
.settings-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  align-items: end;
}
@media (max-width: 720px) { .settings-grid { grid-template-columns: 1fr; } }
.settings-input-row { display: flex; align-items: center; gap: 8px; }
.settings-input-row input {
  flex: 1; min-width: 0;
  padding: 9px 12px; border: 1px solid var(--border);
  border-radius: var(--r-sm); background: var(--surface);
  font-family: var(--font-mono); font-size: 14px;
}
.settings-prefix, .settings-suffix {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted);
}
.settings-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }

/* ---- Festival banner above hero ---- */
.festival-banner {
  position: relative; overflow: hidden;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 32px;
  background: linear-gradient(90deg, #5A0E22 0%, #A87E2C 65%, #E5C87A 100%);
  color: var(--surface);
  font-size: 14px;
  border-bottom: 1px solid var(--maroon-deep);
  box-shadow: 0 1px 0 rgba(255, 215, 128, 0.25) inset;
}
.fb-pattern {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 8% 50%, rgba(255, 240, 196, 0.22) 0, rgba(255, 240, 196, 0) 22%),
    radial-gradient(circle at 92% 50%, rgba(255, 240, 196, 0.20) 0, rgba(255, 240, 196, 0) 24%),
    repeating-linear-gradient(45deg, rgba(255, 252, 247, 0.05) 0 1px, transparent 1px 14px);
  opacity: 0.85;
  z-index: 0;
}
.festival-banner > * { position: relative; z-index: 1; }
.fb-icon {
  font-family: var(--font-display); font-size: 28px;
  color: var(--gold-soft);
  filter: drop-shadow(0 0 6px rgba(255, 220, 140, 0.55));
  animation: fb-pulse 2.4s ease-in-out infinite;
}
@keyframes fb-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(255, 220, 140, 0.55)); }
  50%      { transform: scale(1.12); filter: drop-shadow(0 0 14px rgba(255, 235, 180, 0.85)); }
}
.fb-stack { display: flex; flex-direction: column; flex: 1; line-height: 1.25; }
.fb-eyebrow {
  font-family: var(--font-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: rgba(255, 252, 247, 0.78);
  margin-bottom: 2px;
}
.fb-text {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 500;
  letter-spacing: 0.005em;
}
.fb-cta {
  background: rgba(255, 252, 247, 0.95);
  color: var(--maroon);
  border: 0;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.fb-cta:hover { background: var(--surface); transform: translateX(2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); }
.fb-cta .ic-sm { width: 14px; height: 14px; }
body.festival-akshaya .festival-banner { background: linear-gradient(90deg, #8C6817 0%, #C99B30 50%, #E5C87A 100%); }
body.festival-diwali  .festival-banner { background: linear-gradient(90deg, #5A0E22 0%, #C99B30 60%, #FFD580 100%); }
body.festival-ugadi   .festival-banner { background: linear-gradient(90deg, #4A6B4F 0%, #A87E2C 60%, #E5C87A 100%); }
@media (max-width: 760px) {
  .festival-banner { font-size: 12.5px; padding: 14px 16px; flex-wrap: wrap; gap: 12px; }
  .fb-icon { font-size: 22px; }
  .fb-text { font-size: 14px; }
  .fb-cta { width: 100%; justify-content: center; }
}

/* ---- Extras-photo tiles in Add Piece form ---- */
.extras-row { margin-top: 6px; }
.extras-label {
  display: block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.extras-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.extras-tile {
  position: relative;
  aspect-ratio: 1/1;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}
.extras-tile:hover { border-color: var(--maroon); background: var(--maroon-wash); }
.extras-tile.drag-over { border-color: var(--gold); background: var(--gold-wash); transform: scale(0.97); }
.extras-tile.has-image { border-style: solid; border-color: var(--border-strong); background: var(--surface); }
.extras-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.extras-empty { font-size: 24px; color: var(--ink-dim); line-height: 1; pointer-events: none; }
.extras-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---- Drawer · multi-photo gallery ---- */
.drawer-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
  margin-bottom: 18px;
}
.drawer-gallery img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transition: opacity 0.32s var(--ease-out);
}
.drawer-gallery img.active { opacity: 1; }
.drawer-gallery .gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  background: rgba(255,252,247,0.92);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 18px; line-height: 1; font-family: var(--font-display); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.drawer-gallery .gallery-nav.prev { left: 10px; }
.drawer-gallery .gallery-nav.next { right: 10px; }
.drawer-gallery .gallery-dots {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.drawer-gallery .gallery-dots .dd {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,252,247,0.55);
  cursor: pointer;
}
.drawer-gallery .gallery-dots .dd.active { background: var(--surface); width: 18px; border-radius: 999px; }

/* ---- Metal chip on product cards & order items ---- */
.metal-chip {
  display: inline-block;
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}
.metal-chip.gold {
  background: var(--gold-wash); color: var(--gold);
  border: 1px solid var(--border-gold);
}
.metal-chip.silver {
  background: #ECEEF2; color: #4A5163;
  border: 1px solid #C9CDD7;
}

/* ---- "My orders" CTA in welcome strip ---- */
.ws-orders-cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--maroon-wash);
  color: var(--maroon);
  border: 1px solid var(--maroon-soft);
  padding: 12px 16px;
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  margin-right: 12px;
  transition: all 0.15s;
}
.ws-orders-cta:hover { background: var(--maroon); color: var(--surface); border-color: var(--maroon); }
.ws-orders-cta .ic-sm { color: currentColor; }
.ws-orders-cta strong { font-size: 14px; font-weight: 600; }
.ws-orders-sub { font-size: 11px; color: currentColor; opacity: 0.7; }
.ws-orders-cta:hover .ws-orders-sub { opacity: 0.95; }
.ws-orders-arrow { font-size: 18px; line-height: 1; }
@media (max-width: 1100px) {
  .ws-orders-cta { width: 100%; margin-right: 0; margin-bottom: 8px; justify-content: space-between; }
}

/* ---- Customer account · enriched order rows with appreciation ---- */
.order-rich {
  grid-template-columns: 1fr minmax(220px, 280px);
}
.order-main { min-width: 0; }
.order-aside {
  display: flex; flex-direction: column; gap: 10px;
  align-items: stretch;
  padding: 4px 0 4px 16px;
  border-left: 1px dashed var(--border);
}
.order-status-row { display: flex; justify-content: flex-end; }
.apprec {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.apprec-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px;
}
.apprec-k {
  color: var(--ink-muted); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}
.apprec-v {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.apprec-now { color: var(--maroon); }
.apprec-gain {
  padding-top: 6px; margin-top: 2px;
  border-top: 1px dashed var(--border-strong);
}
.apprec-gain .apprec-v { color: var(--sage); font-size: 14px; }
.apprec-pct {
  font-size: 13px; color: var(--sage);
  font-family: var(--font-mono); margin-left: 4px;
}
.apprec-note {
  font-size: 11px; color: var(--ink-muted); font-style: italic;
  margin-top: 4px;
}
@media (max-width: 760px) {
  .order-rich { grid-template-columns: 1fr; }
  .order-aside { border-left: 0; padding: 12px 0 0 0; border-top: 1px dashed var(--border); }
}

/* ---- Order row · "Print invoice" link ---- */
.order .invoice-link {
  font-size: 11.5px;
  color: var(--maroon);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 6px;
  display: inline-block;
}
.order .invoice-link:hover { text-decoration: underline; }

/* ---- "Forgot password" recovery line ---- */
.login-recover {
  font-size: 13px; color: var(--ink-muted);
  text-align: center; margin: 12px 0 0;
  line-height: 1.5;
}
.login-recover a { color: var(--maroon); text-decoration: none; }
.login-recover a:hover { text-decoration: underline; }

/* ---- Empty state for merchant portal first-run ---- */
.empty-portal {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-xl);
  display: flex; flex-direction: column; align-items: center;
  gap: 12px;
}
.empty-portal-icon {
  width: 84px; height: 84px;
  background: var(--maroon-wash);
  border: 1px solid var(--maroon-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--maroon);
  margin-bottom: 6px;
}
.empty-portal-icon svg { width: 38px; height: 38px; }
.empty-portal-title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 600;
  color: var(--ink);
}
.empty-portal-sub {
  color: var(--ink-muted);
  max-width: 460px;
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 14px;
}

/* ============================================================
   Customer account & merchant portal panes — small extras
   ============================================================ */
#account-taste { display: flex; flex-direction: column; gap: 8px; }
.taste-row { display: grid; grid-template-columns: 100px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.taste-bar { height: 8px; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; }
.taste-bar > span { display: block; height: 100%; background: var(--maroon); border-radius: var(--r-pill); }
.taste-pct { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-muted); text-align: right; }

.portal-product {
  position: relative;
}
.portal-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 10.5px; font-weight: 600;
  padding: 3px 8px; border-radius: var(--r-pill);
  color: var(--ink-muted);
  letter-spacing: 0.06em; text-transform: uppercase;
  z-index: 2;
}
.portal-badge.live { color: var(--sage); border-color: rgba(74,107,79,0.4); background: var(--sage-soft); }
.portal-badge.new { color: var(--gold); background: var(--gold-wash); border-color: var(--border-gold); }

/* Mobile: staff bar wraps cleanly */
@media (max-width: 768px) {
  .staff-bar-inner { padding: 10px 16px; gap: 10px; }
  .staff-bar-tabs { width: 100%; justify-content: flex-start; flex-wrap: wrap; margin-left: 0; }
  .staff-bar .conn { display: none; }
  .sb-current { font-size: 14px; }
  .staff-dropdown { right: -8px; min-width: 260px; }
  .staff-dropdown::before { right: 18px; }
}

/* ============================================================
   Role nav (Customer / Merchant / Supplier / Atelier)
   ============================================================ */
.role-nav { background: var(--surface); border-bottom: 1px solid var(--border); }
.role-nav-inner {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 28px;
  position: relative;
}
.role-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  color: var(--ink-muted);
  padding: 9px 14px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
  transition: all 0.18s var(--ease-out);
  position: relative;
}
.role-pill:hover { color: var(--ink); background: var(--surface-2); }
.role-pill.active { color: var(--maroon); background: var(--maroon-wash); }
.role-pill .role-flourish {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 11px;
  opacity: 0.65;
}
.role-pill.active .role-flourish { color: var(--maroon); opacity: 1; }
.nav-badge {
  background: var(--honey-soft); color: var(--honey);
  border: 1px solid rgba(168, 111, 31, 0.4);
  font-size: 10.5px; font-weight: 600;
  border-radius: var(--r-pill);
  padding: 1px 7px;
  margin-left: 4px;
}
.conn {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--ink-dim);
}
.conn-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-faint);
}
.conn .ok    { background: var(--sage); }
.conn .warn  { background: var(--honey); }
.conn .err   { background: var(--crimson); }

/* ============================================================
   Category strip (Customer pane only)
   ============================================================ */
.category-strip { background: var(--bg); border-bottom: 1px solid var(--border); }
.category-strip-inner {
  display: flex; gap: 32px; padding: 12px 28px;
  overflow-x: auto;
}
.category-strip-inner::-webkit-scrollbar { display: none; }
.cat-circle {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: transparent;
  font-size: 12px; color: var(--ink);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  padding: 0;
  transition: opacity 0.18s;
}
.cat-circle:hover { opacity: 0.78; }
.cat-thumb {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: block;
  position: relative;
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s;
}
.cat-circle.active .cat-thumb {
  border-color: var(--maroon);
  box-shadow: 0 0 0 2px var(--maroon-wash);
}
.cat-circle:hover .cat-thumb { transform: translateY(-1px); }
.cat-circle.active { color: var(--maroon); font-weight: 600; }
/* Category icon backgrounds — tiny inline SVG via gradient seeds */
.cat-thumb-all       { background: radial-gradient(circle at 50% 50%, var(--gold-soft) 0%, var(--gold-wash) 60%, var(--surface-2) 100%); }
.cat-thumb-rings     { background: var(--surface-2) center/40px no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%237A1126' stroke-width='1.4'><circle cx='20' cy='24' r='10'/><path d='M14 17l3-7h6l3 7'/><path d='M16 14l4-3 4 3' stroke-width='1.1'/></svg>"); }
.cat-thumb-earrings  { background: var(--surface-2) center/38px no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%237A1126' stroke-width='1.4'><circle cx='14' cy='10' r='2.4'/><path d='M14 12.5l-3 9 3 4 3-4-3-9z'/><circle cx='26' cy='10' r='2.4'/><path d='M26 12.5l-3 9 3 4 3-4-3-9z'/></svg>"); }
.cat-thumb-necklaces { background: var(--surface-2) center/44px no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 40' fill='none' stroke='%237A1126' stroke-width='1.3'><path d='M6 6 Q22 30 38 6'/><circle cx='22' cy='27' r='3.5'/></svg>"); }
.cat-thumb-bracelets { background: var(--surface-2) center/40px no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%237A1126' stroke-width='1.3'><ellipse cx='20' cy='20' rx='14' ry='6.5'/><circle cx='6' cy='20' r='1.4' fill='%237A1126'/><circle cx='34' cy='20' r='1.4' fill='%237A1126'/></svg>"); }
.cat-thumb-pendants  { background: var(--surface-2) center/38px no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%237A1126' stroke-width='1.3'><path d='M6 8h28'/><path d='M20 8 L13 22 L20 32 L27 22 Z'/></svg>"); }
.cat-thumb-watches   { background: var(--surface-2) center/38px no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%237A1126' stroke-width='1.4'><circle cx='20' cy='20' r='9'/><path d='M16 5h8M16 35h8'/><path d='M20 16v4l3 2'/></svg>"); }
.cat-thumb-cufflinks { background: var(--surface-2) center/40px no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%237A1126' stroke-width='1.3'><circle cx='13' cy='20' r='5'/><circle cx='27' cy='20' r='5'/><path d='M18 20h4'/></svg>"); }

/* ============================================================
   Typography utilities
   ============================================================ */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}
.eyebrow.gold { color: var(--gold); }

.display-xl, .display-lg, .display-md, .display-sm, .display {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
.display-xl { font-size: 56px; line-height: 1.02; }
.display-lg { font-size: 40px; }
.display-md { font-size: 32px; }
.display-sm { font-size: 24px; }
.display    { font-size: 32px; }
.display-xl em, .display-lg em, .display-md em, .display-sm em, .display em {
  font-style: italic; font-weight: 500; color: var(--maroon);
}

/* ============================================================
   Page header / section head / pane head
   ============================================================ */
.page-header, .pane-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding: 36px 0 18px;
}
.pane-head { padding: 28px 0 18px; }
.ph-text, .pane-head > div:first-child { max-width: 820px; }
.ph-subtitle, .section-sub {
  margin: 8px 0 0; color: var(--ink-muted);
  font-size: 14.5px; line-height: 1.55; max-width: 640px;
}
.ph-actions { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.section { padding: 24px 0; }
.section + .section { padding-top: 12px; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding: 12px 0 22px;
}
.section-head h2 { margin-top: 6px; }

/* Ornament dividers */
.ornament-divider {
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  margin: 8px 0 24px;
  opacity: 0.7;
}
.ornament-divider svg { width: 220px; height: 18px; }

/* ============================================================
   Buttons & chips
   ============================================================ */
.btn-primary, .btn-ghost, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 13.5px;
  letter-spacing: 0.02em;
  height: 42px; padding: 0 22px;
  border-radius: var(--r-pill);
  transition: all 0.18s var(--ease-out);
}
.btn-primary {
  background: var(--maroon); color: var(--surface);
  border: 1px solid var(--maroon);
  box-shadow: var(--shadow-1);
}
.btn-primary:hover { background: var(--maroon-deep); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn-primary:active { transform: none; }
.btn-ghost {
  background: transparent; color: var(--ink);
  text-decoration: none;
}
.btn-ghost:hover { color: var(--maroon); }
.btn-outline {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover { background: var(--surface-2); border-color: var(--ink); }

.select {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 11px; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: 0.15em;
}
.select.inline { flex-direction: row; align-items: center; gap: 10px; }
.select.inline > span { font-size: 11px; }
.select select {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  padding: 10px 16px;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 500;
  color: var(--ink);
  min-width: 220px;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 0.15s;
}
.select select:hover { border-color: var(--ink); }
.select select:focus { outline: 0; border-color: var(--maroon); box-shadow: 0 0 0 3px var(--maroon-wash); }

.period-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 3px;
}
.period-toggle button {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  transition: all 0.15s;
}
.period-toggle button.active { background: var(--ink); color: var(--surface); }
.period-toggle button:hover:not(.active) { color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--ink-muted); font-size: 12.5px; font-weight: 500;
  padding: 6px 14px; border-radius: var(--r-pill);
  letter-spacing: 0.02em;
  transition: all 0.15s;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }

.filter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  font-size: 13px;
  width: 220px;
  color: var(--ink);
}
.filter:focus { outline: 0; border-color: var(--maroon); }

.ic-sm { width: 16px; height: 16px; }

/* ============================================================
   Hero carousel — full-bleed editorial
   ============================================================ */
.hero-carousel {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: var(--ink);
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
  display: flex; align-items: flex-end;
}
.hero-slide.active { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.10) 38%, rgba(27,15,14,0.78) 100%);
}
/* When the hero uses Swarna's own branded poster (already has logo + tagline baked in),
   shift the focal area right so the model/product is visible and overlay copy reads cleanly. */
.hero-slide.hero-poster { background-size: cover; background-position: 80% center; background-color: #1B0F0E; }
.hero-slide.hero-poster .hero-shade {
  background:
    linear-gradient(90deg, rgba(27,15,14,0.78) 0%, rgba(27,15,14,0.55) 40%, rgba(27,15,14,0.0) 70%),
    linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(27,15,14,0.55) 100%);
}
/* IG-poster hero — Swarna's own creatives already have brand + tagline + phone baked in.
   Display the full poster centred, no overlay text, just a small CTA strip at the bottom. */
.hero-slide.hero-ig {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #1B0F0E;
  align-items: flex-end;
  justify-content: center;
}
.hero-cta-row {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center;
  padding: 0 28px 28px;
  position: relative; z-index: 2;
}
.hero-cta-row .hero-cta { background: var(--surface); color: var(--ink); border-color: var(--surface); }
.hero-cta-row .hero-cta:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.hero-cta-row .hero-link { color: var(--surface); }
.hero-copy {
  position: relative; z-index: 2;
  color: var(--surface);
  padding: 0 28px 64px;
  max-width: 760px;
}
.hero-eyebrow {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--gold-soft);
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(222, 197, 137, 0.4);
  display: inline-block;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--surface);
  margin: 0 0 18px;
  text-wrap: balance;
}
.hero-title em { color: var(--gold-soft); font-style: italic; }
.hero-sub {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 252, 247, 0.86);
  margin: 0 0 26px;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-cta { background: var(--surface); color: var(--ink); border-color: var(--surface); }
.hero-cta:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink); }
.hero-link { color: var(--surface); }
.hero-link:hover { color: var(--gold-soft); }

.hero-dots {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 3;
}
.hero-dot {
  width: 28px; height: 2px; border-radius: 0;
  background: rgba(255, 252, 247, 0.4);
  transition: background 0.3s, width 0.3s;
}
.hero-dot.active { background: var(--gold-soft); width: 48px; }

@media (max-width: 900px) {
  .hero-carousel { height: 480px; }
  .hero-title { font-size: 38px; }
  .hero-copy { padding: 0 24px 48px; }
}

/* ============================================================
   Welcome strip (replaces bulky KPI grid)
   ============================================================ */
.welcome-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 22px 28px;
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.ws-left { display: flex; align-items: center; gap: 14px; }
.ws-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--maroon-wash);
  color: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600; letter-spacing: -0.02em;
  border: 1px solid var(--maroon-soft);
}
.ws-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); }
.ws-name { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.1; }
.ws-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  border-left: 1px solid var(--border);
  padding-left: 28px;
}
.ws-stats .kpi {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  flex-direction: column;
}
.ws-stats .kpi-head { font-size: 9.5px; letter-spacing: 0.16em; }
.ws-stats .kpi-value { font-size: 22px; }
.ws-stats .kpi-delta { font-size: 11px; }
.ws-stats .kpi-spark { display: none; }
@media (max-width: 1100px) {
  .welcome-strip { grid-template-columns: 1fr; }
  .ws-stats { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 18px; }
}

/* ============================================================
   Bridal Edit — split editorial
   ============================================================ */
.bridal-edit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.bridal-art {
  position: relative;
  min-height: 520px;
  background-size: cover;
  background-position: center;
}
.bridal-art-tag {
  position: absolute; top: 18px; left: 18px;
  background: rgba(255, 252, 247, 0.9);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  backdrop-filter: blur(8px);
}
.bridal-text {
  padding: 56px 48px;
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.bridal-text h2 { margin: 6px 0 0; }
.bridal-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin: 16px 0 4px;
}
.bridal-strip .bp {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  display: flex; flex-direction: column; gap: 6px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.bridal-strip .bp:hover { border-color: var(--maroon); transform: translateY(-2px); }
.bridal-strip .bp img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: var(--r-sm);
}
.bridal-strip .bp .bp-name { font-family: var(--font-display); font-size: 13.5px; font-weight: 500; line-height: 1.2; }
.bridal-strip .bp .bp-price { font-size: 12px; color: var(--ink); font-weight: 600; }
.bridal-text .btn-outline { align-self: flex-start; }

@media (max-width: 1000px) {
  .bridal-edit { grid-template-columns: 1fr; }
  .bridal-art { min-height: 360px; }
  .bridal-text { padding: 40px 28px; }
}

/* ============================================================
   Lookbook mosaic
   ============================================================ */
.lookbook {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 280px;
  gap: 14px;
}
.lb {
  position: relative;
  background-size: cover; background-position: center;
  border: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: transform 0.3s var(--ease-out);
}
.lb:hover { transform: scale(1.01); }
.lb-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(27,15,14,0.65) 100%);
  transition: background 0.2s;
}
.lb:hover .lb-shade { background: linear-gradient(180deg, rgba(122,17,38,0.10) 30%, rgba(27,15,14,0.78) 100%); }
.lb-label {
  position: absolute; left: 22px; right: 22px; bottom: 22px;
  color: var(--surface);
  z-index: 2;
}
.lb-eyebrow {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 6px;
}
.lb-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 500;
  letter-spacing: -0.01em;
}
@media (max-width: 900px) {
  .lookbook { grid-template-columns: repeat(2, 1fr); grid-template-rows: 220px 220px 220px; }
}

/* ============================================================
   Heritage section
   ============================================================ */
.heritage-section {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0;
  overflow: hidden;
}
.heritage-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
}
.heritage-text {
  padding: 60px 56px;
  display: flex; flex-direction: column;
  gap: 18px;
  justify-content: center;
}
.heritage-body {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
  max-width: 460px;
}
.heritage-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.hm-num {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 600;
  color: var(--maroon);
  letter-spacing: -0.01em;
  line-height: 1;
}
.hm-sub {
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-top: 6px;
}
.heritage-art {
  position: relative;
  min-height: 480px;
  background-size: cover; background-position: center;
}
.heritage-art-cap {
  position: absolute; bottom: 22px; right: 22px;
  background: rgba(255, 252, 247, 0.92);
  backdrop-filter: blur(8px);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink);
  text-align: right;
  max-width: 220px;
}
.heritage-art-cap .hm-sub { font-style: normal; font-family: var(--font-body); }
.heritage-contact {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12.5px; color: var(--ink-2);
  font-family: var(--font-mono);
  margin-top: 8px;
}
.footer-socials {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 14px;
}
.footer-socials a {
  font-size: 12px; color: var(--gold-soft) !important;
  border: 1px solid rgba(222, 197, 137, 0.3);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  display: inline-block;
  text-decoration: none;
  transition: all 0.15s;
}
.footer-socials a:hover { background: rgba(222, 197, 137, 0.1); }
@media (max-width: 1000px) {
  .heritage-grid { grid-template-columns: 1fr; }
  .heritage-text { padding: 40px 28px; }
  .heritage-art { min-height: 320px; order: -1; }
}

/* ============================================================
   Festival hero (Customer pane)  [legacy — kept for fallback]
   ============================================================ */
.festival-hero {
  position: relative;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.festival-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 500px at 90% 50%, var(--gold-wash), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, var(--maroon-wash), transparent 60%);
  opacity: 0.85;
  pointer-events: none;
}
.festival-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 28px;
}
.festival-text { position: relative; z-index: 2; }
.festival-text .display-xl { margin: 14px 0 18px; }
.festival-sub {
  color: var(--ink-muted); font-size: 16px; line-height: 1.6;
  max-width: 560px; margin: 0 0 24px;
}
.festival-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.festival-meta { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; gap: 20px; flex-wrap: wrap; }

.festival-art {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 360px;
}
.hero-mandala { width: 380px; height: 380px; opacity: 0.65; }
.festival-art::before {
  content: ''; position: absolute;
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--gold-soft) 0%, transparent 65%);
  filter: blur(40px);
  opacity: 0.6;
}

@media (max-width: 1000px) {
  .festival-grid { grid-template-columns: 1fr; padding: 56px 28px; }
  .festival-art { min-height: 240px; }
  .hero-mandala { width: 220px; height: 220px; }
  .display-xl { font-size: 40px; }
}

/* ============================================================
   Hero stats / KPI ribbon
   ============================================================ */
.hero-stats, .kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  padding: 22px 0;
  margin-top: -36px;
  position: relative; z-index: 4;
}
.hero-stats {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 28px;
  box-shadow: var(--shadow-2);
  margin-top: -42px;
}
.kpis { background: transparent; padding: 8px 0 14px; margin-top: 0; }

.hero {
  display: flex; align-items: center; justify-content: space-between;
  gap: 26px; flex-wrap: wrap;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin: 18px 0 8px;
  box-shadow: var(--shadow-1);
}
.hero-left { display: flex; align-items: center; gap: 18px; }
.hero-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--maroon-wash);
  color: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 24px; font-weight: 600; letter-spacing: -0.02em;
  border: 1px solid var(--border-strong);
}
.hero-name { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.hero-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.hero-tag {
  font-size: 11px;
  background: var(--surface-2); color: var(--ink-muted);
  border: 1px solid var(--border);
  padding: 3px 10px; border-radius: var(--r-pill);
  letter-spacing: 0.04em;
}

.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 2px;
  position: relative; overflow: hidden;
  transition: border-color 0.18s;
}
.kpi:hover { border-color: var(--border-strong); }
.kpi-head {
  display: flex; align-items: center; gap: 7px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.kpi-head .ic-sm { width: 14px; height: 14px; color: var(--gold); }
.kpi-value {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.1;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.kpi-delta {
  font-size: 11.5px; color: var(--ink-dim);
  font-weight: 500; margin-top: 4px;
}
.kpi-delta.up   { color: var(--sage); }
.kpi-delta.down { color: var(--crimson); }
.kpi-delta.warn { color: var(--honey); }
.kpi-spark { position: absolute; right: 12px; bottom: 10px; opacity: 0.6; }

/* ============================================================
   Cards (panels)
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
}
.card-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  margin: 4px 0 0;
}
.card-body.p0 { margin: 12px -24px -22px; }
.chart-wrap { padding: 6px 0; }

/* ============================================================
   Grids
   ============================================================ */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 22px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0; }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin: 26px 0 0; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
@media (max-width: 1000px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-12 > [class*=span-] { grid-column: span 12; }
}

/* ============================================================
   Product card (Tanishq-style: white, dotted ring, badges, always-on CTA)
   ============================================================ */
.product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}
.product:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.product .img-wrap {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--surface-2);
  overflow: hidden;
}
.product .img-wrap::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1.5px dashed var(--border-gold);
  border-radius: 50%;
  opacity: 0.45;
  pointer-events: none;
}
.product img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.product:hover img { transform: scale(1.04); }

.rank-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--maroon); color: var(--surface);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  z-index: 2;
}
.score-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--surface); color: var(--ink);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  padding: 3px 8px; border-radius: var(--r-pill);
  border: 1px solid var(--border);
  z-index: 2;
}
.discount-badge {
  position: absolute; right: 12px; bottom: 12px;
  width: 44px; height: 44px;
  background: var(--maroon-wash); color: var(--maroon);
  border: 1px solid var(--maroon-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 11px;
  line-height: 1;
  text-align: center;
  z-index: 2;
}
.discount-badge span { display: block; }
.discount-badge .pct { font-size: 13px; }
.discount-badge .off { font-size: 8.5px; letter-spacing: 0.1em; opacity: 0.85; }

.product .body {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column;
  gap: 6px;
}
.product .merchant {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.product .name {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}
.product .price-row {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: 4px;
}
.product .price {
  font-size: 16px; font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.product .price-was {
  font-size: 12.5px;
  color: var(--ink-dim);
  text-decoration: line-through;
}
.product .price-enquire {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px;
  padding: 7px 12px;
  background: var(--maroon-wash);
  color: var(--maroon-deep);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease;
}
.product .price-enquire:hover { background: #25D366; color: #fff; border-color: #25D366; }
.product .price-enquire .ic-sm { width: 14px; height: 14px; }
.product.price-pending .img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 70%, rgba(122,17,38,0.08) 100%);
  pointer-events: none;
}
.product .enquire-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  color: var(--maroon);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: gap 0.18s;
}
.product:hover .enquire-row { gap: 14px; }
.product:hover .enquire-arrow { transform: translateX(3px); }
.enquire-arrow { color: var(--maroon); transition: transform 0.18s; }
.enquire-hint { font-style: normal; }

/* ============================================================
   Trust ribbon
   ============================================================ */
.trust-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0;
  overflow: hidden;
}
.trust-cell {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 26px;
  border-right: 1px solid var(--border);
}
.trust-cell:last-child { border-right: 0; }
.trust-ic { width: 32px; height: 32px; color: var(--maroon); flex-shrink: 0; }
.trust-t { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink); }
.trust-s { font-size: 12px; color: var(--ink-muted); margin-top: 2px; line-height: 1.4; }
@media (max-width: 900px) { .trust-ribbon { grid-template-columns: repeat(2, 1fr); } .trust-cell:nth-child(2) { border-right: 0; } .trust-cell:nth-child(1), .trust-cell:nth-child(2) { border-bottom: 1px solid var(--border); } }

/* ============================================================
   Orders / timeline
   ============================================================ */
.orders { display: flex; flex-direction: column; gap: 12px; }
.order {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 20px; align-items: center;
}
.order .what {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600;
  color: var(--ink);
}
.order .meta {
  color: var(--ink-muted); font-size: 12px;
  margin-top: 4px; font-family: var(--font-mono);
}
.order .right-col {
  display: flex; flex-direction: column; gap: 7px;
  align-items: flex-end;
}
.order .total {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.timeline {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px;
  font-size: 11px; font-family: var(--font-mono);
  color: var(--ink-dim);
}
.dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}
.dot.done { background: var(--sage); border-color: var(--sage); }
.dot.active {
  background: var(--maroon); border-color: var(--maroon);
  box-shadow: 0 0 0 4px var(--maroon-wash);
  animation: pulse-active 1.6s ease-in-out infinite;
}
@keyframes pulse-active {
  0%, 100% { box-shadow: 0 0 0 4px var(--maroon-wash); }
  50%      { box-shadow: 0 0 0 7px transparent; }
}
.line { flex: 0 0 24px; height: 1px; background: var(--border-strong); }
.line.done { background: var(--sage); }
.tl-label.done { color: var(--ink-2); }
.tl-label.active { color: var(--maroon); font-weight: 500; }

/* ============================================================
   Pills / tags
   ============================================================ */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  background: var(--surface-2); color: var(--ink-muted);
  border: 1px solid var(--border);
}
.pill.placed    { background: var(--surface-2); color: var(--ink-muted); }
.pill.shipped   { background: var(--maroon-wash); color: var(--maroon); border-color: var(--maroon-soft); }
.pill.delivered { background: var(--sage-soft); color: var(--sage); border-color: rgba(74,107,79,0.35); }
.pill.warn      { background: var(--honey-soft); color: var(--honey); border-color: rgba(168,111,31,0.35); }
.pill.danger    { background: var(--crimson-soft); color: var(--crimson); border-color: rgba(158,31,25,0.35); }
.pill.ok        { background: var(--sage-soft); color: var(--sage); border-color: rgba(74,107,79,0.35); }
.pill.vip       { background: var(--gold-wash); color: var(--gold); border-color: var(--border-gold); }
.pill.watch     { background: var(--maroon-wash); color: var(--maroon); }

/* ============================================================
   Tables
   ============================================================ */
.data {
  width: 100%; border-collapse: collapse;
  font-size: 13.5px;
}
.data th {
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600; font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-muted);
  padding: 14px 24px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.data th.num, .data td.num { text-align: right; font-variant-numeric: tabular-nums; }
.data td {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.data tbody tr:hover td { background: var(--surface-2); }
.data tbody tr:last-child td { border-bottom: 0; }

/* ============================================================
   Feed (suggestions, alerts, replenish)
   ============================================================ */
.feed-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex; flex-direction: column;
  gap: 5px;
  margin-bottom: 8px;
}
.feed-item:last-child { margin-bottom: 0; }
.feed-item .ts {
  font-size: 10.5px; color: var(--ink-dim);
  font-family: var(--font-mono);
}
.feed-item .body-line { font-size: 13px; color: var(--ink); }
.feed-item .body-line strong { font-weight: 600; }
.feed-item .reason { color: var(--maroon); font-weight: 500; }
.feed-item.warn { border-left: 3px solid var(--honey); }
.feed-item.danger { border-left: 3px solid var(--crimson); }
.preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.preview-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 3px 9px;
  font-size: 11.5px;
  color: var(--ink);
}

#merchant-suggestions, #supplier-alerts, #supplier-replenish { max-height: 480px; overflow-y: auto; padding-right: 4px; }
#merchant-suggestions::-webkit-scrollbar, #supplier-alerts::-webkit-scrollbar, #supplier-replenish::-webkit-scrollbar { width: 6px; }
#merchant-suggestions::-webkit-scrollbar-thumb, #supplier-alerts::-webkit-scrollbar-thumb, #supplier-replenish::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

/* ============================================================
   Sparkline
   ============================================================ */
.spark { display: inline-block; vertical-align: middle; }

/* ============================================================
   Agent decision tree
   ============================================================ */
.decision-stream { display: flex; flex-direction: column; gap: 12px; }
.decision-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.dc-head {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.15s;
}
.dc-head:hover { background: var(--surface-2); }
.dc-trigger {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--maroon);
  background: var(--maroon-wash);
  border: 1px solid var(--maroon-soft);
  padding: 3px 9px;
  border-radius: var(--r-pill);
  flex-shrink: 0;
}
.dc-trigger.manual { color: var(--gold); background: var(--gold-wash); border-color: var(--border-gold); }
.dc-trigger.SupplierStockLow { color: var(--honey); background: var(--honey-soft); }
.dc-action {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 500;
  color: var(--ink);
}
.dc-action span { color: var(--ink-muted); font-size: 13.5px; font-family: var(--font-body); }
.dc-time { margin-left: auto; font-size: 11px; color: var(--ink-dim); font-family: var(--font-mono); }
.dc-chevron { color: var(--ink-muted); transition: transform 0.2s; }
.decision-card.open .dc-chevron { transform: rotate(180deg); }
.dc-body { padding: 0 20px 20px; display: none; }
.decision-card.open .dc-body { display: block; }

.agent-tree { display: flex; flex-direction: column; gap: 10px; }
.agent-node {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  background: var(--surface-2);
}
.agent-node.global { border-color: var(--maroon-soft); background: var(--maroon-wash); }
.agent-node.domain { border-left: 3px solid var(--maroon); }
.agent-node.task { border-left: 3px solid var(--gold); }
.agent-row {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.agent-name {
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px;
}
.agent-name.global { color: var(--maroon); }
.agent-name.domain { color: var(--ink); }
.agent-name.task { color: var(--gold); }
.agent-action {
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--ink-muted);
}
.agent-rationale {
  color: var(--ink-muted); font-size: 12px;
  margin-top: 5px; line-height: 1.45;
  font-style: italic;
}
.agent-children {
  padding-left: 14px;
  margin-top: 10px;
  display: flex; flex-direction: column; gap: 8px;
  border-left: 1px dashed var(--border-strong);
}
.agent-output { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border-strong); }
.agent-fact { display: inline-flex; gap: 4px; align-items: baseline; font-family: var(--font-mono); font-size: 11.5px; }
.agent-fact .k { color: var(--ink-dim); }
.agent-fact .v { color: var(--ink); font-weight: 500; }
.agent-facts { display: flex; flex-wrap: wrap; gap: 14px; }

.pick-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.pick {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 12px; align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 13px;
}
.pick .pn { font-family: var(--font-display); font-weight: 500; }
.pick .pp { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.pick .ps { font-family: var(--font-mono); font-size: 10.5px; color: var(--gold); }

/* Hierarchy diagram */
.hierarchy { display: flex; flex-direction: column; gap: 10px; align-items: center; padding-top: 8px; }
.h-node {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 9px 16px;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
}
.h-node.global { background: var(--maroon-wash); color: var(--maroon); border-color: var(--maroon-soft); }
.h-node.domain { color: var(--ink); }
.h-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; width: 100%; margin-top: 6px; }
.h-branch {
  display: flex; flex-direction: column; align-items: stretch; gap: 6px;
  position: relative; padding-top: 18px;
}
.h-branch::before {
  content: ''; position: absolute; top: 0; left: 50%;
  width: 1px; height: 18px; background: var(--border-strong);
}
.h-leaf {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
  font-style: italic;
}

/* ============================================================
   Drawer
   ============================================================ */
.drawer {
  position: fixed; inset: 0; z-index: 100;
  pointer-events: none;
}
.drawer[aria-hidden="false"] { pointer-events: auto; }
.drawer-shade {
  position: absolute; inset: 0;
  background: rgba(27, 15, 14, 0); transition: background 0.25s;
}
.drawer[aria-hidden="false"] .drawer-shade { background: rgba(27, 15, 14, 0.4); backdrop-filter: blur(2px); }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(1080px, 96vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  transform: translateX(100%);
  transition: transform 0.32s var(--ease-out);
  display: flex; flex-direction: column;
}
.drawer[aria-hidden="false"] .drawer-panel { transform: none; }
.drawer-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--surface-2); border: 1px solid var(--border);
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  z-index: 2;
}
.drawer-close:hover { background: var(--surface-3); }
.drawer-body { padding: 40px 48px; overflow-y: auto; flex: 1; }

/* ---- Wide product detail stage ---- */
.dx-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.dx-photos { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dx-photos-main {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.dx-photos-main img { border-radius: var(--r-lg); }
.dx-photos .drawer-gallery { margin-bottom: 0; }
.dx-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}
.dx-thumb {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0; overflow: hidden; cursor: pointer;
  aspect-ratio: 1/1;
  transition: border-color 0.18s, transform 0.12s;
}
.dx-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dx-thumb.active { border-color: var(--maroon); box-shadow: 0 0 0 2px rgba(122, 17, 38, 0.15); }
.dx-thumb:hover { transform: translateY(-1px); }

.dx-info { display: flex; flex-direction: column; min-width: 0; }
.dx-brand {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 10px;
}
.dx-name {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 600;
  margin: 0; line-height: 1.1;
  color: var(--ink);
}
.dx-price {
  font-family: var(--font-display);
  font-size: 38px; font-weight: 700;
  color: var(--maroon);
  margin: 16px 0 14px;
  font-variant-numeric: tabular-nums;
}
/* Used when price is hidden: an italic "ask for today's price" line. Smaller,
   muted gold tone, no tabular-nums — reads like a prompt, not a figure. */
.dx-price.dx-price-enquire {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 500; font-style: italic;
  color: var(--gold);
}
.dx-specs {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 12px 0 14px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.dx-pill {
  font-family: var(--font-mono); font-size: 11px;
  background: var(--surface-2); color: var(--ink-muted);
  padding: 5px 10px; border-radius: 999px;
  letter-spacing: 0.04em;
}
.dx-pill-bis { background: rgba(168, 126, 44, 0.12); color: var(--gold); }
.dx-desc {
  color: var(--ink-muted);
  line-height: 1.65;
  font-size: 15px;
  margin: 0 0 18px;
}

/* ---- Patron history / sign-in CTA inside detail ---- */
.dx-history {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.dx-history-loading { color: var(--ink-dim); font-family: var(--font-mono); font-size: 12px; }
.dx-history-eyebrow {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.dx-history-msg { font-size: 14px; color: var(--ink); line-height: 1.5; margin-bottom: 12px; }
.dx-history-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dx-history-actions .btn-primary,
.dx-history-actions .btn-outline { padding: 9px 18px; font-size: 13px; flex: 0 1 auto; }
.dx-history-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.dx-history-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  font-family: var(--font-mono); font-size: 12px;
}
.dx-history-row:last-child { border-bottom: 0; }
.dx-history-when { color: var(--ink-dim); }
.dx-history-price { color: var(--ink); font-variant-numeric: tabular-nums; }
.dx-history-appr { color: #4F7C5C; font-style: normal; font-size: 11px; margin-left: 4px; }
.dx-history-status {
  font-size: 10px; padding: 2px 8px; border-radius: 999px;
  background: var(--surface-3); color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.dx-history-status.status-delivered { background: #DDE9DF; color: #355C40; }
.dx-history-status.status-shipped   { background: #E5DCF1; color: #523C7A; }
.dx-history-status.status-placed    { background: #F1E6CC; color: #806427; }
.dx-history-link {
  display: inline-block;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--maroon); text-decoration: none;
  border-bottom: 1px solid transparent;
  margin-top: 4px;
}
.dx-history-link:hover { border-bottom-color: var(--maroon); }

.dx-actions { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.dx-actions .dx-enq {
  flex: 1; min-width: 220px;
  background: #25D366; border-color: #25D366; color: white;
  text-decoration: none;
}
.dx-actions .dx-enq:hover { background: #128C7E; border-color: #128C7E; }
.dx-actions .dx-call { min-width: 120px; }
.dx-meta {
  font-size: 12px; color: var(--ink-dim);
  font-family: var(--font-mono);
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

/* ---- Similar pieces grid below the stage ---- */
.dx-similar-block { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.dx-similar-title { margin: 0 0 18px; font-size: 22px; }

/* =========================================================================
   "Pairs beautifully with" — stylist-curated 3-piece set under the drawer
   ========================================================================= */
.dx-pairs-block {
  margin-top: 36px; padding: 28px 24px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--maroon-wash) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
}
.dx-pairs-title { margin: 0 0 6px; font-size: 24px; color: var(--ink); }
.dx-pairs-sub {
  margin: 0 0 18px; font-size: 13px; color: var(--ink-2);
  font-style: italic; line-height: 1.6;
}
.dx-pairs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.dx-pair {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.18s, transform 0.15s, box-shadow 0.18s;
}
.dx-pair:hover { border-color: var(--maroon); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(122, 17, 38, 0.10); }
.dx-pair-step {
  position: absolute; top: -10px; left: -10px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(122,17,38,0.30);
}
.dx-pair-thumb {
  width: 100%; aspect-ratio: 1/1; overflow: hidden;
  border-radius: 8px; background: var(--surface-3);
}
.dx-pair-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dx-pair-step-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.dx-pair-nm {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: 14px; line-height: 1.3; color: var(--ink);
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.dx-pair-mr { font-size: 10.5px; color: var(--ink-muted); margin-top: 2px; }
@media (max-width: 640px) {
  .dx-pairs { grid-template-columns: 1fr; }
  .dx-pair { flex-direction: row; align-items: center; }
  .dx-pair-thumb { width: 70px; aspect-ratio: 1/1; flex-shrink: 0; }
}

/* =========================================================================
   "Behind this piece" — short atelier narrative card under the drawer
   ========================================================================= */
.dx-story-block { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.dx-story-title { margin: 0 0 14px; font-size: 22px; color: var(--ink); }
.dx-story {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.dx-story-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.dx-story-img {
  aspect-ratio: 4/3;
  background: var(--surface-3);
  overflow: hidden;
}
.dx-story-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: sepia(0.10) saturate(0.95);
}
.dx-story-cap {
  padding: 10px 12px 12px;
  font-size: 12px; line-height: 1.55; color: var(--ink-2);
  font-style: italic;
}
@media (max-width: 640px) {
  .dx-story { grid-template-columns: 1fr; }
}
.dx-similar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.dxs {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.18s, transform 0.15s, box-shadow 0.18s;
}
.dxs:hover { border-color: var(--maroon); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.dxs img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.dxs-body { padding: 10px 12px 12px; }
.dxs-nm { font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--ink); line-height: 1.25; }
.dxs-mr { font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }
.dxs-pr { font-family: var(--font-display); font-weight: 600; color: var(--maroon); font-variant-numeric: tabular-nums; margin-top: 6px; }
.drawer-body img.cover {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  margin-bottom: 18px;
  border: 1px solid var(--border);
}
.drawer-body .d-merchant {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 8px;
}
.drawer-body h3 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 600;
  margin: 0; line-height: 1.15;
}
.drawer-body .d-price {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 700;
  color: var(--maroon);
  margin: 18px 0;
  font-variant-numeric: tabular-nums;
}
.drawer-body .d-desc {
  color: var(--ink-muted); line-height: 1.6;
  font-size: 14.5px;
  margin-bottom: 18px;
}
.drawer-body .d-spec {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: var(--ink-muted);
  font-family: var(--font-mono);
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.drawer-body .d-meta {
  font-size: 12px; color: var(--ink-dim);
  font-family: var(--font-mono);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.drawer-body #drawer-enq {
  flex: 1;
  background: #25D366; border-color: #25D366;
  text-decoration: none;
}
.drawer-body #drawer-enq:hover { background: #128C7E; border-color: #128C7E; }
.drawer-body .d-row { display: flex; gap: 10px; margin-top: 16px; }
.drawer-body .d-row .btn-primary { flex: 1; }
.d-similar { display: flex; flex-direction: column; gap: 10px; }
.d-similar .ds {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px;
  cursor: pointer;
  transition: border-color 0.18s, transform 0.15s;
}
.d-similar .ds:hover { border-color: var(--maroon); transform: translateX(2px); }
.d-similar .ds img { width: 64px; height: 64px; border-radius: var(--r-sm); object-fit: cover; }
.d-similar .ds .nm { font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--ink); }
.d-similar .ds .pr { color: var(--ink-muted); font-size: 12px; margin-top: 2px; }
.d-similar .ds .sc { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--gold); }

/* ============================================================
   Toasts
   ============================================================ */
.toasts {
  position: fixed; top: 22px; right: 22px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 200;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex; align-items: flex-start; gap: 12px;
  min-width: 300px; max-width: 380px;
  box-shadow: var(--shadow-2);
  animation: toast-in 0.3s var(--ease-out);
}
.toast.leaving { animation: toast-out 0.3s ease forwards; }
.toast .ic-sm { flex-shrink: 0; margin-top: 2px; }
.toast .t-title { font-weight: 600; font-size: 14px; }
.toast .t-body { color: var(--ink-muted); font-size: 12.5px; margin-top: 3px; line-height: 1.45; }
.toast.success .ic-sm { color: var(--sage); }
.toast.warn .ic-sm { color: var(--honey); }
.toast.error .ic-sm { color: var(--crimson); }
@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }

/* ============================================================
   Empty state
   ============================================================ */
.empty {
  color: var(--ink-dim);
  font-style: italic;
  font-size: 14px;
  padding: 36px 0;
  text-align: center;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--surface-dark);
  color: rgba(255,255,255,0.85);
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  padding: 60px 28px 40px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--surface);
}
.footer-tag {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 8px; max-width: 320px;
}
.footer-h {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13.5px;
  padding: 5px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--surface); }
.footer-meta {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-mono);
}
.footer-meta .container { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 0 28px; }
.footer-meta .dot-sep { color: rgba(255,255,255,0.25); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* ============================================================
   Pane visibility
   ============================================================ */
.pane { animation: fade-in 0.3s var(--ease-out); }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

main { padding-bottom: 40px; }
.app-main { padding: 0 28px; }

/* ==========================================================================
   MOBILE — phones & small tablets
   ========================================================================== */
@media (max-width: 768px) {
  body { font-size: 14px; }
  .container { padding: 0 16px; }

  /* Promo strip wraps */
  .promo-strip { font-size: 11px; padding: 7px 14px; gap: 8px; }
  .promo-strip .dot-sep { display: none; }

  /* Masthead — stack search BELOW row of brand/icons */
  .masthead-grid {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand right"
      "search search";
    padding: 12px 16px;
    gap: 12px 8px;
  }
  .m-left { grid-area: search; max-width: 100%; }
  .m-brand { grid-area: brand; align-items: flex-start; }
  .m-right { grid-area: right; gap: 1px; }
  .brand-name { font-size: 18px; letter-spacing: 0.10em; }
  .brand-tag { display: none; }                /* tagline hidden on phones — saves ~14px height */
  .sj-mark svg { width: 28px; height: 34px; }
  .iconbtn { width: 36px; height: 36px; }
  .iconbtn .ic-sm { width: 17px; height: 17px; }
  /* WhatsApp collapses to an icon-only circle on phones — saves ~70px of width */
  .whatsapp-btn { padding: 0; width: 36px; height: 36px; border-radius: 50%; }
  .whatsapp-btn .wa-label { display: none; }
  .whatsapp-btn .ic-sm { margin: 0; }
  /* Staff gear is admin/merchant-only — patrons don't need it on a small screen */
  .staff-toggle { display: none; }
  .search { padding: 8px 12px; }
  .search input { font-size: 14px; } /* prevent iOS zoom */

  /* Role nav — horizontal scroll */
  .role-nav-inner {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 8px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .role-nav-inner::-webkit-scrollbar { display: none; }
  .role-pill { flex-shrink: 0; }
  .conn { display: none; }

  /* Category strip — smaller circles */
  .category-strip-inner { padding: 16px; gap: 18px; }
  .cat-thumb { width: 54px; height: 54px; }
  .cat-circle { font-size: 11px; }

  /* Hero — much shorter, smaller type */
  .hero-carousel { height: 460px; }
  .hero-title { font-size: 30px; line-height: 1.1; }
  .hero-eyebrow { font-size: 10px; letter-spacing: 0.18em; margin-bottom: 12px; }
  .hero-sub { font-size: 14px; line-height: 1.5; margin-bottom: 18px; }
  .hero-copy { padding: 0 16px 40px; }
  .hero-cta, .hero-link { height: 40px; padding: 0 16px; font-size: 12.5px; }
  .hero-actions { gap: 8px; }
  .hero-slide.hero-poster { background-position: 70% center; }
  .hero-slide.hero-poster .hero-shade {
    background:
      linear-gradient(180deg, rgba(27,15,14,0.40) 0%, rgba(27,15,14,0.85) 100%);
  }

  /* Section heads */
  .display-xl { font-size: 32px; }
  .display-lg { font-size: 26px; }
  .display-md { font-size: 22px; }
  .display-sm { font-size: 18px; }
  .ph-text, .pane-head > div:first-child { max-width: 100%; }
  .page-header, .pane-head { padding: 24px 0 12px; }
  .section { padding: 24px 0; }
  .section-head { padding: 6px 0 14px; }
  .ph-subtitle, .section-sub { font-size: 13.5px; }

  /* Welcome strip — full stack */
  .welcome-strip {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 16px;
    margin-top: 18px;
  }
  .ws-stats {
    border-left: 0; padding-left: 0;
    border-top: 1px solid var(--border); padding-top: 14px;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .ws-name { font-size: 18px; }

  /* Bridal edit — stack */
  .bridal-edit { grid-template-columns: 1fr; }
  .bridal-art { min-height: 280px; aspect-ratio: 4/3; }
  .bridal-text { padding: 28px 20px; gap: 14px; }
  .bridal-strip { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .bridal-strip .bp { padding: 8px; }
  .bridal-strip .bp .bp-name { font-size: 12px; }
  .bridal-strip .bp .bp-price { font-size: 11px; }

  /* Lookbook — 2 columns, shorter tiles */
  .lookbook { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px; gap: 10px; }
  .lb-title { font-size: 19px; }
  .lb-eyebrow { font-size: 9.5px; letter-spacing: 0.18em; }
  .lb-label { left: 14px; right: 14px; bottom: 14px; }

  /* Heritage — stack with image first */
  .heritage-grid { grid-template-columns: 1fr; }
  .heritage-art { min-height: 240px; order: -1; }
  .heritage-text { padding: 28px 20px; gap: 14px; }
  .heritage-meta { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .hm-num { font-size: 22px; }
  .hm-sub { font-size: 9.5px; }
  .heritage-art-cap { bottom: 14px; right: 14px; padding: 8px 12px; font-size: 12px; max-width: 180px; }
  .heritage-contact { font-size: 11.5px; }

  /* Trust ribbon — single column */
  .trust-ribbon { grid-template-columns: 1fr; }
  .trust-cell { border-right: 0; border-bottom: 1px solid var(--border); padding: 16px 20px; }
  .trust-cell:last-child { border-bottom: 0; }
  .trust-ic { width: 26px; height: 26px; }
  .trust-t { font-size: 15px; }
  .trust-s { font-size: 11.5px; }

  /* Product grid — 2 cols on phone, 1 on tiny */
  .grid-products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product .body { padding: 10px 12px; gap: 4px; }
  .product .name { font-size: 13.5px; }
  .product .merchant { font-size: 9.5px; letter-spacing: 0.13em; }
  .product .price { font-size: 14.5px; }
  .product .price-was { font-size: 11px; }
  .product .enquire-row { font-size: 10.5px; padding-top: 8px; margin-top: 8px; }
  .discount-badge { width: 36px; height: 36px; right: 8px; bottom: 8px; }
  .discount-badge .pct { font-size: 11px; }
  .discount-badge .off { font-size: 7.5px; }
  .rank-badge, .score-badge { font-size: 9.5px; padding: 2px 6px; top: 8px; }
  .rank-badge { left: 8px; } .score-badge { right: 8px; }
  .product .img-wrap::before { inset: 8px; }

  /* Orders */
  .order { grid-template-columns: 1fr; padding: 14px 16px; gap: 10px; }
  .order .right-col { align-items: flex-start; flex-direction: row; gap: 10px; }
  .order .what { font-size: 15px; }
  .order .total { font-size: 17px; }
  .timeline { font-size: 10px; }

  /* Tables — horizontal scroll */
  .card { padding: 16px; }
  .card-head { gap: 10px; }
  .card-title { font-size: 18px; }
  .card-body.p0 { margin: 8px -16px -16px; }
  .card-body.p0 .data { font-size: 12.5px; }
  .data th, .data td { padding: 10px 14px; }
  .card-body.p0 { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data { min-width: 600px; }

  /* KPI tiles — 2 columns */
  .kpis, .hero-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi-value { font-size: 22px; }
  .kpi-spark { right: 8px; bottom: 8px; }

  /* Charts side-by-side become stacked */
  .grid-2 { grid-template-columns: 1fr; gap: 12px; margin: 14px 0; }
  .grid-12 > [class*=span-] { grid-column: span 12; }
  .grid-12 { gap: 12px; }
  .chart-wrap canvas { height: 200px !important; }

  /* Drawer — almost full width */
  .drawer-panel { width: 100%; max-width: 100%; }
  .drawer-body { padding: 22px 18px; }
  .dx-stage { grid-template-columns: 1fr; gap: 22px; }
  .dx-name { font-size: 26px; }
  .dx-price { font-size: 28px; margin: 12px 0 10px; }
  .dx-actions { flex-direction: column; }
  .dx-actions .dx-enq, .dx-actions .dx-call { width: 100%; min-width: 0; }
  .dx-thumbs { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
  .dx-similar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drawer-body { padding: 24px 18px; }
  .drawer-body h3 { font-size: 22px; }
  .drawer-body .d-price { font-size: 26px; margin: 14px 0; }
  .drawer-body .d-row { flex-direction: column; gap: 8px; }
  .drawer-body #drawer-enq { width: 100%; }
  .drawer-body .btn-outline { width: 100%; }

  /* Toasts — compact */
  .toasts { top: 12px; right: 12px; left: 12px; }
  .toast { min-width: 0; max-width: 100%; }

  /* Footer — single column */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 40px 16px 28px; }
  .footer-brand { font-size: 22px; letter-spacing: 0.10em; }
  .footer-meta .container { padding: 0 16px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-meta .dot-sep { display: none; }

  /* Agent decisions */
  .dc-head { padding: 12px 14px; flex-wrap: wrap; gap: 8px; }
  .dc-action { font-size: 14.5px; }
  .dc-time { width: 100%; margin-left: 0; }
  .decision-card .dc-body { padding: 0 14px 14px; }

  /* Hierarchy diagram */
  .h-row { grid-template-columns: 1fr; gap: 8px; }
  .h-branch::before { display: none; }

  /* Period toggle */
  .period-toggle button { padding: 5px 10px; font-size: 10.5px; }

  /* Selects */
  .select select { min-width: 0; width: 100%; max-width: none; }
  .select.inline { flex-direction: column; align-items: flex-start; gap: 4px; }

  /* === Big touch targets for non-tech users on phone === */
  .iconbtn { width: 44px; height: 44px; }
  .whatsapp-btn { height: 44px; padding: 0 14px; }
  .btn-primary, .btn-outline { min-height: 48px; padding: 0 22px; }
  .big-cta { min-height: 56px !important; font-size: 15.5px !important; }
  .field input, .field select, .field textarea { min-height: 48px; font-size: 15px !important; padding: 12px 14px !important; }
  .more-toggle { min-height: 56px; }
  .lq-pill { min-height: 36px; padding: 8px 12px; }
  .pw-eye { width: 44px; height: 44px; }
  .role-pill, .sbt { min-height: 38px; padding: 8px 14px; }
  .modal-close, .drawer-close { width: 40px; height: 40px; }
  .ad-item, .sd-item { min-height: 46px; padding: 12px 14px; font-size: 14px; }
  .ad-cta { min-height: 48px; padding: 14px; }

  .photo-cta-title { font-size: 19px; }
  .photo-cta-icon { width: 56px; height: 56px; }
}

@media (max-width: 380px) {
  .grid-products { grid-template-columns: 1fr; }
  .lookbook { grid-template-columns: 1fr; grid-template-rows: 180px 180px 180px 180px 180px 180px; }
  .ws-stats { grid-template-columns: 1fr 1fr; }
  .heritage-meta { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .hm-num { font-size: 20px; }
  .bridal-strip { grid-template-columns: 1fr 1fr; }
  .bridal-strip .bp:nth-child(3) { display: none; }
}

/* ==========================================================================
   Discovery bot — floating chat widget (customer pane only)
   ========================================================================== */
.bot-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px;
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  color: #fff; border: 0; border-radius: 999px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 30px rgba(122, 17, 38, 0.32), 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.bot-launcher:hover { transform: translateY(-1px); box-shadow: 0 18px 40px rgba(122,17,38,0.42), 0 6px 14px rgba(0,0,0,0.1); }
.bot-launcher .ic-sm { width: 20px; height: 20px; }
.bot-launcher-label { white-space: nowrap; }
@media (max-width: 560px) {
  .bot-launcher { right: 14px; bottom: 14px; padding: 12px; }
  .bot-launcher-label { display: none; }
}

.bot-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 95;
  width: 400px; max-width: calc(100vw - 28px);
  height: min(660px, calc(100vh - 60px));
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(27, 15, 14, 0.22), 0 10px 30px rgba(0,0,0,0.1);
  display: flex; flex-direction: column;
  animation: bot-rise 200ms cubic-bezier(.2,.7,.2,1);
}
@keyframes bot-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 560px) {
  .bot-panel { right: 8px; left: 8px; width: auto; bottom: 8px; height: calc(100vh - 32px); border-radius: 16px; }
}

.bot-head {
  flex-shrink: 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 14px 18px 12px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--maroon-wash) 0%, var(--surface) 100%);
}
.bot-head-eyebrow { font-size: 10px; letter-spacing: 0.18em; color: var(--gold); text-transform: uppercase; font-weight: 700; }
.bot-head-title { font-family: 'Cormorant Garamond', serif; font-size: 17px; color: var(--ink); margin-top: 3px; line-height: 1.2; font-weight: 500; }
.bot-close { background: transparent; border: 0; color: var(--ink-muted); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; margin: -2px -6px 0 0; }
.bot-close:hover { background: var(--surface-2); color: var(--ink); }

.bot-log {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 16px 16px 12px;
  display: flex; flex-direction: column; gap: 12px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.bot-log::-webkit-scrollbar { width: 6px; }
.bot-log::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.bot-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.5; font-family: 'Inter', sans-serif; word-wrap: break-word; }
.bot-msg.bot { background: var(--surface-2); color: var(--ink-2); border-bottom-left-radius: 4px; align-self: flex-start; }
.bot-msg.user { background: var(--maroon); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.bot-msg.bot.typing { font-style: italic; color: var(--ink-muted); }
.bot-msg.bot.typing::after { content: '…'; display: inline-block; animation: bot-ellipsis 1.2s steps(3, end) infinite; }
@keyframes bot-ellipsis { 0%{content:'.'} 33%{content:'..'} 66%{content:'...'} }

.bot-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding-top: 4px; align-self: stretch; }
.bot-product {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; cursor: pointer; padding: 0; text-align: left; font-family: inherit;
  display: flex; flex-direction: column;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.bot-product:hover {
  transform: translateY(-1px); border-color: var(--border-gold);
  box-shadow: 0 6px 14px rgba(122, 17, 38, 0.08);
}
.bot-product img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: var(--surface-3); }
.bot-product .bp-meta { padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 4px; }
.bot-product .bp-name {
  font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.3;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  min-height: calc(1.3em * 2);
}
.bot-product .bp-hint { font-size: 10.5px; color: var(--ink-muted); letter-spacing: 0.04em; }

.bot-wa { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 9px 16px; border-radius: 999px; background: #25D366; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; align-self: flex-start; }
.bot-wa:hover { filter: brightness(1.05); }

.bot-chips { flex-shrink: 0; padding: 8px 14px; display: flex; gap: 6px; flex-wrap: wrap; border-top: 1px solid var(--border); background: var(--surface); }
.bot-chip { background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-2); padding: 6px 12px; border-radius: 999px; font-size: 11.5px; cursor: pointer; font-family: 'Inter', sans-serif; }
.bot-chip:hover { background: var(--gold-wash); border-color: var(--border-gold); }
.bot-chips.hidden { display: none; }

.bot-input { flex-shrink: 0; display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--border); background: var(--surface); }
.bot-input input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 13.5px; font-family: 'Inter', sans-serif; background: var(--surface); color: var(--ink); outline: none; transition: border-color 120ms ease, box-shadow 120ms ease; }
.bot-input input:focus { border-color: var(--maroon); box-shadow: 0 0 0 3px var(--maroon-wash); }
.bot-send { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--maroon); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 120ms ease; }
.bot-send:hover { background: var(--maroon-deep); }
.bot-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* Hide entirely outside the customer pane */
body.mode-staff .bot-launcher, body.mode-staff .bot-panel,
body.mode-portal .bot-launcher, body.mode-portal .bot-panel { display: none !important; }

/* ==========================================================================
   Merchant boutique branding card — only visible to MERCHANT role on portal
   ========================================================================== */
.merchant-only-card { display: block; }
.boutique-settings { display: flex; flex-direction: column; gap: 18px; }
.boutique-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
.boutique-fields .field-small { max-width: 240px; }
.boutique-fields input[type=color] {
  width: 60px; height: 38px; border: 1px solid var(--border); border-radius: 8px;
  padding: 2px; background: var(--surface); cursor: pointer;
}
.boutique-banners-label {
  font-family: 'Inter', sans-serif; font-size: 12px; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 8px;
}
.boutique-banners-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px; margin-bottom: 10px;
}
.boutique-banner-tile {
  position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-2);
}
.boutique-banner-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.boutique-banner-del {
  position: absolute; top: 6px; right: 6px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(27,15,14,0.72); color: #fff; border: 0; cursor: pointer;
  font-size: 16px; line-height: 1; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.boutique-banner-del:hover { background: var(--maroon); }
.boutique-banner-empty {
  font-family: 'Inter', sans-serif; font-size: 13px; color: var(--ink-muted); font-style: italic;
  padding: 18px; background: var(--surface-2); border-radius: 10px;
  border: 1px dashed var(--border);
}
.boutique-banner-add {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: var(--surface-2); border: 1px dashed var(--border-gold);
  border-radius: 999px; color: var(--ink); font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}
.boutique-banner-add:hover { background: var(--gold-wash); border-color: var(--gold); }
.boutique-banner-add .ic-sm { width: 16px; height: 16px; color: var(--maroon); }
.boutique-actions { display: flex; align-items: center; gap: 14px; }

@media (max-width: 640px) {
  .boutique-fields { grid-template-columns: 1fr; }
  .boutique-fields .field-small { max-width: 100%; }
}

/* ==========================================================================
   Per-boutique branding overrides (visible when ?m=<slug> is active)
   ========================================================================== */
.brand-logo {
  height: 56px; width: 56px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: var(--surface-2);
}
.boutique-chrome {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
}
.boutique-chrome-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 10px 28px;
}
.boutique-chrome-back, .boutique-chrome-dir {
  color: var(--maroon); text-decoration: none; font-weight: 600;
}
.boutique-chrome-back:hover, .boutique-chrome-dir:hover { text-decoration: underline; }
.boutique-chrome-tag {
  color: var(--ink-muted); font-style: italic; flex: 1;
  text-align: center;
  font-family: 'Cormorant Garamond', serif; font-size: 14px;
}
@media (max-width: 640px) {
  .boutique-chrome-inner { padding: 8px 14px; flex-wrap: wrap; gap: 6px; }
  .boutique-chrome-tag { width: 100%; text-align: left; order: 3; }
}

/* Boutique logo upload — square preview + upload tile */
.boutique-logo-row { margin-bottom: 8px; }
.boutique-logo-stage {
  display: flex; align-items: center; gap: 14px;
}
.boutique-logo-preview {
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.boutique-logo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.boutique-logo-placeholder {
  font-family: 'Inter', sans-serif; font-size: 10.5px; font-style: italic;
  color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.08em;
  text-align: center; padding: 4px;
}

/* ==========================================================================
   Boutique themes — applied as body.theme-<slug> on the per-merchant route.
   Default (no class) = heritage-maroon, Swarna's original look.
   Each theme overrides the same set of variables; component CSS uses var() so
   the swap is transparent. Fonts stay constant — the differentiation is colour.
   ========================================================================== */

/* ---------- coastal-emerald — sea greens, cream, warm bronze ---------- */
body.theme-coastal-emerald {
  --bg:           #FAFCF8;
  --surface:      #FFFFFF;
  --surface-2:    #EAF1E6;
  --surface-3:    #D6E3CF;
  --surface-dark: #0B2A1F;
  --ink:          #0B2A1F;
  --ink-2:        #1F3F33;
  --ink-muted:    #5A7766;
  --ink-dim:      #93A89B;
  --ink-faint:    #C2D2C7;
  --maroon:       #2D6A4F;        /* primary brand = emerald */
  --maroon-deep:  #1F4A37;
  --maroon-soft:  #D8E8DC;
  --maroon-wash:  #ECF5EF;
  --gold:         #B08968;        /* warm bronze in place of burnished gold */
  --gold-soft:    #E0C9B0;
  --gold-wash:    #F4E7D9;
  --border:       #DEE6D7;
  --border-strong:#B8C9B0;
  --border-gold:  #C8B098;
}

/* ---------- modern-charcoal — minimalist charcoal + silver ---------- */
body.theme-modern-charcoal {
  --bg:           #F7F7F6;
  --surface:      #FFFFFF;
  --surface-2:    #ECECEB;
  --surface-3:    #D9D9D6;
  --surface-dark: #1A1A1A;
  --ink:          #1A1A1A;
  --ink-2:        #2E2E2E;
  --ink-muted:    #666666;
  --ink-dim:      #999999;
  --ink-faint:    #C9C9C9;
  --maroon:       #2A2A2A;        /* primary = charcoal */
  --maroon-deep:  #111111;
  --maroon-soft:  #DEDEDE;
  --maroon-wash:  #EFEFEF;
  --gold:         #8B8B8B;        /* silver-ish accent in place of gold */
  --gold-soft:    #C9C9C9;
  --gold-wash:    #E8E8E8;
  --border:       #E2E2E0;
  --border-strong:#BFBFBF;
  --border-gold:  #B0B0B0;
}

/* ---------- royal-navy — deep navy + bright gold ---------- */
body.theme-royal-navy {
  --bg:           #F7F6F0;
  --surface:      #FFFFFF;
  --surface-2:    #EBEAE0;
  --surface-3:    #D8D6C5;
  --surface-dark: #0C1A33;
  --ink:          #0C1A33;
  --ink-2:        #1F2F50;
  --ink-muted:    #4D5F7D;
  --ink-dim:      #8893A8;
  --ink-faint:    #BBC2D0;
  --maroon:       #1B3A6B;        /* primary = navy */
  --maroon-deep:  #102649;
  --maroon-soft:  #D2DBE9;
  --maroon-wash:  #E8EDF5;
  --gold:         #C8A951;        /* brighter, brass-leaning gold */
  --gold-soft:    #E8D69A;
  --gold-wash:    #F6EAC7;
  --border:       #DDDBC9;
  --border-strong:#B8B59C;
  --border-gold:  #D0B57A;
}

/* ---------- rose-rosegold — soft pink, rose-gold accents ---------- */
body.theme-rose-rosegold {
  --bg:           #FDF6F3;
  --surface:      #FFFFFF;
  --surface-2:    #F7E6DF;
  --surface-3:    #EFD3C9;
  --surface-dark: #3A1F2A;
  --ink:          #3A1F2A;
  --ink-2:        #5C3344;
  --ink-muted:    #8F6878;
  --ink-dim:      #B89AA8;
  --ink-faint:    #DBC8D2;
  --maroon:       #B85070;        /* primary = rose pink */
  --maroon-deep:  #903F58;
  --maroon-soft:  #F4D2DD;
  --maroon-wash:  #FBE9EE;
  --gold:         #C49B7C;        /* rose gold */
  --gold-soft:    #EBD0BA;
  --gold-wash:    #F8E8DA;
  --border:       #ECD8D0;
  --border-strong:#CFAFA1;
  --border-gold:  #D9B59A;
}

/* ---------- Theme picker on the Branding card ---------- */
.field.field-full { grid-column: 1 / -1; }
.theme-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 6px;
}
.theme-tile {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 10px 10px 12px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 8px;
  font-family: 'Inter', sans-serif;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.theme-tile:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.theme-tile.active { border-color: var(--maroon); box-shadow: 0 0 0 3px var(--maroon-wash); }
.theme-tile-swatches {
  height: 56px; border-radius: 8px; overflow: hidden;
  background: var(--swatch-bg, #fff);
  display: grid; grid-template-columns: 6fr 2fr 2fr;
  border: 1px solid rgba(0,0,0,0.06);
}
.theme-tile-swatches::after {
  content: ''; display: block;
  background: linear-gradient(135deg, var(--swatch-primary) 0%, var(--swatch-primary) 60%, var(--swatch-gold) 60%, var(--swatch-gold) 100%);
  grid-column: 1 / 2;
}
.theme-tile-swatches::before {
  content: ''; display: block; grid-column: 1 / 2;
  background: var(--swatch-bg);
}
.theme-tile-swatches {
  position: relative; background: var(--swatch-bg);
}
.theme-tile-swatches > * { display: none; }
/* Three-band swatch: bg | primary | gold */
.theme-tile-swatches {
  background:
    linear-gradient(to right,
      var(--swatch-bg) 0 60%,
      var(--swatch-primary) 60% 80%,
      var(--swatch-gold)    80% 100%);
}
.theme-tile-label {
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  text-align: left;
}

/* ---------- Phase 2 — AI-generated theme prompt UI ---------- */
.theme-ai {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.theme-ai > span {
  display: block;
  font-size: 12px; color: var(--ink-muted); text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 600;
  margin-bottom: 8px;
}
.theme-ai-row {
  display: flex; gap: 8px; align-items: center;
}
.theme-ai-row input {
  flex: 1; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: 13.5px;
  background: var(--surface); color: var(--ink);
}
.theme-ai-row input:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px var(--maroon-wash); }
.theme-ai-result {
  margin-top: 12px;
  padding: 12px; border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.theme-ai-swatches {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
}
.theme-ai-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px 4px 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  color: var(--ink-2);
}
.theme-ai-chip-color {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.10);
}
.theme-ai-actions { display: flex; gap: 10px; align-items: center; }
.theme-ai-error {
  margin-top: 10px; padding: 10px 12px;
  background: var(--crimson-soft); border: 1px solid var(--crimson);
  border-radius: 8px; color: var(--crimson);
  font-size: 13px; font-family: 'Inter', sans-serif;
}

/* ==========================================================================
   Single-tenant mode — hide multi-tenant patron chrome.
   When `body.single-tenant` is present, the boutique-signup tab, directory
   link, and per-boutique chrome bar disappear. Merchant portal + per-boutique
   routes still work for staff; this is purely patron-facing presentation.
   ========================================================================== */
body.single-tenant .auth-tab[data-tab="boutique"]            { display: none !important; }
body.single-tenant a[href="/boutiques.html"]                 { display: none !important; }
body.single-tenant #boutique-chrome                          { display: none !important; }

/* ==========================================================================
   Admin catalog manager — grouped grid of every piece across every boutique
   ========================================================================== */
.admin-catalog-group {
  display: flex; align-items: baseline; gap: 12px;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.admin-catalog-group:first-child { margin-top: 12px; }
.admin-catalog-group-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; color: var(--ink);
}
.admin-catalog-group-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.10em;
  color: var(--ink-muted); text-transform: uppercase;
}
.admin-catalog-pieces { margin-bottom: 8px; }
.admin-catalog-card .admin-card-actions {
  display: flex; gap: 14px; justify-content: flex-end;
  padding-top: 4px;
  border-top: 1px dashed var(--border);
  margin-top: 8px;
}
.admin-catalog-card .admin-card-actions button {
  font-size: 12px; padding: 4px 8px;
}
.admin-catalog-card { cursor: default; }
.admin-catalog-card:hover { transform: none; }   /* skip the storefront hover-lift on admin grid */

/* ==========================================================================
   Admin catalog manager v2 — search + bulk select + bulk-action toolbar
   ========================================================================== */
.admin-catalog-section { margin-top: 12px; margin-bottom: 24px; }
.admin-catalog-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 18px;
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 2px solid var(--maroon);
  flex-wrap: wrap;
}
.admin-catalog-head .display-md { margin: 4px 0 6px; }
.admin-catalog-head .section-sub { margin: 0; font-size: 13px; }
.admin-catalog-search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px; min-width: 280px;
}
.admin-catalog-search-wrap:focus-within { border-color: var(--maroon); box-shadow: 0 0 0 3px var(--maroon-wash); }
.admin-catalog-search-wrap .ic-sm { color: var(--ink-muted); flex-shrink: 0; }
.admin-catalog-search-wrap input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-family: 'Inter', sans-serif; font-size: 14px; color: var(--ink);
}

/* Bulk-action toolbar — sticky-ish, animates in when selection > 0 */
.admin-bulk-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--maroon); color: #fff;
  padding: 10px 16px; border-radius: 12px;
  margin-bottom: 18px;
  font-family: 'Inter', sans-serif; font-size: 13.5px;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 200ms ease, opacity 200ms ease, padding 200ms ease, margin 200ms ease;
  padding-top: 0; padding-bottom: 0; margin-bottom: 0;
}
.admin-bulk-bar.show {
  max-height: 80px; opacity: 1; padding-top: 10px; padding-bottom: 10px; margin-bottom: 18px;
}
.admin-bulk-count { font-weight: 500; letter-spacing: 0.02em; }
.admin-bulk-count strong { font-weight: 700; font-size: 15px; padding-right: 2px; }
.admin-bulk-select {
  background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.30);
  border-radius: 8px; padding: 6px 10px; font-family: inherit; font-size: 13px;
  cursor: pointer;
}
.admin-bulk-select option { color: var(--ink); }
.admin-bulk-bar .link-btn { color: #fff; opacity: 0.9; }
.admin-bulk-bar .link-btn:hover { opacity: 1; text-decoration: underline; }
.admin-bulk-bar .delete-link { color: #FFD7E0; }

/* Group rows */
.admin-catalog-group {
  display: flex; align-items: baseline; gap: 14px;
  margin: 28px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.admin-catalog-group:first-of-type { margin-top: 4px; }
.admin-catalog-group-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; color: var(--ink);
}
.admin-catalog-group-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.10em;
  color: var(--ink-muted); text-transform: uppercase;
}
.admin-group-selectall {
  background: transparent; border: 1px solid var(--border); color: var(--ink-muted);
  padding: 4px 12px; border-radius: 999px;
  font-family: 'Inter', sans-serif; font-size: 11px; cursor: pointer;
  margin-left: auto;
}
.admin-group-selectall:hover { background: var(--surface-2); color: var(--ink); }

/* Cards — selectable variant */
.admin-catalog-card { position: relative; cursor: default; }
.admin-catalog-card:hover { transform: none; }
.admin-catalog-card.is-selected { box-shadow: 0 0 0 3px var(--maroon); border-color: var(--maroon); }
.admin-card-check {
  position: absolute; top: 8px; left: 8px; z-index: 4;
  width: 26px; height: 26px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.admin-card-check input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.admin-card-check-box {
  width: 22px; height: 22px;
  background: rgba(255, 252, 247, 0.92);
  border: 2px solid var(--border-strong);
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 120ms ease, border-color 120ms ease;
}
.admin-card-check input:checked + .admin-card-check-box {
  background: var(--maroon); border-color: var(--maroon);
}
.admin-card-check input:checked + .admin-card-check-box::after {
  content: ''; display: block; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.admin-catalog-card .admin-card-actions {
  display: flex; gap: 14px; justify-content: flex-end;
  padding-top: 4px;
  border-top: 1px dashed var(--border);
  margin-top: 8px;
}
.admin-catalog-card .admin-card-actions button { font-size: 12px; padding: 4px 8px; }

@media (max-width: 640px) {
  .admin-catalog-head { flex-direction: column; align-items: stretch; }
  .admin-catalog-search-wrap { min-width: 0; width: 100%; }
  .admin-bulk-bar { font-size: 12.5px; gap: 8px; }
}

/* Admin-catalog header toolbar — search input + Add-a-piece button side by side */
.admin-catalog-toolbar {
  display: flex; gap: 10px; align-items: center;
}
.admin-catalog-add {
  display: inline-flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 18px;
  white-space: nowrap;
}
.admin-catalog-add .ic-sm { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .admin-catalog-toolbar { flex-direction: column; align-items: stretch; }
  .admin-catalog-add { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Edit-piece photo editor — cover replace + gallery extras
   ========================================================================== */
.ep-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.ep-cover {
  position: relative; aspect-ratio: 1/1;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-2);
}
.ep-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-photo-overlay {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(27,15,14,0.78); color: #fff;
  padding: 6px 12px; border-radius: 999px;
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
  cursor: pointer;
}
.ep-photo-overlay:hover { background: var(--maroon); }
.ep-extras { display: flex; flex-direction: column; gap: 8px; }
.ep-extras-label {
  font-family: 'Inter', sans-serif; font-size: 11.5px;
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  color: var(--ink-muted);
}
.ep-extras-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.ep-extras-tile {
  position: relative; aspect-ratio: 1/1;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-2);
}
.ep-extras-tile img { width: 100%; height: 100%; object-fit: cover; }
.ep-extras-del {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(27,15,14,0.78); color: #fff;
  border: 0; cursor: pointer; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.ep-extras-del:hover { background: var(--maroon); }
.ep-extras-empty {
  grid-column: 1/-1;
  background: var(--surface-2); padding: 12px; border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 12px; color: var(--ink-muted);
  font-style: italic; border: 1px dashed var(--border);
}
.ep-extras-add {
  display: inline-block; align-self: flex-start;
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px dashed var(--border-gold);
  color: var(--ink); font-family: 'Inter', sans-serif; font-size: 12px;
  font-weight: 500; cursor: pointer;
}
.ep-extras-add:hover { background: var(--gold-wash); border-color: var(--gold); }
@media (max-width: 640px) {
  .ep-photos { grid-template-columns: 1fr; }
}

/* ==========================================================================
   UX cleanup pass — staff panes get slim chrome, demo accounts hidden by default
   ========================================================================== */

/* Storefront chrome (promo strip + footer) hides on staff panes — staff don't
   need "Celebrating 20 years of trust" when they're managing inventory.
   Customer + account panes keep the full chrome. */
body.mode-staff .promo-strip,
body.mode-portal .promo-strip,
body.mode-staff .site-footer,
body.mode-portal .site-footer { display: none !important; }

/* On staff panes, masthead drops its tagline + tightens vertical padding */
body.mode-staff .brand-tag,
body.mode-portal .brand-tag { display: none !important; }
body.mode-staff .masthead-grid,
body.mode-portal .masthead-grid { padding-top: 10px !important; padding-bottom: 10px !important; }

/* Category strip hides on staff (admin doesn't need rings/earrings filters in marketing view) */
body.mode-staff #category-strip,
body.mode-portal #category-strip { display: none !important; }

/* Demo "Quick sign-in" pills only appear when ?demo=1 or localStorage.orivis.demo=1.
   Production sites shouldn't show seeded test passwords. */
body:not(.demo-mode) .login-quick { display: none !important; }

/* Patron bell vs staff bell — give the staff variant a small live-pulse so the
   activity stream feels distinct from a patron's notification bell */
body.mode-staff #bell-btn::after,
body.mode-portal #bell-btn::after {
  content: ''; position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sage); border: 1.5px solid var(--surface);
  animation: bell-pulse 1.8s ease-in-out infinite;
}
@keyframes bell-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.85); }
}

/* Styled confirm dialog — replaces the browser's native confirm() */
.app-confirm-backdrop {
  position: fixed; inset: 0; background: rgba(27, 15, 14, 0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; backdrop-filter: blur(2px);
  animation: app-confirm-fade 140ms ease-out;
}
@keyframes app-confirm-fade { from { opacity: 0; } to { opacity: 1; } }
.app-confirm-panel {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 26px 28px 22px;
  max-width: 420px; min-width: 280px;
  box-shadow: var(--shadow-3);
  border: 1px solid var(--border);
  animation: app-confirm-rise 180ms cubic-bezier(.2,.7,.2,1);
}
@keyframes app-confirm-rise { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.app-confirm-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; color: var(--ink); margin: 0 0 6px;
}
.app-confirm-body {
  font-family: 'Inter', sans-serif; font-size: 14px; color: var(--ink-2);
  line-height: 1.5; margin: 0 0 20px;
}
.app-confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }
.app-confirm-actions button {
  padding: 9px 18px; border-radius: 999px; font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600; cursor: pointer; border: 0;
}
.app-confirm-cancel { background: var(--surface-2); color: var(--ink); }
.app-confirm-cancel:hover { background: var(--surface-3); }
.app-confirm-ok { background: var(--maroon); color: #fff; }
.app-confirm-ok:hover { background: var(--maroon-deep); }
.app-confirm-ok.danger { background: var(--crimson); }
.app-confirm-ok.danger:hover { background: #7a1612; }

/* Admin settings drawer — collapses gold rate / campaigns / GST under one toggle */
.admin-settings-drawer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin: 24px 0;
  overflow: hidden;
}
.admin-settings-drawer[open] { box-shadow: var(--shadow-1); }
.admin-settings-summary {
  list-style: none; cursor: pointer;
  padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  user-select: none;
}
.admin-settings-summary::-webkit-details-marker { display: none; }
.admin-settings-summary-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px; color: var(--ink); font-weight: 600;
}
.admin-settings-summary-sub {
  font-family: 'Inter', sans-serif; font-size: 12px; color: var(--ink-muted);
  flex: 1;
}
.admin-settings-chev { color: var(--ink-muted); transition: transform 160ms ease; }
.admin-settings-drawer[open] .admin-settings-chev { transform: rotate(180deg); }
.admin-settings-body {
  padding: 0 20px 16px;
  border-top: 1px solid var(--border);
}
.admin-settings-body .card {
  border-radius: var(--r-md);
  margin-top: 14px;
  box-shadow: none;
}

/* Banner tile — drag-reorder affordance */
.boutique-banner-tile { cursor: grab; }
.boutique-banner-tile:active { cursor: grabbing; }
.boutique-banner-tile.is-dragging { opacity: 0.4; }
.boutique-banner-tile.drop-target { box-shadow: 0 0 0 3px var(--maroon); }
.boutique-banner-grip {
  position: absolute; top: 6px; left: 6px;
  color: rgba(255,255,255,0.85); font-size: 16px; line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
  pointer-events: none;
  letter-spacing: -2px;
}

/* Draft badge on admin catalog cards */
.admin-draft-badge {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  background: var(--gold); color: var(--ink);
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.14em; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  box-shadow: 0 1px 4px rgba(27,15,14,0.18);
}
.admin-catalog-card.is-draft { opacity: 0.78; }
.admin-catalog-card.is-draft:hover { opacity: 1; }
.admin-catalog-card.is-draft .img-wrap img { filter: saturate(0.7); }

/* "demo" tag next to dropdown items that are showcases on synthetic data */
.ad-demo-tag {
  display: inline-block;
  background: var(--gold-wash); color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 999px;
  margin-left: auto;
  font-weight: 600;
}

/* Hide demo-only staff-bar tabs in non-demo mode (there's nothing to switch between
   when only Catalog is a real surface). */
body:not(.demo-mode) .staff-bar-tabs .sbt[data-pane="merchant"],
body:not(.demo-mode) .staff-bar-tabs .sbt[data-pane="supplier"],
body:not(.demo-mode) .staff-bar-tabs .sbt[data-pane="agent"] { display: none !important; }

/* ==========================================================================
   Bulk add modal — drop 1-20 photos, name + price each, publish or save drafts
   ========================================================================== */
.bulk-shared {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.bulk-drop {
  display: block;
  border: 2px dashed var(--border-gold);
  border-radius: var(--r-lg);
  padding: 28px 16px;
  background: var(--surface-2);
  text-align: center;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
  margin-bottom: 14px;
}
.bulk-drop:hover, .bulk-drop.drag-over { background: var(--gold-wash); border-color: var(--gold); }
.bulk-drop-empty .photo-cta-icon { margin: 0 auto 10px; }
.bulk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.bulk-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.bulk-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: var(--surface-2); }
.bulk-card-del {
  position: absolute; top: 6px; right: 6px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(27,15,14,0.78); color: #fff; border: 0; cursor: pointer;
  font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 2;
}
.bulk-card-del:hover { background: var(--maroon); }
.bulk-card-fields { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.bulk-card-name {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 7px 10px; font-family: 'Inter', sans-serif; font-size: 13px;
  background: var(--surface); color: var(--ink); outline: 0;
}
.bulk-card-name:focus { border-color: var(--maroon); }
.bulk-card-price-row {
  display: flex; align-items: center; gap: 4px;
  border: 1px solid var(--border); border-radius: 8px; padding: 0 10px;
  background: var(--surface);
}
.bulk-card-price-row:focus-within { border-color: var(--maroon); }
.bulk-card-price-prefix { color: var(--ink-muted); font-family: 'Inter', sans-serif; font-size: 13px; }
.bulk-card-price { flex: 1; border: 0; outline: 0; padding: 7px 0; font-family: 'Inter', sans-serif; font-size: 13px; background: transparent; }
.bulk-actions {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.bulk-progress {
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
  color: var(--ink-muted);
}

/* Price history (Edit Piece modal) */
.ep-price-history {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.ep-price-history summary {
  list-style: none; cursor: pointer;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif; font-size: 13px;
  color: var(--ink-2); font-weight: 600;
}
.ep-price-history summary::-webkit-details-marker { display: none; }
.ep-price-history summary::before {
  content: '▸'; display: inline-block; margin-right: 8px; transition: transform 140ms ease;
}
.ep-price-history[open] summary::before { transform: rotate(90deg); }
.ep-price-history-body { padding: 0 14px 12px; font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--ink-muted); }
.ep-price-history-table { width: 100%; border-collapse: collapse; }
.ep-price-history-table th, .ep-price-history-table td {
  padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left;
}
.ep-price-history-table th { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--ink-muted); }
.ep-price-history-table td.num { font-variant-numeric: tabular-nums; }
.ep-price-history-table td.arrow { color: var(--ink-dim); }
.ep-price-history-table td.who { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--ink-muted); }
.ep-price-history-empty { font-style: italic; padding: 4px 0; }

/* Wishlist notification — heart-tinted left border in the bell-dropdown */
.bell-item.wishlist { border-left: 3px solid var(--maroon-deep); padding-left: 10px; }

/* =========================================================================
   Tile badges (Popular / Trending / New / Sale / Festive)
   Stacked top-left over the product image.
   ========================================================================= */
.tile-tags {
  position: absolute; top: 8px; left: 8px; z-index: 4;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  pointer-events: none;
}
.tile-tag {
  font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
  color: #fff; background: var(--maroon);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
  backdrop-filter: blur(4px);
}
.tile-tag.tag-popular  { background: linear-gradient(135deg, #7A1126 0%, #5A0A1B 100%); }
.tile-tag.tag-trending { background: linear-gradient(135deg, #B6892C 0%, #8A6620 100%); color: #1B0F0E; }
.tile-tag.tag-new      { background: linear-gradient(135deg, #2F7A60 0%, #205C48 100%); }
.tile-tag.tag-sale     { background: linear-gradient(135deg, #C84A2C 0%, #9A371E 100%); }
.tile-tag.tag-festive  { background: linear-gradient(135deg, #C49A2C 0%, #7A1126 100%); }
.tile-tag.tag-reserved { background: linear-gradient(135deg, #C09A2A 0%, #8A6620 100%); color: #2A1717; }
.tile-tag.tag-sold     { background: linear-gradient(135deg, #555 0%, #2A1717 100%); }

/* =========================================================================
   Trending section
   ========================================================================= */
.trending-section { padding-top: 8px; }
.trending-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.trending-tabs {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
}
.trending-tab {
  appearance: none; background: transparent; border: 0; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 600;
  color: var(--ink-muted); padding: 7px 16px; border-radius: 999px;
  transition: background 140ms ease, color 140ms ease;
}
.trending-tab:hover { color: var(--ink); }
.trending-tab.is-active {
  background: var(--maroon); color: #fff;
  box-shadow: 0 4px 10px rgba(122,17,38,0.22);
}
.trending-grid .product { position: relative; }
.trending-count {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--maroon-deep);
  background: var(--gold-wash);
  border: 1px solid var(--border-gold);
  padding: 2px 8px; border-radius: 999px;
  margin: 6px 0 2px;
}

/* =========================================================================
   Merchant portal: "Hot pieces this week" nudge card
   ========================================================================= */
.portal-hot {
  margin: 12px 0 18px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--maroon-wash) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 6px 18px rgba(122, 17, 38, 0.06);
}
.portal-hot-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-bottom: 12px;
}
.portal-hot-title {
  font-family: 'Cormorant Garamond', serif; font-size: 19px; color: var(--ink);
  margin: 4px 0 0; font-weight: 500; line-height: 1.25;
}
.portal-hot-sub {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  color: var(--ink-muted); letter-spacing: 0.04em; white-space: nowrap;
  padding-top: 4px;
}
.portal-hot-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.portal-hot-row {
  display: grid; grid-template-columns: auto 56px 1fr auto; align-items: center; gap: 14px;
  padding: 8px 10px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--border); cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease;
}
.portal-hot-row:hover { border-color: var(--border-gold); transform: translateY(-1px); }
.portal-hot-rank {
  font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--maroon);
  width: 28px; text-align: center; font-weight: 500;
}
.portal-hot-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--surface-3); }
.portal-hot-meta { min-width: 0; }
.portal-hot-name {
  font-size: 14px; font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.portal-hot-stats {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-muted);
}
.ph-score { color: var(--maroon-deep); font-weight: 700; }
.portal-hot-cta {
  font-size: 12px; padding: 6px 12px; background: var(--maroon); color: #fff;
  border: 0; border-radius: 999px; cursor: pointer; font-weight: 600;
  transition: background 140ms ease;
}
.portal-hot-cta:hover { background: var(--maroon-deep); }

/* =========================================================================
   DREAM SETS / BOARDS — wishlist modal becomes a tabbed boards view
   ========================================================================= */
.board-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 4px 0 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.board-tab {
  appearance: none; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--ink-2); padding: 7px 14px; border-radius: 999px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.board-tab:hover { border-color: var(--border-gold); color: var(--ink); }
.board-tab.is-active {
  background: var(--maroon); color: #fff; border-color: var(--maroon);
  box-shadow: 0 4px 10px rgba(122,17,38,0.18);
}
.board-tab-count {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  background: rgba(255,255,255,0.18); padding: 1px 7px; border-radius: 999px;
}
.board-tab:not(.is-active) .board-tab-count {
  background: var(--surface); color: var(--ink-muted);
}
.board-tab-ic { font-size: 12px; }
.board-tab-new { background: transparent; border-style: dashed; color: var(--maroon); }
.board-tab-new:hover { background: var(--maroon-wash); }

.board-actions {
  display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap;
  margin-bottom: 12px;
}

.board-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.board-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.board-card:hover {
  border-color: var(--border-gold); transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(122,17,38,0.08);
}
.board-card-thumb { aspect-ratio: 1/1; background: var(--surface-3); }
.board-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.board-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; }
.board-card-name {
  font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.board-card-meta {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  color: var(--ink-muted); letter-spacing: 0.03em; text-transform: lowercase;
}
.board-card-remove {
  position: absolute; top: 6px; right: 6px; z-index: 3;
  width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: rgba(27, 15, 14, 0.55); color: #fff;
  cursor: pointer; font-size: 18px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 120ms ease, background 120ms ease;
}
.board-card:hover .board-card-remove { opacity: 1; }
.board-card-remove:hover { background: var(--maroon); }
.board-empty {
  text-align: center; padding: 40px 20px;
  color: var(--ink-muted); font-style: italic;
}

/* Rate-tracker chip on board cards */
.rate-chip {
  display: inline-flex; align-items: baseline; gap: 4px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  padding: 4px 8px; border-radius: 6px;
  margin-top: 2px;
}
.rate-chip .rc-arrow { font-size: 13px; font-weight: 700; line-height: 1; }
.rate-chip .rc-pct { font-weight: 700; }
.rate-chip .rc-since { color: inherit; opacity: 0.75; }
.rate-up   { background: rgba(200, 74, 44, 0.10); color: #9A371E; border: 1px solid rgba(200, 74, 44, 0.25); }
.rate-down { background: rgba(47, 122, 96, 0.10); color: #205C48; border: 1px solid rgba(47, 122, 96, 0.25); }
.rate-flat { background: var(--surface-2); color: var(--ink-muted); border: 1px solid var(--border); }

/* Shared-board hero (when ?board= URL is opened) */
.shared-board-hero {
  text-align: center; padding: 20px 0 24px;
  border-bottom: 1px solid var(--border); margin-bottom: 18px;
  background: linear-gradient(180deg, var(--maroon-wash) 0%, transparent 100%);
  margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px;
}
.shared-board-name {
  font-family: 'Cormorant Garamond', serif; font-size: 28px; color: var(--ink);
  margin: 6px 0 14px; font-weight: 500;
}
.shared-board-actions { display: inline-flex; gap: 14px; align-items: center; }

/* Drawer "Save to dream set" button + menu */
.dx-board-wrap { position: relative; display: inline-block; }
.dx-board {
  display: inline-flex; align-items: center; gap: 6px;
}
.dx-board-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 240px; z-index: 5;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 14px 36px rgba(27, 15, 14, 0.18);
  padding: 6px; display: flex; flex-direction: column; gap: 2px;
}
.dx-board-item {
  appearance: none; background: transparent; border: 0;
  text-align: left; padding: 8px 12px; border-radius: 8px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 13px; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.dx-board-item:hover { background: var(--surface-2); }
.dx-board-item.in { color: var(--maroon-deep); font-weight: 600; }
.dx-board-count {
  margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--ink-muted); background: var(--surface-2);
  padding: 1px 6px; border-radius: 999px;
}
.dx-board-new {
  border-top: 1px solid var(--border); margin-top: 4px; padding-top: 10px;
  color: var(--maroon);
}

/* =========================================================================
   Boards modal — compare checkbox + floating compare bar + compare modal
   ========================================================================= */
.board-card-compare {
  position: absolute; top: 6px; left: 6px; z-index: 3;
  width: 26px; height: 26px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 252, 247, 0.85);
  border-radius: 6px;
  border: 1px solid var(--border);
  opacity: 0; transition: opacity 120ms ease;
}
.board-card:hover .board-card-compare,
.board-card.is-comparing .board-card-compare { opacity: 1; }
.board-card-compare input { position: absolute; opacity: 0; cursor: pointer; }
.board-card-compare-box {
  width: 16px; height: 16px;
  border: 1.5px solid var(--maroon);
  border-radius: 3px;
  background: #fff;
  transition: background 120ms ease;
}
.board-card-compare input:checked ~ .board-card-compare-box {
  background: var(--maroon);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat; background-position: center;
}
.board-card.is-comparing {
  border-color: var(--maroon); box-shadow: 0 0 0 2px rgba(122,17,38,0.20);
}

.compare-bar {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--maroon-wash) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  box-shadow: 0 -6px 20px rgba(122,17,38,0.10);
}
.compare-bar-count {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--maroon-deep); font-weight: 700;
}
.compare-bar-go { margin-left: auto; }
.compare-bar-go:disabled { opacity: 0.4; cursor: not-allowed; }

/* Compare modal — side-by-side */
.modal-compare { max-width: 920px; }
.cmp-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin: 20px 0 24px;
}
.cmp-col { text-align: center; }
.cmp-img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: 12px; background: var(--surface-3);
  border: 1px solid var(--border-gold);
}
.cmp-name { font-family: 'Cormorant Garamond', serif; font-size: 22px; margin: 12px 0 4px; color: var(--ink); font-weight: 500; }
.cmp-mr { font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.cmp-cta { display: inline-flex; align-items: center; gap: 6px; }

.cmp-spec {
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
.cmp-row {
  display: grid; grid-template-columns: 160px 1fr 1fr;
  gap: 12px; padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.cmp-row:last-child { border-bottom: 0; }
.cmp-k { font-weight: 700; color: var(--ink-muted); text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.12em; }
.cmp-v { color: var(--ink); line-height: 1.5; }
@media (max-width: 720px) {
  .cmp-grid { grid-template-columns: 1fr; }
  .cmp-row { grid-template-columns: 1fr; gap: 4px; }
}

/* =========================================================================
   Merchant Enquiry Inbox card
   ========================================================================= */
.portal-inbox {
  margin: 0 0 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}
.portal-inbox-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  margin-bottom: 12px;
}
.portal-inbox-title {
  font-family: 'Cormorant Garamond', serif; font-size: 19px;
  margin: 4px 0 0; color: var(--ink); font-weight: 500;
}
.portal-inbox-sub {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  color: var(--ink-muted); letter-spacing: 0.04em;
}
.portal-inbox-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.portal-inbox-row {
  display: grid; grid-template-columns: 28px 1fr;
  align-items: start; gap: 12px;
  padding: 8px 10px; border-radius: 8px;
  cursor: pointer;
  transition: background 120ms ease;
}
.portal-inbox-row:hover { background: var(--surface-2); }
.pi-icon { font-size: 16px; text-align: center; }
.pi-line { font-size: 13.5px; color: var(--ink); line-height: 1.4; }
.pi-line strong { color: var(--maroon-deep); font-weight: 600; }
.pi-line em { font-style: italic; color: var(--ink-2); }
.pi-meta { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--ink-muted); margin-top: 2px; letter-spacing: 0.03em; }

/* =========================================================================
   Bot widget — recent searches strip
   ========================================================================= */
.bot-chips-recent {
  padding: 6px 14px 4px;
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  background: var(--maroon-wash);
  border-top: 1px solid var(--border);
}
.bot-chips-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--maroon-deep); letter-spacing: 0.10em; text-transform: uppercase;
  font-weight: 700; margin-right: 4px;
}
.bot-chip-recent { background: var(--surface); border-color: var(--border-gold); color: var(--maroon-deep); }

/* Edit Piece modal — pair dropdowns + story uploader */
.ep-pairs, .ep-stories {
  margin-top: 12px; padding: 12px; border: 1px dashed var(--border); border-radius: 10px;
  background: var(--surface);
}
.ep-pairs summary, .ep-stories summary {
  font-weight: 600; color: var(--ink); cursor: pointer; font-size: 13px;
}
.ep-pairs-body { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ep-pairs-body select { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.ep-stories-body { margin-top: 10px; }
.ep-stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.ep-story-upload { display: inline-block; cursor: pointer; }
