/* HAJEX Market — design system
   Brand from hajex.com: iron #111111, HAJEX red #E11B22, Outfit (UI) + Roboto Condensed (display, prices).
   Breakpoints: 640 (sm) · 768 (md) · 1024 (lg) · 1280 (xl). Mobile first. */

@font-face { font-family: "Outfit"; src: url("/assets/fonts/outfit-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url("/assets/fonts/roboto-condensed-latin-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url("/assets/fonts/roboto-condensed-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --iron: #111111;
  --iron-2: #232427;
  --red: #E11B22;
  --red-press: #C21118;
  --red-tint: #FDEBEC;
  --page: #F4F5F7;
  --surface: #FFFFFF;
  --surface-2: #F0F1F3;
  --plate: #F6F6F7;
  --line: #E3E5E9;
  --line-strong: #C8CCD2;
  --text: #141518;
  --text-2: #4D525A;
  --text-3: #6B7079;
  --green: #127A48;
  --green-tint: #E5F3EB;
  --amber: #8A5300;
  --amber-tint: #FFF2D6;
  --focus: #2563EB;
  --f-body: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-display: "Roboto Condensed", "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(17,17,17,.06);
  --sh-2: 0 10px 30px -12px rgba(17,17,17,.28);
  --sh-3: 0 -10px 40px rgba(17,17,17,.18);
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 56px;
  --tabbar-h: 62px;
  /* Phone edges (notch, status bar, home bar). The HAJEX FIT app may also set --app-inset-top / --app-inset-bottom on <html> */
  --safe-t: max(env(safe-area-inset-top, 0px), var(--app-inset-top, 0px));
  --safe-b: max(env(safe-area-inset-bottom, 0px), var(--app-inset-bottom, 0px));
}
@media (min-width: 768px) { :root { --header-h: 60px; } }
@media (min-width: 1024px) { :root { --header-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  font: 400 16px/1.5 var(--f-body); color: var(--text); background: var(--page);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
body.has-tabbar { padding-bottom: calc(var(--tabbar-h) + var(--safe-b)); }
body.has-actionbar { padding-bottom: calc(76px + var(--safe-b)); }
@media (min-width: 1024px) { body.has-tabbar, body.has-actionbar { padding-bottom: 0; } }
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-press); }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -.005em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(225,27,34,.18); }
.num, .tab { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 24px; height: 24px; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 760px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 14px; }
.xs { font-size: 13px; }
.stack { display: grid; gap: 16px; }
.stack-sm { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spacer { flex: 1; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { top: calc(12px + var(--safe-t)); box-shadow: var(--sh-2); }
.display { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .005em; line-height: .96; }

/* ---------- preview banner ---------- */
.preview { background: var(--amber-tint); color: #5C3900; font-size: 13px; line-height: 1.35; }
.preview .wrap { display: flex; gap: 8px; align-items: center; padding-block: 7px; }
.preview .i { width: 16px; height: 16px; color: var(--amber); }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--iron); color: #fff; }
.hdr .wrap { height: var(--header-h); display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: none; }
.brand:hover { color: #fff; }
.brand img { height: 15px; width: auto; }
.brand span { font-weight: 500; font-size: 16px; letter-spacing: .01em; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.3); line-height: 18px; }
@media (min-width: 1024px) { .brand img { height: 17px; } .brand span { font-size: 17px; } }
.hdr-search { display: none; flex: 1; max-width: 440px; margin-left: 8px; position: relative; }
.hdr-search input { width: 100%; height: 40px; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: #fff; padding: 0 16px 0 42px; font-size: 15px; transition: background .15s, border-color .15s; }
.hdr-search input::placeholder { color: rgba(255,255,255,.62); }
.hdr-search input:focus { outline: none; background: #fff; color: var(--text); border-color: #fff; }
.hdr-search input:focus::placeholder { color: var(--text-3); }
.hdr-search .i { position: absolute; left: 14px; top: 10px; color: rgba(255,255,255,.7); pointer-events: none; }
.hdr-search input:focus + .i, .hdr-search:focus-within .i { color: var(--text-3); }
@media (min-width: 768px) { .hdr-search { display: block; } .page-browse .hdr-search { display: none; } }
.hdr-nav { display: none; align-items: center; gap: 2px; margin-left: auto; }
.hdr-nav a { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: var(--r-sm); color: rgba(255,255,255,.86); text-decoration: none; font-size: 15px; font-weight: 500; }
.hdr-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.hdr-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.12); }
.hdr-nav .btn { margin-left: 8px; }
@media (min-width: 1024px) { .hdr-nav { display: flex; } }
.hdr-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
@media (min-width: 1024px) { .hdr-tools { margin-left: 4px; } .hdr-tools .only-mobile { display: none; } }
@media (min-width: 768px) { .hdr-tools .only-phone { display: none; } }
.hdr-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill); color: #fff; background: transparent; border: 0; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.hdr-icon:hover { background: rgba(255,255,255,.1); color: #fff; }
.count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.hdr-nav .count { margin-left: 2px; }

/* ---------- bottom tab bar (phones, tablets) ---------- */
.tabbar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 6px calc(6px + var(--safe-b)); background: rgba(255,255,255,.94); border-top: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); }
.tabbar a { position: relative; display: grid; justify-items: center; gap: 3px; padding: 4px 0; color: var(--text-3); text-decoration: none; font-size: 11.5px; font-weight: 500; border-radius: var(--r-md); }
.tabbar a[aria-current="page"] { color: var(--iron); }
.tabbar a[aria-current="page"] .i { stroke-width: 2.1; }
.tabbar .i { width: 24px; height: 24px; }
.tabbar .sell .i { width: 28px; height: 28px; padding: 4px; border-radius: 9px; background: var(--red); color: #fff; stroke-width: 2.4; margin-block: -2px; }
.tabbar .count { position: absolute; top: 0; left: calc(50% + 6px); border: 2px solid #fff; height: 20px; }
@media (min-width: 1024px) { .tabbar { display: none; } }
.no-tabbar .tabbar { display: none; }
/* Inside the HAJEX FIT app (?app=1): the app has its own bottom bar, so the market's tabs sit at the top */
/* The app shows pages edge to edge: the tabs start below the status bar and camera notch, and sticky bars line up under them */
html.in-app { --tabbar-h: 64px; --header-h: var(--app-bar-h, calc(var(--tabbar-h) + var(--safe-t))); }
body.in-app { padding: var(--header-h) env(safe-area-inset-right, 0px) var(--safe-b) env(safe-area-inset-left, 0px); }
body.in-app.has-actionbar { padding-bottom: calc(76px + var(--safe-b)); }
@media (min-width: 1024px) { body.in-app.has-actionbar { padding-bottom: var(--safe-b); } }
body.in-app .tabbar { top: 0; bottom: auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; grid-template-columns: none; padding: calc(6px + var(--safe-t)) calc(6px + env(safe-area-inset-right, 0px)) 6px calc(6px + env(safe-area-inset-left, 0px)); border-top: 0; border-bottom: 1px solid var(--line); }
body.in-app .tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 16px; }
body.in-app .tabbar .count { top: 0; }
@media (max-width: 374px) { body.in-app .tabbar a { font-size: 10.5px; letter-spacing: -.1px; } }
body.in-app .tabbar .to-fit { color: var(--iron); font-weight: 600; }
body.in-app .toast { bottom: calc(16px + var(--safe-b)); }
body.in-app.has-actionbar .toast { bottom: calc(86px + var(--safe-b)); }
body.in-app .preview { font-size: 12px; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid transparent; background: var(--surface); color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.1; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .08s; -webkit-tap-highlight-color: transparent; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-press); color: #fff; }
.btn-dark { background: var(--iron); color: #fff; }
.btn-dark:hover { background: var(--iron-2); color: #fff; }
.btn-outline { background: var(--surface); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--iron); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--surface); border-color: #F1B5B7; color: var(--red-press); }
.btn-danger:hover { background: var(--red-tint); color: var(--red-press); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.btn-sm.btn-icon { width: 36px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.link-btn:hover { color: var(--red-press); }

/* ---------- form controls ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.label { font-size: 14px; font-weight: 600; color: var(--text); }
.label .opt { font-weight: 400; color: var(--text-3); }
.hint { font-size: 13px; color: var(--text-3); line-height: 1.4; }
.err { font-size: 13px; color: var(--red-press); font-weight: 500; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background-color: var(--surface); color: var(--text); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.textarea { padding: 12px 14px; line-height: 1.45; resize: vertical; min-height: 112px; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%234D525A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input:hover, .select:hover, .textarea:hover { border-color: #AEB3BA; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--iron); box-shadow: 0 0 0 3px rgba(17,17,17,.1); }
.input[aria-invalid="true"] { border-color: var(--red); }
.input::placeholder, .textarea::placeholder { color: #9AA0A8; }
.input-affix { position: relative; display: flex; align-items: center; }
.input-affix > span { position: absolute; left: 14px; color: var(--text-2); font-weight: 500; pointer-events: none; }
.input-affix .input { padding-left: 30px; }
.input-affix .suffix { left: auto; right: 14px; font-size: 14px; color: var(--text-3); }
.input-affix .input:has(+ .suffix) { padding-right: 56px; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--iron); }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: var(--r-md); background: var(--surface-2); max-width: 100%; }
.seg label { position: relative; display: grid; place-items: center; min-height: 40px; padding: 0 14px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--text-2); cursor: pointer; text-align: center; line-height: 1.2; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 1px; }
.seg-block { display: grid; }
.cards { display: grid; gap: 10px; }
.choice { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.choice:hover { border-color: #AEB3BA; }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--iron); }
.choice b { display: block; font-weight: 600; }
.choice small { display: block; color: var(--text-2); font-size: 13.5px; line-height: 1.4; margin-top: 2px; }
.choice:has(input:checked) { border-color: var(--iron); box-shadow: 0 0 0 1px var(--iron); }
.choice:has(input:disabled) { opacity: .55; cursor: not-allowed; }

/* ---------- chips, badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: var(--iron); color: var(--text); }
.chip.is-on { background: var(--iron); border-color: var(--iron); color: #fff; }
.chip .x { margin-right: -4px; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; line-height: 1; white-space: nowrap; background: var(--surface-2); color: var(--text); }
.badge .i { width: 14px; height: 14px; }
.badge-like_new, .badge-ok { background: var(--green-tint); color: var(--green); }
.badge-good { background: #EDEEF1; color: #2A2D33; }
.badge-fair, .badge-warn { background: var(--amber-tint); color: var(--amber); }
.badge-red { background: var(--red-tint); color: var(--red-press); }
.badge-dark { background: var(--iron); color: #fff; }
.badge-line { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-2); }
.verified { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; color: var(--green); }
.verified .i { width: 16px; height: 16px; }
.verified.is-hajex { color: var(--iron); }
.verified.is-clearance { color: var(--red); }

/* ---------- flash + toast ---------- */
.flashes { display: grid; gap: 8px; padding-top: 16px; }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); font-size: 14.5px; background: var(--surface); border: 1px solid var(--line); }
.flash .i { margin-top: 1px; }
.flash.ok { background: var(--green-tint); border-color: #BFE3CD; color: #0D5A35; }
.flash.warn { background: var(--amber-tint); border-color: #F2D9A2; color: #5C3900; }
.flash.bad { background: var(--red-tint); border-color: #F5C2C4; color: #8E0E13; }
.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(16px + var(--safe-b)); transform: translate(-50%, 0); max-width: min(92vw, 460px); padding: 12px 16px; border-radius: var(--r-md); background: var(--iron); color: #fff; font-size: 14.5px; box-shadow: var(--sh-2); animation: toast-in .22s ease-out; }
.has-tabbar .toast { bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px); }
.has-actionbar .toast { bottom: calc(86px + var(--safe-b)); }
@media (min-width: 1024px) { .toast, .has-tabbar .toast, .has-actionbar .toast { bottom: 24px; } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- sheets / dialogs ---------- */
.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 100%; max-height: 92dvh; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--surface); color: var(--text); box-shadow: var(--sh-3); overflow: auto; overscroll-behavior: contain; }
.sheet::backdrop { background: rgba(10,10,11,.5); backdrop-filter: blur(2px); }
.sheet[open] { animation: sheet-up .24s cubic-bezier(.2,.8,.2,1); }
@keyframes sheet-up { from { transform: translateY(24px); opacity: .4; } }
.sheet-in { padding: 8px 20px calc(20px + var(--safe-b)); display: grid; gap: 16px; }
.sheet-grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 4px auto 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-head h2 { font-size: 19px; }
.sheet-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sheet-actions .btn { flex: 1; }
@media (min-width: 640px) {
  .sheet { margin: auto; width: min(520px, calc(100vw - 48px)); border-radius: var(--r-lg); }
  .sheet[open] { animation-name: sheet-pop; }
  .sheet-grab { display: none; }
  .sheet-in { padding: 22px 24px 24px; }
  .sheet-actions .btn { flex: 0 0 auto; }
  .sheet-actions { justify-content: flex-end; }
}
@keyframes sheet-pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }

/* ---------- hero (home) ---------- */
.hero { background: var(--iron); color: #fff; padding: 28px 0 76px; overflow: hidden; }
.hero h1 { font-size: clamp(38px, 9.6vw, 72px); max-width: 16ch; }
.hero-lead { margin-top: 14px; max-width: 44ch; font-size: 17px; line-height: 1.5; color: #C9CCD2; }
.hero-search { margin-top: 22px; display: grid; gap: 10px; max-width: 760px; }
.hero-search .input, .hero-search .select { border: 0; min-height: 52px; }
.hero-search .q { position: relative; }
.hero-search .q .i { position: absolute; left: 16px; top: 16px; color: var(--text-3); pointer-events: none; }
.hero-search .q .input { padding-left: 46px; }
.hero-search .two { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.hero-search .btn { min-height: 52px; padding: 0 24px; }
/* Used / Certified / Clearance switch, on the dark hero */
.kinds { display: flex; gap: 8px; margin-top: 18px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.kinds::-webkit-scrollbar { display: none; }
.kinds .chip { background: transparent; border-color: rgba(255, 255, 255, .28); color: #fff; }
.kinds .chip:hover { border-color: #fff; color: #fff; }
.kinds .chip.is-on { background: #fff; border-color: #fff; color: var(--iron); }
.hero-lead a { color: #fff; }
@media (min-width: 768px) {
  .hero { padding: 44px 0 92px; }
  .hero-search { grid-template-columns: 1fr auto; gap: 0; background: #fff; border-radius: var(--r-md); padding: 6px; }
  .hero-search .input, .hero-search .select { min-height: 48px; }
  .hero-search .q .i { top: 14px; }
  .hero-search .two { grid-template-columns: 200px auto; gap: 6px; }
  .hero-search .two .select { border-left: 1px solid var(--line); border-radius: 0; }
  .hero-search .btn { min-height: 48px; }
}
.hero-facts { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: #D5D8DD; font-size: 14.5px; }
.hero-facts li { display: flex; gap: 8px; align-items: center; }
.hero-facts .i { color: #fff; width: 18px; height: 18px; }
@media (min-width: 768px) { .hero-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; } }

.hero-feat { display: none; }
@media (min-width: 1024px) {
  .hero:not(.is-compact) .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: 56px; align-items: center; }
  .hero:not(.is-compact) .wrap > * { grid-column: 1; }
  .hero:not(.is-compact) h1 { max-width: none; font-size: clamp(56px, 5.4vw, 76px); }
  .hero .wrap > .hero-feat { display: block; grid-column: 2; grid-row: 1 / span 4; position: relative; align-self: stretch; min-height: 380px; border-radius: var(--r-lg); background: var(--plate); overflow: hidden; color: var(--text); text-decoration: none; }
  .hero-feat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 7% 7% 22%; mix-blend-mode: multiply; transition: transform .4s ease; }
  .hero-feat.is-photo img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
  .hero-feat:hover img { transform: scale(1.025); }
  .hero-feat .tag { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 2px; padding: 12px 16px; border-radius: var(--r-md); background: #fff; box-shadow: var(--sh-2); }
  .hero-feat .tag b { font-family: var(--f-display); font-weight: 700; font-size: 30px; line-height: 1; }
  .hero-feat .tag span { font-size: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero-feat .tag span:nth-of-type(1) { color: var(--text); font-weight: 500; font-size: 15px; margin-top: 4px; }
}
/* compact hero for category, city and search results */
.hero.is-compact { padding: 22px 0 72px; }
.hero.is-compact h1 { font-size: clamp(30px, 6vw, 48px); max-width: none; }
.hero.is-compact .hero-search { margin-top: 16px; }
@media (min-width: 768px) { .hero.is-compact { padding: 30px 0 84px; } }

/* ---------- category rail ---------- */
.cats { margin-top: -50px; position: relative; z-index: 2; }
.cats-track { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 2px var(--gutter) 6px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
.cats-track::-webkit-scrollbar { display: none; }
.cat { scroll-snap-align: start; display: grid; gap: 8px; padding: 8px 8px 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); box-shadow: var(--sh-1); transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat-img { aspect-ratio: 1; border-radius: 7px; background: var(--plate); display: grid; place-items: center; overflow: hidden; }
.cat-img img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; }
.cat-all .cat-img { background: var(--iron); color: #fff; }
.cat-all .cat-img .i { width: 34px; height: 34px; stroke-width: 1.5; }
.cat b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; padding-inline: 2px; }
.cat small { display: block; font-size: 12.5px; color: var(--text-3); padding-inline: 2px; margin-top: 2px; }
.cat:hover { color: var(--text); border-color: var(--line-strong); }
.cat[aria-current="true"] { border-color: var(--iron); box-shadow: 0 0 0 1px var(--iron); }
@media (hover: hover) { .cat:hover { transform: translateY(-2px); box-shadow: var(--sh-2); } }
@media (min-width: 1024px) {
  .cats-track { grid-auto-columns: minmax(0, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
}

/* ---------- results toolbar ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 22px 0 14px; }
.toolbar h2 { font-size: 20px; }
.toolbar .count-line { color: var(--text-2); font-size: 14.5px; }
.toolbar .tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
a.tools { color: var(--text-2); font-weight: 500; }
.toolbar .select { width: auto; min-height: 40px; font-size: 14.5px; padding-left: 12px; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.only-lg { display: none !important; }
@media (min-width: 1024px) { .only-lg { display: inline-flex !important; } .hide-lg { display: none !important; } }

/* ---------- listing cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.lc { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .2s; }
.lc:hover { color: var(--text); }
@media (hover: hover) { .lc:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); } .lc:hover .lc-media img { transform: scale(1.03); } }
.lc-media { position: relative; aspect-ratio: 1; background: var(--plate); overflow: hidden; }
.lc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.lc-media.is-cut img { object-fit: contain; padding: 9%; mix-blend-mode: multiply; }
.lc-flag { position: absolute; left: 8px; top: 8px; }
.lc-get { position: absolute; left: 8px; bottom: 8px; display: inline-flex; gap: 5px; align-items: center; height: 26px; padding: 0 9px 0 7px; border-radius: var(--r-pill); background: rgba(255,255,255,.92); backdrop-filter: blur(6px); font-size: 12px; font-weight: 600; color: var(--text); box-shadow: var(--sh-1); }
.lc-get .i { width: 15px; height: 15px; }
.lc-photos { position: absolute; right: 8px; bottom: 8px; display: inline-flex; gap: 4px; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--r-pill); background: rgba(17,17,17,.72); color: #fff; font-size: 12px; font-weight: 600; }
.lc-photos .i { width: 13px; height: 13px; }
.lc-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; flex: 1; }
.lc-title { font-size: 14.5px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.lc-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.lc-price b { font-family: var(--f-display); font-weight: 700; font-size: 23px; line-height: 1; letter-spacing: .005em; }
.lc-price s { font-size: 13px; color: var(--text-3); }
.lc-price .save { font-size: 12.5px; font-weight: 700; color: var(--red-press); }
.lc-price .units { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.lc-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); margin-top: auto; min-width: 0; }
.lc-meta span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.lc-meta .city { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-meta .age { margin-left: auto; color: var(--text-3); flex: none; }
.lc-meta .i { width: 14px; height: 14px; flex: none; }
.lc-trust { font-size: 12.5px; margin-top: 2px; }
.lc-trust .i { width: 15px; height: 15px; }
.lc.is-sold .lc-media img { filter: grayscale(1); opacity: .55; }
.lc-soldbar { position: absolute; inset: auto 0 0 0; padding: 7px 10px; background: var(--iron); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; text-align: center; }
@media (min-width: 640px) { .lc-body { padding: 12px 14px 14px; } .lc-title { font-size: 15px; } .lc-price b { font-size: 25px; } }

/* ---------- empty state ---------- */
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 48px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--surface); }
.empty .ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--surface-2); color: var(--text-2); }
.empty .ic .i { width: 26px; height: 26px; }
.empty h2, .empty h3 { font-size: 18px; }
.empty p { color: var(--text-2); max-width: 46ch; }
.empty .row { justify-content: center; margin-top: 6px; }

/* ---------- seller band ---------- */
.sellband { margin-top: 56px; background: var(--iron); color: #fff; }
.sellband .wrap { display: grid; gap: 28px; padding-block: 44px; }
.sellband h2 { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(32px, 6vw, 52px); line-height: .96; max-width: 14ch; }
.sellband p { color: #C9CCD2; margin-top: 12px; max-width: 46ch; }
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps3 li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; counter-increment: s; }
.steps3 li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); font-family: var(--f-display); font-weight: 700; font-size: 18px; }
.steps3 b { display: block; font-weight: 600; }
.steps3 span { color: #B9BDC4; font-size: 14.5px; }
@media (min-width: 1024px) { .sellband .wrap { grid-template-columns: 1fr 1.1fr; align-items: center; padding-block: 64px; } }

/* ---------- footer ---------- */
.ftr { background: var(--iron); color: #B9BDC4; font-size: 14px; margin-top: 56px; }
.sellband + .ftr { margin-top: 0; border-top: 1px solid rgba(255,255,255,.08); }
.ftr .wrap { display: grid; gap: 28px; padding-block: 40px 28px; }
.ftr-top { display: grid; gap: 28px; }
.ftr-brand img { height: 16px; width: auto; }
.ftr-brand p { margin-top: 12px; max-width: 34ch; line-height: 1.5; }
.ftr-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ftr h3 { font-size: 14px; color: #fff; font-weight: 600; margin-bottom: 10px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr a { color: #B9BDC4; text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr-bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #8E939B; }
@media (min-width: 768px) { .ftr-top { grid-template-columns: 1.2fr 2fr; } .ftr-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- page header (inner pages) ---------- */
.page { padding-top: 20px; }
@media (min-width: 1024px) { .page { padding-top: 32px; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; color: var(--text-2); margin-bottom: 14px; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs .i { width: 14px; height: 14px; color: var(--text-3); }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-title h1 { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(30px, 5vw, 44px); line-height: 1; }
.page-title p { color: var(--text-2); margin-top: 6px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
@media (min-width: 640px) { .panel { padding: 24px; } }
.panel-head { display: grid; gap: 4px; margin-bottom: 16px; }
.panel-head h2 { font-size: 18px; }
.panel-head p { color: var(--text-2); font-size: 14.5px; }
.divider { height: 1px; background: var(--line); margin: 4px 0; border: 0; }

/* ---------- listing page ---------- */
.lp { display: grid; gap: 20px; grid-template-areas: "gal" "bp" "main"; grid-template-columns: minmax(0, 1fr); }
.lp > .gal { grid-area: gal; } .lp > .bp { grid-area: bp; } .lp > .lp-main { grid-area: main; }
@media (min-width: 1024px) { .lp { grid-template-columns: minmax(0, 1.32fr) minmax(360px, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "gal bp" "main bp"; gap: 32px 40px; align-items: start; } }
.gal { position: relative; }
.gal-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); }
.gal-track::-webkit-scrollbar { display: none; }
.gal-slide { scroll-snap-align: center; aspect-ratio: 4 / 3; background: var(--plate); position: relative; border: 0; padding: 0; cursor: zoom-in; }
.gal-slide img { width: 100%; height: 100%; object-fit: cover; }
.gal-slide.is-cut img { object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.gal-count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--r-pill); background: rgba(17,17,17,.74); color: #fff; font-size: 13px; font-weight: 600; pointer-events: none; }
.gal-thumbs { display: none; }
.gal-nav { display: none; }
@media (min-width: 640px) { .gal-track { margin-inline: 0; border-radius: var(--r-lg); } }
@media (min-width: 640px) and (max-width: 1023px) { .gal-slide { aspect-ratio: 16 / 10; } }
@media (min-width: 1024px) {
  .gal-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
  .gal-thumbs button { flex: none; width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); background: var(--plate); overflow: hidden; }
  .gal-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
  .gal-thumbs button.is-cut img { object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
  .gal-thumbs button[aria-current="true"] { border-color: var(--iron); }
  .gal-nav { display: grid; place-items: center; position: absolute; top: calc(50% - 22px); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: var(--sh-2); color: var(--text); }
  .gal-nav.prev { left: 12px; } .gal-nav.next { right: 12px; }
  .gal-nav[hidden] { display: none; }
}
.bp { display: grid; gap: 16px; }
@media (min-width: 1024px) { .bp { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; } }
.bp-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-2); }
.bp-top span { display: inline-flex; align-items: center; gap: 4px; }
.bp-top .i { width: 15px; height: 15px; }
.bp h1 { font-size: clamp(22px, 3.2vw, 28px); font-weight: 600; line-height: 1.2; }
.price-block { display: grid; gap: 6px; }
.price-xl { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-xl b { font-family: var(--f-display); font-weight: 700; font-size: 46px; line-height: .95; }
.price-xl s { color: var(--text-3); font-size: 15px; }
.price-save { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--text-2); }
.bp-ctas { display: grid; gap: 10px; }
.seller-row { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r-md); background: var(--surface-2); }
.seller-row .verified { display: flex; margin: 2px 0; }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--iron); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 20px; }
.avatar img { width: 30px; height: auto; }
.seller-row b { display: block; font-weight: 600; }
.seller-row small { display: block; font-size: 13px; color: var(--text-2); }
.get { display: grid; gap: 10px; }
.get-opt { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.get-opt .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--text); }
.get-opt b { display: block; font-weight: 600; }
.get-opt p { font-size: 14px; color: var(--text-2); margin-top: 2px; }
.get-opt .tag { font-weight: 600; font-size: 14px; color: var(--green); white-space: nowrap; }
.get-opt.is-off { background: var(--surface-2); }
.get-opt.is-off b { color: var(--text-2); }
.quote { grid-column: 1 / -1; display: grid; gap: 10px; margin-top: 4px; }
.quote-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.quote-form .input { min-height: 44px; text-transform: uppercase; }
.quote-form .input::placeholder { text-transform: none; }
.rates { display: grid; gap: 8px; }
.rate { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.rate.is-best { border-color: var(--iron); box-shadow: 0 0 0 1px var(--iron); }
.rate .carrier { font-weight: 600; display: flex; gap: 8px; align-items: center; }
.rate .eta { grid-column: 1; font-size: 13px; color: var(--text-2); }
.rate .amt { grid-column: 2; grid-row: 1 / span 2; display: grid; justify-items: end; gap: 6px; }
.rate .amt b { font-family: var(--f-display); font-size: 22px; font-weight: 700; }
.rate-note { font-size: 13px; color: var(--text-3); line-height: 1.45; }
.skel { border-radius: var(--r-md); background: linear-gradient(90deg, var(--surface-2) 0%, #E8E9EC 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: skel 1.2s linear infinite; height: 64px; }
@keyframes skel { to { background-position: -200% 0; } }
.lp-main { display: grid; gap: 28px; }
.lp-sec h2 { font-size: 19px; margin-bottom: 12px; }
.lp-desc { white-space: pre-line; color: var(--text); font-size: 16px; line-height: 1.6; max-width: 68ch; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.facts dt, .facts dd { margin: 0; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 14.5px; }
.facts dt { color: var(--text-2); padding-right: 20px; }
.facts dd { color: var(--text); }
.facts dt:first-of-type, .facts dt:first-of-type + dd { border-top: 0; }
.buynew { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.buynew:hover { border-color: var(--line-strong); color: var(--text); }
.buynew .img { width: 76px; height: 76px; border-radius: var(--r-sm); background: var(--plate); display: grid; place-items: center; }
.buynew .img img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.buynew b { display: block; font-weight: 600; }
.buynew span { font-size: 14px; color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tips li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.tips .i { color: var(--text); margin-top: 1px; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); color: var(--text-2); font-size: 14px; line-height: 1.45; }
.note .i { margin-top: 1px; flex: none; color: var(--text); }
.note.is-warn { background: var(--amber-tint); color: #5C3900; }
.note.is-warn .i { color: var(--amber); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 44%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
@media (max-width: 639px) { .rail { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); } }
.rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rail { grid-auto-columns: minmax(200px, 30%); } }
@media (min-width: 1024px) { .rail { grid-auto-columns: calc(25% - 9px); } }
.actionbar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter) calc(10px + var(--safe-b)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transform: translateY(0); transition: transform .2s ease; }
.actionbar .ab-price b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 24px; line-height: 1; }
.actionbar .ab-price small { font-size: 12.5px; color: var(--text-2); }
.actionbar .btn { margin-left: auto; min-width: 46%; }
@media (min-width: 1024px) { .actionbar { display: none; } }

/* lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: #0A0A0B; color: #fff; }
.lightbox::backdrop { background: #0A0A0B; }
.lb-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-track figure { margin: 0; scroll-snap-align: center; display: grid; place-items: center; padding: 56px 12px; }
.lb-track img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-track figure.is-cut img { background: #fff; border-radius: var(--r-md); padding: 4%; }
.lb-close, .lb-nav { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; }
.lb-close { top: 12px; right: 12px; }
.lb-nav { top: calc(50% - 22px); }
.lb-nav.prev { left: 12px; } .lb-nav.next { right: 12px; }
.lb-count { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-size: 14px; color: #C9CCD2; }

/* ---------- sell wizard ---------- */
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 22px; padding: 0; }
.stepper li { list-style: none; display: grid; gap: 8px; font-size: 13px; color: var(--text-3); font-weight: 500; }
.stepper li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); }
.stepper li.is-done::before, .stepper li.is-on::before { background: var(--iron); }
.stepper li.is-on { color: var(--text); font-weight: 600; }
.mini-img { width: 56px; height: 56px; border-radius: var(--r-sm); background: var(--plate); display: grid; place-items: center; }
.mini-img img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.sell-form { display: grid; gap: 16px; }
.prod-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .prod-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.prod { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.prod input { position: absolute; opacity: 0; pointer-events: none; }
.prod .img { aspect-ratio: 4 / 3; border-radius: 7px; background: var(--plate); display: grid; place-items: center; }
.prod .img img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.prod b { font-size: 13.5px; font-weight: 500; line-height: 1.3; padding-inline: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: none; }
.prod small { font-size: 12.5px; color: var(--text-3); padding-inline: 2px; margin-top: auto; }
.prod .tick { position: absolute; top: 14px; right: 14px; display: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--iron); color: #fff; }
.prod .tick .i { width: 15px; height: 15px; stroke-width: 2.6; }
.prod:has(input:checked) { border-color: var(--iron); box-shadow: 0 0 0 1px var(--iron); }
.prod:has(input:checked) .tick { display: grid; }
.prod:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.prod-grid.is-locked .prod:not(:has(input:checked)) { display: none; }
.prod-find { display: grid; gap: 6px; }
.prod-find .input-affix { max-width: 460px; }
.prod-find .input-affix > span:first-child { display: flex; color: var(--text-3); }
.prod-find .input { padding-left: 40px; }
.stock-sync { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.drop { display: grid; justify-items: center; gap: 6px; padding: 26px 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); background: var(--surface-2); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.is-over { border-color: var(--iron); background: #EBECEF; }
.drop .ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); color: var(--text); box-shadow: var(--sh-1); }
.drop b { font-weight: 600; }
.drop span { font-size: 13px; color: var(--text-3); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
@media (min-width: 640px) { .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ph { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph .cover { position: absolute; left: 6px; top: 6px; }
.ph .ph-tools { position: absolute; inset: auto 6px 6px 6px; display: flex; gap: 4px; justify-content: flex-end; }
.ph .ph-tools button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(17,17,17,.72); color: #fff; }
.ph .ph-tools button .i { width: 15px; height: 15px; }
.ph.is-up img { opacity: .5; }
.ph .bar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.7); overflow: hidden; }
.ph .bar i { display: block; height: 100%; width: 0; background: var(--iron); transition: width .1s; }
.ph.is-drag { opacity: .4; }
.ph[draggable="true"] { cursor: grab; }
.photo-count { font-size: 13px; color: var(--text-3); }
.gauge { display: grid; gap: 8px; margin-top: 4px; }
.gauge-bar { position: relative; height: 10px; border-radius: 6px; background: var(--surface-2); }
.gauge-band { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: #BFE3CD; }
.gauge-floor { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text-3); }
.gauge-pin { position: absolute; top: -6px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--iron); border: 3px solid #fff; box-shadow: var(--sh-1), 0 0 0 1px var(--iron); transition: left .2s ease, background .2s; }
.gauge-pin.is-low { background: var(--amber); box-shadow: var(--sh-1), 0 0 0 1px var(--amber); }
.gauge-legend { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--text-3); }
.gauge-msg { font-size: 13.5px; color: var(--text-2); }
.gauge-msg.is-low { color: var(--amber); font-weight: 500; }
.boxes { display: grid; gap: 10px; }
.box-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 36px; gap: 6px; align-items: end; }
.box-row .field .label { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.box-row .input { min-height: 44px; padding: 0 10px; }
.box-row > b { grid-column: 1 / -1; font-size: 13px; font-weight: 600; }
.box-sum { font-size: 13.5px; color: var(--text-2); }
.sell-foot { position: sticky; bottom: 0; z-index: 30; display: flex; gap: 10px; align-items: center; padding: 12px var(--gutter) calc(12px + var(--safe-b)); margin-inline: calc(var(--gutter) * -1); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.sell-foot .btn-red { margin-left: auto; }
@media (min-width: 768px) { .sell-foot { position: static; margin-inline: 0; padding: 4px 0 0; background: none; border: 0; backdrop-filter: none; } }
.review-photos { display: flex; gap: 8px; overflow-x: auto; }
.review-photos img { width: 92px; height: 92px; border-radius: var(--r-sm); object-fit: cover; flex: none; background: var(--plate); }

/* ---------- messages ---------- */
.inbox { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
@media (min-width: 1024px) { .inbox { grid-template-columns: 340px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); height: calc(100dvh - var(--header-h) - 88px); min-height: 560px; } }
.threads { display: grid; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 1024px) { .threads { border: 0; border-right: 1px solid var(--line); border-radius: 0; overflow-y: auto; } }
.threads-head { padding: 16px 16px 8px; font-size: 18px; font-weight: 600; display: none; }
@media (min-width: 1024px) { .threads-head { display: block; } }
.thread-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; text-decoration: none; color: var(--text); border-top: 1px solid var(--line); }
.thread-row:first-of-type { border-top: 0; }
.threads-head + .thread-row { border-top: 0; }
.thread-row:hover { background: var(--surface-2); color: var(--text); }
.thread-row[aria-current="page"] { background: #EDEEF1; }
.thread-row img { width: 52px; height: 52px; border-radius: var(--r-sm); object-fit: cover; background: var(--plate); }
.thread-row img.is-cut { object-fit: contain; padding: 4px; mix-blend-mode: multiply; }
.thread-row .t1 { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-row .t2 { font-size: 13.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-row .t3 { display: grid; justify-items: end; gap: 4px; font-size: 12px; color: var(--text-3); }
.thread-row.is-unread .t1, .thread-row.is-unread .t2 { color: var(--text); font-weight: 600; }
.convo { display: none; }
@media (min-width: 1024px) { .convo { display: grid; place-items: center; color: var(--text-3); } }
.thread-pane { display: flex; flex-direction: column; min-width: 0; background: var(--surface); min-height: 0; }
.page-thread .inbox > .threads { display: none; }
@media (min-width: 1024px) { .page-thread .inbox > .threads { display: grid; } }
.tp-head { display: grid; grid-template-columns: auto 48px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: var(--header-h); z-index: 5; }
.tp-head img { width: 48px; height: 48px; border-radius: var(--r-sm); object-fit: cover; background: var(--plate); }
.tp-head img.is-cut { object-fit: contain; padding: 4px; mix-blend-mode: multiply; }
.tp-head .t1 { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-head .t2 { font-size: 13px; color: var(--text-2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (min-width: 1024px) { .tp-head { position: static; padding: 12px 18px; } .tp-head .back { display: none; } .tp-head { grid-template-columns: 48px 1fr auto; } }
.msgs { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; background: var(--page); min-height: 50dvh; }
@media (min-width: 1024px) { .msgs { padding: 20px 24px; min-height: 0; background: #FAFAFB; } }
.day { align-self: center; font-size: 12.5px; font-weight: 500; color: var(--text-3); margin: 12px 0 6px; }
.msg { max-width: min(82%, 520px); padding: 9px 13px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; line-height: 1.4; white-space: pre-line; word-break: break-word; align-self: flex-start; }
.msg.me { align-self: flex-end; background: var(--iron); color: #fff; border-color: var(--iron); }
.msg + .msg.me, .msg.me + .msg:not(.me) { margin-top: 6px; }
.msg time { display: block; font-size: 11.5px; opacity: .62; margin-top: 3px; }
.msg.me time { text-align: right; }
.msg.cont { margin-top: -1px; }
.msg.cont:not(.me) { border-top-left-radius: 6px; }
.msg.cont.me { border-top-right-radius: 6px; }
.evt { align-self: center; width: min(100%, 420px); margin: 10px 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; }
.evt .ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--text); }
.evt .ic .i { width: 18px; height: 18px; }
.evt b { display: block; font-weight: 600; font-size: 14.5px; }
.evt .amt { font-family: var(--f-display); font-weight: 700; font-size: 24px; line-height: 1.1; }
.evt small { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.evt p { font-size: 13.5px; color: var(--text-2); margin-top: 4px; }
.evt .row { margin-top: 10px; gap: 8px; }
.evt.is-deal { border-color: var(--iron); }
.evt.is-good .ic { background: var(--green-tint); color: var(--green); }
.evt.is-money .ic { background: var(--iron); color: #fff; }
.dealbar { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px 2px; scrollbar-width: none; background: var(--surface); border-top: 1px solid var(--line); }
.dealbar::-webkit-scrollbar { display: none; }
.dealbar .chip { flex: none; height: 34px; font-size: 13.5px; }
.composer { display: grid; grid-template-columns: 1fr 44px; gap: 8px; align-items: end; padding: 10px 12px calc(10px + var(--safe-b)); background: var(--surface); }
.composer textarea { min-height: 44px; max-height: 140px; padding: 10px 14px; border-radius: 22px; resize: none; line-height: 1.4; }
.composer .btn { border-radius: 50%; width: 44px; padding: 0; }
.page-thread .composer-wrap { position: sticky; bottom: 0; z-index: 6; border-top: 1px solid var(--line); background: var(--surface); }
@media (max-width: 1023px) {
  .page-thread .wrap.page { padding: 0; }
  .page-thread .ftr { display: none; }
  .page-thread .thread-pane { min-height: calc(100dvh - var(--header-h)); }
}
@media (min-width: 1024px) { .page-thread .composer-wrap { position: static; } }
@media (min-width: 1024px) { .composer { padding: 12px 18px 16px; } .dealbar { padding-inline: 18px; } }
.closed-note { padding: 12px 16px; background: var(--surface-2); font-size: 14px; color: var(--text-2); text-align: center; }

/* ---------- account ---------- */
.acct-head { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; margin-bottom: 18px; }
.acct-head .avatar { width: 56px; height: 56px; font-size: 24px; }
.acct-head h1 { font-size: 22px; }
.acct-head p { font-size: 14px; color: var(--text-2); }
.acct-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: -6px 0 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-size: 14px; color: var(--text-2); }
.acct-switch form { display: contents; }
.acct-switch .link-btn { color: var(--text); font-weight: 500; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 20px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; display: inline-flex; gap: 6px; align-items: center; padding: 12px 12px 11px; font-size: 15px; font-weight: 500; color: var(--text-2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--iron); font-weight: 600; }
.list { display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.item > img { width: 72px; height: 72px; border-radius: var(--r-sm); object-fit: cover; background: var(--plate); }
.item > img.is-cut { object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
.item-title { font-weight: 600; text-decoration: none; color: var(--text); display: block; line-height: 1.3; }
.item-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--text-2); margin-top: 6px; align-items: center; }
.item-meta span { display: inline-flex; gap: 4px; align-items: center; }
.item-meta .i { width: 15px; height: 15px; }
.item-price { font-family: var(--f-display); font-weight: 700; font-size: 20px; }
.item-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .item { grid-template-columns: 88px 1fr auto; align-items: center; } .item > img { width: 88px; height: 88px; } .item-actions { grid-column: auto; border: 0; padding: 0; justify-content: flex-end; max-width: 380px; } }

/* ---------- tables (admin) ---------- */
.tbl-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; font-size: 13px; color: var(--text-2); background: #F7F8F9; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tr:first-child td { border-top: 0; }
.tbl .thumb { width: 52px; height: 52px; border-radius: var(--r-sm); object-fit: cover; background: var(--plate); }
.tbl .thumb.is-cut { object-fit: contain; padding: 4px; mix-blend-mode: multiply; }
.tbl .cell-item { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; min-width: 240px; }
.tbl .acts { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 899px) {
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tr { padding: 14px; border-top: 1px solid var(--line); }
  .tbl tr:first-child { border-top: 0; }
  .tbl tr.sub { border-top: 0; padding-top: 0; }
  .tbl td { border: 0; padding: 4px 0; }
  .tbl td[data-label] { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; }
  .tbl td[data-label]::before { content: attr(data-label); font-size: 12.5px; color: var(--text-3); font-weight: 500; padding-top: 2px; }
  .tbl td[data-label=""] { display: block; }
  .tbl td[data-label=""]::before { display: none; }
  .tbl td.full .cell-item { min-width: 0; }
  .tbl .only-lg-cell { display: none !important; }
}
@media (min-width: 900px) { .tbl .hide-lg { display: none; } .tbl tr.sub td { border-top: 0; padding-top: 0; } }
.acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.acts form { display: inline-flex; }
.panel-h { font-size: 17px; }
.admin-2col { display: grid; gap: 16px; }
@media (min-width: 1024px) { .admin-2col { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.stat > div { padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); }
.stat b { display: block; font-family: var(--f-display); font-size: 22px; }
.stat span { font-size: 12.5px; color: var(--text-2); }
.tbl .thumb { flex: none; }
.pay-grid { display: grid; gap: 16px; }
@media (min-width: 1024px) { .pay-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; } }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tile { padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.tile b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 30px; line-height: 1; }
.tile span { display: block; font-size: 13px; color: var(--text-2); margin-top: 6px; }
a.tile:hover { border-color: var(--line-strong); color: var(--text); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: 14.5px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.int-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.int-row:first-child { border-top: 0; }
.settings-grid { display: grid; gap: 16px; }
@media (min-width: 1024px) { .settings-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }
pre.log { white-space: pre-wrap; font-size: 13px; background: var(--surface-2); padding: 12px; border-radius: var(--r-sm); max-height: 260px; overflow: auto; margin: 8px 0 0; }
details summary { cursor: pointer; }

/* ---------- auth, misc pages ---------- */
.auth { max-width: 440px; margin-inline: auto; }
.code-input { font-family: var(--f-display); font-weight: 700; font-size: 32px; letter-spacing: .32em; text-align: center; min-height: 64px; padding-left: .32em; }
.prose { max-width: 70ch; font-size: 16px; line-height: 1.65; }
.prose h2 { font-size: 20px; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; display: grid; gap: 8px; }
.how-grid { display: grid; gap: 16px; }
@media (min-width: 1024px) { .how-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.how-grid ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--text-2); font-size: 15px; }
.how-grid h2 { font-size: 18px; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.done { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 40px 20px; }
.done .ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--green-tint); color: var(--green); }
.done .ic .i { width: 30px; height: 30px; stroke-width: 2.2; }
.done h1 { font-size: 26px; }
.done p { color: var(--text-2); max-width: 48ch; }
.summary { display: grid; gap: 10px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.summary .total { padding-top: 10px; border-top: 1px solid var(--line); font-weight: 600; font-size: 17px; }
/* Moneris Checkout is embedded (fullscreen off in the MRC profile). Its script sets #monerisCheckout to height:100%
   of its parent, so the parent carries the height. The card form with subtotal, tax, total and the Pay button needs
   about 870 px at 320-480 px wide; 920 leaves room for an error line without an inner scrollbar. */
.mco-frame { height: 920px; }
#monerisCheckout { background: transparent !important; }

/* ---------- view transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print { .hdr, .tabbar, .actionbar, .ftr, .preview, .sellband { display: none !important; } body { background: #fff; } }

/* Admin → Add stock: photos first, then product, price and how many */
.stock { display: grid; gap: 16px; }
.stock-defaults { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; }
.stock-pct { width: 300px; max-width: 100%; }
.stock-add { justify-self: start; cursor: pointer; }
#stockadd:focus-visible + .hint, .stock-add:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.stock-bar { position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1); }
.stock-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.stock-item { display: grid; gap: 14px; }
.si-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.si-n { font-size: 15px; }
.si-state { font-size: 13px; color: var(--text-3); text-align: right; }
.si-state.is-ready { color: var(--green); font-weight: 600; }
.si-photos { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.si-ph { position: relative; flex: 0 0 auto; width: 88px; height: 88px; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.si-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.si-ph.is-up img { opacity: .55; }
.si-ph .bar { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.75); }
.si-ph .bar i { display: block; height: 100%; width: 0; background: var(--iron); border-radius: 2px; }
.si-rm { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(17,17,17,.72); color: #fff; cursor: pointer; }
.si-rm:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.si-addph { flex: 0 0 auto; width: 88px; height: 88px; display: grid; place-content: center; justify-items: center; gap: 4px; padding: 4px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-sm); color: var(--text-2); font-size: 12px; line-height: 1.2; text-align: center; cursor: pointer; }
.si-addph:hover { border-color: var(--iron); color: var(--text); }
.si-addph:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.si-body { display: grid; gap: 14px; min-width: 0; }
.si-combo { position: relative; }
.si-opts { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; max-height: 320px; overflow-y: auto; margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--sh-2); }
.si-opts li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.si-opts li[aria-selected="true"], .si-opts li:hover { background: var(--surface-2); }
.si-opts img, .si-noimg { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: var(--surface-2); }
.si-opts b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.si-opts small { display: block; font-size: 12.5px; color: var(--text-3); }
.si-opts .si-none { display: block; color: var(--text-3); cursor: default; }
.si-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.si-grid > .field:first-child { grid-column: 1 / -1; }
.si-checks { display: grid; gap: 10px; }
.si-foot { display: flex; justify-content: space-between; gap: 8px; }
.stock-empty { text-align: center; padding: 8px 0; }
.stock-done { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
@media (min-width: 900px) {
  .stock-item { grid-template-columns: 216px 1fr; align-items: start; column-gap: 20px; }
  .si-head { grid-column: 1 / -1; }
  .si-photos { flex-wrap: wrap; overflow: visible; align-content: start; }
  .si-grid { grid-template-columns: auto 1fr 1fr 1fr; }
  .si-grid > .field:first-child { grid-column: auto; }
  .si-checks { grid-template-columns: auto auto; justify-content: start; gap: 24px; }
}
