/* ========================================================================
   shop.css - the store's OWN stylesheet (2026-10-16).

   Why this file exists: the storefront first shipped wearing the repair
   site's asset chain. That broke the moment the store went on the apex
   domain (tomasetti.shop -> the store app): /assets/* 404s there, so the
   page rendered unstyled, and the borrowed repair nav put the audio-heavy
   repair menu on top of a general electronics store. Tj: "the site looks
   broken and yall focused way too much on audio shit."

   Everything the store pages need lives here and in templates/_shop_nav
   .html; no repair-site files, no icon scripts. The token values below
   are copied from assets/repair-tokens.css so the store keeps the house
   canvas without depending on the repair site's serving path. If the
   house palette moves, copy the new values here in the same change.
   ======================================================================== */

:root {
  --display: 'Outfit', sans-serif;
  --sans: 'Outfit', sans-serif;
  --mono: 'Share Tech Mono', monospace;

  --canvas: #f3f1f7;
  --surface: #ffffff;
  --surface-hover: #f0edf6;

  --ink: #20172c;
  --ink-soft: #44365a;
  --muted: #6f637c;
  --faint: #8b7f9c;

  --line: rgba(63, 45, 88, 0.14);
  --line-strong: rgba(63, 45, 88, 0.26);

  --purple: #6036b8;
  --purple-dark: #4d2a99;

  --radius: 14px;
  --radius-sm: 10px;

  --shadow-lift: 0 10px 30px rgba(63, 45, 88, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}

a { color: var(--purple); }

/* --- the store's own header ------------------------------------------ */

.store-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 28px 0;
}

.store-brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.store-brand-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-left: 8px;
}

.store-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
}

.store-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}

.store-links a:hover { color: var(--purple); }

.store-links .store-phone {
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--muted);
}

/* --- shelf ------------------------------------------------------------ */

.shop-wrap { max-width: 1080px; margin: 0 auto; padding: 48px 28px 64px; }
.shop-wrap h1 { font-family: var(--display, var(--sans)); font-size: clamp(1.8rem, 3.4vw, 2.4rem); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 10px; }
.shop-sub { color: var(--muted); font-size: 1.02rem; max-width: 62ch; line-height: 1.6; margin: 0 0 36px; }
.shop-section-h { font-size: 1.25rem; letter-spacing: -0.02em; margin: 48px 0 18px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.shop-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.15s, box-shadow 0.15s; }
.shop-card:hover { border-color: var(--purple); box-shadow: var(--shadow-lift); }
.shop-card img.shop-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.shop-noimg { width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--faint); font-size: 0.9rem; border-bottom: 1px solid var(--line); background: var(--surface-hover); }
.shop-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.shop-card-body h3 { font-size: 1rem; letter-spacing: -0.015em; margin: 0; line-height: 1.35; }
.shop-card-body h3 a { color: var(--ink); text-decoration: none; }
.shop-card-body h3 a:hover { color: var(--purple); }
.shop-cond { color: var(--muted); font-size: 0.84rem; margin: 0; }
.shop-price { font-family: var(--mono); font-size: 1.15rem; color: var(--ink); margin: 2px 0 8px; }
.shop-buy { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px; border-radius: var(--radius-sm); background: var(--purple); color: #fff; font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.shop-buy:hover { background: var(--purple-dark); color: #fff; }
.shop-sold-badge { align-self: flex-start; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 10px; }
.shop-empty { color: var(--muted); padding: 40px 0; }
.shop-backlink { color: var(--purple); font-weight: 600; text-decoration: none; }

/* --- item page -------------------------------------------------------- */

.item-wrap { max-width: 980px; margin: 0 auto; padding: 40px 28px 64px; }
.item-crumb { font-size: 0.88rem; margin: 0 0 20px; }
.item-crumb a { color: var(--purple); font-weight: 600; text-decoration: none; }
.item-crumb a:hover { text-decoration: underline; }
.item-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.item-photo-main { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); display: block; background: var(--surface); }
.item-photo-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: var(--radius); }
.item-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.item-thumbs img { width: 92px; height: 69px; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius-sm); display: block; }
.item-noimg { width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--faint); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.item-info h1 { font-family: var(--display, var(--sans)); font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 10px; }
.item-cond { color: var(--muted); font-size: 0.95rem; margin: 0 0 14px; }
.item-cond b { color: var(--ink); font-weight: 600; }
.item-price { font-family: var(--mono); font-size: 1.7rem; margin: 0 0 18px; }
.item-buy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border-radius: var(--radius-sm); background: var(--purple); color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none; }
.item-buy:hover { background: var(--purple-dark); color: #fff; }
.item-ebay { display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; color: var(--purple); font-weight: 600; font-size: 0.95rem; text-decoration: underline; text-underline-offset: 3px; }
.item-sold { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 26px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); color: var(--muted); font-weight: 700; font-family: var(--mono); letter-spacing: 0.08em; }
.item-desc { margin-top: 26px; line-height: 1.7; color: var(--ink-soft); white-space: pre-line; }
.item-note { color: var(--muted); font-size: 0.86rem; margin: 14px 0 0; line-height: 1.55; }
.item-note a { color: var(--purple); font-weight: 600; }

/* --- note pages (just-sold, order received) --------------------------- */

.note-wrap { max-width: 640px; margin: 0 auto; padding: 72px 28px 80px; text-align: center; }
.note-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; margin: 0 0 20px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }

@media (max-width: 820px) { .item-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .shop-wrap { padding: 34px 18px 48px; }
  .item-wrap { padding: 30px 18px 48px; }
  .store-nav { padding: 16px 18px 0; }
}
