/* Hashtag buyer site.
   Layout: sticky header, short hero, filter bar, then results beside a map (stacked on phones). */
:root {
  --bg: #f6f8f5;
  --surface: #ffffff;
  --surface-2: #eef2ec;
  --ink: #17201a;
  --ink-2: #4b5a50;
  --line: #dde4db;
  --red: #d62828;
  --red-ink: #ffffff;
  --red-soft: #fde8e8;
  --green: #2c7a4b;
  --green-soft: #e1f0e5;
  --wa: #1f9d55;
  --wa-ink: #ffffff;
  --star: #e0a100;
  --shadow: 0 1px 2px rgba(23, 32, 26, .06), 0 8px 24px rgba(23, 32, 26, .08);
  --shadow-lift: 0 2px 4px rgba(23, 32, 26, .08), 0 18px 36px rgba(23, 32, 26, .16);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111612; --surface: #1a211c; --surface-2: #232c25; --ink: #eef3ee; --ink-2: #a9b8ad;
    --line: #2d3830; --red: #ef4b4b; --red-ink: #1a0707; --red-soft: #3a1a1a;
    --green: #5bbd82; --green-soft: #1c3326; --wa: #34c46f; --wa-ink: #07220f; --star: #f0b92b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .5), 0 18px 36px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111612; --surface: #1a211c; --surface-2: #232c25; --ink: #eef3ee; --ink-2: #a9b8ad;
  --line: #2d3830; --red: #ef4b4b; --red-ink: #1a0707; --red-soft: #3a1a1a;
  --green: #5bbd82; --green-soft: #1c3326; --wa: #34c46f; --wa-ink: #07220f; --star: #f0b92b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .5), 0 18px 36px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font-body); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); padding: .62em 1.05em; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s; min-height: 42px; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn.red { background: var(--red); border-color: var(--red); color: var(--red-ink); }
.btn.wa { background: var(--wa); border-color: var(--wa); color: var(--wa-ink); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 34px; padding: .35em .85em; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- header ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 800 22px/1 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.brand svg { width: 30px; height: 34px; }
.brand b { color: var(--red); font-weight: 800; }
.search { order: 3; flex: 1 1 100%; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 6px 0 14px; min-width: 0; }
.search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 0; outline: none; }
.search .btn { min-height: 34px; padding: .3em .9em; }
.toplinks { order: 2; display: flex; gap: 8px; margin-left: auto; }
@media (min-width: 760px) { .search { order: 0; flex: 1 1 260px; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 26px 10px; }
.hero h1 { font-size: clamp(28px, 5vw, 46px); font-weight: 800; letter-spacing: -.03em; max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p { margin: 10px 0 0; max-width: 52ch; color: var(--ink-2); font-size: 16px; }
.leaves { position: absolute; right: -20px; top: -10px; width: 260px; height: 160px; opacity: .9; pointer-events: none; }
@media (max-width: 640px) { .leaves { width: 170px; opacity: .55; } }

/* ---------- filters ---------- */
.filters { display: grid; gap: 12px; padding-block: 14px 8px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.chip { flex: none; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: .4em .95em; font-weight: 600; font-size: 14px; transition: background .2s, border-color .2s, transform .15s; }
.chip:hover { transform: translateY(-1px); border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--surface); }
.controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.field { display: grid; gap: 4px; min-width: 0; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.field select, .field input[type="number"], .field input[type="text"], .field textarea { width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 9px 12px; min-height: 42px; }
.field select:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); }
.money { position: relative; }
.money span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-2); font-weight: 700; }
.money input { padding-left: 26px !important; }
.morebtn { display: none; }
#locate { white-space: nowrap; }
@media (max-width: 759px) {
  .controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .controls .adv { display: none; }
  .controls.open .adv { display: grid; }
  .morebtn { display: grid; }
  .controls #locate, .controls .morebtn .btn { width: 100%; }
}
.toggle { display: flex; align-items: center; gap: 8px; min-height: 42px; font-weight: 600; cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--green); }

