/* ZooFly KC storefront. Clean drop store: white, ink, Archivo, one red for SOLD.
   Mobile first: 2 columns on phones, 3 from 700px, 4 from 1000px. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* color */
  --white: #FFFFFF;
  --ink: #111111;
  --ink-hover: #2B2B2B;
  --meta: #5E5E5E;
  --line: #E7E7E7;
  --line-strong: #CFCFCF;
  --skel: #F2F2F2;
  --wash: #F6F6F6;
  --sold: #D92D20;
  --on-ink: #FFFFFF;
  --on-ink-meta: #A9A9A9;
  --on-ink-line: #2C2C2C;
  --scrim: rgba(17, 17, 17, .44);

  /* type */
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --t-xs: 12px;
  --t-sm: 13px;
  --t-ui: 14px;
  --t-base: 15px;
  --t-md: 17px;
  --t-lg: 22px;
  --t-xl: 26px;
  --t-display: 34px;

  /* spacing rhythm (4px base) */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;

  /* layout */
  --gut: 16px;
  --hdr: 56px;
  --max: 1240px;
  --r: 4px;
  --col-gap: 8px;
  --row-gap: 24px;

  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-std: cubic-bezier(.4, 0, .2, 1);
  --t-fast: 160ms;
  --t-drawer: 250ms;
}

