/* ============================================================================
   BEPCO Studio — Shop styles (loaded only on /shop/ + /shop/<slug>/ via pageCss).
   Ported in spirit from design/mockups/bepco-shop.html + bepco-shop-product.html.
   All colors/fonts reference tokens.css; every class is namespaced `sh-` so it
   never collides with site.css (.hero-*, .section-*, .nav-*, .footer-*, .cb-*).
   Era colors: founding→amber(200,134,10) · operational→porcelain(122,158,138) ·
   contemporary→steel(106,122,124).
   ============================================================================ */

/* ── SHOP HERO (full-bleed, product-forward) + FILTER / SORT BAR ── */
.sh-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 460px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(26,22,18,0.12);
  overflow: hidden;
}
/* A horizontal parchment band across the vertical middle, fading symmetrically
   to transparent at the top and bottom. Keeps the text legible while leaving
   the sky and the shelf fully visible. */
.sh-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(245,240,232,0) 4%,
    rgba(245,240,232,0.68) 42%,
    rgba(245,240,232,0.68) 74%,
    rgba(245,240,232,0) 100%);
  pointer-events: none;
}
.sh-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 56px 52px;
}
.sh-controls-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 36px 52px 0;
}
.sh-header-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.sh-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(200,134,10,0.6);
}
.sh-title {
  font-family: var(--font-serif);
  font-size: var(--fs-fluid-36-52);
  font-weight: var(--weight-regular);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-carbon);
}
.sh-lede {
  font-family: var(--font-serif);
  font-size: var(--fs-16);
  line-height: 1.7;
  color: rgba(26,22,18,0.6);
  max-width: 640px;
  margin: 0 0 34px;
}
.sh-lede a { color: var(--color-amber-dk); text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s var(--ease); }
.sh-lede a:hover { color: var(--color-amber); }
/* Two stacked rows: row 1 = Type (left) + Era (right); row 2 = Sort (right). */
.sh-controls {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(26,22,18,0.08);
}
.sh-controls-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 28px;
  flex-wrap: wrap;
}
.sh-controls-row--sort { justify-content: flex-end; }
.sh-filter-group { display: flex; flex-direction: column; gap: 10px; }
/* Era group hangs on the right, its label and pills flush to the right edge. */
.sh-filter-group--era { align-items: flex-end; }
.sh-filter-group--era .sh-filter-row { justify-content: flex-end; }
.sh-filter-label {
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(26,22,18,0.42);
}
.sh-filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sh-pill {
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(26,22,18,0.5);
  border: 1px solid rgba(26,22,18,0.15);
  padding: 8px 15px;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
/* Filter accents are deliberately non-amber (amber is reserved for CTAs/links):
   Type uses steel, Era uses porcelain. The accent inherits via a CSS var set on
   each filter row, so hover/active pick it up automatically. */
.sh-filter-row[data-filter-set="type"] { --pill-accent: var(--color-steel); --pill-bg: rgba(106,122,124,0.10); }
.sh-filter-row[data-filter-set="era"]  { --pill-accent: var(--color-porcelain); --pill-bg: rgba(122,158,138,0.12); }
.sh-pill:hover { color: var(--pill-accent); border-color: var(--pill-accent); }
.sh-pill.active { color: var(--pill-accent); border-color: var(--pill-accent); background: var(--pill-bg); }

.sh-sort { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sh-sort-label {
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(26,22,18,0.42);
}
/* Sort control styled to echo the Field Notes sort: borderless mono, uppercase,
   amber on hover, with a custom caret in place of the native select chrome. */
.sh-select {
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(26,22,18,0.55);
  background: transparent;
  border: 0;
  padding: 4px 20px 4px 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238B4A08' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 9px;
  border-radius: 0;
  transition: color 0.2s var(--ease);
}
.sh-select:hover { color: var(--color-amber-dk); }
/* Square focus box (no rounded native ring), matching the rest of the site. */
.sh-select:focus { outline: 1px solid var(--color-amber); outline-offset: 3px; border-radius: 0; }

/* ── PRODUCT GRID ── */
.sh-grid-wrap { max-width: 1060px; margin: 0 auto; padding: 40px 52px 96px; }
.sh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.sh-card {
  border: 1px solid rgba(26,22,18,0.09);
  background: var(--color-vellum);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.sh-card:hover { border-color: var(--color-amber); transform: translateY(-3px); }
.sh-card.sh-soon { opacity: 0.8; }

.sh-card-link { text-decoration: none; color: inherit; display: block; }
.sh-card-image {
  aspect-ratio: 4 / 3;
  background: var(--color-canvas);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(26,22,18,0.07);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.sh-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-card.sh-soon .sh-card-image { background: rgba(26,22,18,0.04); }
.sh-card-image-ph {
  font-family: var(--font-mono);
  font-size: var(--fs-8);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(26,22,18,0.16);
  line-height: 1.8;
  padding: 12px;
}
/* Markers sit in their own row above the photo (no overlap). */
.sh-card-markers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px 10px;
}
.sh-era-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 9px;
}
.sh-era-badge::before { content: ''; width: 6px; height: 6px; transform: rotate(45deg); }
.sh-soon-badge {
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(26,22,18,0.4);
  background: rgba(26,22,18,0.06);
  border: 1px solid rgba(26,22,18,0.12);
  padding: 4px 9px;
}

/* Era color variants — badge on card + marker before it. */
.sh-era-founding    .sh-era-badge { background: rgba(200,134,10,0.1); color: rgba(200,134,10,0.75); border: 1px solid rgba(200,134,10,0.22); }
.sh-era-founding    .sh-era-badge::before { background: var(--color-amber); opacity: 0.75; }
.sh-era-operational .sh-era-badge { background: rgba(122,158,138,0.12); color: rgba(122,158,138,0.9); border: 1px solid rgba(122,158,138,0.28); }
.sh-era-operational .sh-era-badge::before { background: var(--color-porcelain); opacity: 0.85; }
.sh-era-contemporary .sh-era-badge { background: rgba(106,122,124,0.12); color: rgba(106,122,124,0.9); border: 1px solid rgba(106,122,124,0.28); }
.sh-era-contemporary .sh-era-badge::before { background: var(--color-steel); opacity: 0.85; }

.sh-card-body { padding: 20px; }
.sh-card-code {
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(200,134,10,0.45);
  margin-bottom: 8px;
}
.sh-card-name {
  font-family: var(--font-serif);
  font-size: var(--fs-18);
  font-weight: var(--weight-regular);
  color: var(--color-carbon);
  margin-bottom: 4px;
  line-height: 1.2;
}
.sh-card-sub {
  font-family: var(--font-serif);
  font-size: var(--fs-12);
  font-style: italic;
  color: rgba(26,22,18,0.45);
  line-height: 1.4;
}
.sh-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  margin-top: auto;
  border-top: 1px solid rgba(26,22,18,0.07);
}
.sh-card-price {
  font-family: var(--font-mono);
  font-size: var(--fs-16);
  letter-spacing: 0.04em;
  color: var(--color-carbon);
}
.sh-buy {
  font-family: var(--font-mono);
  font-size: var(--fs-9);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-amber);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.sh-buy:hover { color: var(--color-amber-dk); }
.sh-notify {
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(26,22,18,0.4);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.sh-notify:hover { color: var(--color-amber); }

/* Empty state — institutional notice, not broken UI. */
.sh-empty {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 72px 24px;
  border: 1px solid rgba(26,22,18,0.08);
  background: rgba(26,22,18,0.015);
}
.sh-empty.visible { display: block; }
.sh-empty-code {
  font-family: var(--font-mono);
  font-size: var(--fs-9);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(200,134,10,0.5);
  margin-bottom: 14px;
}
.sh-empty-text {
  font-family: var(--font-serif);
  font-size: var(--fs-16);
  font-style: italic;
  line-height: 1.7;
  color: rgba(26,22,18,0.5);
  max-width: 440px;
  margin: 0 auto;
}

/* ============================================================================
   PRODUCT DETAIL PAGE
   ============================================================================ */
.sh-breadcrumb {
  max-width: 1060px;
  margin: 0 auto;
  padding: 16px 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(26,22,18,0.35);
  border-bottom: 1px solid rgba(26,22,18,0.07);
}
.sh-breadcrumb a { color: rgba(26,22,18,0.35); text-decoration: none; transition: color 0.2s var(--ease); }
.sh-breadcrumb a:hover { color: var(--color-amber); }
.sh-breadcrumb-sep { color: rgba(26,22,18,0.2); }
.sh-breadcrumb > span:last-child { color: var(--color-carbon); }

/* Two-panel hero, matching the Archive record: dark image panel flush against
   the info panel, no outer padding (the columns supply their own). */
.sh-detail {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 440px;
  align-items: start;
}
/* Era accent variable — same era tokens the Archive record pages use. Set on
   the grid so it reaches both the image frame and the info column. */
.sh-era-founding     { --era: var(--color-era-founding); }
.sh-era-operational  { --era: var(--color-era-midcentury); }
.sh-era-contemporary { --era: var(--color-era-contemporary); }

/* Image column — dark soot panel, era-colored frame, oversized glyph watermark. */
.sh-detail-images { grid-column: 1; display: flex; flex-direction: column; }
.sh-hero-image {
  background: var(--color-soot);
  aspect-ratio: 4 / 3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
  border: 3px solid var(--era, var(--color-amber));
}
.sh-hero-image::before {
  content: attr(data-glyph);
  position: absolute; right: -10px; bottom: -40px;
  font-family: var(--font-serif); font-size: var(--fs-240); font-weight: var(--weight-bold);
  color: rgba(200,134,10,0.05); line-height: 1; user-select: none; pointer-events: none;
}
/* Real gallery image fills the frame edge to edge; `contain` so non-4:3 shop
   extras (booklet, box) letterbox onto the soot ground instead of cropping. */
.sh-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; z-index: 1; }
.sh-hero-ph {
  font-family: var(--font-mono);
  font-size: var(--fs-8);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.28);
  line-height: 1.8;
  padding: 16px;
}
.sh-thumbs { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 0 0; }
.sh-thumb {
  width: 64px;
  height: 48px;
  background: var(--color-soot);
  border: 2px solid rgba(26,22,18,0.15);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.65;
  transition: border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.sh-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-thumb:hover { opacity: 1; }
.sh-thumb.active { border-color: var(--color-amber); opacity: 1; }
.sh-thumb-ph {
  font-family: var(--font-mono);
  font-size: var(--fs-8);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(26,22,18,0.18);
  line-height: 1.5;
}

/* Info column — matches the Archive record info panel. */
.sh-detail-info { grid-column: 2; min-width: 0; padding: 52px; }
.sh-era-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--era, var(--color-amber));
  margin-bottom: 16px;
}
.sh-era-tag::before { content: ''; width: 8px; height: 8px; background: var(--era, var(--color-amber)); transform: rotate(45deg); opacity: 0.8; }

