/* Amrutham B2B Portal: dark green premium theme
   Brand tokens match the corporate site: deep green #102c22 / #173d2e / #245b40, gold #d4bd82, logo plate #f0fcf7.
   Type: Poppins (+ Noto Sans Malayalam). System fallbacks are listed for every stack. */

:root {
  --bg: #07150f;
  --bg-2: #0a1d15;
  --surface: #0e251b;
  --surface-2: #123125;
  --surface-3: #173d2e;
  --green: #245b40;
  --green-2: #2f7a55;
  --line: rgba(212, 189, 130, .14);
  --line-2: rgba(212, 189, 130, .28);
  --ink: #eef5ef;
  --ink-2: #cfe0d4;
  --muted: #98b3a3;
  --gold: #d4bd82;
  --gold-2: #e8d59f;
  --on-gold: #1b1605;
  --plate: #f0fcf7;
  --good: #6fdca4;
  --bad: #ff8d7a;
  --warn: #f0cf7a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: "Poppins", "Noto Sans Malayalam", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tab-h: 66px;
  --side-w: 268px;
  --top-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(36, 91, 64, .35), transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
h1, h2, h3 { font-family: var(--font); font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; margin: 0 0 .5em; color: #fff; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
code { background: var(--surface-3); padding: 1px 6px; border-radius: 6px; font-size: .9em; word-break: break-word; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--on-gold); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.dim { opacity: .55; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 620px; }
.page { padding-top: 22px; padding-bottom: 26px; }
.sec { font-size: 1.15rem; margin: 1.4em 0 .8em; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sec-head .sec { margin-top: 0; }
.sec-head a { font-size: .9rem; text-decoration: none; font-weight: 500; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: .6em; }
.crumbs a { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 12px; border: 1px solid var(--gold);
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--on-gold); font: 600 .92rem/1.2 var(--font);
  text-decoration: none; cursor: pointer; min-height: 44px;
  transition: filter .15s, transform .08s, background .15s;
}
.btn:hover { filter: brightness(1.06); color: var(--on-gold); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 7px 14px; min-height: 36px; font-size: .84rem; border-radius: 10px; }
.btn-lg { padding: 14px 28px; min-height: 52px; font-size: .98rem; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-ghost { background: transparent; color: var(--gold); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(212, 189, 130, .1); color: var(--gold-2); border-color: var(--gold); filter: none; }
.btn-disabled, .btn[disabled] { background: var(--surface-3); border-color: var(--surface-3); color: #6f8c7b; cursor: not-allowed; pointer-events: none; }
button.btn.bad, .btn.bad { color: var(--bad); border-color: rgba(255, 141, 122, .45); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--gold); text-decoration: underline; cursor: pointer; }
.linklike.bad { color: var(--bad); }

/* ---------- forms ---------- */
.field { display: block; min-width: 0; }
.field > span:first-child { display: block; font-weight: 500; font-size: .86rem; margin-bottom: 6px; color: var(--ink-2); }
.field small { font-weight: 400; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 14px; min-height: 46px;
}
input::placeholder, textarea::placeholder { color: #6f8c7b; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
option { background: #0e251b; color: var(--ink); }
textarea { resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(212, 189, 130, .45); border-color: var(--gold); }
input:disabled, select:disabled, textarea:disabled { background: var(--surface); color: var(--muted); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--gold); flex: none; }
input[type=file] { padding: 9px; }
input[type=date] { color-scheme: dark; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; }
.grow { flex: 1 1 220px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check span { font-size: .93rem; }
.form-narrow { max-width: 720px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 500; font-size: .86rem; padding: 0; margin-bottom: 8px; color: var(--ink-2); }
.choice-group { display: flex; flex-direction: column; gap: 8px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--gold); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--gold); }
.choice span { display: flex; flex-direction: column; }
.choice small { color: var(--muted); font-size: .84rem; }
.inline-form { display: inline; }
.inline-add { display: flex; gap: 8px; margin-bottom: 12px; }
.inline-edit { display: flex; gap: 6px; flex: 1; min-width: 0; }
.inline-edit input.narrow { width: 64px; flex: none; }
input.narrow { width: 80px; }
.otp { font-size: 1.5rem; letter-spacing: .5em; text-align: center; font-weight: 600; }
.toolbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.toolbar .filters { flex: 1 1 520px; }
.toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin: 0 0 14px; }
.filters .field { flex: 0 1 190px; }
.filters .field.grow { flex: 1 1 260px; }
.filters .btn { align-self: flex-end; }

/* ---------- messages ---------- */
.flashes { padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); }
.flash-ok { background: rgba(47, 122, 85, .22); border-color: rgba(111, 220, 164, .4); color: #c6f3dc; }
.flash-err { background: rgba(255, 141, 122, .12); border-color: rgba(255, 141, 122, .45); color: #ffc9be; }
.flash-info { background: rgba(212, 189, 130, .1); border-color: var(--line-2); color: var(--gold-2); }
.note { background: rgba(212, 189, 130, .09); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 16px; color: var(--ink-2); }
.empty { text-align: center; padding: 48px 16px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty h1, .empty h2 { margin-bottom: .3em; }
.success { display: flex; gap: 16px; align-items: flex-start; background: rgba(47, 122, 85, .22); border: 1px solid rgba(111, 220, 164, .4); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.success .ic { width: 40px; height: 40px; color: var(--good); stroke-width: 2; }
.success h1 { font-size: 1.35rem; margin-bottom: .2em; }
.success p { margin: 0; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(5, 15, 10, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 26px; min-height: var(--top-h); padding: 0 28px; max-width: 1560px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex: none; }
.brand-plate { display: inline-flex; align-items: center; background: var(--plate); border-radius: 12px; padding: 6px 12px; box-shadow: 0 0 0 1px rgba(212, 189, 130, .35); }
.brand-plate img { height: 40px; width: auto; max-width: 170px; object-fit: contain; }
.brand-fallback { font: 700 1.15rem var(--font); color: #0f3b29; letter-spacing: -.01em; padding: 4px 2px; }
.search { position: relative; flex: 1 1 320px; max-width: 760px; margin: 0 auto 0 0; }
.search .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--gold); pointer-events: none; }
.search input { padding-left: 46px; border-radius: 999px; background: var(--surface); border-color: var(--line-2); min-height: 48px; }
.bar-actions { display: flex; align-items: center; gap: 12px; flex: none; margin-left: auto; }
.cartlink { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--gold); border: 1px solid var(--line-2); background: var(--surface); }
.cartlink:hover { background: var(--surface-3); color: var(--gold-2); }
.cart-n, .tab-n { position: absolute; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--gold); color: var(--on-gold); font: 700 .7rem/19px var(--font); text-align: center; }
.cart-n { top: -4px; right: -4px; }
.cart-n[hidden], .tab-n[hidden] { display: none; }
.whoami { display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); text-decoration: none; color: #fff; }
.whoami:hover { background: var(--surface-3); color: #fff; }
.who-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--green); display: grid; place-items: center; color: var(--gold); }
.who-ic .ic { width: 18px; height: 18px; }
.who-t { display: flex; flex-direction: column; font-weight: 600; font-size: .88rem; line-height: 1.2; }
.who-t small { font-weight: 400; color: var(--muted); font-size: .72rem; }
.actbar { background: linear-gradient(90deg, #5d4a14, #7a6120); color: #fff; }
.actbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; padding-bottom: 6px; font-size: .9rem; max-width: 1560px; }
.actbar .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.actbar .btn-ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.actbar form { margin: 0; }

/* ---------- shell: content + right-hand menu ---------- */
.shell { display: grid; grid-template-columns: minmax(0, 1fr) var(--side-w); gap: 28px; max-width: 1560px; margin: 0 auto; padding: 0 28px; align-items: start; }
.shell-main { min-width: 0; padding-bottom: 20px; }
.shell-main .wrap { max-width: none; padding-left: 0; padding-right: 0; }
.shell-main .page { padding-top: 22px; padding-bottom: 22px; }
.sidenav { position: sticky; top: calc(var(--top-h) + 20px); margin: 22px 0; display: flex; flex-direction: column; gap: 16px; }
.sidenav nav { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 10px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.sidenav nav a { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .93rem; position: relative; }
.sidenav nav a .ic { color: var(--gold); width: 20px; height: 20px; }
.sidenav nav a:hover { background: var(--surface-2); color: #fff; }
.sidenav nav a.on { background: linear-gradient(90deg, rgba(212, 189, 130, .22), rgba(212, 189, 130, .06)); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.sidenav nav a.on::after { content: ""; position: absolute; right: -11px; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: var(--gold); }
.new-tag { margin-left: auto; font-style: normal; font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--gold); color: var(--on-gold); padding: 2px 8px; border-radius: 999px; }
.helpcard { background: linear-gradient(160deg, var(--surface-3), var(--surface)); border: 1px solid var(--line-2); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.helpcard b { font-size: 1.05rem; color: #fff; }
.helpcard p { color: var(--muted); font-size: .84rem; margin: 0 0 8px; }
.help-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--gold); margin-bottom: 4px; }
.help-phone { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .85rem; text-decoration: none; }
.help-phone .ic { width: 16px; height: 16px; }

.foot { background: #040d08; border-top: 1px solid var(--line); color: var(--ink-2); margin-top: 28px; padding-top: 38px; }
.foot .wrap { max-width: 1560px; padding: 0 28px; }
.foot a { color: var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 28px; }
.foot-brand { font: 700 1.25rem var(--font); color: #fff; margin-bottom: 6px; }
.foot p { margin: 0 0 .5em; }
.foot .muted { color: var(--muted); }
.foot-links { display: flex; flex-direction: column; gap: 6px; }
.foot-base { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 14px; padding-bottom: 20px; font-size: .84rem; color: var(--muted); }

.tabbar { display: none; }

/* ---------- home ---------- */
.hero { position: relative; overflow: hidden; border-radius: 26px; border: 1px solid var(--line-2); background: linear-gradient(120deg, #0b2a1e 0%, #123a29 55%, #1a4a35 100%); margin-top: 22px; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 20%, rgba(212, 189, 130, .22), transparent 65%), radial-gradient(500px 400px at 0% 100%, rgba(47, 122, 85, .35), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; padding: 52px 48px; }
.hero-copy { min-width: 0; }
.eyebrow { display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); line-height: 1.08; margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { font-size: 1.02rem; max-width: 34em; color: var(--ink-2); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 10px; }
.hero-art { position: relative; min-height: 280px; display: grid; place-items: center; }
.hero-art img { max-height: 340px; width: auto; border-radius: 20px; object-fit: cover; box-shadow: var(--shadow); }
.orb { position: relative; width: min(300px, 70%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(212, 189, 130, .4), rgba(36, 91, 64, .55) 55%, rgba(16, 44, 34, .9)); border: 1px solid var(--line-2); box-shadow: 0 0 80px rgba(212, 189, 130, .18), inset 0 0 40px rgba(0, 0, 0, .35); display: grid; place-items: center; }
.orb::before, .orb::after { content: ""; position: absolute; border-radius: 50%; border: 1px dashed rgba(212, 189, 130, .35); }
.orb::before { inset: -26px; }
.orb::after { inset: -56px; border-style: solid; border-color: rgba(212, 189, 130, .12); }
.orb > .ic { width: 96px; height: 96px; color: var(--gold); stroke-width: 1.1; }
.orb-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(5, 15, 10, .8); border: 1px solid var(--line-2); color: var(--ink); font-size: .78rem; font-weight: 500; white-space: nowrap; backdrop-filter: blur(6px); }
.orb-chip .ic { width: 16px; height: 16px; color: var(--gold); }
.orb-chip:nth-child(1) { top: 6%; left: -14%; }
.orb-chip:nth-child(2) { top: 40%; right: -22%; }
.orb-chip:nth-child(3) { bottom: 4%; left: -6%; }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 0; list-style: none; padding: 0; }
.perks li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: .85rem; line-height: 1.35; color: var(--ink-2); }
.perks .ic { color: var(--gold); width: 26px; height: 26px; }
.perks b { display: block; color: #fff; font-size: .88rem; }

.searchtabs { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px 20px; margin-top: 22px; }
.stabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.stabs button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); border-radius: 12px; font: 500 .88rem var(--font); cursor: pointer; min-height: 42px; }
.stabs button .ic { width: 18px; height: 18px; color: var(--gold); }
.stabs button[aria-selected=true] { background: var(--green); color: #fff; border-color: var(--gold); }
.sfilters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.sfilters.single { grid-template-columns: 1fr auto; }
.sfilters .btn { min-height: 46px; }

.acct-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.acct { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 22px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); transition: transform .15s, border-color .15s, background .15s; }
.acct:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--ink-2); background: var(--surface-2); }
.acct.primary { border-color: var(--gold); background: linear-gradient(160deg, var(--surface-3), var(--surface)); box-shadow: 0 0 0 1px rgba(212, 189, 130, .35), var(--shadow); }
.acct-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--green); color: var(--gold); display: grid; place-items: center; margin-bottom: 8px; }
.acct h3 { margin: 0; font-size: 1.15rem; }
.acct p { margin: 0 0 10px; font-size: .86rem; color: var(--muted); flex: 1; }
.acct .go { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; font-size: .88rem; }
.acct .go .ic { width: 18px; height: 18px; }
.acct-flag { position: absolute; top: 16px; right: 16px; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--gold); color: var(--on-gold); padding: 3px 10px; border-radius: 999px; }