/* ---------- reset + browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--white);
  color: var(--ink);
  scrollbar-color: #C8C8C8 var(--white);
  scrollbar-width: thin;
  scroll-padding-top: calc(var(--hdr-total, var(--hdr)) + var(--s4));
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  caret-color: var(--ink);
  font-synthesis: none;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--white); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--white); }
::-webkit-scrollbar-thumb { background: #C8C8C8; border-radius: 10px; border: 3px solid var(--white); }
::placeholder { color: var(--meta); opacity: 1; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: var(--r);
  font-weight: 600; font-size: var(--t-ui);
}
.skip:focus-visible { top: 8px; outline-color: var(--ink); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.num { font-variant-numeric: tabular-nums; }
.link {
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  text-decoration-color: #BDBDBD; transition: text-decoration-color var(--t-fast);
}
.link:hover { text-decoration-color: currentColor; }

/* ---------- type ---------- */
.h-display {
  font-weight: 800; font-stretch: 88%; font-size: var(--t-display); line-height: 1;
  letter-spacing: -.02em; text-wrap: balance;
}
.h-display span { display: block; }
.h1 {
  font-size: var(--t-xl); line-height: 1.08; font-weight: 800; font-stretch: 90%;
  letter-spacing: -.015em; text-wrap: balance;
}
.h2 {
  font-size: var(--t-lg); line-height: 1.15; font-weight: 800; font-stretch: 90%;
  letter-spacing: -.01em; text-wrap: balance;
}
.lede { font-size: var(--t-base); line-height: 1.4; color: var(--meta); max-width: 52ch; }
.meta { color: var(--meta); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--white); border-bottom: 1px solid var(--line);
  view-transition-name: site-header;
}
.header-inner { height: var(--hdr); display: flex; align-items: center; gap: var(--s2); }
.brand { display: flex; align-items: center; height: 44px; margin-right: auto; border-radius: var(--r); }
.wordmark { width: 119px; height: 22px; }
.nav-main { display: none; }
.header-link {
  display: inline-flex; align-items: center; height: 44px; padding: 0 10px;
  font-size: var(--t-ui); font-weight: 600; border-radius: var(--r);
}
.header-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: var(--r); color: var(--ink); flex: none;
  transition: background-color var(--t-fast);
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:active { opacity: .6; }
.bag-btn { margin-right: -10px; }
.bag-btn svg { width: 24px; height: 24px; }
.bag-btn.nudge svg { animation: nudge 420ms var(--ease-out); }
.bag-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--ink); color: var(--white);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
  font-variant-numeric: tabular-nums; transform: scale(0);
  transition: transform 220ms var(--ease-out); box-shadow: 0 0 0 2px var(--white);
}
.bag-btn.has-items .bag-count { transform: scale(1); }
.bag-count.pop { animation: pop 440ms var(--ease-out); }
@keyframes pop { 0% { transform: scale(1); } 30% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes nudge { 0% { transform: translateY(0); } 30% { transform: translateY(2px) rotate(-6deg); } 100% { transform: translateY(0); } }

/* ---------- announcement ---------- */
.announce {
  background: var(--ink); color: var(--on-ink); min-height: 36px; padding: 0 var(--gut);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: var(--t-sm); font-weight: 500; letter-spacing: .01em; text-align: center;
}
.announce i { width: 3px; height: 3px; border-radius: 50%; background: var(--on-ink-meta); flex: none; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 22px; border-radius: var(--r); border: 1px solid var(--ink);
  font-size: var(--t-base); font-weight: 700; letter-spacing: .005em; white-space: nowrap;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform 140ms var(--ease-out);
}
.btn:active { transform: scale(.985); }
.btn-block { display: flex; width: 100%; }
.btn-sm { height: 44px; padding: 0 18px; font-size: var(--t-ui); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .sep { width: 1px; height: 16px; background: currentColor; opacity: .35; }
.btn[disabled], .btn[aria-disabled="true"] {
  cursor: not-allowed; background: var(--white); color: var(--meta); border-color: var(--line);
}
.btn[disabled]:active { transform: none; }
.btn.is-sold[disabled] { color: var(--sold); }
.btn.is-busy { pointer-events: none; }
.btn.is-busy .spin { display: block; }
.spin {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.text-btn {
  display: inline-flex; align-items: center; min-height: 32px;
  font-size: var(--t-sm); font-weight: 500; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  text-decoration-color: #BDBDBD; border-radius: 2px; transition: text-decoration-color var(--t-fast);
}
.text-btn:hover { text-decoration-color: var(--ink); }

/* check icon draws itself when added */
.i-check path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.is-added .i-check path, .is-drawn .i-check path { animation: draw 340ms 40ms var(--ease-out) both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- product tile ---------- */
.grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--col-gap); row-gap: var(--row-gap);
}
.tile { position: relative; min-width: 0; display: flex; flex-direction: column; }
.tile-link { display: block; border-radius: var(--r); }
.tile-media {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden;
  background: var(--skel); transition: transform var(--t-fast) var(--ease-out);
}
.tile-link:active .tile-media { transform: scale(.985); }
.tile-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity 260ms ease-out, transform 600ms var(--ease-out);
}
.tile-media .tile-alt { opacity: 0; }
.tile-title {
  margin-top: var(--s2); font-size: var(--t-ui); line-height: 1.3; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em; text-wrap: pretty;
}
.tile-row {
  margin-top: auto; padding-top: var(--s2); display: flex; align-items: center;
  justify-content: space-between; gap: var(--s2); min-height: 40px;
}
.tile-price { display: flex; align-items: baseline; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; }
.price { font-weight: 700; font-size: var(--t-base); font-variant-numeric: tabular-nums; color: var(--ink); }
.was { font-size: var(--t-sm); color: var(--meta); font-variant-numeric: tabular-nums; text-decoration-thickness: 1px; }
.size { font-size: var(--t-sm); color: var(--meta); overflow: hidden; text-overflow: ellipsis; }

.flag {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: var(--white); color: var(--ink);
  font-size: 11px; line-height: 1; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 5px 7px; border-radius: 3px; box-shadow: 0 1px 2px rgba(17, 17, 17, .12);
}
.flag-sold { color: var(--sold); }
.flag-hold { background: var(--ink); color: var(--white); box-shadow: none; }

/* quick add */
.add-form { flex: none; margin: 0; }
.add {
  position: relative; height: 32px; min-width: 70px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--ink); border-radius: var(--r); background: var(--white); color: var(--ink);
  font-size: var(--t-sm); font-weight: 600;
  transition: background-color var(--t-fast), color var(--t-fast), transform 140ms var(--ease-out);
}
.add::before { content: ""; position: absolute; inset: -7px -4px; }
.add:active { transform: scale(.94); }
.add svg { width: 12px; height: 12px; flex: none; }
.add .i-check { display: none; }
.add.is-added { background: var(--ink); color: var(--white); }
.add.is-added .i-plus { display: none; }
.add.is-added .i-check { display: block; }
.tile-note { font-size: var(--t-sm); font-weight: 600; white-space: nowrap; }