/* ---------- layout ---------- */
.layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); padding-block: 10px 90px; }
.mapcol { display: none; }
.layout[data-mobile="map"] .mapcol { display: block; }
.layout[data-mobile="map"] .results { display: none; }
@media (min-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr); }
  .layout .mapcol, .layout[data-mobile="list"] .mapcol { display: block; }
  .layout[data-mobile="map"] .results { display: block; }
  .mapcol { position: sticky; top: 84px; align-self: start; }
  .mobile-toggle { display: none !important; }
}
#map { height: 420px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface-2); overflow: hidden; z-index: 1; }
@media (min-width: 980px) { #map { height: calc(100vh - 120px); min-height: 440px; max-height: 760px; } }
@media (max-width: 979px) { #map { height: calc(100vh - 230px); min-height: 360px; } }
.map-note { font-size: 12px; color: var(--ink-2); margin: 8px 2px 0; }
.mobile-toggle { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; box-shadow: var(--shadow-lift); background: var(--ink); color: var(--bg); border-color: var(--ink); }

.resultbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: .4em 1em; border-radius: 999px; font-weight: 700; font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--surface); box-shadow: var(--shadow); }
.count { color: var(--ink-2); font-size: 14px; }

/* ---------- product cards ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); } }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s, border-color .28s; animation: rise .45s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--n, 0) * 35ms); }
.card:hover, .card:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--green) 55%, var(--line)); }
@keyframes rise { from { opacity: .01; transform: translateY(10px); } }
.card .ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.card:hover .ph img { transform: scale(1.07); }
.badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.badge.new { background: var(--red); color: var(--red-ink); }
.badge.feat { background: var(--green); color: var(--surface); }
.badge.soon { background: #ffe9b0; color: #5a3d00; }
.card .cb { padding: 11px 12px 12px; display: grid; gap: 3px; flex: 1; }
.price { font: 800 19px/1.1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--red); }
.card h3 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.meta, .when { font-size: 13px; color: var(--ink-2); margin: 0; overflow-wrap: anywhere; }
.when { font-size: 12px; }
.quick { position: absolute; left: 8px; right: 8px; bottom: 8px; transform: translateY(150%); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.card:hover .quick, .card:focus-within .quick { transform: translateY(0); }
@media (hover: none) { .quick { transform: none; left: auto; right: 8px; width: 36px; height: 36px; min-height: 0; padding: 0; border-radius: 50%; } .quick span { display: none; } }

/* ---------- shop cards ---------- */
.shoplist { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.shopcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 8px; cursor: pointer; transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s; animation: rise .45s backwards; animation-delay: calc(var(--n, 0) * 35ms); }
.shopcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.shopcard h3 { font-size: 17px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row.sp { justify-content: space-between; }
.stars { color: var(--star); letter-spacing: 1px; white-space: nowrap; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green); }
.pill.red { background: var(--red-soft); color: var(--red); }

.empty, .errorbox { text-align: center; padding: 38px 18px; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--ink-2); display: grid; gap: 12px; justify-items: center; }
.empty h3 { color: var(--ink); }
.skel { height: 230px; border-radius: var(--radius); background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface) 50%, var(--surface-2) 70%); background-size: 300% 100%; animation: shimmer 1.3s infinite linear; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- map pins ---------- */
.pin { background: none; border: 0; }
.pin svg { width: 34px; height: 42px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3)); transition: transform .2s; transform-origin: 50% 100%; }
.pin:hover svg { transform: scale(1.18); }
.leaflet-popup-content-wrapper { border-radius: 14px; background: var(--surface); color: var(--ink); }
.leaflet-popup-tip { background: var(--surface); }
.leaflet-popup-content { margin: 12px 14px; font-family: var(--font-body); }
.pop { display: grid; gap: 6px; min-width: 190px; }
.pop strong { font: 700 16px var(--font-display); }
.pop .row { gap: 6px; }
.you { background: #2563eb; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 4px rgba(37, 99, 235, .25); }
.leaflet-container { font-family: var(--font-body); }
.nomap { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--ink-2); }

