/* ==========================================================================
   NexaMart — liquid-glass design system
   Ported from the ReactJS source (primitives.jsx / app.jsx / screens.jsx).
   Tailwind (CDN) handles layout utilities; this file owns the glass look,
   brand tokens and the mobile-app / desktop-store chrome.
   ========================================================================== */

:root {
  --navy:   #0B2A4A;
  --blue:   #1F7BFF;
  --orange: #FF7A1A;
  --green:  #16A374;
  --pink:   #D946A8;
  --muted:  #56627A;
  --muted2: #9AA5BA;
  --line:   rgba(11, 42, 74, 0.10);
  --bg:     #EDF1F7;
  --bg-deep:#E8ECF3;

  --glass-bg: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.55));
  --glass-shadow:
      inset 0 1px 0 rgba(255,255,255,0.95),
      inset 0 -1px 0 rgba(11,42,74,0.06),
      0 1px 0 rgba(255,255,255,0.8),
      0 8px 24px -10px rgba(11,42,74,0.10),
      0 2px 6px -2px rgba(11,42,74,0.06);
}

* , *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  background: var(--bg-deep);
  overflow-x: hidden;
}

/* hide scrollbars but keep scroll */
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

button { font-family: inherit; }
button:active { transform: translateY(0.5px); }
a { color: inherit; text-decoration: none; }

/* watery balanced/pretty headings */
.text-balance { text-wrap: balance; }
.text-pretty  { text-wrap: pretty; }

/* ------------------------------------------------------------ backdrop --- */
.nm-backdrop { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--bg); }
.nm-backdrop .wash {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 60% at 50% 0%,  rgba(255,255,255,0.95), rgba(255,255,255,0) 60%),
    radial-gradient(80% 50% at 100% 100%, rgba(31,123,255,0.06), rgba(31,123,255,0) 60%),
    radial-gradient(80% 50% at 0% 80%,   rgba(255,122,26,0.04), rgba(255,122,26,0) 60%);
}
.nm-backdrop .bubble { position: absolute; border-radius: 50%; }
.nm-backdrop .b1 { top:-120px; right:-80px; width:320px; height:320px; filter: blur(2px);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.95) 0%, rgba(220,232,250,0.55) 45%, rgba(180,205,240,0) 70%); }
.nm-backdrop .b2 { top:280px; left:-50px; width:160px; height:160px; filter: blur(1.5px);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.9) 0%, rgba(220,232,250,0.4) 50%, transparent 75%); }
.nm-backdrop .b3 { bottom:180px; right:-60px; width:200px; height:200px; filter: blur(2px);
  background: radial-gradient(circle at 35% 30%, rgba(255,234,210,0.85) 0%, rgba(255,213,170,0.35) 55%, transparent 78%); }
.nm-backdrop .b4 { top:90px; left:40px; width:60px; height:60px; filter: blur(0.5px);
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,1) 0%, rgba(220,232,250,0.3) 60%, transparent 80%); }

/* --------------------------------------------------------------- glass --- */
.glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--glass-shadow);
}
.glass-blue   { background: linear-gradient(180deg, rgba(232,242,255,0.85), rgba(213,229,252,0.6)); }
.glass-orange { background: linear-gradient(180deg, rgba(255,238,220,0.85), rgba(255,224,194,0.55)); }

/* frosted circular icon button (top bar) */
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 21px;
  background: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.8);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 4px 14px -6px rgba(11,42,74,0.15);
  color: var(--navy);
}
.icon-btn .badge {
  position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px;
  padding-inline: 4px; border-radius: 9px; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; border: 2px solid rgba(255,255,255,0.95);
}
.badge-orange { background: var(--orange); }
.badge-blue   { background: var(--blue); }

