:root {
  --bg-ink: #0a0f26;
  --bg-navy: #131b42;
  --panel: #101736;
  --panel-deep: #0c122c;
  --gold: #d4af37;
  --gold-bright: #f0c75e;
  --gold-dark: #b8860b;
  --gold-soft: rgba(212, 175, 55, 0.35);
  --text: #cfd4ee;
  --muted: #8b91b5;
  --line: rgba(212, 175, 55, 0.35);
  --shadow: rgba(0, 0, 0, 0.45);
  --green: #48d28b;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 50% 18%, rgba(212, 175, 55, 0.18), transparent 24rem),
    radial-gradient(circle at 12% 78%, rgba(55, 107, 212, 0.16), transparent 24rem),
    linear-gradient(135deg, var(--bg-ink), var(--bg-navy) 58%, #090d21);
  font-family: Inter, system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.site-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 34px;
}

.network-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.58;
  background-image:
    radial-gradient(circle at 12% 25%, rgba(240, 199, 94, 0.48) 0 2px, transparent 3px),
    radial-gradient(circle at 25% 40%, rgba(240, 199, 94, 0.38) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 22%, rgba(240, 199, 94, 0.34) 0 2px, transparent 3px),
    radial-gradient(circle at 77% 28%, rgba(240, 199, 94, 0.4) 0 2px, transparent 3px),
    radial-gradient(circle at 90% 52%, rgba(240, 199, 94, 0.28) 0 1px, transparent 2px),
    linear-gradient(30deg, transparent 12%, rgba(212, 175, 55, 0.11) 12.15%, transparent 12.35%),
    linear-gradient(148deg, transparent 20%, rgba(212, 175, 55, 0.1) 20.15%, transparent 20.35%),
    linear-gradient(108deg, transparent 72%, rgba(212, 175, 55, 0.1) 72.15%, transparent 72.35%);
  background-size: 620px 420px, 580px 390px, 700px 440px, 660px 460px, 620px 420px, 760px 520px, 860px 620px, 720px 540px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 23, 54, 0.88), rgba(8, 13, 31, 0.74));
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.06);
}

.site-header.compact {
  margin-bottom: 18px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 14px;
}

.site-nav a {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold-bright);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 999px;
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.wordmark,
h1,
h2,
.gold-text {
  color: var(--gold-bright);
  background: linear-gradient(180deg, #fff0b6 0%, var(--gold-bright) 35%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.12);
}

.wordmark,
h1,
h2 {
  font-family: Cinzel, Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
}

.wordmark {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1;
}

.header-logo {
  height: clamp(54px, 8vw, 76px);
  width: auto;
  display: block;
  object-fit: contain;
}

.site-header p,
.site-footer,
.muted {
  color: var(--muted);
}

.site-header p {
  margin: 0;
  text-align: right;
}

.header-tagline {
  max-width: 22rem;
  color: var(--muted);
  font-size: clamp(0.82rem, 1.6vw, 0.95rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  min-height: 0;
  margin: 22px 0 28px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 20%, rgba(212, 175, 55, 0.16), transparent 18rem),
    linear-gradient(135deg, rgba(16, 23, 54, 0.92), rgba(8, 12, 30, 0.88));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.hero-copy {
  max-width: 640px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: clamp(280px, 42vw, 420px);
  align-self: stretch;
}

.hero-visual img {
  width: min(100%, 420px);
  height: auto;
  max-height: clamp(300px, 48vw, 460px);
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.45));
  animation: art-float 7s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

.shop-hero h1 {
  max-width: 18ch;
  margin-bottom: 14px;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.05;
}

.hero-subline {
  max-width: 560px;
  margin-bottom: 22px;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.hero-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.checkout-loading {
  margin: 48px 0;
  text-align: center;
  font-size: 1rem;
}

.checkout-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.checkout-breadcrumb a {
  color: var(--text);
  font-weight: 600;
}

.checkout-breadcrumb a:hover,
.checkout-breadcrumb a:focus-visible {
  color: var(--gold-bright);
}

.catalog {
  margin-bottom: 8px;
}

.catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.catalog-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.1;
}

.catalog-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 212, 122, 0.42);
  border-radius: 8px;
  background: rgba(71, 49, 12, 0.72);
  color: #ffe9ac;
}