/* ---------- product modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 0; background: rgba(10, 16, 12, .55); backdrop-filter: blur(3px); animation: fade .2s; overflow-y: auto; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: relative; width: 100%; max-width: 980px; max-height: 100%; background: var(--bg); overflow-y: auto; animation: slide .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes slide { from { transform: translateY(28px); opacity: .01; } }
@media (min-width: 760px) { .modal { padding: 28px 18px; } .sheet { border-radius: 20px; max-height: calc(100vh - 56px); box-shadow: var(--shadow-lift); } }
.closebtn { position: sticky; top: 10px; float: right; margin: 10px 10px 0 0; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; }
.pdetail { display: grid; gap: 22px; padding: 16px 16px 26px; clear: both; }
@media (min-width: 760px) { .pdetail { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding: 24px; } }
.gallery { min-width: 0; display: grid; gap: 10px; align-content: start; }
.gmain { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); background: var(--surface-2); scrollbar-width: none; }
.gmain::-webkit-scrollbar { display: none; }
.gmain button { flex: 0 0 100%; scroll-snap-align: center; border: 0; padding: 0; background: none; aspect-ratio: 4 / 3; cursor: zoom-in; }
.gmain img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.thumbs button { flex: none; width: 64px; height: 50px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--surface-2); opacity: .75; }
.thumbs button[aria-current="true"] { border-color: var(--red); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ghint { font-size: 12px; color: var(--ink-2); }
.pinfo { display: grid; gap: 14px; align-content: start; min-width: 0; }
.pinfo h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.pinfo .price { font-size: 30px; }
.facts { display: grid; gap: 8px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.facts span:first-child { color: var(--ink-2); }
.facts b { text-align: right; }
.shopbox { display: grid; gap: 8px; padding: 14px; background: var(--green-soft); border-radius: var(--radius); }
.shopbox h3 { font-size: 17px; }
.actions { display: grid; gap: 10px; }
.more { grid-column: 1 / -1; display: grid; gap: 10px; }
.more h3 { font-size: 18px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 170px); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; font-size: 13px; text-align: left; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .93); display: grid; grid-template-rows: auto 1fr auto; animation: fade .2s; }
.lbtop { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; color: #fff; }
.lbstage { overflow: auto; display: grid; place-items: center; touch-action: pan-x pan-y pinch-zoom; }
.lbstage img { max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; cursor: zoom-in; transition: width .25s; }
.lbstage.zoom { place-items: start; }
.lbstage.zoom img { max-width: none; max-height: none; width: 220%; cursor: zoom-out; }
.lbnav { display: flex; justify-content: center; gap: 12px; padding: 12px 12px calc(14px + env(safe-area-inset-bottom, 0px)); }
.lbnav .btn, .lbtop .btn { background: rgba(255, 255, 255, .14); border-color: transparent; color: #fff; }

/* ---------- pages ---------- */
.page { padding-block: 18px 80px; display: grid; gap: 20px; }
.shophead { display: grid; gap: 12px; padding: 18px; border-radius: 18px; background: var(--green-soft); }
.shophead h1 { font-size: clamp(26px, 4.5vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.cols { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .cols { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.panel h2 { font-size: 19px; }
.review { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 2px; }
.review:first-of-type { border-top: 0; padding-top: 0; }
.starpick { display: flex; gap: 4px; }
.starpick button { border: 0; background: none; font-size: 28px; line-height: 1; color: var(--line); padding: 2px; }
.starpick button.on { color: var(--star); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 34px; color: var(--ink-2); }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); }
.timeline li.done { color: var(--ink); }
.timeline li.done::after { background: var(--green); border-color: var(--green); }
.timeline li.done::before { background: var(--green); }
.timeline small { display: block; color: var(--ink-2); }
.formgrid { display: grid; gap: 12px; }
.note { font-size: 13px; color: var(--ink-2); }

.toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 120; background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow-lift); max-width: calc(100vw - 32px); animation: rise .3s; }
.footer { border-top: 1px solid var(--line); padding-block: 22px 40px; color: var(--ink-2); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- grouped category chips and nearby alerts ---------- */
.chips.sub { padding-top: 2px; }
.chips.sub .chip { font-size: 13px; padding: .35em .8em; border-style: dashed; }
.chips.wrapchips { flex-wrap: wrap; overflow: visible; }
.hero .btn#nbHero { margin-top: 14px; }
.nbpill { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: inline-flex; gap: 8px; align-items: center; border: 0; background: var(--green); color: #fff; font-weight: 700; padding: .65em 1.1em; border-radius: 999px; box-shadow: var(--shadow-lift); animation: nbpulse 2.4s ease-in-out infinite; }
.nbpill .i { width: 18px; height: 18px; }
@keyframes nbpulse { 0%, 100% { box-shadow: 0 6px 18px rgba(0,0,0,.25), 0 0 0 0 color-mix(in srgb, var(--green) 50%, transparent); } 50% { box-shadow: 0 6px 18px rgba(0,0,0,.25), 0 0 0 10px transparent; } }
@media (prefers-reduced-motion: reduce) { .nbpill { animation: none; } }
.nbalert { position: fixed; z-index: 300; left: 12px; right: 12px; top: calc(10px + env(safe-area-inset-top, 0px)); max-width: 560px; margin-inline: auto; display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--ink); color: var(--bg); padding: 12px 14px; border-radius: var(--radius); box-shadow: var(--shadow-lift); border-left: 6px solid var(--red); animation: rise .3s; }
.nbalert .nbbtns { display: flex; gap: 6px; flex: none; }
.nbalert small { opacity: .85; }
.nbstatus { padding: 10px 14px; border-radius: var(--radius); background: var(--surface-2); color: var(--ink-2); font-size: 14px; }
.nbstatus.on { background: var(--green-soft); color: var(--green); font-weight: 600; }
.nbh { font-weight: 700; color: var(--ink); display: block; margin-bottom: 4px; }
.nbgroup { display: grid; gap: 4px; margin-bottom: 8px; }
.nbgroup > b { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.nbtoggles { display: grid; gap: 2px; }
.banner-note { font-size: 13px; padding: 10px 14px; border-radius: var(--radius); background: var(--surface-2); color: var(--ink-2); }
.plistn { display: grid; gap: 8px; margin-top: 8px; }
.nbitem { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.nbalert .btn.ghost { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 45%, transparent); }
.nbalert .btn.ghost:hover { background: color-mix(in srgb, var(--bg) 15%, transparent); }

/* ---------- buttons that glow and respond ---------- */
.btn.red { box-shadow: 0 4px 14px color-mix(in srgb, var(--red) 34%, transparent); }
.btn.red:hover { box-shadow: 0 8px 22px color-mix(in srgb, var(--red) 48%, transparent); transform: translateY(-2px); }
.btn.wa { box-shadow: 0 4px 14px color-mix(in srgb, var(--wa) 34%, transparent); }
.btn.wa:hover { box-shadow: 0 8px 22px color-mix(in srgb, var(--wa) 48%, transparent); transform: translateY(-2px); }
.btn:active, .chip:active, .tab:active { transform: scale(.96); transition-duration: .06s; }
.btn.glow { animation: breathe 2.8s ease-in-out infinite; }
.btn.red.glow { --glow: var(--red); }
.btn.wa.glow { --glow: var(--wa); }
@keyframes breathe { 0%, 100% { box-shadow: 0 4px 14px color-mix(in srgb, var(--glow) 34%, transparent), 0 0 0 0 color-mix(in srgb, var(--glow) 40%, transparent); } 50% { box-shadow: 0 6px 20px color-mix(in srgb, var(--glow) 50%, transparent), 0 0 0 9px transparent; } }
.btn.follow[aria-pressed="true"] { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.btn.follow[aria-pressed="true"] .i { fill: currentColor; }
.sellbtn { background: var(--green); border-color: var(--green); color: var(--surface); }
.sellmini { display: none; }

/* ---------- hearts, tags, deals ---------- */
.heart { position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--ink-2); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); transition: transform .15s, color .2s; }
.heart:hover { transform: scale(1.1); color: var(--red); }
.heart .i { width: 20px; height: 20px; }
.heart[aria-pressed="true"] { color: var(--red); }
.heart[aria-pressed="true"] .i { fill: currentColor; }
.heart.pop { animation: heartpop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes heartpop { 0% { transform: scale(.7); } 55% { transform: scale(1.35); } 100% { transform: scale(1); } }
.heart.big { position: static; flex: none; width: 44px; height: 44px; background: var(--surface); border: 1.5px solid var(--line); }
.badge.deal { background: #fff2c2; color: #6b4a00; }
.was { color: var(--ink-2); text-decoration: line-through; font-weight: 600; font-size: .75em; margin-right: 4px; }
.pill.ok { background: var(--green-soft); color: var(--green); display: inline-flex; align-items: center; gap: 3px; }
.pill.ok .i { width: 12px; height: 12px; stroke-width: 3; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; background: var(--line); }
.dot.open { background: #23b45b; box-shadow: 0 0 0 3px color-mix(in srgb, #23b45b 25%, transparent); }
.dot.closed { background: #b9c2bb; }
.openline { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.openline.on { color: var(--green); }
.dealstrip { display: grid; gap: 8px; margin-bottom: 18px; padding: 14px; border-radius: var(--radius); background: linear-gradient(135deg, #fff6d6, var(--green-soft)); }
.dealstrip h2 { font-size: 20px; }
:root[data-theme="dark"] .dealstrip { background: linear-gradient(135deg, #3b3314, var(--green-soft)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dealstrip { background: linear-gradient(135deg, #3b3314, var(--green-soft)); } }
.chips.qchips .chip { display: inline-flex; align-items: center; }
.chips.qchips .q-deals[aria-pressed="true"] { background: #e0a100; border-color: #e0a100; color: #2b1d00; }
.chips.qchips .q-openNow[aria-pressed="true"] .dot { background: #fff; box-shadow: none; }
.hours { font-size: 14px; }
.hours summary { cursor: pointer; font-weight: 600; color: var(--green); }
.hours table { margin-top: 6px; border-collapse: collapse; }
.hours th { text-align: left; font-weight: 600; padding: 2px 16px 2px 0; color: var(--ink-2); }
.sharerow { gap: 8px; }
.count-dot { font-style: normal; font-size: 11px; font-weight: 800; min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--red); color: var(--red-ink); margin-left: 4px; }
.snote { font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 10px 10px 0 0; background: var(--surface-2); color: var(--ink-2); }
.snote.good { background: var(--green-soft); color: var(--green); }
.snote.warn { background: #fff2c2; color: #6b4a00; }
.savedcell { display: grid; align-content: start; }
.savedcell .card { border-top-left-radius: 0; border-top-right-radius: 0; }
.goneitem { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); background: var(--surface); }
.banner-note.good { background: var(--green-soft); color: var(--green); font-weight: 600; }
.morelist { display: grid; gap: 12px; max-width: 640px; }
.morecard { display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; width: 100%; font: inherit; cursor: pointer; }
.morecard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.morecard > svg.i { width: 26px; height: 26px; color: var(--green); }
.morecard b { display: block; font: 700 17px var(--font-display); }
.morecard small { display: block; color: var(--ink-2); font-size: 14px; }
.morecard.hot { background: var(--green); border-color: var(--green); color: #fff; justify-content: flex-start; }
.morecard.hot > svg.i, .morecard.hot small { color: #fff; opacity: .95; }

/* ---------- images fade in, pictures never jump ---------- */
.card .ph img:not(.ld), .gmain img:not(.ld) { opacity: 0; }
.card .ph img, .gmain img { transition: opacity .35s, transform .5s cubic-bezier(.2, .7, .2, 1); }

/* ---------- stays comfortable on a phone: bottom bar ---------- */
.actions.sticky .btn { min-height: 50px; font-size: 16px; }
.tabbar { display: none; }
@media (max-width: 759px) {
  .toplinks { display: none; }
  .sellmini { display: inline-flex; order: 2; margin-left: auto; background: var(--green); border-color: var(--green); color: var(--surface); }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .tabbar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .tab { position: relative; display: grid; justify-items: center; gap: 2px; border: 0; background: none; color: var(--ink-2); text-decoration: none; font-size: 11px; font-weight: 700; padding: 6px 2px; border-radius: 12px; transition: color .2s, transform .1s; }
  .tab .i { width: 24px; height: 24px; }
  .tab[aria-current="page"] { color: var(--red); }
  .tab[aria-current="page"] .i { stroke-width: 2.4; }
  .tab .count-dot { position: absolute; top: 0; left: calc(50% + 6px); margin: 0; }
  .mobile-toggle { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .nbpill { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .actions.sticky { position: sticky; bottom: 0; z-index: 3; padding: 10px 0; margin: 0 -4px; background: linear-gradient(to top, var(--bg) 70%, transparent); }
  .sheet .actions.sticky { padding-inline: 4px; }
}

/* ---------- low-data mode ---------- */
html.lowdata *, html.lowdata *::before, html.lowdata *::after { animation: none !important; transition: none !important; }
html.lowdata .card .ph img:not(.ld) { opacity: 1; }

/* everyday prices, asks, comparison */
.stapstrip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.stapcard { flex: 0 0 150px; display: grid; gap: 2px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.stapcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stapcard .from { font-weight: 800; color: var(--red); font-size: 18px; }
.stapcard .from small, .stapcard > small { font-weight: 500; color: var(--ink-2); font-size: 12px; }
.askbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--green) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--green) 30%, var(--line)); }
.askbar > span { flex: 1 1 200px; min-width: 0; }
.askbar .i { width: 26px; height: 26px; flex: none; color: var(--green); }
.lookgrid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 860px) { .lookgrid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.lookgrid .field input[type="text"] { width: 100%; }
.reqrow { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.reqrow > div { min-width: 0; overflow-wrap: anywhere; }
.cmp { display: grid; gap: 8px; }
.cmprow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; }
.cmprow.best { border-color: var(--green); box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 25%, transparent); }
.cmpmain { display: grid; gap: 2px; min-width: 0; } .cmpmain b { overflow-wrap: anywhere; }
.cmpprice { display: grid; gap: 2px; justify-items: end; text-align: right; } .cmpprice b { font-size: 18px; } .cmpprice small { color: var(--ink-2); } .cmpprice .more { color: var(--red); }
@media (max-width: 480px) { .cmprow { grid-template-columns: minmax(0, 1fr) auto; } .cmprow .btn { grid-column: 1 / -1; justify-content: center; } }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--green); }
