/* Trader Emporium — public storefront
   Clean premium: navy + gold from the TE mark. */

:root {
  --bg: #070b12;
  --bg-elev: #0d1420;
  --bg-card: #121a28;
  --bg-card-hover: #182233;
  --line: rgba(212, 184, 122, 0.14);
  --line-strong: rgba(212, 184, 122, 0.28);
  --ink: #f3f0e8;
  --ink-dim: #a8a396;
  --ink-mute: #6f6a60;
  --gold: #d4b87a;
  --gold-bright: #e8d5a3;
  --gold-deep: #9a7b3c;
  --navy: #0a1628;
  --accent: #c9a227;
  --good: #3d9a6a;
  --danger: #c45c5c;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Segoe UI", Georgia, "Times New Roman", serif;
  /* Fluid layout: grows with the viewport; soft cap only on ultra-wide */
  --page-pad: clamp(0.85rem, 2.2vw, 2.75rem);
  --max: min(100%, 1920px);
  --sidebar-w: clamp(14.5rem, 16vw, 19rem);
  --card-min: clamp(9.5rem, 12vw, 14.5rem);
  --hero-title: clamp(1.75rem, 3.6vw, 3.25rem);
  --section-title: clamp(1.25rem, 2.2vw, 1.75rem);
}

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

html {
  scroll-behavior: smooth;
  /* Slight type scale on large screens; readable on phones */
  font-size: clamp(15px, 0.35vw + 14px, 17px);
}

body {
  margin: 0;
  min-height: 100vh;
  font: 1rem/1.55 var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(201, 162, 39, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(80, 120, 180, 0.07), transparent 50%),
    var(--bg);
}

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

a {
  color: var(--gold-bright);
  text-decoration: none;
}
a:hover {
  color: #fff;
}

/* ---------- shell ---------- */
.wrap {
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 18, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line-strong);
}
.brand span {
  font-size: 1.05rem;
}
.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  font-size: 0.92rem;
}
.nav-links a {
  color: var(--ink-dim);
  padding: 0.35rem 0.2rem;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-bright);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font: inherit;
  font-weight: 650;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.15s ease;
}
.btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(212, 184, 122, 0.06);
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  color: #14100a;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.22);
}
.btn-primary:hover {
  color: #0a0804;
  filter: brightness(1.05);
  background: linear-gradient(180deg, #f0e0b0, var(--gold));
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- hero ---------- */
.hero {
  padding: 3.2rem 0 2.4rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 840px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-weight: 650;
  font-size: var(--hero-title);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-bright);
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--ink-dim);
  font-size: 1.05rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.8rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.stat {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.9rem;
}
.stat b {
  display: block;
  font-size: 1.25rem;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.stat span {
  font-size: 0.75rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-panel {
  position: relative;
  background:
    linear-gradient(160deg, rgba(212, 184, 122, 0.1), transparent 40%),
    var(--bg-card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.hero-panel h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}
.hero-panel p {
  margin: 0 0 1rem;
  color: var(--ink-dim);
  font-size: 0.92rem;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- sections ---------- */
section {
  padding: 1.2rem 0 2.5rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: var(--section-title);
  font-weight: 650;
}
.section-head p {
  margin: 0.25rem 0 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* ---------- shop layout + side filters ---------- */
.shop-head {
  align-items: center;
}
.filter-open {
  display: none;
  gap: 0.4rem;
}
.filter-badge {
  display: inline-flex;
  min-width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--gold);
  color: #14100a;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0 0.35rem;
}

.shop-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: start;
}

.shop-sidebar {
  position: sticky;
  top: 4.5rem;
  max-height: calc(100vh - 5.5rem);
  overflow: auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1rem 1.15rem;
  box-shadow: var(--shadow);
}
.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.sidebar-top h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sidebar-close {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink-dim);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.side-link {
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-dim);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
}
.side-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}
.side-link.on {
  color: var(--gold-bright);
  border-color: var(--line-strong);
  background: rgba(212, 184, 122, 0.1);
}

.side-block {
  margin-bottom: 1rem;
}
.side-block h4 {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.side-search.search input {
  border-radius: 10px;
  padding: 0.65rem 0.75rem 0.65rem 2.3rem;
  font-size: 0.9rem;
}
.side-search.search::before {
  left: 0.75rem;
  font-size: 0.9rem;
}

.side-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.chip {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink-dim);
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}
.chip:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
.chip.on {
  background: rgba(212, 184, 122, 0.14);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.side-select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
}

.side-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.filter-apply {
  display: none;
}
.side-foot {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-mute);
  line-height: 1.4;
}

.shop-main {
  min-width: 0;
}
.shop-bar {
  margin-bottom: 0.9rem;
}
.result-line {
  margin: 0 0 0.45rem;
  color: var(--ink-dim);
  font-size: 0.92rem;
  font-weight: 600;
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.af-chip {
  border: 1px solid var(--line-strong);
  background: rgba(212, 184, 122, 0.08);
  color: var(--gold-bright);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 650;
}
.af-clear {
  border: 0;
  background: none;
  color: var(--ink-mute);
  font: inherit;
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
}

.sidebar-backdrop {
  display: none;
}

.search {
  position: relative;
}
.search input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.85rem 1.1rem 0.85rem 2.7rem;
  font: inherit;
  outline: none;
}
.search input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(212, 184, 122, 0.12);
}
.search::before {
  content: "⌕";
  position: absolute;
  left: 1.05rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-mute);
  font-size: 1rem;
}