/* sold state: red means sold, nothing else */
.tile.is-sold .tile-media::before,
.tile.is-held .tile-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(255, 255, 255, .42); pointer-events: none;
}
.tile.is-sold .tile-media img { filter: grayscale(.5); }
.tile.is-sold .tile-title { color: var(--meta); }
.tile.is-sold .price, .price.is-struck {
  text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--meta); font-weight: 500;
}
.sold-word { font-size: var(--t-sm); font-weight: 700; color: var(--sold); white-space: nowrap; }

/* ---------- skeleton shimmer (only while a photo is actually loading) ---------- */
.skel { position: relative; background: var(--skel); }
.skel.is-pending img { opacity: 0; }
.skel.is-pending::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.75) 50%, rgba(255,255,255,0) 70%);
  background-size: 220% 100%; animation: shimmer 1.15s linear infinite;
}
.skel.is-error::before {
  content: "Photo didn\2019t load"; position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center; font-size: var(--t-xs); color: var(--meta);
}
.skel.is-error img { opacity: 0; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* ---------- sections + rhythm ---------- */
.section { padding-top: var(--s7); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4);
  margin-bottom: var(--s4);
}
.section-head .h2 { font-size: 24px; font-stretch: 88%; letter-spacing: -.015em; line-height: 1.05; }
.section-head p { font-size: var(--t-sm); color: var(--meta); }
.section-head a { font-size: var(--t-ui); font-weight: 600; white-space: nowrap; }

/* home intro */
.intro { padding: 18px 0 15px; }
.intro-sub { margin-top: 9px; font-size: var(--t-base); line-height: 1.35; color: var(--meta); }
.counts {
  margin-top: 7px; display: flex; flex-wrap: wrap; gap: 4px 16px;
  font-size: var(--t-sm); line-height: 18px; color: var(--meta); font-variant-numeric: tabular-nums;
}
.counts span { display: inline-flex; align-items: center; gap: 6px; }
.counts b { color: var(--ink); font-weight: 700; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); flex: none; }
.dot.is-sold { background: var(--sold); }
.dot-inline { display: inline-block; margin-right: 6px; vertical-align: 1px; }
.grid-foot { margin-top: var(--s6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
.grid-foot p { color: var(--meta); font-size: var(--t-ui); }

/* horizontal rails (categories, just sold) */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 42%;
  gap: var(--col-gap); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) var(--s1); scroll-padding: 0 var(--gut);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; min-width: 0; }
.rail-sold { grid-auto-columns: 34%; }

.cat { display: block; border-radius: var(--r); }
.cat-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--skel); }
.cat-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.cat-label { margin-top: var(--s2); display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); }
.cat-label b { font-size: var(--t-ui); font-weight: 600; line-height: 1.3; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-label span { font-size: var(--t-sm); color: var(--meta); font-variant-numeric: tabular-nums; }
.cat:active .cat-media { transform: scale(.985); }

.tile-listed { margin-top: 2px; font-size: var(--t-sm); color: var(--meta); font-variant-numeric: tabular-nums; }
.sold-card .tile-title { min-height: 0; -webkit-line-clamp: 1; font-size: var(--t-sm); }
.sold-card .tile-row { min-height: 0; padding-top: 2px; }
.sold-card .price { font-size: var(--t-sm); }
.sold-ago {
  margin-top: 2px; font-size: var(--t-sm); font-weight: 700; color: var(--sold);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums;
}

/* about him: home's one closing statement, the last thing above the footer */
.about {
  margin-top: var(--s8); padding: var(--s7) 0 var(--s8); border-top: 1px solid var(--line);
  display: grid; gap: var(--s5);
}
.about-copy { display: grid; gap: var(--s3); max-width: 58ch; }
.about-copy p { font-size: var(--t-md); line-height: 1.5; }
.about-copy p + p { color: var(--meta); font-size: var(--t-base); }
.about-facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.about-facts li { display: flex; gap: var(--s3); align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.about-facts svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.about-facts strong { display: block; font-size: var(--t-base); font-weight: 700; }
.about-facts span { display: block; font-size: var(--t-ui); color: var(--meta); }
.close-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s3); margin-top: var(--s3); }
.close-actions .link { font-size: var(--t-ui); font-weight: 600; }

