:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --surface-2: #f1ece4;
  --ink: #1f1d1a;
  --muted: #6b665e;
  --line: #e6e0d6;
  --accent: #c4532d;
  --deal: #2f7d4f;
  --deal-bg: #e4f2e9;
  --reserved: #9a6412;
  --reserved-bg: #fbefd9;
  --sold: #6b665e;
  --sold-bg: #ebe7e0;
  --wa: #1c9e50;
  --wa-hover: #17863f;
  --meter-off: #e2dcd2;
  --cond-ok: #2b6f8a;
  --stamp: #c62828;
  --stamp-bg: rgba(255, 255, 255, .82);
  --shadow: 0 1px 2px rgba(31, 29, 26, .06), 0 4px 16px rgba(31, 29, 26, .06);
  /* Background texture */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .1 0 0 0 0 .08 0 0 0 .3 -.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --glow-1: rgba(214, 110, 60, .16);
  --glow-2: rgba(233, 170, 70, .14);
  --glow-3: rgba(120, 150, 130, .10);
  --dot: rgba(31, 29, 26, .13);
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161513;
    --surface: #1f1e1b;
    --surface-2: #2a2825;
    --ink: #f1ede6;
    --muted: #a39d93;
    --line: #34312c;
    --accent: #e07a55;
    --deal: #6fcb93;
    --deal-bg: #1f3428;
    --reserved: #e9b25a;
    --reserved-bg: #3a2e19;
    --sold: #a39d93;
    --sold-bg: #2f2c28;
    --meter-off: #3a3732;
    --cond-ok: #6db6d3;
    --stamp: #ff6b5e;
    --stamp-bg: rgba(20, 18, 16, .78);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .9 0 0 0 .2 -.07'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --glow-1: rgba(224, 122, 85, .14);
    --glow-2: rgba(200, 140, 60, .08);
    --glow-3: rgba(90, 120, 170, .10);
    --dot: rgba(241, 237, 230, .09);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    var(--grain),
    radial-gradient(900px 520px at 8% -6%, var(--glow-1), transparent 65%),
    radial-gradient(760px 480px at 96% 4%, var(--glow-2), transparent 65%),
    radial-gradient(1000px 700px at 50% 110%, var(--glow-3), transparent 70%);
  background-size: 180px 180px, auto, auto, auto;
  background-attachment: fixed;
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 40px 0 28px; isolation: isolate; }
/* Faint dot grid behind the header, fading out downwards */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.4px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .5) 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .5) 55%, transparent 100%);
  pointer-events: none;
}
.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-weight: 650;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.lede { margin: 12px 0 0; max-width: 62ch; color: var(--muted); font-size: 1.05rem; }
.facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
}
.facts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .9rem;
}
.facts strong { font-weight: 650; }

/* ---------- Toolbar ---------- */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.toolbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
  font-size: .92rem;
}
.tab .count { color: var(--muted); margin-left: 4px; font-size: .85em; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tab[aria-selected="true"] .count { color: inherit; opacity: .7; }

/* Second row: subcategories of the chosen main category */
.subtabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 0 10px;
}
.subtabs[hidden] { display: none; }
.subtabs::-webkit-scrollbar { display: none; }
.subtab {
  flex: none;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: .86rem;
  cursor: pointer;
  white-space: nowrap;
}
.subtab .count { color: var(--muted); margin-left: 5px; font-size: .85em; }
.subtab[aria-selected="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.crumb-sep { color: var(--muted); font-weight: 400; margin: 0 2px; }

/* Fade the edge of a sideways-scrolling row when more chips are hidden that way */
.scroll-row { position: relative; }
.scroll-row.fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
.scroll-row.fade-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent); }
.scroll-row.fade-l.fade-r {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}

.tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#search {
  font: inherit;
  font-size: .92rem;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  width: 200px;
}
#sort {
  font: inherit;
  font-size: .92rem;
  padding: 7px 30px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%238a8478' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  max-width: 190px;
  text-overflow: ellipsis;
}
.filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .92rem;
  cursor: pointer;
  white-space: nowrap;
}
.filters-btn[aria-expanded="true"] { border-color: var(--ink); }
.filters-btn.on { color: var(--accent); border-color: var(--accent); }
.filters-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
}
.filters-count[hidden] { display: none; }

.filters {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 0 10px;
}
.filters[hidden] { display: none; }
.filters::-webkit-scrollbar { display: none; }
.fchip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: .84rem;
  cursor: pointer;
  white-space: nowrap;
}
.fchip:hover:not([disabled]) { background: var(--surface); border-style: solid; }
.fchip .fcount { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.fchip.on { background: var(--accent); border: 1px solid var(--accent); color: #fff; }
.fchip.on .fcount { color: #fff; opacity: .8; }
.fchip[disabled] { opacity: .4; cursor: default; }
.fclear { border-style: solid; color: var(--accent); }
.fsep { flex: none; width: 1px; height: 18px; background: var(--line); margin: 0 4px; }

.empty p { margin: 0 0 12px; }

.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; color: var(--muted); cursor: pointer; }

/* ---------- Sections & grid ---------- */
.section { padding: 28px 0 8px; scroll-margin-top: 70px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 1.4rem; letter-spacing: -.01em; white-space: nowrap; }
.section-head .count { color: var(--muted); font-size: .95rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---------- Card ---------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  background: var(--surface-2);
  cursor: pointer;
  overflow: hidden;
}
/* Swipeable photo strip on each card */
.card-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: pointer;
}
.card-track::-webkit-scrollbar { display: none; }
.card-track:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.card-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.card-slide img { width: 100%; height: 100%; object-fit: cover; }
.card-media .badge { pointer-events: none; }

/* Dots: how many photos, and which one is showing */
.cdots {
  position: absolute;
  left: 50%;
  bottom: 9px;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .28);
  pointer-events: none;
}
.cdots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .6); transition: width .2s ease, background .2s ease; }
.cdots i.on { width: 14px; background: #fff; }

/* Arrows: only on devices with a mouse, shown on hover */
.cnav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #1f1d1a;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
  opacity: 0;
  transition: opacity .15s ease;
}
.cnav.prev { left: 8px; }
.cnav.next { right: 8px; }
.card-media:hover .cnav, .cnav:focus-visible { opacity: 1; }
@media (hover: none) { .cnav { display: none; } }

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .02em;
}
.card-media .badge { position: absolute; left: 10px; top: 10px; }
.status-available { background: var(--deal-bg); color: var(--deal); }
.status-reserved { background: var(--reserved-bg); color: var(--reserved); }
.status-sold { background: var(--sold-bg); color: var(--sold); }

.card-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; flex: 1; }
.card h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }

.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.price { font-size: 1.5rem; font-weight: 750; letter-spacing: -.01em; }
.deal { color: var(--deal); background: var(--deal-bg); font-size: .78rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; }

.mini { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin: 0; padding-top: 10px; border-top: 1px dashed var(--line); }
.mini div { min-width: 0; }
.mini dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.mini dd { margin: 0; font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.terms { color: var(--muted); font-size: .8rem; }

.chips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 650;
  border: 1px solid currentColor;
}
.cond-top { color: var(--deal); }
.cond-ok { color: var(--cond-ok); }
.cond-mid { color: var(--reserved); }
.cond-low { color: var(--accent); }
.later { margin: -2px 0 0; font-size: .85rem; color: var(--reserved); font-weight: 600; }

.usage { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; }
.meter { display: inline-flex; gap: 3px; }
.meter i { width: 14px; height: 6px; border-radius: 3px; background: var(--meter-off); }
.meter i.on { background: var(--accent); }
.usage-label { color: var(--muted); }

