/* themes: light by default, dark by system or by choice */
:root {
  --bg: #fafafa; --surface: #ffffff; --surface-2: #f1f1f1; --line: #e4e4e4; --text: #0a0a0a; --muted: #6b6b6b;
  --good: #146c43; --good-bg: #e2f3e9;
  --el: #f2545b; --ella: #9966cc; --alerta: #00d1ff;
  --radius: 16px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 18px rgba(0,0,0,.05); --tile: #ffffff; --hh: 104px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #000000; --surface: #0d0d0d; --surface-2: #171717; --line: #232323; --text: #f4f4f4; --muted: #9a9a9a;
  --good: #5fd39a; --good-bg: #0e2619; --shadow: none; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface: #0d0d0d; --surface-2: #171717; --line: #232323; --text: #f4f4f4; --muted: #9a9a9a;
    --good: #5fd39a; --good-bg: #0e2619; --shadow: none; color-scheme: dark;
  }
}
:root { --warn: var(--alerta-text, #0891b2); --warn-bg: var(--alerta-soft, rgba(0, 209, 255, .14)); }
body[data-section="el"] { --acc: var(--el); --acc-text: var(--el-text, var(--el)); --acc-soft: var(--el-soft, rgba(242, 84, 91, .14)); --acc-on: var(--el-on, #fff); }
body[data-section="ella"] { --acc: var(--ella); --acc-text: var(--ella-text, var(--ella)); --acc-soft: var(--ella-soft, rgba(153, 102, 204, .16)); --acc-on: var(--ella-on, #fff); }
body[data-section="cruce"] {
  --acc: color-mix(in oklab, var(--el), var(--ella)); --acc-text: color-mix(in oklab, var(--el-text, var(--el)), var(--ella-text, var(--ella)));
  --acc-soft: color-mix(in oklab, var(--el-soft, rgba(242,84,91,.14)), var(--ella-soft, rgba(153,102,204,.16))); --acc-on: #fff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 14px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; padding-bottom: calc(76px + env(safe-area-inset-bottom)); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img { display: block; }

/* header: hides while scrolling down */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--line);
  transition: transform .28s ease; }
.top.hide { transform: translateY(-100%); }
.row1 { display: flex; align-items: center; gap: 14px; padding: 10px 20px 2px; }
@font-face { font-family: 'Outfit'; src: url('/fonts/Outfit.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Kraya Word'; src: url('/fonts/kraya-word.woff2') format('woff2'); font-display: block; }
/* wordmark: lowercase kraya in Kraya Word (Outfit 800 + U+E000, the left piece of the y drawn over it: clean cut from the arms' vertex to the tail's right corner) */
.brand { font: 800 24px/1 'Kraya Word', 'Outfit', ui-sans-serif, system-ui, sans-serif; letter-spacing: -.03em; text-decoration: none; }
.yb { color: var(--ella); letter-spacing: 0; }
.ya { color: var(--el); }
.links { display: none; gap: 2px; margin-left: 10px; }
.links a { text-decoration: none; padding: 7px 12px; border-radius: 999px; color: var(--muted); font-weight: 600; }
.links a.on { color: var(--text); background: var(--surface-2); }
.themebtn { margin-left: auto; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 12px; font-weight: 600; min-height: 34px; }
.bars { display: block; width: 100%; height: 34px; }

.banner { margin: 10px 20px 0; padding: 9px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 13px; }
main { padding: 14px 20px 24px; max-width: 1480px; margin: 0 auto; }
main:has(> .layout) { max-width: none; padding-left: 12px; }
h1 { font-size: clamp(20px, 2.6vw, 28px); letter-spacing: -.02em; margin: 2px 0 12px; }
h2 { font-size: 15px; margin: 26px 0 10px; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* bottom bar (mobile) */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.bar a, .bar .back { flex: 1; display: grid; place-items: center; text-decoration: none; min-height: 48px; border-radius: 14px; font-weight: 700; color: var(--muted); }
.bar a.on { color: var(--text); background: var(--surface-2); }
.bar .back { border: 0; background: var(--acc); color: var(--acc-on); cursor: pointer; }
@media (min-width: 960px) {
  .links { display: flex; }
  .bar { left: auto; right: 20px; bottom: 20px; border: 0; background: none; backdrop-filter: none; padding: 0; }
  .bar a { display: none; }
  .bar .back { min-width: 140px; box-shadow: var(--shadow); }
  body { padding-bottom: 24px; }
}

/* categories */
.cats { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; white-space: nowrap; min-height: 40px; display: inline-grid; place-items: center; }
.cat.on { background: var(--acc); border-color: var(--acc); color: var(--acc-on); }

/* layout */
.layout { display: grid; gap: 18px; }
@media (min-width: 960px) {
  .layout { grid-template-columns: 200px 1fr; align-items: start; }
  .filters { position: sticky; top: calc(var(--hh) + 10px); max-height: calc(100vh - var(--hh) - 24px); overflow-y: auto; scrollbar-width: thin; transition: top .28s ease; }
  body.hh-hidden .filters { top: 12px; max-height: calc(100vh - 24px); }
}
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.fgroup { padding: 10px 0; border-top: 1px solid var(--line); }
.fgroup:first-of-type { border-top: 0; padding-top: 2px; }
.fgroup h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 8px; font-weight: 700; }
.filters .ftoggle { display: flex; width: 100%; justify-content: space-between; align-items: center; min-height: 42px; }
@media (min-width: 960px) { .filters .ftoggle { display: none; } .filters .fbody { display: block !important; } }
.dots { display: grid; grid-template-columns: repeat(auto-fill, minmax(26px, 1fr)); gap: 6px; }
.dotc { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(128,128,128,.35); cursor: pointer; padding: 0; position: relative; }
.dotc.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--acc); }
.dotc.multi { background: conic-gradient(#e34234, #e3b93b, #4f7a4a, #2f4f9e, #7e57c2, #e34234) !important; }
.sel { font-size: 12px; color: var(--muted); margin-top: 6px; min-height: 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 4px; }
.pill { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 12px; min-height: 30px; }
.pill.on { border-color: var(--acc); background: var(--acc-soft); color: var(--acc-text); font-weight: 600; }
.range { display: flex; gap: 6px; }
.range input { width: 100%; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13px; }
.clear { margin-top: 8px; width: 100%; min-height: 38px !important; font-size: 13px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .stats { grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.5fr); } }
.sstore { grid-column: 1 / -1; padding: 8px 12px; }
@media (min-width: 1100px) { .sstore { grid-column: auto; } }
.slist { display: grid; gap: 2px; margin-top: 4px; max-height: 64px; overflow-y: auto; scrollbar-width: thin; }
.srow { display: grid; grid-template-columns: minmax(0, 1fr) 36px auto; gap: 6px; align-items: center; font-size: 11px; line-height: 1.3; }
.srow .sn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow .sb { height: 4px; border-radius: 999px; background: var(--surface-2); position: relative; }
.srow .sb span { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--acc); }
.srow .sv { font-variant-numeric: tabular-nums; font-weight: 600; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; box-shadow: var(--shadow); }
.stat .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stat .v { font-size: clamp(17px, 2vw, 22px); font-weight: 800; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 11px; color: var(--muted); }
.bars-h { display: grid; gap: 6px; }
.brow { display: grid; grid-template-columns: minmax(80px, 130px) 1fr auto; gap: 10px; align-items: center; font-size: 12px; cursor: default; }
.btrack { height: 8px; border-radius: 999px; background: var(--surface-2); position: relative; }
.bfill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--acc); }
.brow .val { font-variant-numeric: tabular-nums; font-weight: 600; }
.brow .det { grid-column: 1 / -1; color: var(--muted); font-size: 11px; margin-top: -3px; display: none; }
.brow:hover .det, .brow.open .det { display: block; }

/* toolbar + grid */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 10px; flex-wrap: wrap; }
select { padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); min-height: 40px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .18s ease, border-color .18s ease; }
@media (hover: hover) { .pcard:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--acc) 50%, var(--line)); } }
.pcard .img { aspect-ratio: 4 / 5; background: var(--tile); display: block; overflow: hidden; }
.pcard .img img { width: 100%; height: 100%; object-fit: contain; transition: opacity .2s ease; }
.pcard .info { padding: 8px 10px 10px; display: grid; gap: 2px; text-decoration: none; }
.pcard .store { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pcard .name { font-weight: 600; font-size: 12.5px; line-height: 1.3; overflow-wrap: anywhere; }
.pcard .price { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.strike { text-decoration: line-through; color: var(--muted); font-weight: 400; font-size: 11.5px; margin-left: 5px; }
.badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; pointer-events: none; }
.badge { background: #0a0a0a; color: #fff; font-weight: 800; font-size: 11px; padding: 3px 7px; border-radius: 999px; }
.badge.rare { background: linear-gradient(90deg, var(--el), var(--ella)); color: #fff; }
.ov { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 6px; }
.ibtn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #0a0a0a; cursor: pointer; font-size: 15px; box-shadow: 0 1px 4px rgba(0,0,0,.18); display: grid; place-items: center; }
.ibtn.on { background: var(--acc); color: var(--acc-on); }
.pcard.other .store { color: var(--acc-text); }
.pcard.same { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); }
.chip.good { background: var(--good-bg); color: var(--good); }
.chip.warning, .chip.bad { background: var(--warn-bg); color: var(--warn); }
.chip.acc { background: var(--acc-soft); color: var(--acc-text); }
.chip.rare { background: linear-gradient(90deg, var(--el-soft, #fde), var(--ella-soft, #eef)); color: var(--text); font-weight: 600; }
.more { display: block; margin: 18px auto 0; }

.btn { border: 0; border-radius: 14px; padding: 11px 16px; background: var(--acc); color: var(--acc-on); font-weight: 700; cursor: pointer; min-height: 46px; text-decoration: none; display: inline-grid; place-items: center; text-align: center; }
.btn.ghost { background: var(--surface-2); color: var(--text); }
.btn.danger { background: none; color: var(--warn); border: 1px solid var(--line); }
.btn:disabled { opacity: .5; }

/* product page */
.pp { display: grid; gap: 22px; }
@media (min-width: 960px) { .pp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; } .pp .gallery { position: sticky; top: calc(var(--hh) + 10px); } }
.gallery .main { background: var(--tile); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; aspect-ratio: 4 / 5; max-height: 78vh; margin: 0 auto; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.thumbs button { flex: none; width: 64px; height: 80px; border-radius: 10px; border: 1px solid var(--line); background: var(--tile); padding: 0; cursor: pointer; overflow: hidden; }
.thumbs button.on { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.big { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.box { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); margin-top: 10px; }
.box.good { background: var(--good-bg); color: var(--good); }
.box.warning { background: var(--warn-bg); color: var(--warn); }
.box.rare { background: linear-gradient(90deg, var(--el-soft, #fde), var(--ella-soft, #eef)); }
.box b { display: block; font-size: 14px; }
.meter { margin-top: 8px; }
.meter .track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--good-bg), var(--surface-2), var(--warn-bg)); position: relative; }
.meter .pin { position: absolute; top: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--acc); border: 3px solid var(--surface); transform: translateX(-50%); }
.meter .ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row > * { flex: 1; }
.ghead { display: flex; align-items: baseline; gap: 8px; margin: 26px 0 10px; }
.ghead h2 { margin: 0; }
.ghead .tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--acc-soft); color: var(--acc-text); font-weight: 700; }

.chart { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 8px; background: var(--surface); }
.chart svg { width: 100%; height: 160px; display: block; touch-action: pan-y; }
.tip { position: absolute; pointer-events: none; background: var(--text); color: var(--bg); font-size: 12px; padding: 4px 8px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -110%); }
.axis { fill: var(--muted); font-size: 11px; }

/* lightbox zoom */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.94); display: grid; grid-template-rows: 1fr auto auto; }
.lb-stage { position: relative; overflow: hidden; touch-action: none; display: grid; place-items: center; cursor: zoom-in; }
.lb-stage.zoomed { cursor: grab; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .2s ease; background: #fff; }
.lb-stage.dragging img { transition: none; }
.lb-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 18px; cursor: pointer; }
.lb-thumbs { display: flex; gap: 8px; justify-content: center; padding: 8px; }
.lb-thumbs button { width: 52px; height: 64px; border: 1px solid #333; border-radius: 8px; padding: 0; background: #fff; overflow: hidden; cursor: pointer; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.lb-hint { color: #aaa; font-size: 12px; text-align: center; padding: 0 0 calc(10px + env(safe-area-inset-bottom)); }

/* compare */
.cmp-tray { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 21; background: var(--acc); color: var(--acc-on); font-weight: 700;
  padding: 11px 20px; border-radius: 999px; text-decoration: none; box-shadow: 0 8px 30px rgba(0,0,0,.3); white-space: nowrap; }
@media (min-width: 960px) { .cmp-tray { bottom: 24px; } }
.cmpwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cmp { border-collapse: collapse; min-width: 640px; width: 100%; font-size: 13px; }
.cmp th, .cmp td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; width: 120px; position: sticky; left: 0; background: var(--surface); }
.cmp img { width: 100%; max-width: 160px; aspect-ratio: 4/5; object-fit: contain; background: var(--tile); border-radius: 12px; }
.cmp .best { color: var(--good); font-weight: 800; }