.sh-detail-name {
  font-family: var(--font-serif);
  font-size: var(--fs-fluid-32-48);
  font-weight: var(--weight-regular);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--color-carbon);
  margin-bottom: 16px;
}
/* Reference code as a boxed plate with an amber spine and colored segments —
   the Archive refcard plate language. */
.sh-detail-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  letter-spacing: 0.14em;
  color: var(--color-carbon);
  background: var(--color-vellum);
  border: 1px solid rgba(26,22,18,0.07);
  border-left: 4px solid var(--color-amber);
  padding: 8px 14px;
  margin-bottom: 16px;
}
.sh-code-org { color: var(--color-amber); }
.sh-code-layer { color: var(--color-parchment); background: var(--color-amber); border-radius: 2px; font-weight: var(--weight-bold); padding: 0 5px; }
.sh-code-sep { color: rgba(26,22,18,0.3); }
.sh-detail-rule { width: 100%; height: 1px; background: rgba(26,22,18,0.08); margin-bottom: 24px; }
.sh-detail-desc {
  font-family: var(--font-serif);
  font-size: var(--fs-15);
  line-height: 1.85;
  color: rgba(26,22,18,0.65);
  margin-bottom: 28px;
}

/* Spec table — matches the Archive specs plate (vellum ground, amber top spine). */
.sh-specs {
  margin-bottom: 28px;
  background: var(--color-vellum);
  border: 1px solid rgba(26,22,18,0.07);
  border-top: 3px solid var(--color-amber);
  padding: 26px;
}
.sh-specs-title { font-family: var(--font-mono); font-size: var(--fs-12); letter-spacing: 0.22em; text-transform: uppercase; color: rgba(200,134,10,0.6); margin-bottom: 18px; }
.sh-spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(26,22,18,0.07);
}
.sh-spec-row:last-child { border-bottom: none; }
.sh-spec-label { font-family: var(--font-serif); font-size: var(--fs-12); font-style: italic; color: rgba(26,22,18,0.45); }
.sh-spec-value { font-family: var(--font-mono); font-size: var(--fs-12); letter-spacing: 0.02em; color: var(--color-carbon); text-align: right; }
.sh-spec-value.amber { color: var(--color-amber); }

