/* ==========================================================================
   Meldroch — Store
   --------------------------------------------------------------------------
   Loaded only on /store, after refined.css. Markup comes from js/store.js.

   Composition: a short header, then the lead product (merch first) as the
   largest object on the page, with the digital products in a column beside
   it — roughly 62 / 38 on a laptop. Product imagery sits on a neutral
   "studio" ground so a black tee and a template cover both read; the page
   chrome stays out of its way (no glows, no animated backgrounds).
   ========================================================================== */

/* ---------- Header ---------- */
.store-top {
  padding-top: calc(4.25rem + clamp(1.25rem, 2.6vw, 2.25rem));
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.store-head {
  display: grid;
  gap: 0.6rem clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  margin-bottom: clamp(1.1rem, 2.2vw, 1.6rem);
}

.store-head > * { min-width: 0; }
.store-head h1 { font-size: var(--fs-h1); }
.store-head .eyebrow { margin-bottom: 0.6rem; }
.store-head p:not(.eyebrow) { color: var(--text-muted); max-width: 30rem; line-height: 1.6; }

@media (min-width: 900px) {
  .store-head { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}

/* ---------- Stage: lead product + digital column ---------- */
.store-stage {
  display: grid;
  gap: var(--stack-gap);
  align-items: stretch;
}

.store-stage > * { min-width: 0; }

@media (min-width: 1041px) {
  .store-stage { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
}

/* ---------- Product media ---------- */
.store-media {
  position: relative;
  display: block;
  overflow: hidden;
  /* The studio ground: a soft pool of light on a neutral grey, so a black
     garment separates from the page and a cover image has a frame. */
  background:
    radial-gradient(120% 90% at 50% 10%, #26262e 0%, #17171d 55%, #111116 100%);
}

.store-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Merch photos are shown whole — a crop that cuts a sleeve off reads as
   a mistake. Cover art for digital products is designed to fill. */
.is-merch .store-media img,
.store-gallery.is-merch .store-media img {
  object-fit: contain;
  padding: 4%;
}

/* The placeholder must be obviously a placeholder: an outline, a dashed
   frame, and the words "photo coming soon". */
.store-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.store-ph::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}

.store-ph-tee {
  width: min(52%, 15rem);
  height: auto;
  fill: rgba(255, 255, 255, 0.035);
  stroke: rgba(232, 184, 75, 0.55);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.store-ph-mark { width: min(34%, 5rem); height: auto; opacity: 0.75; }

.store-ph-note {
  font-size: 0.8125rem;
  color: var(--text-faint);
}

/* ---------- Shared bits ---------- */
.store-kicker {
  font-size: 0.8125rem;
  color: var(--text-faint);
}

.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
}

.store-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.store-chip.is-soon { color: var(--text-muted); background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.12); }
.store-chip.is-soon::before { background: var(--gold); }
.store-chip.is-live { color: var(--success); background: rgba(111, 211, 154, 0.08); border-color: rgba(111, 211, 154, 0.3); }
.store-chip.is-out { color: var(--text-muted); background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.14); }

.store-price {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.store-price-note { font-family: var(--font-body); font-size: 0.82rem; font-weight: 400; color: var(--text-faint); }

.store-buy-out { width: 0.95em; height: 0.95em; flex: none; }

/* ---------- Lead product ---------- */
.store-feature {
  display: grid;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.store-feature-media .store-media { height: 100%; aspect-ratio: 4 / 3; }

@media (min-width: 721px) {
  .store-feature { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .store-feature-media .store-media { aspect-ratio: auto; min-height: 22rem; }
}


.store-feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: clamp(24px, 2.6vw, 36px);
}

.store-feature-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.store-feature h2 {
  font-size: clamp(1.55rem, 1.6vw + 1rem, 2.3rem);
  letter-spacing: var(--track-h2);
  line-height: 1.08;
}

.store-feature-text { color: var(--text-muted); line-height: 1.6; max-width: 30rem; }

.store-feature-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}

.store-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.store-feature-note { font-size: 0.85rem; color: var(--text-faint); line-height: 1.5; }

/* ---------- Digital column ---------- */
.store-digital {
  display: flex;
  flex-direction: column;
  padding: var(--pad-compact);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.store-digital-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 4px 12px;
}

.store-digital-head h2 { font-size: 1.15rem; letter-spacing: var(--track-h3); }
.store-digital-head p { font-size: 0.85rem; color: var(--text-faint); margin-top: 4px; }
.store-digital-head .link-arrow { min-height: auto; font-size: 0.85rem; white-space: nowrap; }

.store-rows { list-style: none; display: grid; gap: 8px; }

.store-row {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}

.store-row:hover { border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); }

.store-row-thumb {
  width: 4.5rem;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
}

.store-row-thumb.store-ph::after { inset: 4px; border-radius: 8px; }
.store-row-thumb .store-ph-note { display: none; }
.store-row-thumb .store-ph-mark { width: 52%; }

.store-row h3 {
  font-size: 0.98rem;
  line-height: 1.3;
  letter-spacing: var(--track-h3);
}

/* The title link covers the row so the whole row opens the product; the
   price and Buy button sit above that cover. */
.store-row .store-card-link::after,
.store-card .store-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.store-row-meta { font-size: 0.8125rem; color: var(--text-faint); margin-top: 4px; }

.store-row-buy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.store-row-buy .store-price { font-size: 1rem; }

.store-row-badge {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #140f06;
  background: var(--gold);
}

.store-digital-more { align-self: flex-start; margin: 0.4rem 0.35rem 0; }

/* ---------- Product grid (catalog, related, more merch) ---------- */
.store-grid {
  display: grid;
  gap: var(--stack-gap);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
}

.store-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}

