/*
  Things For Sale, plain v1. A theme can come later: change these variables (and the
  --slider-* / --detail-* ones from /assets/css/slider.css and detail-view.css).
*/
:root {
  --shop-bg: #faf9f6;
  --shop-fg: #1d1d1b;
  --shop-muted: #6b6b66;
  --shop-line: rgba(0, 0, 0, .12);
  --shop-accent: #1d1d1b;
  --shop-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --slider-muted: var(--shop-muted);
  --slider-line: var(--shop-line);
  --slider-accent: var(--shop-accent);
  --detail-bg: var(--shop-bg);
  --detail-fg: var(--shop-fg);
  --detail-muted: var(--shop-muted);
  --detail-line: var(--shop-line);
  --detail-accent: var(--shop-accent);

  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--shop-bg);
  color: var(--shop-fg);
  font: 16px/1.5 var(--shop-font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.shop { padding: 72px 0 48px; }
.shop-head,
.shop-foot { max-width: 1200px; margin: 0 auto; padding: 0 max(16px, 4vw); }
.shop-head h1 { margin: 0 0 4px; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 650; letter-spacing: -.01em; }
.shop-intro { margin: 0 0 20px; color: var(--shop-muted); }
.shop-notice {
  display: inline-block;
  margin: 0 0 20px;
  padding: 8px 12px;
  border: 1px solid var(--shop-line);
  border-radius: 6px;
  background: #fff;
}
.shop-slider { max-width: 1400px; margin: 0 auto; }
.shop-foot { margin-top: 24px; color: var(--shop-muted); font-size: .95em; }

/* Before the script runs (or without it): a plain list */
.shop-fallback { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin: 0; padding: 0 max(16px, 4vw); list-style: none; }
.shop-fallback img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--shop-line); border-radius: 6px; }
.shop-fallback h2 { margin: 6px 0 0; font-size: 1rem; }
.shop-fallback p { margin: 2px 0; color: var(--shop-muted); }

/* Detail view info panel */
.ehq-detail { font-family: var(--shop-font); }
.shop-title { margin: 0; font-size: 1.6rem; line-height: 1.2; font-weight: 650; }
.shop-year { margin: 2px 0 0; color: var(--shop-muted); }
.shop-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 18px 0 0; }
.shop-facts dt { color: var(--shop-muted); }
.shop-facts dd { margin: 0; }
.shop-buy { margin: 22px 0; padding: 16px 0; border-top: 1px solid var(--shop-line); border-bottom: 1px solid var(--shop-line); }
.shop-price { margin: 0 0 10px; font-size: 1.25rem; font-weight: 600; }
.shop-buy-link {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 999px;
  background: var(--shop-accent);
  color: var(--shop-bg);
  font-weight: 600;
  text-decoration: none;
}
.shop-buy-link:hover { opacity: .85; }
.shop-soon { margin: 0; }
.shop-story > :first-child { margin-top: 0; }
.shop-story img { max-width: 100%; height: auto; }
.shop-gallery-link { color: var(--shop-muted); }