/* Price + purchase */
.sh-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.sh-price-main { font-family: var(--font-serif); font-size: var(--fs-32); font-weight: var(--weight-regular); color: var(--color-carbon); }
.sh-price-note { font-family: var(--font-mono); font-size: var(--fs-9); letter-spacing: 0.1em; color: rgba(26,22,18,0.35); }
.sh-ship-note {
  font-family: var(--font-mono);
  font-size: var(--fs-8);
  letter-spacing: 0.08em;
  color: rgba(26,22,18,0.35);
  margin-bottom: 20px;
}
.sh-btn-buy {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-10);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.95);
  background: var(--color-amber);
  border: none;
  padding: 16px 28px;
  cursor: pointer;
  transition: background 0.2s var(--ease);
  margin-bottom: 10px;
  text-decoration: none;
}
.sh-btn-buy:hover { background: var(--color-amber-dk); }

/* Coming-soon purchase panel */
.sh-soon-panel {
  border: 1px solid rgba(26,22,18,0.12);
  background: rgba(26,22,18,0.02);
  padding: 20px 22px;
  margin-bottom: 12px;
}
.sh-soon-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-8);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(26,22,18,0.4);
  margin-bottom: 8px;
}
.sh-soon-text {
  font-family: var(--font-serif);
  font-size: var(--fs-13);
  font-style: italic;
  line-height: 1.7;
  color: rgba(26,22,18,0.5);
  margin-bottom: 16px;
}
.sh-btn-secondary {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-9);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(26,22,18,0.5);
  background: transparent;
  border: 1px solid rgba(26,22,18,0.18);
  padding: 12px 28px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  text-decoration: none;
}
.sh-btn-secondary:hover { color: var(--color-amber); border-color: var(--color-amber); }