/* pills / chips */
.nm-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1px; white-space: nowrap;
}
.pill-neutral { background: rgba(255,255,255,0.7); color: var(--navy);  border: 1px solid rgba(11,42,74,0.10); }
.pill-blue    { background: rgba(31,123,255,0.10); color: var(--blue);  border: 1px solid rgba(31,123,255,0.20); }
.pill-orange  { background: rgba(255,122,26,0.12); color: #C8550B;      border: 1px solid rgba(255,122,26,0.25); }
.pill-success { background: rgba(22,163,116,0.10); color: #0F7A55;      border: 1px solid rgba(22,163,116,0.22); }

.dot { width: 6px; height: 6px; border-radius: 3px; display: inline-block; background: var(--green); }

/* pill buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-weight: 700; letter-spacing: -0.1px;
  height: 46px; padding-inline: 18px; border-radius: 23px; font-size: 14.5px;
  color: #fff; white-space: nowrap;
}
.btn-lg { height: 54px; border-radius: 27px; font-size: 16px; padding-inline: 22px; }
.btn-sm { height: 38px; border-radius: 19px; font-size: 13px; padding-inline: 14px; }
.btn-full { width: 100%; }
.btn-primary { background: var(--blue);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -2px 0 rgba(0,0,0,0.10), 0 8px 22px -8px rgba(31,123,255,0.35), 0 2px 4px -2px rgba(31,123,255,0.35); }
.btn-orange { background: var(--orange);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -2px 0 rgba(0,0,0,0.10), 0 8px 22px -8px rgba(255,122,26,0.32), 0 2px 4px -2px rgba(255,122,26,0.32); }
.btn-navy { background: var(--navy);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -2px 0 rgba(0,0,0,0.10), 0 8px 22px -8px rgba(11,42,74,0.30); }
.btn-ghost { background: rgba(255,255,255,0.7); color: var(--navy); border: 1px solid rgba(11,42,74,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 6px 20px -8px rgba(11,42,74,0.18), 0 2px 4px -2px rgba(11,42,74,0.08); }

/* section head */
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: var(--blue); text-transform: uppercase; margin-bottom: 4px; }
.sec-title { font-size: 18px; font-weight: 800; color: var(--navy); letter-spacing: -0.3px; }
.sec-action { background: none; border: none; color: var(--blue); font-size: 13px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: 2px; padding: 0; }

/* category bubble (home) */
.cat-bubble {
  width: 64px; height: 64px; border-radius: 32px; position: relative;
  background: rgba(255,255,255,0.78);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95), inset 0 -2px 0 rgba(11,42,74,0.06),
    0 10px 24px -10px rgba(11,42,74,0.18), 0 2px 6px -2px rgba(11,42,74,0.08);
}
.cat-bubble .pearl { position: absolute; top: 6px; left: 12px; width: 16px; height: 8px;
  border-radius: 50%; background: rgba(255,255,255,0.9); filter: blur(1px); }

/* product card */
.product-card {
  border-radius: 22px; overflow: hidden; cursor: pointer; position: relative;
  background: rgba(255,255,255,0.78);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95), inset 0 -1px 0 rgba(11,42,74,0.05),
    0 10px 22px -12px rgba(11,42,74,0.16), 0 2px 6px -2px rgba(11,42,74,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 18px 34px -14px rgba(11,42,74,0.24), 0 4px 10px -4px rgba(11,42,74,0.10); }
.product-media { aspect-ratio: 1 / 1; background: #F4F6FB; background-size: cover; background-position: center; position: relative; }
.tag-chip { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 800; letter-spacing: 0.4px;
  color: #fff; padding: 4px 8px; border-radius: 8px;
  box-shadow: 0 4px 10px -4px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.35); }
.tag-NEW { background: var(--green); }
.tag-HOT, .tag-DEAL { background: var(--orange); }
.heart-btn { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 15px; border: none;
  background: rgba(255,255,255,0.85); display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--muted); box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 4px 10px -4px rgba(0,0,0,0.15); }
.price-now { font-weight: 800; color: var(--blue); letter-spacing: -0.3px; }
.price-was { color: var(--muted2); text-decoration: line-through; }
.add-btn { width: 100%; height: 32px; border-radius: 10px; background: rgba(31,123,255,0.10); color: var(--blue);
  font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; border: 1px solid rgba(31,123,255,0.18); }