.store-card:hover { border-color: rgba(255, 255, 255, 0.16); }

.store-card-media { aspect-ratio: 4 / 3; }

.store-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}

.store-card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; }

.store-card h3 { font-size: 1.05rem; line-height: 1.3; letter-spacing: var(--track-h3); }

.store-card-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-card-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.55rem;
}

.store-card-foot .store-price { font-size: 1.05rem; }

.store-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  margin: 0;
}

/* ---------- Catalog filters ---------- */
.store-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  margin-bottom: 0.9rem;
}

.store-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.store-pill:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.22); }
.store-pill.is-on { color: #140f06; background: var(--gold); border-color: var(--gold); }

.store-pill-count {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.store-filter-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.store-search {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--surface-input);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.store-search input {
  width: 12rem;
  min-height: 2.4rem;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.store-search:focus-within { border-color: rgba(232, 184, 75, 0.55); }

.store-sort select {
  min-height: 2.5rem;
  padding: 0 2rem 0 0.9rem;
  border-radius: var(--radius-pill);
  background-color: var(--surface-input);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.store-results { font-size: 0.85rem; color: var(--text-faint); margin-bottom: 0.75rem; }

.store-none {
  margin-top: 0.5rem;
  padding: var(--pad-card);
  border-radius: var(--radius-lg);
  text-align: center;
}

.store-none h2 { font-size: var(--fs-h3); margin-bottom: 0.4rem; }
.store-none p { color: var(--text-muted); margin: 0 auto 1rem; }

/* ---------- Product detail ---------- */
.store-detail-section {
  padding-top: calc(4.25rem + clamp(1.25rem, 2.6vw, 2rem));
  padding-bottom: var(--section-pad);
}

.store-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.store-crumbs a { color: var(--text-muted); min-height: 2rem; display: inline-flex; align-items: center; }
.store-crumbs a:hover { color: var(--gold); }
.store-crumbs [aria-current] { color: var(--text); }

.store-split {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

@media (min-width: 1041px) {
  .store-split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .store-buy-col { position: sticky; top: 5.25rem; }
}

.store-gallery-main .store-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.store-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.store-thumb {
  width: 4.25rem;
  height: 4.25rem;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #17171d;
  opacity: 0.7;
  transition: opacity var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.store-thumb img { width: 100%; height: 100%; object-fit: cover; }
.store-thumb:hover { opacity: 1; }
.store-thumb.is-on { opacity: 1; border-color: var(--gold); }

.store-buy-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: var(--pad-card);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.store-buy-card h1 { font-size: clamp(1.5rem, 1.5vw + 1rem, 2.15rem); line-height: 1.08; }

.store-buy-action .btn-buy,
.store-buy-action .btn { width: 100%; min-height: 3rem; }

.store-buy-promise { font-size: 0.86rem; color: var(--text-muted); line-height: 1.5; }

.store-buy-formats {
  display: flex;
  gap: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.store-buy-formats span { color: var(--text-faint); }

.pay-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.pay-badge {
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pay-badge.is-payhip { color: var(--gold-soft); border-color: rgba(232, 184, 75, 0.3); }

.store-block { margin-top: 1.1rem; padding: 0 0.15rem; }
.store-block h2 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.store-description p { color: var(--text-muted); font-size: 0.97rem; line-height: 1.65; }
.store-description p + p { margin-top: 0.7rem; }

.store-related { margin-top: var(--section-pad); }

/* ---------- Trust row ---------- */
.store-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Bundle ---------- */
.store-bundle h2 .text-gold { white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  /* The digital column runs as a two-up list under the lead product. */
  .store-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .store-trust { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .store-top { padding-top: calc(4.1rem + 1.25rem); padding-bottom: 2rem; }
  .store-rows { grid-template-columns: minmax(0, 1fr); }

  .store-feature { border-radius: var(--radius-lg); }
  .store-feature-actions .btn { flex: 1 1 auto; }

  /* Thumb, then title; price and Buy share the second line. */
  .store-row { grid-template-columns: 3.75rem minmax(0, 1fr); gap: 0.4rem 0.75rem; }
  .store-row-thumb { width: 3.75rem; grid-row: span 2; align-self: start; }
  .store-row-buy { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }

  .store-filters { padding: 0.65rem; }
  .store-filter-controls,
  .store-filter-controls > label { width: 100%; }
  .store-search input { width: 100%; }
  .store-sort select { width: 100%; }

  .store-detail-section { padding-top: calc(4.1rem + 1rem); }
}


@media (prefers-contrast: more) {
  .store-feature,
  .store-card,
  .store-row,
  .store-digital { border-color: rgba(255, 255, 255, 0.4); }
}

/* The column is as tall as the lead product beside it; the payment marks
   sit on its bottom edge rather than leaving that space empty. */
.store-digital-foot,
.store-pay-line {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-faint);
}

.store-digital-foot { margin-top: auto; padding: 16px 4px 4px; }

/* Product page: the photo is shown whole, whatever its shape. Covers come
   in 16:9 and square, and a crop that suits one cuts the title off the
   other. The studio ground fills the margins. */
.store-gallery-main .store-media img { object-fit: contain; }

/* ==========================================================================
   Access → Store editor
   The list stays scannable (one row per product); one product opens into
   an editor with its photos and a live preview built from the same card
   CSS the store uses, so what you see here is what visitors see.
   ========================================================================== */

.sa-item { padding: 0.75rem; border-radius: var(--radius-lg); }
.sa-item.is-open { border-color: rgba(232, 184, 75, 0.35); }

.sa-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
}

.sa-thumb {
  width: 3.5rem;
  height: 3.5rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #17171d;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sa-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sa-thumb .cover-none { min-height: 0; height: 100%; font-size: 0.6rem; }

.sa-thumb-ph { display: grid; place-items: center; width: 100%; height: 100%; }
.sa-thumb-ph .store-ph-tee { width: 70%; }

.sa-row-main strong { display: block; font-size: 0.98rem; }
.sa-flags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.3rem; }

.sa-row-actions { display: flex; align-items: center; gap: 0.35rem; }

.sa-icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 1rem;
}

.sa-icon-btn:hover:not(:disabled) { color: var(--gold); border-color: rgba(232, 184, 75, 0.4); }
.sa-icon-btn:disabled { opacity: 0.35; cursor: default; }

.sa-editor {
  margin-top: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.sa-editor-grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.sa-editor-grid > * { min-width: 0; }

@media (min-width: 1000px) {
  .sa-editor-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .sa-side { position: sticky; top: 1rem; }
}

.sa-side { display: grid; gap: 1rem; }

.sa-images,
.sa-preview {
  display: grid;
  gap: 0.6rem;
  padding: 0.9rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.sa-images h4,
.sa-preview h4 {
  font-size: 0.72rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-faint);
}

.sa-main-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: radial-gradient(120% 90% at 50% 10%, #26262e 0%, #17171d 55%, #111116 100%);
}

.sa-main-photo img { width: 100%; height: 100%; object-fit: contain; }
.sa-main-photo .cover-none { height: 100%; min-height: 0; }
.sa-main-photo .sa-thumb-ph .store-ph-tee { width: 40%; }

.sa-photo-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.sa-subhead {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.3rem;
}

.sa-subhead span { color: var(--text-faint); font-weight: 400; }

.sa-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.45rem; }
.sa-gallery:empty { display: none; }

.sa-gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-xs);
  background: #17171d;
}

.sa-gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.sa-gallery-remove {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(8, 8, 11, 0.85);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
}

.sa-gallery-remove:hover { color: var(--danger); }

.sa-preview .store-card { pointer-events: none; }
.sa-preview .store-card:hover { transform: none; }

.sa-editor-actions { margin-top: 1rem; }

/* The save bar stays in reach however long the list gets. */
.sa-bar {
  position: sticky;
  bottom: 0.75rem;
  z-index: 5;
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  background: rgba(14, 14, 19, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.9);
}

.sa-bar .form-status { margin: 0; flex: 1 1 16rem; }

@media (max-width: 640px) {
  .sa-row { grid-template-columns: 3rem minmax(0, 1fr); }
  .sa-thumb { width: 3rem; height: 3rem; }
  .sa-row-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* Hidden products read as dimmed in the list, but an open editor is never
   dimmed — that is where the owner is reading and typing. */
.sa-item.is-hidden { opacity: 1; }
.sa-item.is-hidden > .sa-row { opacity: 0.6; }

/* Touch: the header link keeps a full 44px target. */
@media (pointer: coarse) {
  .store-digital-head .link-arrow { min-height: 2.75rem; }
}

/* ---------- Notify me box ---------- */
.store-notify-box {
  width: min(26rem, calc(100vw - 2rem));
  overflow-x: hidden;
  margin: auto;
  padding: clamp(1.25rem, 4vw, 1.6rem);
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}

.store-notify-box::backdrop { background: rgba(0, 0, 0, 0.62); }
.store-notify-box h2 { font-size: 1.3rem; line-height: 1.25; outline: none; }
.store-notify-lead { margin-top: 0.45rem; color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }
.store-notify-form .form-field { margin-top: 1rem; }
.store-notify-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.store-notify-actions .btn { flex: 1 1 8rem; justify-content: center; }
.store-notify-actions .btn[disabled] { opacity: 0.65; cursor: progress; }

/* ==========================================================================
   Store polish (scoped to /store via body.page-store)
   Gold is kept for prices and each item's one main action. Labels are
   sentence case, the chrome is neutral, and nothing lifts or glows.
   ========================================================================== */

.page-store main .eyebrow {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
}

/* Buttons: no glow, no lift; a press still scales down a touch. */
.page-store main .btn-primary { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset; }
.page-store main .btn-primary:hover { transform: none; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset; }
.page-store main .btn-ghost:hover { transform: none; box-shadow: none; border-color: rgba(255, 255, 255, 0.28); color: var(--text); }
.page-store main .btn:hover .btn-arrow { transform: translateX(2px); }

/* In the digital list the price already carries the gold, so Buy now is
   the quiet button and turns gold only when you reach for it. */
.page-store .store-row .btn-primary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.page-store .store-row .btn-primary:hover,
.page-store .store-row .btn-primary:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: #140f06;
}

/* How buying works: neutral icon wells, no gold hover. */
.page-store .store-trust .tile-icon {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.page-store .store-trust .tile:hover { border-color: rgba(255, 255, 255, 0.12); }
