/* Commerce destination shell — not Lab clone */
body.shop-page {
  margin: 0;
  background: var(--paper, #f6f5f1);
  color: var(--ink, #111);
  font-family: system-ui, "Malgun Gothic", sans-serif;
}
body.shop-page .visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.shop-intent-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  justify-content: center;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.shop-intent-rail a {
  display: inline-flex;
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font: 600 12px/1.2 var(--font-sans);
  color: var(--ink);
  text-decoration: none;
  background: var(--surface-soft);
}
.shop-intent-rail a:hover {
  border-color: var(--ink);
  background: var(--surface);
}
.shop-handoff-note {
  margin: 0;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--grey);
  text-align: center;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.shop-page-main { width: 100%; margin: 0; padding: 0; background: var(--surface); }
.skip-link {
  position: absolute; left: -999px; top: 0;
}
.skip-link:focus { left: 8px; top: 8px; z-index: 99; background: var(--lime); color: var(--accent-ink); padding: 8px 12px; }

/* Light catalog — max value vs 34MB iframe */
.shop-lite-catalog { max-width: 1100px; margin: 0 auto; padding: 20px 16px 28px; background: var(--surface); }
.shop-lite-head .eyebrow { margin: 0 0 6px; font: 700 11px/1.2 var(--font-mono); letter-spacing: .06em; color: var(--grey); }
.shop-lite-head h2 { margin: 0 0 8px; font-size: 1.35rem; letter-spacing: -.02em; }
.shop-lite-head h2 span { color: var(--grey); font-weight: 600; font-size: .9em; }
.shop-lite-head p { margin: 0 0 16px; color: var(--grey); font-size: 13px; max-width: 48ch; }
.shop-lite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.shop-lite-card {
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid var(--hairline); border-radius: 10px; padding: 10px;
  text-decoration: none; color: var(--ink); background: var(--surface-soft);
}
.shop-lite-card:hover { border-color: var(--ink); background: var(--surface); }
.shop-lite-media { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: var(--surface); border-radius: 8px; overflow: hidden; }
.shop-lite-media img { width: 100%; height: 100%; object-fit: cover; }
.shop-lite-media .ph { color: var(--grey); font-size: 12px; }
.shop-lite-name { font-size: 12.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-lite-cta { font-size: 11px; color: var(--ink); font-weight: 700; }
.shop-lite-more { margin: 16px 0 0; font-size: 13px; }
.shop-lite-more a { color: var(--ink); font-weight: 600; }

/* Optional heavy HOME snapshot — collapsed until user clicks */
.shop-snapshot-gate {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 16px 32px;
  background: var(--surface);
  border-top: 1px dashed var(--hairline);
}
.shop-snapshot-gate__panel {
  margin: 0;
  padding: 20px 18px;
  border: 1px dashed var(--hairline);
  border-radius: 12px;
  background: var(--surface-soft);
  text-align: center;
}
.shop-snapshot-gate__eyebrow {
  margin: 0 0 6px;
  font: 700 11px/1.2 var(--font-mono);
  letter-spacing: .06em;
  color: var(--grey);
}
.shop-snapshot-gate__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  letter-spacing: -.01em;
}
.shop-snapshot-gate__desc {
  margin: 0 auto 16px;
  max-width: 52ch;
  font-size: 13px;
  color: var(--grey);
  line-height: 1.45;
}
.shop-snapshot-gate__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 700 13px/1.2 var(--font-sans);
  cursor: pointer;
}
.shop-snapshot-gate__btn:hover:not(:disabled) {
  opacity: .85;
}
.shop-snapshot-gate__btn:disabled {
  opacity: .7;
  cursor: wait;
}
.shop-snapshot-gate__btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* demote heavy iframe — only present after opt-in load */
.shop-page-frame-wrap {
  width: 100%;
  margin: 16px 0 0;
  padding: 0;
  background: var(--surface);
  border: 0;
}
.shop-page-frame-wrap[hidden] { display: none !important; }
.shop-page-frame {
  display: block;
  width: 100%;
  border: 0;
  margin: 0;
  padding: 0;
  background: var(--surface);
  min-height: 60vh;
  height: 900px;
  overflow: hidden;
}

/* Purchase-decision boundary: Imweb remains the only transaction authority. */
.shop-handoff-note { padding: 10px 16px; color: var(--grey); font-size: 13px; line-height: 1.5; }
.shop-decision-boundary {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(360px, 1.2fr);
  gap: 24px 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 16px 30px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}
.shop-decision-boundary .eyebrow { margin: 0 0 8px; color: var(--grey); font: 700 11px/1.3 var(--font-mono); letter-spacing: .06em; }
.shop-decision-boundary h2 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.6rem); line-height: 1.08; letter-spacing: -.045em; }
.shop-decision-boundary ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.shop-decision-boundary li { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.shop-decision-boundary li strong { font-size: 12px; letter-spacing: .03em; }
.shop-decision-boundary li span { color: var(--grey); font-size: 13px; line-height: 1.45; }
.shop-official-cta {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}
.shop-lite-card { min-height: 276px; }
.shop-lite-card.is-unverified { border-style: dashed; background: var(--surface-strong); }
.shop-lite-status { margin-top: auto; color: var(--grey); font-size: 10.5px; line-height: 1.35; }
.shop-lite-image-fallback { padding: 12px; color: var(--grey); font-size: 11px; line-height: 1.4; text-align: center; }

@media (max-width: 720px) {
  .shop-intent-rail {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }
  .shop-intent-rail a {
    flex: 0 0 auto;
    min-height: 44px;
    box-sizing: border-box;
    align-items: center;
  }
  .shop-decision-boundary { grid-template-columns: 1fr; gap: 22px; padding-top: 30px; }
  .shop-decision-boundary li { grid-template-columns: 88px 1fr; }
  .shop-official-cta { grid-column: 1; width: 100%; box-sizing: border-box; }
  .shop-lite-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .shop-lite-card { min-width: 0; min-height: 252px; padding: 8px; }
}

@media (max-width: 380px) {
  .shop-lite-grid { grid-template-columns: 1fr; }
  .shop-lite-card { min-height: 0; }
}

/* Customer-facing palette = tokens.css only (paper / ink / lime accent).
   U1 2026-08-15: warm custom palette + local masthead removed — the shell is
   the contract masthead (journal-shell.css + journal-chrome-lock.css). */
body.shop-page {
  --shop-paper: var(--paper);
  --shop-paper-soft: var(--surface-soft);
  --shop-ink: var(--ink);
  --shop-ink-muted: var(--grey);
  --shop-line: var(--hairline);
  --shop-signal: var(--lime);
  background: var(--shop-paper);
  color: var(--shop-ink);
  font-family: var(--font-sans);
}
.shop-page-main,
.shop-lite-catalog,
.shop-decision-boundary { background: var(--shop-paper-soft); }
.shop-intent-rail,
.shop-handoff-note { background: var(--surface-strong); }
.shop-intent-rail,
.shop-decision-boundary { border-color: var(--shop-line); }
.shop-intent-rail a,
.shop-lite-card { background: var(--surface); border-color: var(--shop-line); color: var(--shop-ink); }
.shop-lite-card:hover { border-color: var(--shop-ink); background: var(--surface); }
.shop-lite-head p,
.shop-lite-status,
.shop-decision-boundary li span { color: var(--shop-ink-muted); }
.shop-official-cta {
  color: var(--accent-ink);
  background: var(--shop-signal);
  border: 1px solid var(--shop-ink);
  box-shadow: 4px 4px 0 var(--shop-ink);
}
.shop-official-cta:hover { background: var(--shop-signal); transform: translate(-1px, -1px); }
.shop-lite-cta { color: var(--shop-ink); text-decoration: underline; text-decoration-color: var(--shop-signal); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.shop-page a:focus-visible,
.shop-page button:focus-visible {
  outline: 2px solid var(--shop-ink);
  box-shadow: 0 0 0 5px var(--shop-signal);
}
