/* Layout: a quiet paper page where prints sit on cool mats like a gallery wall.
   The one bold move is the steel-blue wall from the bike photo, used as the home band. */
:root {
  --bg: #f3f5f6;
  --surface: #ffffff;
  --mat: #e3e8eb;
  --ink: #15212b;
  --muted: #55636e;
  --line: #d3dbe0;
  --accent: #2b5a7a;
  --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgba(21, 33, 43, 0.14), 0 10px 22px rgba(21, 33, 43, 0.10);

  /* Fixed brand colors: these describe physical things (the wall, kraft paper, postal ink),
     so they stay the same in both themes. */
  --wall: #789fb8;
  --wall-2: #80a5be;
  --wall-ink: #0f1d27;
  --kraft: #e7dccb;
  --kraft-ink: #2a2520;
  --postal: #8a3e33;

  --font-display: "Gloock", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-typed: "Courier Prime", "Courier New", Courier, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 3.6vw, 2.75rem);
  --step-4: clamp(2.5rem, 6vw, 4.5rem);

  --measure: 62ch;
  --radius: 3px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10161b;
    --surface: #172028;
    --mat: #1c252d;
    --ink: #e5ebef;
    --muted: #9ba9b3;
    --line: #2b363f;
    --accent: #93bbd5;
    --accent-ink: #0d1820;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 10px 22px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10161b;
  --surface: #172028;
  --mat: #1c252d;
  --ink: #e5ebef;
  --muted: #9ba9b3;
  --line: #2b363f;
  --accent: #93bbd5;
  --accent-ink: #0d1820;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 10px 22px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
p { margin: 0; }

.wrap {
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); color: var(--ink); padding: 8px 12px; z-index: 20;
}
.skip-link:focus { left: max(16px, env(safe-area-inset-left, 0px)); top: calc(8px + env(safe-area-inset-top, 0px)); }

/* Header */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 28px;
  padding-block: 18px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: inherit;
  text-decoration: none;
  line-height: 1;
}
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 22px;
}
.site-nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  padding-block: 4px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: currentColor; }
.site-nav a[aria-current="page"] { border-bottom-color: currentColor; }