/* ---------- catalog ---------- */
.page-head { padding: var(--s5) 0 var(--s4); display: grid; gap: var(--s2); }
.page-head .count { font-size: var(--t-ui); color: var(--meta); font-variant-numeric: tabular-nums; }
.search { position: relative; margin-top: var(--s2); }
.search input {
  width: 100%; height: 44px; padding: 0 44px 0 40px; border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--white); font-size: 16px; transition: border-color var(--t-fast);
  -webkit-appearance: none; appearance: none;
}
.search input:hover { border-color: var(--meta); }
.search input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.search > svg { position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; color: var(--meta); pointer-events: none; }
.search button, .search .search-clear { position: absolute; right: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r); }
.search button svg, .search .search-clear svg { width: 18px; height: 18px; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.chips {
  display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gut) * -1); padding: 2px var(--gut); scroll-padding: 0 var(--gut);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 18px; background: var(--white);
  font-size: var(--t-sm); font-weight: 600; white-space: nowrap;
  transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast), transform 140ms var(--ease-out);
}
.chip span { font-weight: 500; color: var(--meta); font-variant-numeric: tabular-nums; }
.chip:active { transform: scale(.96); }
.chip[aria-current="true"], .chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip[aria-current="true"] span, .chip.is-on span { color: var(--on-ink-meta); }
.chip-x svg { width: 12px; height: 12px; }
.chip-more { border-style: dashed; }

.toolbar {
  position: relative; margin-top: var(--s3); padding: var(--s2) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
}
.sort { display: flex; align-items: center; gap: var(--s2); }
.sort label { font-size: var(--t-sm); color: var(--meta); }
.select {
  position: relative; display: inline-flex; align-items: center;
}
.select select {
  -webkit-appearance: none; appearance: none; height: 40px; padding: 0 30px 0 10px; border: 0; background: transparent;
  font-size: var(--t-ui); font-weight: 600; cursor: pointer; border-radius: var(--r);
}
.select svg { position: absolute; right: 6px; width: 16px; height: 16px; pointer-events: none; }
.js .sort-go { display: none; }
.sort-go { height: 32px; padding: 0 10px; border: 1px solid var(--ink); border-radius: var(--r); font-size: var(--t-sm); font-weight: 600; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s3); }
.active-filters .text-btn { margin-left: var(--s1); }
.catalog-grid { margin-top: var(--s4); }
.grid-more { grid-column: 1 / -1; display: grid; justify-items: center; gap: var(--s3); padding-top: var(--s5); }
.grid-more p { font-size: var(--t-sm); color: var(--meta); font-variant-numeric: tabular-nums; }
.grid-more .btn { min-width: 200px; }
.pager-prev { margin-top: var(--s4); }
.empty { padding: var(--s8) 0; display: grid; gap: var(--s3); justify-items: start; max-width: 44ch; }
.empty .h2 { font-size: var(--t-lg); }
.empty p { color: var(--meta); }
.empty .btn { margin-top: var(--s2); }
.grid-end { grid-column: 1 / -1; padding-top: var(--s5); color: var(--meta); font-size: var(--t-base); max-width: 44ch; }
.grid-end b { color: var(--ink); font-weight: 600; }
.catalog { padding-bottom: var(--s8); }

/* ---------- product page ---------- */
.pdp { padding-bottom: var(--s7); }
/* the fixed phone buy bar must never cover the footer's last line */
.has-buy-bar .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.crumbs {
  height: 48px; display: flex; align-items: center; gap: 2px; font-size: var(--t-ui); min-width: 0;
}
.crumbs a { display: inline-flex; align-items: center; height: 44px; font-weight: 500; border-radius: var(--r); }
.crumbs .back { gap: 4px; margin-left: -8px; padding: 0 8px; }
.crumbs .back svg { width: 18px; height: 18px; }
.crumbs .back:active { opacity: .6; }
.crumbs .sep { color: var(--line-strong); }
.crumbs .crumb-cat { color: var(--meta); padding: 0 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 44px; }