.add-btn:hover { background: rgba(31,123,255,0.16); }

/* qty stepper */
.qty { display: inline-flex; align-items: center; gap: 6px; padding: 3px; background: rgba(11,42,74,0.05); border-radius: 999px; }
.qty button { width: 26px; height: 26px; border-radius: 13px; border: none; background: rgba(255,255,255,0.85); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--navy);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 2px 4px -1px rgba(11,42,74,0.10); }
.qty .val { min-width: 18px; text-align: center; font-weight: 700; color: var(--navy); font-size: 13px; }

/* =========================================================================
   MOBILE APP CHROME  (visible < lg)
   ========================================================================= */
.phone-stage { min-height: 100vh; background: var(--bg); }

.mobile-topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 8px;
  background: linear-gradient(180deg, rgba(237,241,247,0.92), rgba(237,241,247,0.0));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* bottom nav — frosted bar + centered floating cart FAB */
.mobile-bottomnav { position: fixed; left: 12px; right: 12px; bottom: 12px; height: 72px; z-index: 40; }
@media (min-width: 480px) { .mobile-bottomnav { left: 50%; transform: translateX(-50%); width: 440px; } }
.mobile-bottomnav .bar {
  position: absolute; inset: 0; border-radius: 36px;
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95), inset 0 -1px 0 rgba(11,42,74,0.06),
    0 12px 30px -10px rgba(11,42,74,0.20), 0 4px 10px -4px rgba(11,42,74,0.10);
}
.mobile-bottomnav .items { position: relative; height: 100%;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.nav-item { background: none; border: none; padding: 4px 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); }
.nav-item .pill-ico { width: 36px; height: 36px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  transition: background .2s; }
.nav-item span { font-size: 10.5px; font-weight: 500; }
.nav-item.active { color: var(--blue); }
.nav-item.active .pill-ico { background: rgba(31,123,255,0.12); }
.nav-item.active span { font-weight: 700; }

.fab { position: absolute; left: 50%; top: -22px; transform: translateX(-50%);
  width: 66px; height: 66px; border-radius: 33px; border: none; background: var(--navy); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.5), inset 0 -3px 0 rgba(0,0,0,0.12),
    0 8px 22px -4px rgba(11,42,74,0.45), 0 4px 10px -2px rgba(11,42,74,0.45); }
/* keep the FAB centered on press — the global button:active transform would
   otherwise drop its translateX(-50%) and make it jump sideways */
.fab:active { transform: translateX(-50%); }
.fab .pearl { position: absolute; top: 8px; left: 14px; width: 22px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,0.4); filter: blur(1.5px); pointer-events: none; }
.fab .fab-badge { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding-inline: 5px;
  border-radius: 11px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; border: 2.5px solid #fff;
  box-shadow: 0 4px 10px -3px rgba(255,122,26,0.6); }

/* =========================================================================
   DESKTOP STORE CHROME  (visible >= lg)
   ========================================================================= */
.desktop-header { position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,0.82); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid rgba(11,42,74,0.08); }
.desktop-search { flex: 1; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px 0 16px;
  border-radius: 24px; background: #fff; border: 1px solid rgba(11,42,74,0.10);
  box-shadow: 0 4px 14px -8px rgba(11,42,74,0.18) inset, 0 1px 0 rgba(255,255,255,0.9); }
.desktop-search input { flex: 1; border: none; outline: none; font-size: 15px; color: var(--navy); background: transparent; }
.desktop-search input::placeholder { color: var(--muted); }
.dtop-link { color: var(--navy); font-weight: 600; font-size: 14px; padding: 8px 4px; position: relative; }
.dtop-link.active { color: var(--blue); }
.dtop-cart { position: relative; }
.dtop-cart .badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding-inline: 4px;
  border-radius: 9px; background: var(--blue); color: #fff; font-size: 10px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; }

.search-field { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; cursor: pointer;
  background: rgba(255,255,255,0.78); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 8px 20px -10px rgba(11,42,74,0.12); }