.site-header--wall { background: linear-gradient(90deg, var(--wall), var(--wall-2)); color: var(--wall-ink); }
.site-header--wall a:focus-visible, .hero a:focus-visible { outline-color: var(--wall-ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; cursor: pointer;
  line-height: 1.2;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--small { padding: 7px 14px; font-size: 0.9375rem; }
.btn--wall { background: var(--wall-ink); border-color: var(--wall-ink); color: #f3f5f6; }
.btn--wall-ghost { background: transparent; border-color: var(--wall-ink); color: var(--wall-ink); }

/* Home hero: the wall color continues straight into the photo */
.hero {
  background: linear-gradient(90deg, var(--wall), var(--wall-2));
  color: var(--wall-ink);
}
.hero .wrap { padding-block: clamp(20px, 4vw, 48px) 0; display: grid; gap: 18px; }
.hero h1 { font-size: var(--step-4); max-width: 20ch; text-wrap: balance; }
.hero p { max-width: 44ch; font-size: 1.125rem; }
.hero .hero-sub { font-size: var(--step-2); line-height: 1.2; margin-top: -6px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-photo {
  max-width: 1500px;
  margin: clamp(-24px, -2vw, 0px) auto 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.hero-photo img {
  width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 9%);
}

/* Sections */
.section .wrap { padding-block: clamp(48px, 8vw, 96px); }
.section + .section .wrap { padding-top: 0; }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(24px, 4vw, 40px); max-width: var(--measure); }
.lede { color: var(--muted); font-size: 1.125rem; }
.page-head { display: grid; gap: 14px; max-width: var(--measure); }
main > .section:first-child .wrap { padding-top: clamp(28px, 5vw, 56px); }
.page-head h1 { font-size: var(--step-4); }

/* Print grid */
.grid { display: grid; gap: 32px 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 880px) {
  .grid--shop { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.print { display: grid; gap: 12px; align-content: start; min-width: 0; }
.print-mat {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 100%;
  background: var(--mat);
  border: 0;
  border-radius: 2px;
  padding: 10%;
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-in;
  color: inherit;
  text-decoration: none;
}
.print-mat img { box-shadow: var(--shadow); }
.print-mat img.is-wide { width: 100%; height: auto; }
.print-mat img.is-tall { height: 100%; width: auto; }
.print-mat:hover img { transform: translateY(-2px); }
.print-mat img { transition: transform 160ms ease; }
.print-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; }
.print-title { font-weight: 600; line-height: 1.3; }
.print-price { font-variant-numeric: tabular-nums; font-weight: 600; }
.print-detail { grid-column: 1 / -1; color: var(--muted); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.print-stock::before { content: " \00B7  "; }
.print-stock.is-low, .dialog-stock.is-low { color: var(--postal); font-weight: 600; }
.dialog-stock { color: var(--muted); }
.print-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.buy-note { color: var(--muted); font-size: var(--step--1); }

.more-link { margin-top: clamp(24px, 4vw, 36px); }

/* Art prints / Postcards switch */
.view-toggle {
  display: inline-flex;
  max-width: 100%;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.view-toggle button {
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: 9px 18px;
  background: transparent; color: var(--ink);
  border: 0; cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.view-toggle button + button { border-left: 1.5px solid var(--ink); }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.view-toggle .count { opacity: 0.7; margin-left: 6px; font-weight: 500; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  font: inherit; font-size: 0.9375rem; font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent; color: var(--ink);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip .count { color: inherit; opacity: 0.7; margin-left: 4px; }

/* Bundle deals on the shop page */
.deals {
  list-style: none; margin: 0 0 28px; padding: 12px 16px;
  display: flex; flex-wrap: wrap; gap: 6px 24px;
  background: var(--mat); border-radius: var(--radius);
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.deals li::before { content: "Deal: "; color: var(--muted); font-weight: 500; }

/* Dialog */
.print-dialog {
  border: 0; padding: 0;
  width: min(1040px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  background: var(--bg); color: var(--ink);
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.print-dialog::backdrop { background: rgba(10, 16, 20, 0.62); }
.dialog-body { display: grid; gap: 24px; padding: 20px; }
@media (min-width: 800px) { .dialog-body { grid-template-columns: 3fr 2fr; padding: 28px; gap: 32px; align-items: center; } }
.dialog-art { background: var(--mat); padding: 7%; display: flex; align-items: center; justify-content: center; min-width: 0; }
.dialog-art img { box-shadow: var(--shadow); max-height: 70vh; width: auto; height: auto; }
.dialog-info { display: grid; gap: 12px; align-content: start; min-width: 0; }
.dialog-info h2 { font-size: var(--step-3); }
.dialog-deal { font-weight: 600; color: var(--accent); }
.dialog-price { font-size: var(--step-2); font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.dialog-close {
  position: absolute; top: 10px; right: 10px;
  font: inherit; font-size: 0.9375rem; font-weight: 600;
  background: var(--bg); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 6px 12px; cursor: pointer;
}
.print-dialog[open] { position: fixed; }

/* Notes and fine print */
.details { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--line); padding-top: 32px; margin-top: clamp(40px, 6vw, 64px); }
.details h3 { margin-bottom: 6px; }
.details p { color: var(--muted); }

/* Coming-soon pair on home */
.pair { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .pair { grid-template-columns: 1fr 1fr; } }
.panel { display: grid; gap: 16px; align-content: start; background: var(--surface); border: 1px solid var(--line); padding: clamp(18px, 3vw, 28px); min-width: 0; }
.panel h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); }
.panel p { color: var(--muted); }
.panel-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--wall); max-width: 100%; }
.panel-media img { width: 100%; height: 100%; object-fit: cover; }
.panel-media--envelope { background: var(--mat); padding: 5%; }
.panel-media--envelope img { object-fit: contain; }

.when { font-family: var(--font-typed); color: var(--postal); font-size: 0.9375rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .when { color: #d98a79; } }
:root[data-theme="dark"] .when { color: #d98a79; }

/* About */
.about { display: grid; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (min-width: 820px) { .about { grid-template-columns: 1fr 1.2fr; align-items: center; } }
.about-text { display: grid; gap: 14px; max-width: var(--measure); }
.about-art { background: var(--mat); padding: 8%; display: flex; justify-content: center; max-width: 100%; }
.about-art img { box-shadow: var(--shadow); max-height: 420px; width: auto; }
.about-photo { max-width: 420px; }
.about-photo img { width: 100%; height: auto; border-radius: 3px; }

/* Painted envelope */
.envelope-art { margin: 0; display: grid; gap: 10px; max-width: 100%; }
.envelope-art img { width: 100%; height: auto; box-shadow: var(--shadow); border-radius: 2px; }
.envelope-art figcaption { color: var(--muted); font-size: var(--step--1); }

/* Steps and schedule */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: step; max-width: var(--measure); }
.steps li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 14px; counter-increment: step; }
.steps li::before { content: counter(step); font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--accent); }
.steps strong { display: block; }

.schedule { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .schedule { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; } }
.schedule li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); min-width: 0; }
@media (min-width: 760px) { .schedule li { padding: 18px 18px 0 0; border-bottom: 0; border-top: 2px solid var(--ink); } }
.schedule .month { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.1; }
.schedule .issue { font-weight: 600; }
.schedule p { color: var(--muted); }

.inside { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.inside li { list-style: none; border-top: 2px solid var(--ink); padding-top: 12px; }
.inside { margin: 0; padding: 0; }

.split { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.split > * { min-width: 0; }

.photo-frame img { width: 100%; height: auto; border-radius: 2px; }

.typed {
  font-family: var(--font-typed);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px 20px;
  max-width: 34rem;
  line-height: 1.55;
}

/* Forms */
.form { display: grid; gap: 16px; max-width: 34rem; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field .hint { color: var(--muted); font-weight: 400; }
input, select, textarea {
  font: inherit; font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  width: 100%;
  min-width: 0;
}
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-status { min-height: 1.6em; font-weight: 500; }
.form-status.is-ok { color: var(--accent); }
.form-status.is-info { color: var(--muted); }
.hidden-field { position: absolute; left: -9999px; }

.inline-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 30rem; }
.inline-form input { flex: 1 1 220px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(32px, 6vw, 64px); }
.site-footer .wrap { padding-block: clamp(32px, 5vw, 56px); display: grid; gap: 28px; }
@media (min-width: 820px) { .site-footer .wrap { grid-template-columns: 1.3fr 1fr; align-items: end; } }
.footer-sign { display: grid; gap: 12px; }
.footer-sign h2 { font-size: var(--step-2); }
.footer-meta { color: var(--muted); font-size: var(--step--1); display: grid; gap: 8px; }
@media (min-width: 820px) { .footer-meta { justify-items: end; text-align: right; } }
.footer-meta ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-meta a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Cart button in the header */
.cart-button {
  font: inherit; font-weight: 500;
  color: inherit;
  background: transparent;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 2px 12px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  line-height: 1.5;
}
.cart-count {
  min-width: 1.4em;
  padding: 0 5px;
  border-radius: 999px;
  background: currentColor;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.cart-count { color: var(--bg); background: var(--ink); }
.site-header--wall .cart-count { color: var(--wall); background: var(--wall-ink); }

.link-btn {
  font: inherit; font-size: inherit;
  color: var(--accent);
  background: none; border: 0; padding: 0;
  text-decoration: underline; text-underline-offset: 0.18em;
  cursor: pointer;
}

.tax-note { max-width: 46ch; }

/* Cart drawer */
html.cart-open { overflow: hidden; }
.cart-layer { position: fixed; inset: 0; z-index: 40; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(10, 16, 20, 0.55); }
.cart-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  background: var(--bg); color: var(--ink);
  display: flex; flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  outline: none;
}
.cart-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.cart-head h2 { font-size: var(--step-2); }
.cart-close {
  font: inherit; font-size: 0.9375rem; font-weight: 600;
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 6px 12px; cursor: pointer;
}
.cart-body { flex: 1 1 auto; overflow-y: auto; padding: 8px 20px; min-height: 0; overscroll-behavior: contain; }
.cart-head { flex-shrink: 0; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px;
  align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cart-thumb { background: var(--mat); width: 64px; height: 64px; display: grid; place-items: center; padding: 6px; }
.cart-thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: var(--shadow); }
.cart-info { display: grid; gap: 2px; min-width: 0; }
.cart-title { font-weight: 600; line-height: 1.3; }
.cart-meta { color: var(--muted); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.cart-left { color: var(--postal); font-size: var(--step--1); font-weight: 600; }
.cart-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.qty-btn {
  width: 30px; height: 30px;
  font: inherit; font-size: 1.05rem; font-weight: 600; line-height: 1;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.qty-num { min-width: 1.6em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.cart-qty .link-btn { margin-left: 6px; font-size: var(--step--1); color: var(--muted); }
.cart-empty { display: grid; gap: 10px; padding: 24px 0; color: var(--muted); }
/* Totals and PayPal stay pinned at the bottom. PayPal's card form opens tall inside this
   area, so it can grow to most of the panel and then scrolls on its own. */
.cart-foot {
  border-top: 1px solid var(--line); padding: 16px 20px 20px; display: grid; gap: 12px; align-content: start;
  flex-shrink: 0; max-height: 82%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.cart-sum { margin: 0; display: grid; gap: 4px; }
.cart-sum div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.cart-sum dt { color: var(--muted); }
.cart-sum dd { margin: 0; }
.cart-sum .cart-saving dd, .cart-sum .cart-saving dt { color: var(--accent); font-weight: 600; }
.cart-hints { margin: 14px 0 6px; padding: 10px 12px; background: var(--mat); border-radius: var(--radius); font-size: 0.9375rem; display: grid; gap: 6px; }
.cart-sum .cart-total { padding-top: 6px; margin-top: 4px; border-top: 1px solid var(--line); font-weight: 600; font-size: 1.125rem; }
.cart-sum .cart-total dt { color: var(--ink); }
.cart-tax { display: block; font-size: var(--step--1); font-weight: 500; color: var(--muted); }
.cart-notes { display: grid; gap: 12px; margin: 16px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--muted); }
.cart-notes h3 { font-family: inherit; font-size: var(--step--1); font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.cart-paypal { min-height: 48px; }
.cart-loading { color: var(--muted); font-size: 0.9375rem; padding: 10px 12px; background: var(--mat); border-radius: var(--radius); }
.cart-status { min-height: 1.4em; font-size: 0.9375rem; }
.cart-status.is-error { color: var(--postal); font-weight: 500; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cart-status.is-error, :root:not([data-theme="light"]) .cart-left, :root:not([data-theme="light"]) .is-low { color: #e09a8a; } }
:root[data-theme="dark"] .cart-status.is-error, :root[data-theme="dark"] .cart-left, :root[data-theme="dark"] .is-low { color: #e09a8a; }
.cart-done { display: grid; gap: 14px; padding: 20px 0; justify-items: start; }
.cart-done-lede { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.15; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }

/* Admin page */
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { font-size: var(--step--1); color: var(--muted); font-weight: 600; }
.admin-table input { width: 7.5rem; }
.admin-thumb { width: 44px; height: 44px; background: var(--mat); display: grid; place-items: center; padding: 4px; }
.admin-thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.admin-state { font-size: var(--step--1); color: var(--muted); }
.admin-state.is-out { color: var(--postal); font-weight: 600; }

/* Admin: prices and deals */
.admin-password { max-width: 22rem; margin-bottom: clamp(32px, 5vw, 48px); }
.admin-block { margin-bottom: clamp(48px, 7vw, 80px); gap: 18px; }
.admin-head { margin-bottom: 4px; }
.admin-head h2 { font-size: var(--step-3); }
.admin-prices th[scope="row"] { font-weight: 600; white-space: nowrap; }
.admin-prices td { white-space: nowrap; }
.admin-prices td.admin-state { white-space: normal; min-width: 14rem; }
.th-note { display: block; font-weight: 500; }
.money-input { display: inline-flex; align-items: center; gap: 3px; }
.money-input > span { color: var(--muted); }
.admin-table .money-input input { width: 5.5rem; }
.admin-table .qty-input { width: 4.25rem; }
.deal-pair { display: inline-flex; align-items: center; gap: 8px; }
.deal-word { color: var(--muted); font-size: var(--step--1); }
.admin-shipping { margin-top: clamp(24px, 4vw, 40px); display: grid; gap: 14px; }
.admin-shipping-grid { display: grid; gap: 16px 24px; align-items: end; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); max-width: 48rem; }
.admin-shipping .money-input input { width: 7rem; }
.admin-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }

/* Hide amounts until the prices saved on the admin page have loaded (cart.js), so an old
   price never flashes. Falls back to showing the catalog defaults after 2.5 seconds. */
.pricing-pending [data-price-for],
.pricing-pending [data-deal-for],
.pricing-pending [data-shipping-note],
.pricing-pending #shop-deals,
.pricing-pending .cart-price,
.pricing-pending .cart-sum dd,
.pricing-pending .cart-hints,
.pricing-pending .cart-notes { visibility: hidden; }