.icon-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(245, 212, 122, 0.3);
  border-radius: 50%;
  background: rgba(7, 11, 28, 0.42);
  color: #ffe9ac;
  font-size: 1.35rem;
  line-height: 1;
}

.product-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-board-loading {
  grid-column: 1 / -1;
  margin: 0;
  padding: 48px 24px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 8px;
  background: rgba(8, 12, 30, 0.72);
  text-align: center;
}

.product-card {
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(16, 23, 54, 0.94), rgba(8, 12, 30, 0.92));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(245, 212, 122, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(212, 175, 55, 0.12);
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  padding: 28px 22px 8px;
  background:
    radial-gradient(circle at 50% 40%, rgba(212, 175, 55, 0.14), transparent 12rem),
    rgba(5, 8, 20, 0.35);
}

.product-visual {
  position: relative;
  display: grid;
  width: min(180px, 58vw);
  aspect-ratio: 1;
  place-items: center;
}

.product-visual.large {
  width: min(260px, 72vw);
  margin: 0 auto 18px;
}

.product-visual img {
  position: relative;
  z-index: 1;
  width: 88%;
  height: 88%;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.45));
  animation: art-float 6s ease-in-out infinite;
}

.product-halo {
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 239, 174, 0.82) 0 7%, rgba(240, 199, 94, 0.36) 22%, rgba(212, 175, 55, 0.1) 48%, transparent 70%);
  filter: blur(4px);
  animation: halo-pulse 6s ease-in-out infinite;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 8px 18px 18px;
}

.product-edition {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card h2,
.checkout-product-panel h1,
.status-card h1 {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.15;
}

.checkout-product-panel h1,
.status-card h1 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
}

.product-tagline {
  display: -webkit-box;
  flex: 1;
  margin: 0 0 16px;
  overflow: hidden;
  color: #d8c08d;
  font-size: 0.94rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.product-price,
.product-price-lg {
  margin: 0;
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 1.2rem;
}

.product-price-lg {
  margin-bottom: 10px;
  font-size: 1.55rem;
}

.product-card .gold-button {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.gold-button,
.ghost-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 7px;
  padding: 13px 22px;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.gold-button {
  border: 1px solid rgba(255, 240, 182, 0.42);
  color: #1a1a1a;
  background: linear-gradient(180deg, #f5d47a, #c9992e);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.42), 0 11px 24px rgba(0, 0, 0, 0.26);
  text-shadow: 0 1px rgba(255, 255, 255, 0.28);
}

.gold-button:hover,
.gold-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.55), 0 0 28px rgba(212, 175, 55, 0.42), 0 16px 28px rgba(0, 0, 0, 0.32);
}

.gold-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.gold-button.wide {
  width: 100%;
}

.ghost-button {
  border: 1px solid rgba(212, 175, 55, 0.36);
  color: var(--gold-bright);
  background: rgba(8, 12, 30, 0.48);
}

.ghost-button:hover,
.ghost-button:focus-visible {
  border-color: rgba(245, 212, 122, 0.72);
  transform: translateY(-2px);
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding-top: 24px;
  font-size: 0.92rem;
}

.site-footer span + span::before {
  margin-right: 18px;
  color: var(--gold-soft);
  content: "·";
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
  gap: 22px;
  align-items: stretch;
}

.checkout-product-panel,
.checkout-coin-panel,
.checkout-form-panel,
.status-card {
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(16, 23, 54, 0.92), rgba(8, 12, 30, 0.9)),
    var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.05);
}

