:root {
  --ink: #1a120b;
  --saddle: #3c2415;
  --leather: #6b3a1f;
  --rust: #a34a28;
  --gold: #c9a227;
  --parchment: #f3e6c9;
  --dust: #e7d3a8;
  --cream: #fbf4e4;
  --night: #100c09;
  --line: rgba(201, 162, 39, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(201,162,39,.12), transparent 50%),
    linear-gradient(180deg, #2a1a10 0%, #1a120b 28%, #24160e 100%);
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}

.ticker {
  background: var(--gold);
  color: var(--night);
  text-align: center;
  padding: .55rem 1rem;
  font-family: Karla, sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
}

.nav-toggle {
  display: none;
  width: calc(100% - 1.5rem);
  margin: .75rem auto 0;
  background: var(--saddle);
  color: var(--parchment);
  border: 1px solid var(--gold);
  padding: .7rem 1rem;
  font-family: Karla, sans-serif;
  font-weight: 700;
}

.shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
}

.board {
  background:
    linear-gradient(180deg, rgba(20,12,8,.55), rgba(20,12,8,.2)),
    repeating-linear-gradient(90deg, #3a2416 0 12px, #2e1c11 12px 13px);
  color: var(--parchment);
  padding: 1.6rem 1.2rem 2.5rem;
  border-right: 8px solid #1a100a;
  box-shadow: inset -18px 0 28px rgba(0,0,0,.35);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.brand {
  display: block;
  text-decoration: none;
  text-align: center;
  padding: 1rem .5rem 1.3rem;
  border: 2px solid var(--gold);
  background: rgba(16,10,6,.72);
  margin-bottom: 1.1rem;
}
.brand-star { color: var(--gold); display: block; letter-spacing: .4em; }
.brand-name {
  font-family: Rye, serif;
  font-size: 1.35rem;
  display: block;
  line-height: 1.15;
  margin: .35rem 0;
}
.brand-tag {
  display: block;
  font-family: Karla, sans-serif;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dust);
}
.board-search input {
  width: 100%;
  background: #f7edd4;
  border: 0;
  padding: .65rem .7rem;
  font-family: Karla, sans-serif;
}
.board-heading {
  font-family: Karla, sans-serif;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .68rem;
  color: var(--gold);
  margin: 1.3rem 0 .4rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: .3rem;
}
.board-nav { display: grid; gap: .15rem; }
.board-nav a {
  text-decoration: none;
  padding: .4rem .35rem;
  font-family: Karla, sans-serif;
  font-weight: 600;
  border-left: 3px solid transparent;
}
.board-nav a:hover { border-left-color: var(--gold); background: rgba(0,0,0,.25); }
.board-sub { display: grid; gap: .05rem; margin: 0 0 .25rem .7rem; }
.board-sub a {
  font-size: .88rem;
  font-weight: 500;
  padding: .28rem .35rem;
  color: #e8d7b0;
}
.crumb { font-family: Karla, sans-serif; font-size: .92rem; margin: 0 0 .35rem; }
.crumb a { color: var(--rust); }
.subcats { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.2rem; }
.subcats a {
  background: var(--saddle);
  color: var(--parchment);
  text-decoration: none;
  padding: .4rem .75rem;
  font-family: Karla, sans-serif;
  font-size: .88rem;
}
.board-note {
  font-size: .78rem;
  color: #d8c7a1;
  line-height: 1.45;
  margin-top: 1.4rem;
}

.stage {
  background:
    linear-gradient(180deg, rgba(251,244,228,.96), rgba(243,230,201,.96)),
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(107,58,31,.05) 28px);
  min-height: 100vh;
  padding: 2rem 2.2rem 3rem;
}

.hero {
  min-height: 420px;
  background:
    linear-gradient(90deg, rgba(16,10,6,.72) 0%, rgba(16,10,6,.15) 55%),
    var(--hero) center/cover;
  color: var(--cream);
  display: grid;
  align-items: end;
  padding: 2.2rem;
  border: 1px solid #c9a22755;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  margin-bottom: 2rem;
}
.hero-copy { max-width: 34rem; }
.kicker {
  font-family: Karla, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--gold);
  margin: 0 0 .4rem;
}
h1, h2, h3 { font-family: Rye, serif; font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 0 0 .5rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.05rem; font-family: "Source Serif 4", serif; }
.lede { font-size: 1.12rem; line-height: 1.5; }

.btn {
  display: inline-block;
  background: var(--rust);
  color: #fff8ea;
  text-decoration: none;
  border: 0;
  padding: .7rem 1.05rem;
  font-family: Karla, sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn:hover { transform: translate(-1px, -1px); }
.btn-small { padding: .4rem .65rem; font-size: .8rem; box-shadow: 2px 2px 0 var(--ink); }
.btn-ghost { background: transparent; color: var(--saddle); border: 1px solid var(--saddle); box-shadow: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.wallet-pay {
  display: grid;
  gap: .75rem;
  max-width: 22rem;
  margin: 1.2rem 0 1.4rem;
}
.wallet-lead {
  font-family: Karla, sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--saddle);
  margin: 0;
}
#apple-pay-button[hidden],
.wallet-btn-apple[hidden],
#google-pay-button[hidden],
.wallet-btn-google[hidden] {
  display: none !important;
}
#apple-pay-button,
.wallet-btn-apple {
  -webkit-appearance: -apple-pay-button;
  -apple-pay-button-type: buy;
  -apple-pay-button-style: black;
  width: 100%;
  height: 48px;
  border: 0;
  cursor: pointer;
  background: #000;
  color: transparent;
  display: block;
  text-decoration: none;
  border-radius: 4px;
}
.wallet-btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-family: Karla, sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: 4px;
  box-shadow: none;
}
.wallet-btn-google:hover { color: #fff; transform: none; }
#google-pay-button {
  min-height: 40px;
  width: 100%;
}