.gallery { position: relative; min-width: 0; }
.track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; aspect-ratio: 1 / 1; scroll-snap-align: start; overflow: hidden; margin: 0; background: var(--skel); }
.slide img { width: 100%; height: 100%; object-fit: cover; transition: opacity 260ms ease-out; }
/* the photo the morph grew from (already cached) sits under a hero that is still loading */
.has-ph { background-size: cover; background-position: center; }
.skel.has-ph.is-pending::after { display: none; }
.gallery.is-sold .slide img { filter: grayscale(.5); }
.gallery.is-sold .slide::before {
  content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(255, 255, 255, .4); pointer-events: none;
}
.gallery .flag { top: 12px; left: 12px; font-size: 12px; padding: 6px 9px; z-index: 3; }
.stage { position: relative; }
.dots {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; display: flex; justify-content: center; gap: 6px;
  pointer-events: none;
}
.dots i {
  width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .6);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, .12); transition: width 220ms var(--ease-out), background-color 220ms;
}
.dots i.is-on { width: 18px; background: var(--white); }
.thumbs { display: flex; gap: 10px; padding: 12px var(--gut) 2px; overflow-x: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb {
  position: relative; flex: none; width: 56px; height: 56px; border-radius: var(--r); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--t-fast); background: var(--skel);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.gallery-nav { display: none; }

.pdp-info { padding: 20px var(--gut) 0; min-width: 0; }
.pdp-brand { font-size: var(--t-sm); font-weight: 600; color: var(--meta); margin-bottom: 6px; }
.pdp-title { font-size: var(--t-xl); line-height: 1.08; font-weight: 800; font-stretch: 90%; letter-spacing: -.015em; text-wrap: balance; }
.pdp-price { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.pdp-price .price { font-size: var(--t-lg); font-weight: 800; }
.pdp-price .was { font-size: var(--t-base); }
.pdp-price .size { font-size: var(--t-base); }
.ooo { margin-top: 18px; display: flex; gap: 12px; align-items: flex-start; }
.ooo-mark {
  flex: none; margin-top: 1px; background: var(--ink); color: var(--white); font-weight: 800; font-stretch: 90%;
  font-size: var(--t-xs); line-height: 1; padding: 6px 7px; border-radius: 3px; letter-spacing: .03em; white-space: nowrap;
}
.ooo-mark.is-sold { background: var(--sold); }
.ooo-mark.is-held { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ooo p { font-size: var(--t-ui); line-height: 1.45; max-width: 46ch; }
.cta { margin-top: 22px; }
/* phone: pinned to the thumb while the piece is buyable; sold or on hold, it sits in the flow */
.has-buy-bar .cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--line);
}
.cta form { margin: 0; }
.cta-note { margin-top: 10px; font-size: var(--t-sm); color: var(--meta); }
.pdp-add .i-check { display: none; width: 16px; height: 16px; }
.pdp-add.is-drawn .i-check, .pdp-add.is-in .i-check { display: block; }
.pdp-add.is-drawn .i-bag-sm, .pdp-add.is-in .i-bag-sm { display: none; }
.pdp-desc { margin-top: 22px; display: grid; gap: 6px; font-size: var(--t-base); line-height: 1.55; max-width: 60ch; text-wrap: pretty; }
.pdp-desc-label { font-size: var(--t-sm); font-weight: 700; margin-bottom: 2px; }
.specs { margin-top: 22px; border-top: 1px solid var(--line); }
.specs div {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 11px 0;
  border-bottom: 1px solid var(--line); font-size: var(--t-ui); line-height: 1.4;
}
.specs dt { color: var(--meta); }
.specs dd { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.specs dd a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #BDBDBD; }
.specs dd a:hover { text-decoration-color: var(--ink); }
.facts { margin-top: 22px; display: grid; gap: 12px; }
.facts li { display: flex; gap: 10px; align-items: center; font-size: var(--t-ui); line-height: 1.35; }
.facts svg { width: 20px; height: 20px; flex: none; }
.facts span { color: var(--meta); }
.more { padding-top: var(--s7); }

/* ---------- bag: drawer + page share the panel ---------- */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 40; background: var(--scrim); opacity: 0; visibility: hidden;
  transition: opacity var(--t-drawer) ease-out, visibility 0s linear var(--t-drawer);
}
.drawer {
  position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(420px, calc(100% - 40px));
  background: var(--white); color: var(--ink); display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform var(--t-drawer) var(--ease-out), visibility 0s linear var(--t-drawer);
  box-shadow: -16px 0 48px rgba(17, 17, 17, .16);
}
.bag-open .drawer-scrim { opacity: 1; visibility: visible; transition: opacity var(--t-drawer) ease-out; }
.bag-open .drawer { transform: none; visibility: visible; transition: transform var(--t-drawer) var(--ease-out); }
html.bag-open { overflow: hidden; }
.drawer-head {
  flex: none; height: var(--hdr); display: flex; align-items: center; justify-content: space-between;
  padding: 0 6px 0 var(--gut); border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-size: 18px; font-weight: 800; font-stretch: 90%; display: flex; align-items: baseline; gap: 8px; }
.drawer-head h2 span { font-size: var(--t-ui); font-weight: 500; color: var(--meta); font-stretch: 100%; font-variant-numeric: tabular-nums; }

.bag-panel { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.bag-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gut); }
.bag-list { display: grid; }
.bag-item {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; padding: 16px 0;
  border-bottom: 1px solid var(--line); transition: opacity 200ms, transform 200ms var(--ease-out);
}
.bag-item.is-leaving { opacity: 0; transform: translateX(16px); }
.bag-thumb { position: relative; width: 76px; height: 76px; border-radius: var(--r); overflow: hidden; display: block; background: var(--skel); }
.bag-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bag-title {
  font-size: var(--t-ui); line-height: 1.3; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bag-sub { margin-top: 3px; font-size: var(--t-sm); color: var(--meta); }
.bag-price { font-size: var(--t-base); font-weight: 700; font-variant-numeric: tabular-nums; }
.bag-item .text-btn { margin-top: 4px; }
.bag-item.is-gone .bag-thumb img { filter: grayscale(.6); opacity: .6; }
.bag-item.is-gone .bag-title { color: var(--meta); }
.bag-item.is-gone .bag-price { color: var(--meta); text-decoration: line-through; font-weight: 500; }
.bag-flag { display: inline-block; margin-top: 4px; font-size: var(--t-sm); font-weight: 700; color: var(--sold); }
.bag-flag.is-held { display: block; color: var(--ink); }   /* own line, above its Remove button */
.bag-skel .bag-thumb, .bag-skel .line { background: var(--skel); }
.bag-skel .line { height: 12px; border-radius: 2px; margin-top: 6px; }
.bag-skel .line:first-child { margin-top: 0; width: 80%; }
.bag-skel .line.short { width: 40%; }
.bag-empty { padding: 40px 0; display: grid; gap: 8px; justify-items: start; }
.bag-empty p { color: var(--meta); }
.bag-empty p:first-child { font-size: 18px; font-weight: 800; font-stretch: 90%; color: var(--ink); }
.bag-empty .btn { margin-top: 12px; }
.bag-alert {
  margin: 16px 0 0; padding: 10px 12px; border-radius: var(--r); background: var(--wash);
  font-size: var(--t-sm); line-height: 1.45; display: flex; gap: 8px; align-items: flex-start;
}
.bag-alert svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.bag-alert.show { animation: note-in 260ms var(--ease-out); }
@keyframes note-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.bag-foot {
  flex: none; padding: 16px var(--gut) calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--white);
}
.bag-foot form { margin: 0; }
.choice-group { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.choice-group legend { padding: 0; margin-bottom: 8px; font-size: var(--t-sm); font-weight: 700; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice {
  position: relative; display: grid; gap: 2px; padding: 10px 12px 10px 36px; min-height: 56px;
  border: 1px solid var(--line-strong); border-radius: var(--r); cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}
.choice input {
  position: absolute; left: 12px; top: 13px; width: 16px; height: 16px; margin: 0;
  -webkit-appearance: none; appearance: none; border: 1.5px solid var(--meta); border-radius: 50%; background: var(--white);
  transition: border-color var(--t-fast), border-width var(--t-fast);
}
.choice input:checked { border: 5px solid var(--ink); }
.choice input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.choice b { font-size: var(--t-ui); font-weight: 700; line-height: 1.25; }
.choice span { font-size: var(--t-sm); color: var(--meta); font-variant-numeric: tabular-nums; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice:hover { border-color: var(--meta); }
.totals { display: grid; gap: 4px; }
.totals div { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--t-ui); color: var(--meta); }
.totals div span:last-child { font-variant-numeric: tabular-nums; color: var(--ink); }
.totals .total-sub { font-size: var(--t-md); font-weight: 700; color: var(--ink); }
.totals .total-all { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.foot-note { margin-top: 6px; font-size: var(--t-sm); line-height: 1.45; color: var(--meta); }
.bag-foot .btn { margin-top: 14px; }
.paused {
  margin-top: 14px; padding: 12px 14px; border-radius: var(--r); background: var(--wash);
  font-size: var(--t-ui); line-height: 1.45; display: flex; gap: 10px; align-items: flex-start;
}
.paused svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* bag page */
.bag-page { padding-bottom: var(--s8); }
.bag-page .bag-panel { border: 1px solid var(--line); border-radius: var(--r); margin-top: var(--s4); overflow: hidden; }
.bag-page .bag-body { overflow: visible; }
.bag-errors { margin-top: var(--s4); display: grid; gap: var(--s2); }

/* ---------- footer ---------- */
.site-footer {
  flex: none; background: var(--ink); color: var(--on-ink);
  padding: 44px 0 calc(28px + env(safe-area-inset-bottom));
}
.site-footer :focus-visible { outline-color: var(--on-ink); }
.site-footer ::selection { background: var(--on-ink); color: var(--ink); }
.footer-mark { width: 173px; height: 32px; }
.footer-line { margin-top: 14px; color: var(--on-ink-meta); font-size: var(--t-base); line-height: 1.5; max-width: 40ch; }
.footer-facts { margin-top: 28px; border-top: 1px solid var(--on-ink-line); }
.footer-facts li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--on-ink-line); }
.footer-facts svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--on-ink); }
.footer-facts strong { display: block; font-size: var(--t-base); font-weight: 700; }
.footer-facts span { display: block; font-size: var(--t-ui); color: var(--on-ink-meta); }
.footer-nav { margin-top: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer-links .is-ext { gap: 3px; }
.footer-links .is-ext svg { width: 14px; height: 14px; flex: none; color: var(--on-ink-meta); transition: color var(--t-fast), transform var(--t-fast) var(--ease-out); }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 40px; font-size: var(--t-ui); font-weight: 500; color: var(--on-ink);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #555; text-decoration-thickness: 1px; border-radius: 2px;
  transition: text-decoration-color var(--t-fast);
}
.footer-links a:hover { text-decoration-color: var(--on-ink); }
.footer-links .is-ext:hover svg { color: var(--on-ink); transform: translate(1px, -1px); }
.footer-base { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--on-ink-meta); font-size: var(--t-sm); }
.footer-base img { width: 28px; height: 28px; }
.footer-base .push { margin-left: auto; }