.checkout-product-panel {
  display: flex;
  min-height: 560px;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(22px, 4vw, 36px);
  text-align: left;
}

.checkout-coin-panel {
  display: flex;
  min-height: 560px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 5vw, 48px);
  text-align: center;
}

.checkout-coin-panel h1 {
  margin-bottom: 12px;
  font-size: clamp(1.85rem, 4vw, 2.8rem);
  line-height: 1.05;
}

.coin-visual {
  position: relative;
  display: grid;
  width: min(190px, 58vw);
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 26px;
}

.coin-visual.large {
  width: min(230px, 70vw);
  margin-inline: auto;
}

.coin-visual img {
  position: relative;
  z-index: 1;
  width: 82%;
  height: 82%;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.45));
  animation: art-float 6s ease-in-out infinite;
}

.coin-halo {
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 239, 174, 0.82) 0 7%, rgba(240, 199, 94, 0.36) 22%, rgba(212, 175, 55, 0.1) 48%, transparent 70%);
  filter: blur(4px);
  animation: halo-pulse 6s ease-in-out infinite;
}

.coin-name {
  margin-bottom: 8px;
  color: #d8c08d;
  font-weight: 700;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.chip-row button {
  min-width: 64px;
  min-height: 38px;
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 999px;
  color: var(--gold-bright);
  background: rgba(5, 8, 20, 0.42);
  font-weight: 800;
}

.chip-row button:hover,
.chip-row button:focus-visible {
  border-color: rgba(245, 212, 122, 0.72);
  background: rgba(212, 175, 55, 0.12);
}

.checkout-product-panel .product-visual.large {
  width: 100%;
  max-width: none;
  aspect-ratio: 1;
  margin: 0 0 22px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(212, 175, 55, 0.14), transparent 14rem),
    rgba(5, 8, 20, 0.42);
}

.checkout-product-panel .product-visual.large img {
  width: 72%;
  height: 72%;
}