/* What's included */
.sh-included { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(26,22,18,0.08); }
.sh-included-label {
  font-family: var(--font-mono);
  font-size: var(--fs-8);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(26,22,18,0.3);
  margin-bottom: 10px;
}
.sh-included-items { display: flex; flex-direction: column; gap: 6px; }
.sh-included-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: var(--fs-13);
  color: rgba(26,22,18,0.55);
  line-height: 1.5;
}
.sh-included-item::before { content: '·'; color: var(--color-amber); font-size: var(--fs-16); }

/* Archive record cross-link block */
.sh-archive-block {
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid rgba(26,22,18,0.08);
  border-left: 3px solid var(--color-amber);
  background: var(--color-vellum);
  text-decoration: none;
  display: block;
  transition: border-color 0.2s var(--ease);
}
.sh-archive-block:hover { border-color: var(--color-amber); }
.sh-archive-label {
  font-family: var(--font-mono);
  font-size: var(--fs-8);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(200,134,10,0.55);
  margin-bottom: 8px;
}
.sh-archive-title { font-family: var(--font-serif); font-size: var(--fs-15); color: var(--color-carbon); line-height: 1.4; margin-bottom: 4px; }
.sh-archive-title em { color: var(--color-amber); font-style: normal; }
.sh-archive-note { font-family: var(--font-serif); font-size: var(--fs-12); font-style: italic; color: rgba(26,22,18,0.45); }

/* Body — prose (left) + purchase/specs rail (right), mirroring the Archive
   record's split body. */