.snippet {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-wa { background: var(--wa); color: #fff; flex: 1; }
.btn-wa:hover { background: var(--wa-hover); }
.btn[disabled], .btn.is-disabled { background: var(--sold-bg); color: var(--sold); cursor: default; pointer-events: none; }

.card.is-sold .card-media img { filter: grayscale(1); opacity: .6; }
.card.is-sold .card-media .ph { filter: grayscale(1); opacity: .6; }

/* SOLD / TAKEN stamp */
.stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%) rotate(-14deg);
  padding: 6px 22px 4px;
  border: 4px solid var(--stamp);
  border-radius: 10px;
  outline: 2px solid var(--stamp);
  outline-offset: 3px;
  background: var(--stamp-bg);
  color: var(--stamp);
  font-size: clamp(1.6rem, 6vw, 2.3rem);
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.1;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.gallery .stamp { top: 40%; font-size: clamp(2rem, 7vw, 3rem); }

/* Giveaway / 1 zł chips and prices */
.tab-special { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.tab-special[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.price.free { color: var(--deal); }
.price.tbd { color: var(--muted); font-size: 1.15rem; font-weight: 600; font-style: italic; }
.section-note { font-size: .95rem; font-weight: 400; color: var(--muted); white-space: normal; }
.card.is-sold .price { color: var(--muted); text-decoration: line-through; }

/* Photo placeholder (no photo yet / photo failed to load) */
.ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: .85rem;
  background: var(--surface-2);
}
.ph span { font-size: 2.6rem; line-height: 1; }

/* ---------- Detail dialog ---------- */
dialog#detail {
  width: min(980px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  overflow: hidden;
}
dialog#detail::backdrop { background: rgba(20, 18, 15, .6); }

.sheet {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  height: min(720px, calc(100vh - 32px));
}
.sheet-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}

.gallery { position: relative; background: var(--surface-2); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  aspect-ratio: 4 / 3;
  flex: none;
}
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
.nav {
  position: absolute;
  top: calc(50% - 40px);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .85);
  color: #1f1d1a;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.nav.prev { left: 10px; }
.nav.next { right: 10px; }
.thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.thumb {
  flex: none;
  width: 64px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  opacity: .65;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--accent); opacity: 1; }