.band { margin: 2.2rem 0; }
.band-head { margin-bottom: 1rem; }
.band-head p { margin-top: .2rem; color: #5c4630; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem;
}
.card {
  background: #fffaf0;
  border: 1px solid #d9c39a;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.card-media { position: relative; background: #1a120b; }
.card-media img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.wanted {
  position: absolute;
  top: .6rem;
  left: .6rem;
  background: #f4e4b4;
  color: var(--ink);
  font-family: Rye, serif;
  font-size: .72rem;
  padding: .25rem .45rem;
  border: 1px solid var(--ink);
  transform: rotate(-3deg);
}
.card-body { padding: .85rem .9rem 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-body p { margin: 0; color: #5a4632; font-size: .95rem; }
.card-body h3 a { text-decoration: none; }
.card-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
}
.card-row s { color: #8a7460; }

.page-head { margin-bottom: 1.4rem; }
.warn {
  background: #f6e1c6;
  border-left: 4px solid var(--rust);
  padding: .7rem .9rem;
  font-size: .92rem;
}
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 1.6rem;
  align-items: start;
}
.product-gallery img { width: 100%; border: 1px solid #d9c39a; background: #1a120b; }
.thumbs { display: flex; gap: .4rem; margin-top: .5rem; }
.thumb { border: 1px solid #d9c39a; padding: 0; background: none; width: 72px; cursor: pointer; }
.price { font-size: 1.6rem; font-family: Karla, sans-serif; }
.price s { font-size: 1rem; margin-left: .4rem; color: #7a6550; }
.prose p { line-height: 1.65; }
.prose h2 { font-size: 1.15rem; margin: 1.5rem 0 .45rem; }
.ships-from { color: #6b5744; font-size: .86rem; margin: .35rem 0 0; font-family: Karla, sans-serif; }
.buy { display: flex; gap: .6rem; align-items: end; margin: 1rem 0; }
.buy input { width: 4.5rem; padding: .55rem; font: inherit; }
.sku { font-family: Karla, sans-serif; color: #6b5744; font-size: .85rem; }
.stock { font-family: Karla, sans-serif; }

.ledger { width: 100%; border-collapse: collapse; background: #fffaf0; }
.ledger th, .ledger td { border-bottom: 1px solid #d9c39a; padding: .7rem; text-align: left; }
.ledger input { width: 4rem; padding: .35rem; }
.totals {
  background: var(--saddle);
  color: var(--parchment);
  padding: 1rem 1.1rem;
  margin-top: 1rem;
  max-width: 24rem;
}
.grand { font-size: 1.25rem; color: var(--gold); }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.2rem; }
.stack { display: grid; gap: .7rem; }
.stack label, .inline-search { display: grid; gap: .25rem; font-family: Karla, sans-serif; }
.stack input, .stack textarea, .stack select, .inline-search input {
  font: inherit;
  padding: .55rem .65rem;
  border: 1px solid #cbb892;
  background: #fffaf0;
}
.addr-row { display: grid; grid-template-columns: 1.4fr .9fr .7fr; gap: .7rem; }
.ship-opts {
  border: 1px solid #cbb892;
  background: #fffaf0;
  padding: .75rem .85rem;
  display: grid;
  gap: .45rem;
}
.ship-opts legend { font-family: Karla, sans-serif; font-weight: 700; }
.ship-opt {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .55rem;
  align-items: center;
  font-family: Karla, sans-serif;
}
.ship-opt input { width: auto; }
.addr-book {
  border: 1px solid #cbb892;
  background: #fffaf0;
  padding: .75rem .85rem;
  display: grid;
  gap: .55rem;
}
.addr-book legend { font-family: Karla, sans-serif; font-weight: 700; }
.addr-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .55rem;
  align-items: start;
  font-family: Karla, sans-serif;
  font-size: .92rem;
}
.addr-card input { width: auto; margin-top: .2rem; }
.addr-remove {
  background: none;
  border: 0;
  color: var(--rust);
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.addr-tools { margin: 0; }
.hint { font-size: .88rem; color: #5c4630; margin: 0; }
.hint.is-error { color: #8a2a12; }
.ship-block {
  background: #fffaf0;
  border: 1px solid #d9c39a;
  padding: .8rem 1rem;
  white-space: pre-wrap;
  max-width: 24rem;
}
.new-addr { display: grid; gap: .7rem; }
.new-addr[hidden] { display: none; }
.tax-note { display: block; font-size: .82rem; color: #e8d7b0; font-weight: 400; margin-top: .2rem; }
.totals .tax-note { color: #e8d7b0; }
.inline-search { grid-template-columns: 1fr auto; align-items: end; max-width: 36rem; }
.foot {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #d2ba8d;
  color: #5c4630;
  font-size: .92rem;
}

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .board {
    display: none;
    position: static;
    height: auto;
  }
  .board.open { display: block; }
  .nav-toggle { display: block; }
  .product, .split, .addr-row { grid-template-columns: 1fr; }
  .stage { padding: 1.2rem 1rem 2rem; }
}