/* saved list */
.add { display: flex; gap: 8px; margin-bottom: 14px; }
.add input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.card { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; text-decoration: none; background: var(--surface); position: relative; }
.card img { width: 80px; height: 100px; object-fit: contain; border-radius: 10px; background: var(--tile); flex: none; }
.card .body { min-width: 0; flex: 1; }
.card .name { font-weight: 600; overflow-wrap: anywhere; }
.card .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.card .price { font-weight: 800; margin-top: 4px; }
.card.faded { opacity: .55; }
.saved-grid { display: grid; gap: 10px; }
@media (min-width: 960px) { .saved-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg > * { flex: 1; }
.seg button { min-height: 42px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; cursor: pointer; font-weight: 600; }
.seg button.on { background: var(--acc); color: var(--acc-on); border-color: var(--acc); }
.sizes button { flex: 0 0 auto; min-width: 46px; }
.sizes button.out { text-decoration: line-through; color: var(--muted); }
.sizes button.want { outline: 2px solid var(--acc); outline-offset: 1px; }
.sugg { display: grid; gap: 10px; }
@media (min-width: 960px) { .sugg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sugg .actions { display: flex; gap: 8px; margin-top: 8px; }
.sugg .actions .btn { flex: 1; padding: 8px; min-height: 42px; }

table.plain { width: 100%; border-collapse: collapse; font-size: 13px; }
table.plain th, table.plain td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }

.center { min-height: 60vh; display: grid; place-content: center; gap: 14px; text-align: center; }
.who { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.who .btn { min-width: 110px; }
.who .btn.el { background: var(--el); color: var(--el-on, #fff); }
.who .btn.ella { background: var(--ella); color: var(--ella-on, #fff); }
.who .btn.cruce { background: linear-gradient(90deg, var(--el), var(--ella)); color: #fff; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.skel { background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite linear; border-radius: var(--radius); min-height: 240px; }
@keyframes sk { to { background-position: -200% 0; } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(140px + env(safe-area-inset-bottom)); background: var(--text); color: var(--bg); padding: 11px 16px; border-radius: 14px; z-index: 60; max-width: calc(100% - 32px); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* dual price slider: two range inputs over one track, --lo/--hi in 0..100 */
.pslider { position: relative; height: 28px; margin: 2px 4px 0; }
.ptrack { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 999px; background: var(--surface-2); }
.pfill { position: absolute; top: 0; bottom: 0; left: calc(var(--lo) * 1%); right: calc((100 - var(--hi)) * 1%); background: var(--acc); border-radius: 999px; }
.pslider input[type=range] { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; height: 28px; }
.pslider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--acc); cursor: pointer; }
.pslider input[type=range]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--acc); cursor: pointer; }
.pslider input[type=range]::-moz-range-track { background: none; }
.pvals { display: flex; justify-content: space-between; font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 600; margin-top: 2px; }
.sortbox { position: relative; }
.sortbtn { min-height: 38px; font-size: 13px; white-space: nowrap; }
.sortmenu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 15; min-width: 200px; display: grid; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.sortmenu[hidden] { display: none; }
.sortmenu button { text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 10px; font-size: 13px; cursor: pointer; color: inherit; min-height: 40px; }
.sortmenu button:hover { background: var(--surface-2); }
.sortmenu button.on { color: var(--acc-text); background: var(--acc-soft); font-weight: 600; }

/* brand monogram watermark, left edge of each feed photo */
.pcard .img { position: relative; }
.pcard .mono { display: none; }
.pcard.feed .mono { display: block; position: absolute; left: 6px; bottom: 10px; z-index: 1; writing-mode: vertical-rl; transform: rotate(180deg); font: 800 clamp(22px, 3.2vw, 34px)/1 ui-serif, Georgia, serif; letter-spacing: .08em; color: #000; opacity: .09; pointer-events: none; }
.pcard .sizes { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.pcard .sizes b { font-size: 10.5px; font-weight: 600; padding: 1px 5px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); font-variant-numeric: tabular-nums; }
.pcard .sizes b.want { border-color: var(--acc); color: var(--acc-text); background: var(--acc-soft); }
.pcard .sizes.none { font-size: 11px; color: var(--muted); }
/* product page: brand as a side tag */
.ptitle { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.brandtag { flex: none; margin-top: 4px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); max-width: 40%; text-align: center; }
.psizes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 10px; }
.psizes span:not(.muted) { min-width: 34px; text-align: center; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.psizes span.out { color: var(--muted); text-decoration: line-through; opacity: .6; }
/* AliExpress similar items */
.intl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.ix { display: grid; gap: 3px; align-content: start; text-decoration: none; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ix img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--tile); border-radius: 8px; }
.ix .it { font-size: 11.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ix .ip { font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.ix .dn { color: var(--good); font-weight: 600; font-size: 11px; }
.ix .up { color: var(--muted); font-weight: 600; font-size: 11px; }