.scroller { position: relative; }
.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 12px; scrollbar-width: thin; scrollbar-color: var(--green) transparent; }
.rail > * { scroll-snap-align: start; flex: none; }
.rail-ctl { display: flex; gap: 8px; }
.rail-ctl button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--gold); cursor: pointer; display: grid; place-items: center; padding: 0; min-height: 0; }
.rail-ctl button:hover { background: var(--surface-3); }
.rail-ctl .ic { width: 18px; height: 18px; }
.cat-tile { width: 200px; display: flex; flex-direction: column; gap: 4px; padding: 0 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); text-align: center; overflow: hidden; transition: transform .15s, border-color .15s, box-shadow .15s; }
.cat-tile:hover { transform: translateY(-4px); border-color: var(--gold); color: #fff; box-shadow: var(--shadow); }
.cat-cover { position: relative; display: grid; place-items: center; height: 124px; margin-bottom: 8px; overflow: hidden; background:
  radial-gradient(circle at 20% 15%, rgba(212, 189, 130, .28), transparent 45%),
  radial-gradient(circle at 85% 90%, rgba(111, 220, 164, .22), transparent 50%),
  linear-gradient(145deg, #1b4a35, #0d2a1e); }
.cat-cover::before { content: ""; position: absolute; width: 170px; height: 170px; border-radius: 50%; border: 1px dashed rgba(212, 189, 130, .3); right: -50px; top: -60px; }
.cat-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.cat-tile:hover .cat-cover img { transform: scale(1.06); }
.cat-cover.has-img::before { display: none; }
.cat-art { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(5, 15, 10, .55); border: 1px solid var(--line-2); color: var(--gold); box-shadow: 0 0 30px rgba(212, 189, 130, .22); }
.cat-art .ic { width: 38px; height: 38px; stroke-width: 1.5; }
.cat-tile b { font-size: .92rem; font-weight: 600; line-height: 1.3; padding: 0 12px; }
.cat-tile small { color: var(--muted); font-size: .76rem; }
.brand-tile { width: 190px; padding: 12px 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: #fff; font-weight: 600; text-align: center; display: flex; flex-direction: column; align-items: stretch; gap: 8px; transition: border-color .15s, transform .15s; }
.brand-tile:hover { border-color: var(--gold); transform: translateY(-3px); color: #fff; }
.brand-logo, .brand-name { display: grid; place-items: center; height: 84px; border-radius: 12px; }
.brand-logo { background: #fff; padding: 10px 14px; }
.brand-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.brand-name { background: var(--surface-3); border: 1px solid var(--line); font-size: 1.05rem; padding: 0 10px; }
.brand-tile small { color: var(--muted); font-weight: 400; font-size: .74rem; }
.tilegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.tilegrid .cat-tile, .tilegrid .brand-tile { width: auto; }
.tilegrid-brands { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.thumb-logo { background: #fff; display: grid; place-items: center; padding: 8px; }
.thumb-logo img { object-fit: contain; }
.thumb-xl.thumb-logo { min-height: 260px; padding: 40px; }
.hero-svg { width: 100%; max-width: 460px; height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); }
.img-li { flex-wrap: wrap; justify-content: flex-start; gap: 10px; background: rgba(255, 255, 255, .02); }
.catimg { width: 84px; height: 54px; border-radius: 10px; border: 1px dashed var(--line-2); overflow: hidden; display: grid; place-items: center; background: var(--bg-2); flex: none; }
.catimg img { width: 100%; height: 100%; object-fit: cover; }
.catimg-logo { background: #fff; }
.catimg-logo img { object-fit: contain; padding: 4px; }
.catimg small { color: var(--muted); font-size: .7rem; text-align: center; padding: 0 4px; line-height: 1.2; }

.offer-card { width: 320px; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 20px; background: linear-gradient(150deg, var(--surface-3), var(--surface)); border: 1px solid var(--line-2); position: relative; overflow: hidden; }
.offer-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 189, 130, .28), transparent 70%); }
.offer-badge { align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--on-gold); background: var(--gold); padding: 3px 10px; border-radius: 999px; }
.offer-card h3 { margin: 2px 0 0; font-size: 1.1rem; }
.offer-big { font-size: 1.7rem; font-weight: 700; color: var(--gold); line-height: 1.15; }
.offer-card p { margin: 0; color: var(--muted); font-size: .84rem; }
.offer-card .btn { align-self: flex-start; margin-top: 6px; }
.offers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.offers-grid .offer-card { width: auto; }

.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.why > div { padding: 22px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.why .acct-ic { width: 46px; height: 46px; border-radius: 14px; }
.why b { display: block; color: #fff; margin-bottom: 4px; }
.why p { margin: 0; font-size: .84rem; color: var(--muted); }

.about-band { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; padding: 34px 38px; border-radius: 24px; border: 1px solid var(--line-2); background: linear-gradient(120deg, #0f3324, #16422f); margin-top: 8px; }
.about-band h2 { font-size: 1.5rem; }
.about-band p { color: var(--ink-2); margin: 0 0 1em; max-width: 52ch; }
.about-art { display: grid; place-items: center; }
.about-art .brand-plate { padding: 16px 26px; }
.about-art .brand-plate img { height: 64px; max-width: 260px; }

.welcome { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.welcome h1 { margin-bottom: .1em; }
.welcome-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h2 { font-size: 1.08rem; }
.panel > :last-child { margin-bottom: 0; }
.big { font: 700 2rem/1.1 var(--font); color: var(--gold); margin: 0 0 4px; }
.big.bad { color: var(--bad); }
.rowlist { list-style: none; margin: 0; padding: 0; }
.rowlist li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.rowlist li:first-child { border-top: 0; }
.rowlist li > a { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.rowlist.tight li { padding: 8px 0; }
.edit-li { flex-wrap: wrap; }
.linkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.linkgrid a { display: flex; flex-direction: column; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); text-decoration: none; color: #fff; transition: border-color .15s, background .15s; }
.linkgrid a:hover { border-color: var(--gold); background: var(--surface-2); }
.linkgrid small { color: var(--muted); }
.linkgrid.compact { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.linkgrid.compact a { padding: 11px 14px; flex-direction: row; justify-content: space-between; align-items: center; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; color: var(--gold); background: var(--surface); font-size: .9rem; }
.chip-link:hover { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--surface-3); color: var(--gold-2); font-size: .78rem; font-weight: 600; }

/* ---------- product rows ---------- */
.prodlist { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prow { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto auto; gap: 8px 20px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); transition: background .15s; }
.prow:hover { background: var(--surface-2); }
.prow:first-child { border-top: 0; }
.prow-name { font-weight: 600; color: #fff; text-decoration: none; display: block; }
.prow-name:hover { color: var(--gold); }
.prow-meta { font-size: .82rem; color: var(--muted); }
.prow-price { display: flex; flex-direction: column; align-items: flex-end; min-width: 140px; line-height: 1.3; }
.prow-price small { color: var(--muted); font-size: .74rem; text-align: right; }
.price { font: 700 1.2rem var(--font); color: var(--gold); font-variant-numeric: tabular-nums; }
.price-xl { font-size: 2rem; }
.price-na { color: var(--muted); font-weight: 600; }
.mrp { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .35); }
.stock-out { color: var(--bad); font-weight: 600; font-size: .82rem; }
.addform { display: flex; gap: 8px; align-items: center; }
.thumb { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; display: block; background: var(--surface-3); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-empty { display: grid; place-items: center; font: 700 1.6rem var(--font); color: var(--gold); background: linear-gradient(135deg, var(--surface-3), var(--green)); }
.thumb-xl { width: 100%; height: 100%; min-height: 260px; border-radius: 0; font-size: 5rem; border: 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); overflow: hidden; }
.qty button { width: 36px; height: 42px; border: 0; background: transparent; font-size: 1.2rem; color: var(--gold); cursor: pointer; }
.qty button:hover { background: var(--surface-3); }
.qty input { width: 54px; min-height: 42px; border: 0; border-radius: 0; text-align: center; padding: 0; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 22px 0 0; }
.pager a { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 10px; text-decoration: none; background: var(--surface); min-width: 40px; text-align: center; color: var(--ink-2); }
.pager a.on { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }

.pdp { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; align-items: start; }
.pdp-main { background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; aspect-ratio: 1 / 1; display: grid; }
.pdp-main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.pdp-t { width: 72px; height: 72px; padding: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; min-height: 0; }
.pdp-t img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { margin-bottom: .2em; }
.pdp-price { display: flex; flex-direction: column; margin: 14px 0; }
.pdp-act { margin: 18px 0; }
.offers { background: rgba(212, 189, 130, .09); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 14px; color: var(--ink-2); }
.offers ul { margin: 6px 0 0; padding-left: 1.2em; }
.prose { max-width: 62ch; }

/* ---------- cart / checkout / order ---------- */
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.cart-lines { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cline { display: grid; grid-template-columns: minmax(0, 1fr) auto 120px; gap: 14px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); }
.cline:first-of-type { border-top: 0; }
.cline-info { display: flex; flex-direction: column; gap: 2px; }
.cline-info a { text-decoration: none; color: #fff; }
.cline-total { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.has-problem { background: rgba(255, 141, 122, .08); }
.cart-tools { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--bg-2); border-radius: 0 0 var(--radius) var(--radius); }
.summary { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px; position: sticky; top: calc(var(--top-h) + 20px); display: flex; flex-direction: column; gap: 12px; }
.summary h2 { margin: 0; font-size: 1.08rem; }
.summary > p { margin: 0; }
.totals { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals .grand { border-top: 1px solid var(--line-2); padding-top: 10px; margin-top: 4px; font-weight: 700; font-size: 1.15rem; }
.totals .grand dt { color: #fff; }
.totals .grand dd { color: var(--gold); }
.totals .good dt, .totals .good dd { color: var(--good); }
.codeform { display: flex; flex-direction: column; gap: 6px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 14px 36px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; margin-bottom: 20px; }
.meta-row small { display: block; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line-2); display: flex; flex-direction: column; gap: 14px; }
.timeline li { position: relative; display: flex; flex-direction: column; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--surface); }

.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.st-placed, .cs-pending, .ms-pending { background: rgba(240, 207, 122, .16); color: var(--warn); }
.st-confirmed { background: rgba(120, 180, 240, .16); color: #9cc9f5; }
.st-packed { background: rgba(170, 150, 240, .16); color: #c3b5f7; }
.st-dispatched { background: rgba(100, 210, 220, .16); color: #7fdbe4; }
.st-delivered, .cs-active, .ms-sent, .ms-delivered, .ms-read { background: rgba(111, 220, 164, .16); color: var(--good); }
.st-cancelled, .cs-blocked, .ms-failed { background: rgba(255, 141, 122, .16); color: var(--bad); }
.ms-disabled { background: var(--surface-3); color: var(--muted); }

/* ---------- tables ---------- */
.tablewrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .76rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--gold); padding: 13px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table th.num { text-align: right; }
.table td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.table tbody tr:first-child td { border-top: 0; }
.table tbody tr:hover td { background: rgba(255, 255, 255, .02); }
.table tfoot td { border-top: 2px solid var(--line-2); background: var(--bg-2); }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions .btn { margin-left: 4px; }
.table a { color: var(--gold); }

/* ---------- auth ---------- */
.auth { display: flex; justify-content: center; padding-top: 30px; padding-bottom: 30px; }
.auth-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.auth-wide .auth-card { max-width: 700px; }
.auth-card h1 { font-size: 1.6rem; }
.auth-alt { text-align: center; margin: 18px 0 0; color: var(--muted); }
.auth-alt form { margin: 0; }

/* ---------- admin ---------- */
.admin { background: var(--bg); }
.adm { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.adm-side { background: #040d08; border-right: 1px solid var(--line); color: var(--ink-2); padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.adm-side .brand { padding: 4px 6px 10px; }
.adm-side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.adm-side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .92rem; }
.adm-side nav a .ic { color: var(--gold); width: 20px; height: 20px; }
.adm-side nav a:hover { background: var(--surface-2); color: #fff; }
.adm-side nav a.on { background: linear-gradient(90deg, rgba(212, 189, 130, .22), rgba(212, 189, 130, .06)); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.adm-user { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.adm-user b { color: #fff; display: block; }
.adm-user small { color: var(--muted); }
.adm-user form { margin: 0; }
.adm-out { background: none; border: 0; padding: 6px 0; color: var(--gold); font: inherit; text-align: left; cursor: pointer; text-decoration: underline; width: auto; display: block; min-height: 0; }
.adm-main { min-width: 0; }
.adm-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 28px; background: rgba(5, 15, 10, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.adm-top h1 { margin: 0; font-size: 1.4rem; }
.adm-top-r { display: flex; gap: 8px; align-items: center; }
.adm-content { padding: 24px 28px 48px; max-width: 1280px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
a.kpi:hover { border-color: var(--gold); }
.kpi small { color: var(--muted); }
.kpi b { font: 700 1.6rem/1.1 var(--font); color: var(--gold); font-variant-numeric: tabular-nums; }
.kpi.alert { border-color: var(--gold); background: rgba(212, 189, 130, .08); }
.menugrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.menugrid a { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: #fff; font-weight: 600; }
.menugrid a .ic { color: var(--gold); }
.menugrid a:hover { border-color: var(--gold); }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; background: var(--surface); color: var(--ink-2); }
.tabs a.on { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.ticket { margin-bottom: 14px; }
.ticket-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.imggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.imgcell { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.imgcell img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.plain { padding-left: 1.2em; margin: 0 0 1em; }
.plain li { margin-bottom: .5em; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--gold); color: var(--on-gold); font-weight: 600; padding: 12px 22px; border-radius: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; max-width: calc(100vw - 32px); box-shadow: 0 8px 28px rgba(0,0,0,.45); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--bad); color: #2a0b05; }

/* ---------- invoice (always white for printing) ---------- */
.invoice-page { background: #fff; color: #12231b; }
.invoice-page h1, .invoice-page h2, .invoice-page h3 { color: #0e3b2b; }
.invoice-page .muted { color: #566b60; }
.invoice-page a { color: #0e3b2b; }
.invoice-page .btn { background: #0e3b2b; border-color: #0e3b2b; color: #fff; }
.invoice-page .btn-ghost { background: transparent; color: #0e3b2b; border-color: #b9d3c6; }
.inv { max-width: 900px; margin: 0 auto; padding: 24px; }
.inv-actions { display: flex; gap: 10px; margin-bottom: 20px; }
.inv-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid #0e3b2b; padding-bottom: 14px; }
.inv-head h1 { font-size: 1.5rem; margin-bottom: .2em; }
.inv-head p, .inv-parties p { margin: 0 0 .2em; }
.inv-meta { text-align: right; }
.inv-meta h2 { font-size: 1.2rem; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 18px 0; }
.inv-parties small { color: #566b60; }
.inv-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.inv-table th, .inv-table td { border: 1px solid #b9d3c6; padding: 7px 8px; text-align: left; vertical-align: top; }
.inv-table th { background: #f0fcf7; }
.inv-table .num { text-align: right; }
.inv-totals { margin-left: auto; width: 320px; max-width: 100%; margin-top: 16px; }
.invoice-page .totals dt { color: #566b60; }
.invoice-page .totals dd, .invoice-page .totals .grand dt { color: #12231b; }
.invoice-page .totals .grand { border-color: #b9d3c6; }
.inv-foot { margin-top: 24px; color: #566b60; font-size: .85rem; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .shell { --side-w: 236px; gap: 20px; padding: 0 20px; }
  .bar { padding: 0 20px; gap: 18px; }
  .hero-grid { padding: 40px 32px; }
  .why { grid-template-columns: 1fr 1fr; }
  .perks { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1000px) {
  .shell { grid-template-columns: minmax(0, 1fr); padding: 0 16px; }
  .sidenav { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding: 34px 24px; }
  .hero-art { min-height: 0; margin-top: 6px; }
  .orb { width: 190px; }
  .orb-chip { display: none; }
  .cart-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .split { grid-template-columns: 1fr; }
  .pdp { grid-template-columns: 1fr; gap: 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .about-band { grid-template-columns: 1fr; padding: 26px 22px; }
  .sfilters { grid-template-columns: 1fr 1fr; }
  .sfilters .btn { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 16px; }
  .foot .wrap { padding: 0 16px; }
  :root { --top-h: 64px; }
  .bar { flex-wrap: wrap; gap: 8px 12px; min-height: 0; padding: 10px 16px; }
  .bar-actions { order: 2; margin-left: auto; }
  .whoami .who-t { display: none; }
  .whoami { padding: 5px; }
  .bar-actions .btn-ghost { display: none; }
  .search { order: 3; flex: 1 1 100%; max-width: none; margin: 0; }
  .search input { min-height: 44px; }
  .brand-plate img { height: 32px; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(5, 15, 10, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-2); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--tab-h); color: var(--muted); text-decoration: none; font-size: .68rem; font-weight: 500; position: relative; }
  .tabbar a.on { color: var(--gold); }
  .tabbar a.on::before { content: ""; position: absolute; top: 0; width: 30px; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
  .tab-n { top: 7px; left: calc(50% + 6px); }
  .toast { bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom)); }
  .foot { margin-top: 20px; }
  .foot-grid { grid-template-columns: 1fr; gap: 18px; }
  .page, .shell-main .page { padding-top: 16px; }
  .hero { border-radius: 20px; margin-top: 16px; }
  .hero h1 { font-size: 2rem; }
  .acct-grid { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
  .stabs button { flex: 1; justify-content: center; padding: 10px 8px; font-size: .78rem; }
  .stabs button .ic { display: none; }
  .searchtabs { padding: 14px; }
  .rail-ctl { display: none; }
  .cat-tile { width: 156px; }
  .cat-cover { height: 100px; }
  .brand-tile { width: 150px; }
  .tilegrid { grid-template-columns: 1fr 1fr; gap: 12px; }

  .prow { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "img info" "img price" "act act"; gap: 4px 12px; padding: 14px; }
  .prow-img { grid-area: img; }
  .prow-info { grid-area: info; }
  .prow-price { grid-area: price; align-items: flex-start; min-width: 0; }
  .prow-price small { text-align: left; }
  .prow-act { grid-area: act; margin-top: 6px; }
  .prow-act .addform { width: 100%; }
  .prow-act .addform .btn { flex: 1; }
  .prow-act > .btn, .prow-act > a.btn { width: 100%; }
  .thumb { width: 64px; height: 64px; }

  .cline { grid-template-columns: 1fr auto; grid-template-areas: "info info" "qty total"; }
  .cline-info { grid-area: info; }
  .cline .qty { grid-area: qty; justify-self: start; }
  .cline-total { grid-area: total; }
  .grid2 { grid-template-columns: 1fr; }
  .filters .field, .filters .field.grow { flex: 1 1 100%; }
  .filters .btn { flex: 1 1 100%; }
  .auth { padding-top: 14px; }
  .auth-card { padding: 24px 18px; }
  .meta-row { gap: 12px 24px; padding: 14px 16px; }

  .adm { grid-template-columns: 1fr; }
  .adm-side { display: none; }
  .adm-top { padding: 14px 16px; }
  .adm-top h1 { font-size: 1.2rem; }
  .adm-content { padding: 16px 16px 32px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi b { font-size: 1.3rem; }

  /* tables become stacked cards */
  .tablewrap { background: transparent; border: 0; overflow: visible; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table tbody tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; padding: 6px 14px; }
  .table td { border: 0; padding: 7px 0; display: flex; justify-content: space-between; gap: 16px; text-align: right; }
  .table td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: .8rem; font-weight: 500; text-align: left; flex: none; }
  .table td.num { text-align: right; }
  .table td.actions { justify-content: flex-end; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px; }
  .table tbody tr:first-child td { border-top: 0; }
  .table tbody tr:hover td { background: transparent; }
  .table tfoot, .table tfoot tr, .table tfoot td { display: block; width: 100%; }
  .table tfoot tr { background: var(--surface-2); border-radius: var(--radius); padding: 8px 14px; display: flex; justify-content: space-between; flex-wrap: wrap; }
  .table tfoot td { width: auto; border: 0; background: transparent; padding: 4px 8px; }
  .inv-table { font-size: .75rem; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 1.75rem; }
  .imggrid { grid-template-columns: 1fr 1fr; }
  .sfilters { grid-template-columns: 1fr; }
  .offer-card { width: 280px; }
}

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

@media print {
  .no-print, .topbar, .tabbar, .foot, .sidenav { display: none !important; }
  body, .invoice-page { background: #fff; padding: 0; color: #000; }
  .inv { padding: 0; max-width: none; }
  .tablewrap { border: 0; }
}

[hidden] { display: none !important; }

/* ---------- policies ---------- */
.foot-policies { display: flex; flex-wrap: wrap; gap: 6px 18px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; font-size: .82rem; }
.foot-policies a { color: var(--muted); text-decoration: none; }
.foot-policies a:hover { color: var(--gold); text-decoration: underline; }
.foot-policies + .foot-base { border-top: 0; margin-top: 0; }
.policy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 16px; }
.policy-card { text-decoration: none; color: var(--ink-2); transition: border-color .15s, transform .15s; }
.policy-card:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--ink-2); }
.policy-card h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 1rem; }
.policy-card h3 .ic { width: 18px; height: 18px; color: var(--gold); }
.policy-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.policy { max-width: 78ch; }
.policy h2 { font-size: 1.05rem; margin: 1.4em 0 .4em; color: var(--gold-2); }
.policy h2:first-child { margin-top: 0; }
.policy ul { padding-left: 1.2em; }
.policy li { margin-bottom: .4em; }

/* ---------- staff order sheet ---------- */
.sheet { max-height: none; }
.qtyin { width: 96px; text-align: right; min-height: 40px; padding: 6px 10px; }
#sheetTable tbody tr.picked td { background: rgba(212, 189, 130, .1); }
.sheet-filters { align-items: center; }
.sheetbar { position: sticky; bottom: 0; z-index: 15; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 18px; background: rgba(5, 15, 10, .94); backdrop-filter: blur(10px); border: 1px solid var(--line-2); border-radius: 16px; }
.sheetbar .btn { flex: none; }
@media (max-width: 860px) {
  .sheetbar { bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 6px); }
  .qtyin { width: 110px; }
}