.search-field .go { width: 34px; height: 34px; border-radius: 12px; background: var(--blue); flex: none;
  display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer;
  border: none; transition: background .2s ease, transform .2s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 4px 12px -4px rgba(31,123,255,0.45); }
[data-search-wrap].filter-open .go { background: var(--navy); transform: rotate(90deg); }

/* ---- animated category filter menu ---- */
.cat-panel {
  max-height: 0; opacity: 0; overflow: hidden; transform: translateY(-8px);
  transition: max-height .30s cubic-bezier(.4,0,.2,1), opacity .22s ease, transform .30s cubic-bezier(.4,0,.2,1);
}
[data-search-wrap].filter-open .cat-panel {
  max-height: 52vh; opacity: 1; transform: translateY(0); overflow-y: auto;
}
.cat-panel-inner { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 2px 4px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.82); border: 1px solid rgba(11,42,74,0.10);
  font-size: 12.5px; font-weight: 600; color: var(--navy); cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 4px 12px -8px rgba(11,42,74,0.2);
}
.cat-chip:hover { background: #fff; transform: translateY(-1px); }
.cat-chip.is-all { color: var(--brand); border-color: rgba(31,123,255,0.25); background: rgba(31,123,255,0.08); }
.cat-chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.cat-chip.is-active svg { stroke: #fff; }

/* toast */
#toast-host { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: 100px; pointer-events: none; }
@media (min-width: 1024px) { #toast-host { bottom: 32px; } }
.toast { background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; padding: 12px 18px; border-radius: 14px;
  box-shadow: 0 12px 30px -10px rgba(11,42,74,0.5); animation: toast-in .25s ease, toast-out .3s ease 2.2s forwards; }
@keyframes toast-in  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* htmx swap fade */
.fade-in { animation: fade-in .28s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* star rating */
.stars { color: var(--orange); display: inline-flex; gap: 1px; }

/* ---- hero advert carousel ---- */
.hero-carousel { position: relative; }
.hero-viewport { overflow: hidden; border-radius: 24px; cursor: grab; touch-action: pan-y; }
.hero-viewport.dragging { cursor: grabbing; }
.hero-viewport.dragging * { user-select: none; }
@media (min-width: 1024px) { .hero-viewport { border-radius: 32px; } }

/* cursor navigation arrows (desktop hover) */
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 40px; height: 40px; border-radius: 20px; border: none; cursor: pointer;
  background: rgba(255,255,255,0.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; color: var(--navy);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 6px 18px -6px rgba(11,42,74,0.35);
  display: none; opacity: 0; transition: opacity .2s ease; }
.hero-arrow.prev { left: 12px; } .hero-arrow.next { right: 12px; }
@media (min-width: 1024px) {
  .hero-arrow { display: flex; }
  .hero-carousel:hover .hero-arrow { opacity: 1; }
}
.hero-track { display: flex; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.hero-slide { min-width: 100%; flex: 0 0 100%; }
/* advert media: banner on top for mobile, right column on desktop */
.hero-media { position: relative; height: 172px; overflow: hidden; background: #F4F6FB; }
@media (min-width: 1024px) { .hero-media { height: auto; min-height: 360px; } }
.hero-media-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media-fade { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.55), rgba(255,255,255,0) 42%); }
.hero-media-tag { position: absolute; top: 10px; left: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.3px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (min-width: 1024px) { .hero-media-tag { display: none; } }
.hero-title { font-size: 26px; line-height: 1.12; letter-spacing: -0.7px; color: var(--navy); font-weight: 800; margin: 0; }
@media (min-width: 1024px) { .hero-title { font-size: 46px; line-height: 1.05; letter-spacing: -1.3px; } }
.hero-sub { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 8px 4px 14px; }
@media (min-width: 1024px) { .hero-sub { font-size: 17px; margin: 16px 0 24px; max-width: 38ch; } }
.hero-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.hero-dot { width: 7px; height: 7px; border-radius: 999px; background: rgba(11,42,74,0.18);
  border: none; cursor: pointer; padding: 0; transition: width .3s ease, background .3s ease; }
.hero-dot.active { width: 22px; background: var(--brand); }

/* membership badges */
.ad-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.3px; }
.ad-gold   { background: rgba(224,160,0,0.15);   color: #9A6B00; border: 1px solid rgba(224,160,0,0.30); }
.ad-silver { background: rgba(120,132,150,0.16); color: #5A6472; border: 1px solid rgba(120,132,150,0.30); }
.ad-basic  { background: rgba(31,123,255,0.12);  color: #1F7BFF; border: 1px solid rgba(31,123,255,0.25); }
.ad-gold svg   { fill: #E0A000; stroke: #E0A000; }
.ad-silver svg { fill: #8A94A6; stroke: #8A94A6; }

/* wishlist heart state */
.heart-btn.is-wished { color: var(--orange); }
.heart-btn.is-wished svg { fill: var(--orange); }

/* app-store download badges */
.store-badge { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 14px;
  background: var(--navy); color: #fff; border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 20px -8px rgba(11,42,74,0.45); cursor: pointer; transition: transform .15s ease, background .2s ease; }
.store-badge:hover { background: #0a2340; transform: translateY(-1px); }
.store-badge > span { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.store-badge small { font-size: 9px; font-weight: 600; opacity: 0.85; letter-spacing: 0.3px; text-transform: uppercase; }
.store-badge b { font-size: 15px; font-weight: 800; letter-spacing: -0.2px; }
.cuisine { flex: none; width: 76px; }
.cuisine-img { width: 76px; height: 76px; border-radius: 24px; background-size: cover; background-position: center;
  border: 1px solid rgba(255,255,255,0.85); box-shadow: 0 10px 24px -12px rgba(11,42,74,0.35); }

/* ---- forms ---- */
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 14px;
  background: rgba(255,255,255,0.9); border: 1px solid rgba(11,42,74,0.12);
  font-size: 14.5px; color: var(--navy); outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}
.textarea { height: auto; padding: 12px 14px; min-height: 90px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,123,255,0.15); }

/* segmented toggle (role picker / order status) */
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 14px; background: rgba(11,42,74,0.06); }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 11px;
  font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer; padding: 0 14px; }
.seg input:checked + span { background: #fff; color: var(--brand); box-shadow: 0 4px 12px -6px rgba(11,42,74,0.3); }

/* list rows (account / addresses / orders) */
.list-row { display: flex; align-items: center; gap: 12px; }
.row-ico { width: 40px; height: 40px; border-radius: 14px; flex: none; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.95); box-shadow: inset 0 1px 0 rgba(255,255,255,0.95); }

/* status pills */
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.st-pending    { background: rgba(255,122,26,0.12); color: #C8550B; }
.st-confirmed,
.st-processing { background: rgba(31,123,255,0.12); color: var(--brand); }
.st-shipped    { background: rgba(217,70,168,0.12); color: #B02E86; }
.st-delivered,
.st-approved,
.st-paid       { background: rgba(22,163,116,0.12); color: #0F7A55; }
.st-cancelled,
.st-rejected,
.st-failed     { background: rgba(220,38,38,0.10); color: #C62828; }

/* vendor dashboard */
.stat-card { border-radius: 20px; padding: 16px; }
.stat-num { font-size: 26px; font-weight: 800; letter-spacing: -0.6px; color: var(--navy); }
.stat-lbl { font-size: 12px; color: var(--muted); }
.vtabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.vtab { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--muted); background: rgba(255,255,255,0.7);
  border: 1px solid rgba(11,42,74,0.08); cursor: pointer; }
.vtab.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* toast success variant */
.toast.ok { background: #0F7A55; }

/* confetti banner */
.placed-banner { background: linear-gradient(180deg, rgba(22,163,116,0.14), rgba(22,163,116,0.06));
  border: 1px solid rgba(22,163,116,0.25); border-radius: 20px; }

/* register: show business-name only when the vendor role is selected */
.auth-form #vendor-fields { display: none; }
.auth-form:has(input[name="role"][value="vendor"]:checked) #vendor-fields { display: block; }
