/* store.css — commerce presentation.
   SITE-STORE-SPEC-REV1 §2.2 (store index) and §2.3 (item-page commerce block).
   Loaded by build.js on the store index and on any item page that actually
   carries a commerce block — which today is none of them, because every item
   in the snapshot is disposition=collection.

   Palette discipline (CLAUDE.md): green is the accent and carries
   "Bench Verified" semantics. A for-sale block is the one place that claim is
   doing commercial work, so green leads here — and nowhere in this file does
   it decorate anything that isn't a verification or availability statement.
   Oxblood stays the action colour; gold stays structure. */

/* ---------- shared page furniture ---------- */

/* the placeholder / content-pending markers on the Specialties page and the
   five compliance shells. Deliberately unmissable: an unfinished page that
   looks finished is how placeholder copy ships. */
.page-placeholder,
.page-pending {
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.6;
  background: var(--paper-panel);
  border-left: 3px solid var(--gold);
  padding: 0.7rem 1rem; margin: 1.4rem 0;
  color: var(--ink-soft);
}
.page-pending-line {
  font-family: var(--mono); font-size: 0.85rem;
  color: var(--ink-soft); opacity: 0.8;
}
/* the policy shells are lists of headings with a pending line under each —
   without this they read as one undifferentiated column */
.page-pending ~ section { margin-top: 1.8rem; }

/* ---------- store index (§2.2) ---------- */

/* stub-data warning. Only ever rendered under STORE_FIXTURES=1, and loud
   enough that a screenshot of it can't be mistaken for the real store. */
.store-stub {
  font-family: var(--mono); font-size: 0.8rem; line-height: 1.6;
  background: var(--oxblood); color: var(--paper);
  padding: 0.7rem 1rem; margin: 0 0 1.4rem; border-radius: 3px;
}

.store-foot {
  margin-top: 2.6rem; font-size: 0.98rem; color: var(--ink-soft);
}

/* ---------- item-page commerce block (§2.3) ---------- */

.sale-block {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  background: var(--paper-panel);
  border-left: 4px solid var(--green);
}
.sale-block > :first-child { margin-top: 0; }
.sale-block > :last-child { margin-bottom: 0; }

/* pending and sold are dead states — they carry no action, and the green
   verification rail would read as "go" against a block that means "stop" */
.sale-pending { border-left-color: var(--gold); }
.sale-sold { border-left-color: var(--ink-soft); opacity: 0.92; }

.sale-banner {
  font-family: var(--disp); font-weight: 600;
  font-size: 1.5rem; letter-spacing: 0.12em; text-transform: uppercase;
  margin: 0 0 0.4rem; color: var(--ink);
}
.sale-sold .sale-banner { color: var(--ink-soft); }

.sale-price {
  font-family: var(--mono); font-weight: 600; font-size: 1.7rem;
  letter-spacing: 0.02em; color: var(--ink); margin: 0.2rem 0 0.4rem;
}

.sale-ship,
.sale-note {
  font-size: 0.98rem; color: var(--ink-soft); margin: 0.4rem 0;
}
.sale-listed-at { font-family: var(--mono); font-size: 0.85rem; }

/* the verification link is the primary trust element (§2.3) — it gets the
   green rule and the weight, not the buy button */
.sale-verify {
  margin: 0 0 0.8rem; padding-bottom: 0.7rem;
  border-bottom: 1px solid color-mix(in srgb, var(--green) 40%, transparent);
  font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.03em;
}
.sale-verify a { color: var(--green); font-weight: 600; text-decoration-color: var(--green); }
.sale-verify a:hover { color: var(--ink); }
.sale-sold .sale-verify, .sale-pending .sale-verify {
  border-bottom-color: color-mix(in srgb, var(--ink-soft) 25%, transparent);
}
.sale-sold .sale-verify a, .sale-pending .sale-verify a { color: var(--oxblood); }

.sale-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem 1rem;
  margin: 1rem 0 0;
}

.sale-btn {
  display: inline-block;
  font-family: var(--disp); font-weight: 600; font-size: 1.05rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.6rem 1.6rem; border: 1px solid var(--oxblood); border-radius: 2px;
  background: var(--oxblood); color: var(--paper); text-decoration: none;
  cursor: pointer;
}
.sale-btn:hover { background: var(--oxblood-deep); color: var(--gold); }
.sale-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* SM1 renders the direct-buy control disabled: there is no order-creation
   gate behind it yet (§5.2), and an enabled button that does nothing is worse
   than an obviously unfinished one. SM2 removes the `disabled` attribute in
   tools/commerce-block.js — this rule needs no change when it does. */
.sale-btn[disabled],
.sale-btn-dead {
  background: transparent; color: var(--ink-soft);
  border-color: color-mix(in srgb, var(--ink-soft) 40%, transparent);
  cursor: not-allowed;
}
.sale-btn[disabled]:hover,
.sale-btn-dead:hover { background: transparent; color: var(--ink-soft); }

/* an unresolved spec item, said out loud on the page rather than papered over
   with a plausible-looking value. Nothing carrying this class may ship. */
.sale-open {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.03em;
  color: var(--oxblood); opacity: 0.85;
}

@media (max-width: 40rem) {
  .sale-block { padding: 1.1rem 1.1rem; }
  .sale-price { font-size: 1.45rem; }
  .sale-actions { align-items: flex-start; flex-direction: column; }
}