.sh-body { max-width: 1060px; margin: 0 auto; padding: 56px 52px; }
.sh-body--split { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 56px; align-items: start; }
.sh-prose { min-width: 0; }
.sh-section-label {
  font-family: var(--font-mono); font-size: var(--fs-12); letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(200,134,10,0.55); margin-bottom: 12px;
}
.sh-section-title { font-family: var(--font-serif); font-size: var(--fs-22); font-weight: var(--weight-regular); color: var(--color-carbon); margin-bottom: 18px; }
.sh-body-text { font-family: var(--font-serif); font-size: var(--fs-15); line-height: 1.9; color: rgba(26,22,18,0.65); margin-bottom: 16px; }
.sh-body-text:last-child { margin-bottom: 0; }
.sh-rule { width: 100%; height: 1px; background: rgba(26,22,18,0.08); margin: 40px 0; }
/* Rail: even 20px rhythm between the purchase, specs, and archive blocks. */
.sh-rail { display: flex; flex-direction: column; gap: 20px; }
.sh-rail > * { margin-bottom: 0; }

/* Related products — same wide 2-up card format as the Archive Related Records:
   era-colored code + title on the left, sepia thumbnail filling the right. */
.sh-related { max-width: 1060px; margin: 0 auto; padding: 0 52px 80px; }
.sh-related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.sh-rc { background: var(--color-vellum); border: 1px solid rgba(26,22,18,0.07); text-decoration: none; color: inherit; display: flex; align-items: stretch; gap: 16px; overflow: hidden; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.sh-rc:hover { border-color: var(--color-amber); transform: translateY(-2px); }
.sh-rc-text { flex: 1; min-width: 0; padding: 20px 0 20px 20px; }
.sh-rc-code { font-family: var(--font-mono); font-size: var(--fs-11); letter-spacing: 0.14em; text-transform: uppercase; color: var(--era, rgba(200,134,10,0.55)); margin-bottom: 8px; }
.sh-rc-title { font-family: var(--font-serif); font-size: var(--fs-18); color: var(--color-carbon); line-height: 1.3; }
.sh-rc-thumb {
  width: 128px;
  flex-shrink: 0;
  background-color: var(--color-soot);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* No image: faint archival hatch, matching the Archive record cards. */
  background-image: repeating-linear-gradient(-45deg, rgba(245,240,232,0.06) 0 1px, transparent 1px 7px);
  /* Washed sepia grade; hover reveals full colour. */
  filter: sepia(0.72) saturate(0.55) hue-rotate(-8deg) brightness(1.05) contrast(0.93);
  transition: filter 0.25s var(--ease);
}
.sh-rc:hover .sh-rc-thumb { filter: none; }
.sh-related-empty {
  font-family: var(--font-serif);
  font-size: var(--fs-13);
  font-style: italic;
  color: rgba(26,22,18,0.4);
}

/* ── MOBILE ── */
@media (max-width: 900px) {
  .sh-hero { min-height: 340px; }
  .sh-hero-inner { padding: 40px 20px; }
  .sh-controls-wrap { padding: 24px 20px 0; }
  /* Stack everything left on narrow screens, including the era group + sort. */
  .sh-controls-row, .sh-controls-row--sort { justify-content: flex-start; }
  .sh-filter-group--era { align-items: flex-start; }
  .sh-filter-group--era .sh-filter-row { justify-content: flex-start; }
  .sh-sort { margin-left: 0; }
  .sh-grid-wrap { padding: 32px 20px 64px; }
  .sh-grid { grid-template-columns: 1fr; gap: 20px; }
  .sh-breadcrumb { padding: 14px 20px; flex-wrap: wrap; }
  .sh-detail { grid-template-columns: 1fr; }
  .sh-detail-images, .sh-detail-info { grid-column: 1; }
  .sh-detail-info { padding: 32px 20px; }
  .sh-body { padding: 40px 20px; }
  .sh-body--split { grid-template-columns: 1fr; gap: 40px; }
  .sh-related { padding: 0 20px 60px; }
  .sh-related-grid { grid-template-columns: 1fr; }
}

/* Draft / status stamp — mirrors .av-sample-mark from archive.css so a draft
   kit's Shop page carries the same watermark as its Archive record. Fixed to
   the viewport; below the masthead, above content; never intercepts input. */
.av-sample-mark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-22deg);
  font-family: var(--font-mono);
  font-size: clamp(48px, 9vw, 120px);
  font-weight: var(--weight-bold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(192,81,42,0.10);
  border: 5px solid rgba(192,81,42,0.08);
  border-radius: 6px;
  padding: 16px 56px;
  pointer-events: none;
  user-select: none;
  z-index: 40;
}
/* Toggled off with the "S" key on the product page. */
.av-sample-mark.is-hidden { display: none; }
