/* ─────────────────────────────────────────────────────────────────────────
   Shop / product-catalog page. Class-prefixed `shop-` to namespace against
   the rest of the site. Reuses the editorial vibe of theme.css, faq.css,
   about.css — warm cream background, Fraunces serif for headings, generous
   spacing, no rounded card-on-card look.
   ───────────────────────────────────────────────────────────────────────── */

body.shop-page {
  background: var(--bg);
  color: var(--text);
}

.shop-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 48px 96px;
}

/* ── Header ────────────────────────────────────────────────────────────── */

.shop-header {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.shop-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
}

.shop-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.shop-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
}

/* ── Grid ──────────────────────────────────────────────────────────────── */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
  padding-top: 40px;
}

/* ── Tile ──────────────────────────────────────────────────────────────── */

.shop-tile {
  border: 1px solid var(--border);
  background: var(--bg);
  transition: transform 200ms ease, border-color 200ms ease;
  display: flex;
  flex-direction: column;
}

.shop-tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.shop-tile-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.shop-tile-link:focus {
  outline: none;
}

.shop-tile-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.shop-tile-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--bg-alt);
}

.shop-tile-img-placeholder {
  background: var(--bg-alt);
}

.shop-tile-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.shop-tile-name {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
}

.shop-tile-variant {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin: 0;
}

.shop-tile-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 2px;
  margin-bottom: 0;
}

/* ── Stock badges ──────────────────────────────────────────────────────── */

.shop-stock-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  align-self: flex-start;
}

.shop-stock-instock {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.shop-stock-lowstock {
  background: var(--accent-warm);
  color: var(--text-inv);
  border: 1px solid var(--accent-warm);
}

.shop-stock-soldout {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  opacity: 0.7;
  text-decoration: line-through;
}

.shop-empty {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.98rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 56px 0;
}

/* ── Mobile ────────────────────────────────────────────────────────────── */

@media (max-width: 700px) {
  .shop-main {
    padding: 56px 24px 64px;
  }
  .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding-top: 28px;
  }
  .shop-tile-body {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-tile { transition: none; }
}