/* ---------- hover-capable pointers ---------- */
@media (hover: hover) {
  .tile-link:hover .tile-media img { transform: scale(1.035); }
  .tile-link:hover .tile-media.has-alt .tile-alt { opacity: 1; }
  .tile-link:hover .tile-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
  .cat:hover .cat-media img { transform: scale(1.035); }
  .cat:hover b { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
  .add:hover { background: var(--ink); color: var(--white); }
  .btn-primary:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
  .btn-secondary:hover { background: var(--wash); }
  .chip:hover { border-color: var(--ink); }
  .chip[aria-current="true"]:hover { background: var(--ink-hover); }
  .crumbs a:hover span { text-decoration: underline; text-underline-offset: 3px; }
  .icon-btn:hover, .header-link:hover, .filter-btn:hover, .select select:hover { background: var(--wash); }
  .thumb:hover { box-shadow: inset 0 0 0 1px var(--ink); }
  .bag-title:hover { text-decoration: underline; text-underline-offset: 3px; }
}

/* ---------- tablet ---------- */
@media (min-width: 700px) {
  :root { --gut: 24px; --col-gap: 16px; --row-gap: 32px; --t-display: 46px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro { padding: 32px 0 26px; }
  .rail { grid-auto-columns: 27%; }
  .rail-sold { grid-auto-columns: 20%; }
  .page-head { padding-top: var(--s6); grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: end; column-gap: var(--s5); }
  .page-head .search { margin-top: 0; grid-column: 2; grid-row: 1 / span 2; align-self: end; }
  .about { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s7); align-items: start; }
  .close-actions .link { margin-left: var(--s2); }
  .pdp { padding-bottom: var(--s8); }
  .has-buy-bar .site-footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .pdp-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px;
    max-width: var(--max); margin: 0 auto; padding: 0 var(--gut);
  }
  .track { border-radius: var(--r); }
  .thumbs { padding: 12px 2px 2px; }
  .pdp-info { padding: 4px 0 0; position: sticky; top: calc(var(--hdr-total, var(--hdr)) + 24px); align-self: start; }
  .has-buy-bar .cta-bar { position: static; padding: 0; border: 0; background: none; }
}