@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .filter-open {
    display: inline-flex;
  }
  .filter-apply {
    display: inline-flex;
  }
  .shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(340px, 92vw);
    max-height: none;
    z-index: 70;
    border-radius: 0;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: none;
  }
  .shop-sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow);
  }
  .sidebar-close {
    display: inline-flex;
  }
  .sidebar-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(0, 0, 0, 0.55);
  }
  body.sidebar-open {
    overflow: hidden;
  }
}

/* ---------- grid ---------- */
.grid {
  display: grid;
  /* Columns grow/shrink with screen width */
  grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr));
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.18s ease;
  min-height: 100%;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow);
}

.card-media {
  aspect-ratio: 5 / 7;
  background:
    linear-gradient(180deg, #1a2436, #0f1520);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.55rem;
}
.card-media .ph {
  color: var(--ink-mute);
  font-size: 0.78rem;
  text-align: center;
  padding: 1rem;
}

.badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.45rem;
  border-radius: 6px;
  background: rgba(7, 11, 18, 0.78);
  border: 1px solid var(--line);
  color: var(--gold-bright);
}
.badge.pkm {
  color: #7ec8ff;
}
.badge.ja {
  right: 0.55rem;
  left: auto;
  color: #f0a0a0;
}

.card-body {
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.card-body h3 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.3;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.meta {
  color: var(--ink-mute);
  font-size: 0.75rem;
}
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.45rem;
}
.price {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.price.na {
  color: var(--ink-mute);
  font-size: 0.85rem;
  font-weight: 600;
}
.stock {
  font-size: 0.72rem;
  color: var(--good);
  font-weight: 700;
}
.card .btn {
  margin: 0 0.9rem 0.95rem;
  width: calc(100% - 1.8rem);
  padding: 0.5rem 0.7rem;
  font-size: 0.82rem;
}

.variant-label {
  display: block;
  margin: 0.15rem 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.variant-select {
  display: block;
  width: 100%;
  margin-top: 0.28rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.variant-select:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(212, 184, 122, 0.12);
}
.variant-one {
  margin: 0.2rem 0 0.15rem !important;
  font-size: 0.78rem !important;
  color: var(--ink-dim) !important;
}

/* ---------- states ---------- */
.status {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--ink-dim);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
}
.status.error {
  color: #e8b4b4;
  border-color: rgba(196, 92, 92, 0.35);
}
.status.demo {
  border-color: rgba(212, 184, 122, 0.35);
  color: var(--gold);
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.9rem;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  color: var(--ink-dim);
  font-size: 0.9rem;
}

/* ---------- trust / about strip ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin: 0.5rem 0 1rem;
}
@media (max-width: 720px) {
  .trust {
    grid-template-columns: 1fr;
  }
}
.trust article {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}
.trust h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  color: var(--gold-bright);
}
.trust p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.9rem;
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.8rem;
  color: var(--ink-mute);
  font-size: 0.88rem;
}
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: start;
}
.foot-brand {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  color: var(--ink-dim);
}
.foot-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
}
.legal {
  margin-top: 1.4rem;
  font-size: 0.78rem;
  color: var(--ink-mute);
  max-width: 46rem;
}

/* ---------- lightbox ---------- */
.lb {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 1rem;
  cursor: zoom-out;
}
.lb.open {
  display: flex;
}
.lb img {
  max-width: min(920px, 100%);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* ---------- cart badge / toast ---------- */
.cart-btn .cart-count {
  display: inline-flex;
  min-width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  margin-left: 0.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #14100a;
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 800;
}
.cart-count[hidden] {
  display: none !important;
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 600;
  max-width: min(92vw, 28rem);
  text-align: center;
}

/* ---------- checkout ---------- */
.checkout {
  padding: 2rem 0 3.5rem;
}
.checkout h1 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.85rem;
}
.checkout .lead {
  color: var(--gold);
  margin: 0 0 1.2rem;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.1rem;
  align-items: start;
}
@media (max-width: 840px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}
.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem 1.35rem;
}
.panel h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--gold-bright);
}
.panel label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink-dim);
}
.panel label .opt {
  font-weight: 500;
  color: var(--ink-mute);
}
.panel input,
.panel select {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}
.panel input:focus,
.panel select:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(212, 184, 122, 0.12);
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
@media (max-width: 520px) {
  .row2 {
    grid-template-columns: 1fr;
  }
}
.btn-block {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.75rem 1rem;
}
.fine {
  font-size: 0.8rem;
  color: var(--ink-mute);
  margin: 0.75rem 0 0;
  line-height: 1.45;
}
.err {
  color: #f0a8a8;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}
.ok-banner {
  background: rgba(61, 154, 106, 0.12);
  border: 1px solid rgba(61, 154, 106, 0.35);
  color: #9dd4b4;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-weight: 650;
}
.empty-cart {
  color: var(--ink-dim);
}
.cline {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.cthumb {
  width: 52px;
  height: 72px;
  border-radius: 6px;
  background: #0f1520;
  overflow: hidden;
}
.cthumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cinfo b {
  display: block;
  font-size: 0.92rem;
}
.cinfo .meta {
  margin: 0.15rem 0 0.35rem;
}
.cqty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}
.cqty button {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}
.cqty .linkish {
  width: auto;
  border: 0;
  background: none;
  color: var(--ink-mute);
  text-decoration: underline;
  font-weight: 500;
  margin-left: 0.3rem;
}
.cprice {
  font-weight: 750;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.totals {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
}
.totals div {
  display: flex;
  justify-content: space-between;
  color: var(--ink-dim);
}
.totals .grand {
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.05rem;
}
.totals .grand b {
  color: var(--gold-bright);
}
.order-lines {
  padding-left: 1.1rem;
  color: var(--ink-dim);
}
.order-lines li {
  margin: 0.25rem 0;
}