.panel-heading {
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.product-name {
  margin-bottom: 8px;
  color: #d8c08d;
  font-weight: 700;
}

.checkout-form-panel {
  padding: clamp(22px, 4vw, 38px);
}

.form-grid {
  display: grid;
  gap: 18px;
}

/* direct child only — must not match the $ prefix inside .amount-input */
label > span:first-child {
  display: block;
  margin-bottom: 8px;
  color: #e2dcbf;
  font-size: 0.88rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: 7px;
  padding: 12px 14px;
  color: #f7f0d6;
  background: rgba(5, 8, 20, 0.58);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

input:focus {
  border-color: rgba(245, 212, 122, 0.74);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
}

.amount-input {
  display: flex;
  min-height: 48px;
  align-items: center;
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: 7px;
  background: rgba(5, 8, 20, 0.58);
}

.amount-input > span {
  /* beats `label span:first-child`, which otherwise shrinks the $ to
     0.88rem and adds margin-bottom: 8px, misaligning it from the value */
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
  padding-left: 14px;
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
}

.amount-input input {
  font-size: 1.05rem;
}

.amount-input input {
  flex: 1;
  min-height: 46px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 12px 0 8px; /* global input rule's 12px vertical padding misaligns the value against the $ prefix */
  line-height: 1;
}

/* native number spinners read as a white box on the dark theme */
.amount-input input::-webkit-outer-spin-button,
.amount-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.amount-input input[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty-stepper {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 0;
  overflow: hidden;
}

.qty-stepper button {
  display: grid;
  place-items: center;
  border: 0;
  border-right: 1px solid rgba(212, 175, 55, 0.22);
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.08);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.qty-stepper button:last-child {
  border-right: 0;
  border-left: 1px solid rgba(212, 175, 55, 0.22);
}

.qty-stepper button:hover,
.qty-stepper button:focus-visible {
  background: rgba(212, 175, 55, 0.16);
}

.qty-stepper input {
  text-align: center;
  padding-left: 0;
  padding-right: 0;
}

.summary-title {
  background: rgba(212, 175, 55, 0.06);
}

.summary-title span {
  color: var(--gold-bright) !important;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-panel,
.receipt-rows {
  display: grid;
  gap: 0;
  margin: 20px 0;
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(5, 8, 20, 0.36);
}

.summary-panel > div,
.receipt-rows > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
}

.summary-panel > div:last-child,
.receipt-rows > div:last-child {
  border-bottom: 0;
}

.summary-panel span,
.receipt-rows span {
  color: var(--muted);
}

.summary-panel strong,
.receipt-rows strong {
  text-align: right;
}

.total-row,
.receipt-total {
  background: rgba(212, 175, 55, 0.08);
}

.total-row strong,
.receipt-total strong {
  color: var(--gold-bright);
  font-size: 1.28rem;
}

.form-error {
  margin: 0 0 16px;
  color: #ffb6a9;
  font-weight: 700;
}

.trust-row {
  margin: 18px 0 0;
  color: #d8c08d;
  text-align: center;
}

.status-layout {
  display: grid;
  min-height: 560px;
  place-items: center;
}

.status-card {
  width: min(720px, 100%);
  padding: clamp(26px, 5vw, 48px);
  text-align: center;
}

.status-card h1 {
  margin-bottom: 14px;
}

.spinner {
  display: inline-block;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border: 3px solid rgba(212, 175, 55, 0.18);
  border-top-color: var(--gold-bright);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.spinner.tiny {
  width: 18px;
  height: 18px;
  margin: 0;
  border-width: 2px;
  border-top-color: #1a1a1a;
}

.attempt {
  margin: 20px 0 0;
  color: #d8c08d;
  font-size: 0.9rem;
}

.success-check {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  margin: 0 auto 18px;
  border: 1px solid rgba(72, 210, 139, 0.65);
  border-radius: 50%;
  color: #06160e;
  background: radial-gradient(circle at 35% 30%, #bff5d6, var(--green));
  font-size: 2.4rem;
  font-weight: 900;
  box-shadow: 0 0 28px rgba(72, 210, 139, 0.34);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  word-break: break-word;
}

.receipt-note {
  color: #d8c08d;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

@keyframes art-float {
  0%,
  100% {
    transform: translateY(-4px);
  }

  50% {
    transform: translateY(6px);
  }
}

@keyframes halo-pulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.98);
  }

  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-product-panel,
  .checkout-coin-panel {
    min-height: auto;
  }

  .product-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .site-shell {
    width: min(100% - 24px, 680px);
    padding-top: 16px;
  }

  .site-header,
  .site-footer,
  .catalog-head,
  .product-footer,
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-header p {
    text-align: left;
  }

  .shop-hero {
    grid-template-columns: 1fr;
    padding: 24px 18px 0;
  }

  .hero-visual {
    min-height: 260px;
    order: -1;
  }

  .hero-visual img {
    max-height: 300px;
  }

  .product-board {
    grid-template-columns: 1fr;
  }

  .product-card .gold-button,
  .product-footer {
    width: 100%;
  }

  .product-footer .gold-button {
    width: 100%;
  }

  .site-footer span + span::before {
    content: "";
    margin: 0;
  }
}

@media (max-width: 520px) {
  .summary-panel > div,
  .receipt-rows > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .summary-panel strong,
  .receipt-rows strong {
    text-align: left;
  }

  .gold-button,
  .ghost-button {
    width: 100%;
  }

  .button-row {
    flex-direction: column;
  }
}

/* Populated by js/applepay.js, and only on Apple Pay capable devices —
   stays hidden everywhere else, so the PayPal button is unaffected. */
.applepay-container {
  margin-top: 12px;
}

.applepay-container apple-pay-button {
  display: block;
  width: 100%;
  --apple-pay-button-width: 100%;
  --apple-pay-button-height: 54px;
  --apple-pay-button-border-radius: 12px;
}