.detail-body { padding: 24px 24px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.crumb { margin: 0; color: var(--accent); font-size: .82rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.detail-body h2 { margin: 0; font-size: 1.55rem; line-height: 1.2; letter-spacing: -.01em; }
.detail-body .price { font-size: 2rem; }

.specs { width: 100%; border-collapse: collapse; font-size: .94rem; }
.specs th, .specs td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs th { color: var(--muted); font-weight: 500; width: 44%; padding-right: 12px; }
.specs td { font-weight: 600; }
.specs .sub { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.specs a { color: var(--accent); }

.detail-body h3 { margin: 4px 0 -6px; font-size: 1rem; }
.desc { margin: 0; white-space: pre-line; color: var(--ink); }

.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }

/* ---------- Card extras ---------- */
.facts a { color: var(--accent); font-weight: 600; text-decoration: none; }
.facts a:hover { text-decoration: underline; }

.title-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.title-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.model { margin: 2px 0 0; color: var(--muted); font-size: .85rem; }
.logistics { margin: -2px 0 0; font-size: .85rem; color: var(--muted); }
.logistics .dot { margin: 0 6px; opacity: .6; }

.buzz { margin: -2px 0 0; font-size: .85rem; color: var(--accent); }
.buzz strong { font-weight: 700; }
.buzz .dot { margin: 0 6px; opacity: .6; }
.badge.hot { background: var(--accent); color: #fff; }
.card-media .badge.hot { left: auto; right: 10px; }
.badge[hidden] { display: none; }

.btn-sl { white-space: nowrap; }
.btn-sl.on { background: var(--deal-bg); border-color: transparent; color: var(--deal); }

/* ---------- Detail extras ---------- */
.bars {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.bar-row { display: grid; grid-template-columns: 92px 1fr 72px; align-items: center; gap: 10px; font-size: .88rem; }
.bar-label { color: var(--muted); }
.bar-track { height: 10px; border-radius: 5px; background: var(--meter-off); overflow: hidden; }
.bar { display: block; height: 100%; border-radius: 5px; background: var(--muted); opacity: .55; }
.bar-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-row.mine .bar-label, .bar-row.mine .bar-val { color: var(--ink); font-weight: 700; }
.bar-row.mine .bar { background: var(--accent); opacity: 1; }
.savings { margin: -4px 0 0; font-size: .9rem; color: var(--deal); }
.lbl.show { color: var(--deal); }

/* ---------- Pickup & FAQ ---------- */
.pickup { margin-top: 48px; padding: 40px 0 16px; border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.pickup h2 { margin: 0 0 18px; font-size: 1.5rem; letter-spacing: -.01em; }
.pickup h3 { margin: 32px 0 12px; font-size: 1.1rem; }
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 16px 14px 52px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: .94rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 13px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
}
.pickup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.pickup-grid div {
  background: var(--surface);
  padding: 12px 16px;
  /* dividers drawn on each box, so a leftover empty cell just shows the card background */
  box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line);
}
.pickup-grid dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.pickup-grid dd { margin: 2px 0 0; font-weight: 600; }
.pickup-grid .sub { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.pickup-grid a { color: var(--accent); font-weight: 600; }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.faq summary { cursor: pointer; padding: 13px 0; font-weight: 600; list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq p { margin: 10px 0 14px; color: var(--muted); }

/* ---------- Shortlist bar ---------- */
.shortlist {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .12);
  padding-bottom: env(safe-area-inset-bottom);
}
.shortlist[hidden] { display: none; }
body.has-shortlist { padding-bottom: 76px; }
.sl-inner { padding-top: 10px; padding-bottom: 10px; }
.sl-bar { display: flex; align-items: center; gap: 12px; }
.sl-bar .btn-wa { flex: none; }
.sl-toggle {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  font-size: .95rem;
}
.chev { color: var(--muted); margin-left: 4px; }
.sl-list { max-height: 40vh; overflow-y: auto; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.sl-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.sl-row:first-child { border-top: 0; }
.sl-name { flex: 1; min-width: 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font-size: .92rem; }
.sl-name:hover { text-decoration: underline; }
.sl-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.sl-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}
.sl-remove:hover { background: var(--surface-2); color: var(--ink); }

/* ---------- Footer ---------- */
.footer { margin-top: 40px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer p { margin: 0 0 4px; }

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .hero { padding: 28px 0 20px; }
  .tools { width: 100%; gap: 8px; flex-wrap: nowrap; }
  #search { flex: 1; width: auto; min-width: 0; }
  #search { min-width: 96px; padding-left: 10px; padding-right: 8px; }
  #sort { flex: 0 1 auto; min-width: 0; max-width: 120px; padding-left: 10px; padding-right: 26px; background-position: right 9px center; }
  .filters-btn { flex: none; padding: 7px 10px; gap: 4px; }
  .grid { grid-template-columns: 1fr; gap: 14px; }

  dialog#detail {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    margin: 0;
  }
  .sheet { display: block; height: 100%; max-height: none; overflow-y: auto; }
  .detail-body { overflow: visible; padding: 18px 16px 90px; }
  .detail-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line);
  }
  .detail-actions { flex-wrap: nowrap; }
  .detail-actions .btn-wa { flex: 1; }
  .detail-actions .lbl:not(.show) { display: none; }

  .sl-bar .btn-wa { padding: 9px 12px; }
  .bar-row { grid-template-columns: 84px 1fr 64px; }
}

@media (max-width: 380px) {
  .sl-bar .btn-wa { font-size: .85rem; }
}