/* ---------- desktop ---------- */
@media (min-width: 1000px) {
  :root { --gut: 32px; --hdr: 64px; --col-gap: 20px; --row-gap: 40px; --t-display: 60px; --t-xl: 34px; }
  .wordmark { width: 141px; height: 26px; }
  .nav-main { display: flex; align-items: center; gap: 2px; margin-left: var(--s5); margin-right: auto; min-width: 0; }
  .brand { margin-right: 0; }
  .header-shop { display: none; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .intro { padding: 44px 0 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; }
  .h-display { letter-spacing: -.025em; }
  .intro-sub { font-size: var(--t-md); margin-top: 14px; }
  .counts { margin-top: 0; font-size: var(--t-ui); padding-bottom: 6px; }
  .tile-title { font-size: var(--t-base); }
  .section { padding-top: var(--s8); }
  .section-head .h2 { font-size: 32px; letter-spacing: -.02em; }
  .rail { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .rail-sold { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .rail > :nth-child(n+7) { display: none; }
  .rail-sold > :nth-child(n+7) { display: block; }
  .rail-sold > :nth-child(n+9) { display: none; }
  .about { margin-top: var(--s9); padding: var(--s8) 0 var(--s9); }
  .about-copy p { font-size: 20px; }

  .crumbs { height: 56px; }
  .pdp-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; }
  /* desktop gallery: first photo large, the rest in a 2-up stack (no carousel) */
  .track { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; overflow: visible; scroll-snap-type: none; background: none; border-radius: 0; }
  .slide { border-radius: var(--r); background: var(--skel); }
  .slide:first-child { grid-column: 1 / -1; }
  .slide:last-child:nth-child(even) { grid-column: 1 / -1; }
  .dots, .thumbs { display: none; }
  .pdp-info { padding-top: 8px; }
  .more { padding-top: var(--s8); }
  .pdp { padding-bottom: var(--s9); }
  .site-footer { padding-top: 64px; }
  .footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .footer-facts { margin-top: 0; }
  .footer-base { margin-top: 48px; }
}

/* ---------- page transitions (cross-document view transitions) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
/* everything but the photo: one 150ms crossfade on the exponential ease-out */
::view-transition-group(root), ::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 150ms; animation-timing-function: var(--ease-out);
}
::view-transition-group(site-header) { animation: none; z-index: 10; }
::view-transition-old(site-header) { display: none; }
::view-transition-new(site-header) { animation: none; }
/* the photo travels: tile <-> product hero */
::view-transition-group(zf-photo) {
  animation-duration: 420ms; animation-timing-function: cubic-bezier(.2, .75, .15, 1); z-index: 5;
}
::view-transition-image-pair(zf-photo) { isolation: auto; }
[style*="view-transition-name"] .flag { visibility: hidden; }
::view-transition-old(zf-photo), ::view-transition-new(zf-photo) {
  mix-blend-mode: normal; height: 100%; object-fit: cover; overflow: clip; border-radius: var(--r);
}
::view-transition-old(zf-photo) { animation: none; }
::view-transition-new(zf-photo) { animation: vt-photo-in 240ms 120ms var(--ease-std) both; }
/* one side only (a tile scrolled away, a page with no grid): the photo just fades with the page */
::view-transition-old(zf-photo):only-child { animation: vt-photo-out 150ms var(--ease-out) both; }
::view-transition-new(zf-photo):only-child { animation: vt-photo-in 150ms var(--ease-out) both; }
@keyframes vt-photo-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes vt-photo-out { from { opacity: 1; } to { opacity: 0; } }

/* ---------- reduced motion: instant ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
  }
  .skel.is-pending::after { display: none; }
}
html.no-anim *, html.no-anim *::before, html.no-anim *::after { transition: none !important; animation: none !important; }
