
:root {
  --bg: oklch(0 0 0);
  --surface: oklch(0.16 0 0);
  --surface-2: oklch(0.22 0 0);
  --hero-bg: oklch(0.18 0 0);
  --text: oklch(0.97 0 0);
  --text-muted: oklch(0.75 0 0);
  --text-faint: oklch(0.62 0 0);
  --border: oklch(0.3 0 0);
  --border-soft: oklch(0.26 0 0);
  --border-input: oklch(0.36 0 0);
  --accent: #ffdb00;
  --accent-bright: #ffe23a;
  --accent-ink: #ffdb00;
  --gold: #df9e19;
  --gold-grad: linear-gradient(35deg, rgb(223, 158, 25) 35%, rgb(0, 0, 0) 74%);
  --navy: oklch(0.11 0 0);
  --navy-tab: oklch(0.24 0 0);
  --danger: oklch(0.68 0.2 25);
  --ok: oklch(0.72 0.16 150);
  --warn: oklch(0.82 0.16 85);
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-script: "Yellowtail", "Segoe Script", cursive;
}

* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; background: var(--bg); overflow-x: hidden; max-width: 100vw; }
body { font-family: var(--font-sans); color: var(--text); min-height: 100vh; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { opacity: 0.75; }
button { font-family: inherit; }
::placeholder { color: oklch(0.6 0 0); }

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.988); filter: blur(5px); }
  55%  { opacity: 1; }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
.page-fade {
  animation: pageFadeIn 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: center top;
  will-change: opacity, transform, filter;
}
@media (prefers-reduced-motion: reduce) {
  .page-fade { animation: none; }
}

.wrap { max-width: 1200px; margin: 0 auto; }
.section-pad { padding: 64px 48px; }
.section-pad-x { padding-left: 48px; padding-right: 48px; }
.serif { font-family: var(--font-serif); font-weight: 600; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.crumbs { padding: 20px 48px 0; font-size: 13px; color: var(--text-faint); }
.crumbs a { text-decoration: none; color: var(--text-faint); }

.btn {
  cursor: pointer; border: none; border-radius: 8px; font-weight: 600;
  font-size: 15px; padding: 14px 28px; text-decoration: none; display: inline-block;
  background: var(--accent); color: oklch(0.98 0 0); text-align: center;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 6px; }
.btn-block { display: block; width: 100%; }
.btn-dark { background: var(--text); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--text); }
.btn-outline { background: none; border: 1px solid oklch(0.8 0 0); color: var(--text-muted); font-weight: 600; padding: 9px 16px; border-radius: 8px; font-size: 13px; cursor: pointer; }
.btn-danger-outline { background: none; border: 1px solid oklch(0.6 0.15 25); color: var(--danger); }
.link { color: var(--accent); text-decoration: none; cursor: pointer; background: none; border: none; padding: 0; font: inherit; font-weight: 600; }
.link:hover { text-decoration: underline; }
.icon-btn { background: none; border: none; cursor: pointer; color: var(--text-faint); font-size: 18px; line-height: 1; padding: 4px; }

input, textarea, select {
  font-family: inherit; font-size: 14px; padding: 12px 16px; border-radius: 8px;
  border: 1px solid var(--border-input); background: var(--surface-2); color: var(--text);
  width: 100%;
}
input[type="radio"], input[type="checkbox"] {
  width: auto; padding: 0; border-radius: 0; accent-color: var(--accent); flex: none;
}
input[type="radio"] { border: none; background: none; }
textarea { resize: vertical; }
select { background: var(--surface); }
input:focus, textarea:focus, select:focus, .btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; color: var(--text-faint); }
.form-error { color: var(--danger); font-size: 12.5px; margin: 0; }

.topbar {
  display: flex; flex-wrap: wrap; row-gap: 4px; justify-content: space-between; align-items: center;
  background: var(--navy); color: oklch(0.96 0 0); font-size: 13px; padding: 8px 48px;
}
.topbar a { color: oklch(0.96 0 0); text-decoration: underline; cursor: pointer; }
.topbar .secondary { display: flex; gap: 20px; white-space: nowrap; }

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px; background: var(--surface); border-bottom: 1px solid var(--border);
  position: relative;
}
.header-left { display: flex; align-items: center; gap: 40px; flex: 1 1 auto; min-width: 0; }
.logo { font-family: var(--font-serif); font-weight: 600; font-size: 26px; color: var(--text); white-space: nowrap; text-decoration: none; cursor: pointer; }
.logo .dot { color: var(--accent-ink); }
.main-nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; align-items: center; flex-wrap: nowrap; }
.main-nav a { text-decoration: none; cursor: pointer; }
.nav-drop { position: relative; }
.nav-drop .sealed-link { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 700; white-space: nowrap; }
.nav-drop .caret { font-size: 10px; }
.nav-drop-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  margin-top: 10px; min-width: 190px; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 12px 32px oklch(0 0 0 / 0.12); overflow: hidden; z-index: 20;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: flex; }
.nav-drop-menu a { padding: 11px 16px; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.nav-drop-menu a + a { border-top: 1px solid var(--border-soft); }
.nav-drop-menu a:hover { background: var(--surface-2); }
.header-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; position: relative; }
.header-right .auth-link { font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.balance-tag { color: var(--accent-ink); }

.search-box { position: relative; }
.search-box input { width: 320px; max-width: 320px; }
.search-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; width: 320px; max-width: 90vw;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 12px 28px oklch(0 0 0 / 0.12); z-index: 40; overflow: hidden;
}
.search-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border-soft); cursor: pointer; text-align: left; background: none; border-left: none; border-right: none; border-top: none; width: 100%; }
.search-row:last-child { border-bottom: none; }
.search-row:hover { background: var(--surface-2); }
.search-thumb { width: 34px; height: 34px; flex-shrink: 0; border-radius: 6px; }
.search-empty { padding: 16px; font-size: 13px; color: var(--text-faint); text-align: center; }

.header-dropdown {
  display: flex; flex-direction: column; position: absolute; top: 100%; right: 0; margin-top: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 24px oklch(0.2 0 0 / 0.12); min-width: 190px; z-index: 20; overflow: hidden;
}
.header-dropdown a { padding: 12px 16px; font-size: 13.5px; text-decoration: none; cursor: pointer; }
.header-dropdown a + a { border-top: 1px solid var(--border-soft); }
.header-dropdown .signout { color: var(--danger); }

.mobile-bar { display: none; align-items: center; gap: 16px; }
.hamburger { background: none; border: none; font-size: 22px; padding: 4px 8px; cursor: pointer; line-height: 1; color: var(--text); }
.mobile-menu { display: none; flex-direction: column; gap: 12px; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 20px 20px; z-index: 10; }
.mobile-menu.open { display: flex; }
.mobile-menu a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; cursor: pointer; }

.ph { width: 100%; height: 100%; min-height: inherit; overflow: hidden; background: repeating-linear-gradient(45deg, oklch(0.91 0 0), oklch(0.91 0 0) 8px, oklch(0.95 0 0) 8px, oklch(0.95 0 0) 16px); display: flex; align-items: center; justify-content: center; }
.ph::after { content: "product photo"; font-family: ui-monospace, monospace; font-size: 10px; color: var(--text-faint); white-space: nowrap; }
.ph-plain { background: repeating-linear-gradient(45deg, oklch(0.91 0 0), oklch(0.91 0 0) 6px, oklch(0.95 0 0) 6px, oklch(0.95 0 0) 12px); }
.ph-plain::after { content: none; }
.search-thumb .ph::after { content: none; }
.img-cover { object-fit: cover; width: 100%; height: 100%; }
.prod-card .media, .cat-card .thumb { overflow: hidden; }

.hero { display: grid; grid-template-columns: 1.35fr 1fr; align-items: stretch; background: var(--hero-bg); }
.hero-copy { padding: 56px 48px; display: flex; flex-direction: column; gap: 18px; justify-content: center; min-width: 0; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-faint); text-transform: uppercase; }
.hero-title { font-family: var(--font-serif); font-size: 40px; line-height: 1.15; margin: 0; font-weight: 600; }
.hero-sub { font-size: 16px; line-height: 1.7; color: var(--text-muted); max-width: 480px; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-art { background: var(--surface); display: flex; align-items: center; justify-content: center; min-height: 240px; max-height: 460px; overflow: hidden; }
.hero-art span { font-family: ui-monospace, monospace; font-size: 13px; color: var(--text-muted); background: oklch(0.98 0.01 25 / 0.8); padding: 8px 16px; border-radius: 6px; }
.hero-art img { width: 100%; height: 100%; max-height: 460px; object-fit: contain; display: block; }

.value-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-bottom: 1px solid var(--border); }
.value-strip > div { background: var(--surface); padding: 28px 32px; display: flex; flex-direction: column; gap: 6px; }
.value-strip .vt { font-weight: 700; font-size: 15px; }
.value-strip .vd { font-size: 13.5px; color: var(--text-muted); }

.row-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.row-head h2 { font-family: var(--font-serif); font-size: 30px; font-weight: 600; margin: 0; }

.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.cat-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.cat-card .thumb { aspect-ratio: 1; border-radius: 10px; background: repeating-linear-gradient(45deg, oklch(0.9 0 0), oklch(0.9 0 0) 10px, oklch(0.94 0 0) 10px, oklch(0.94 0 0) 20px); display: flex; align-items: center; justify-content: center; }
.cat-card .thumb span { font-family: ui-monospace, monospace; font-size: 11px; color: var(--text-faint); text-align: center; padding: 0 10px; }
.cat-card .name { font-size: 14px; font-weight: 600; text-align: center; }

.prod-grid { display: grid; gap: 20px; }
.prod-grid.g5 { grid-template-columns: repeat(5, 1fr); }
.prod-grid.g4 { grid-template-columns: repeat(4, 1fr); }
.prod-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.prod-card .media { aspect-ratio: 1; cursor: pointer; }
.prod-card .body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-card .sku { font-size: 12px; color: var(--text-faint); }
.prod-card .pname { font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; color: inherit; cursor: pointer; }
.prod-card .price { font-size: 15px; font-weight: 700; color: var(--text-muted); margin-top: auto; }
.prod-card .moq { font-size: 12px; color: var(--text-faint); }
.prod-card .btn { margin-top: 6px; }

.cta-banner { background: var(--navy); color: oklch(0.97 0 0); padding: 20px 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-banner .txt { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; max-width: 640px; }
.cta-banner h3 { font-family: var(--font-serif); font-size: 17px; margin: 0; font-weight: 600; white-space: nowrap; }
.cta-banner p { margin: 0; font-size: 13.5px; color: oklch(0.85 0 0); }
.cta-banner .btn { background: var(--accent-bright); padding: 10px 20px; font-size: 13.5px; font-weight: 700; white-space: nowrap; }

.catalog { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 20px 48px 64px; }
.cat-side { display: flex; flex-direction: column; gap: 6px; }
.cat-side .head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px; margin-bottom: 8px; cursor: pointer; }
.cat-side .chev { display: none; color: var(--accent-ink); font-weight: 700; }
.cat-side .list { display: flex; flex-direction: column; gap: 6px; }
.cat-side .list a { display: block; padding: 8px 10px; border-radius: 6px; text-decoration: none; font-size: 14px; cursor: pointer; font-weight: 500; }
.cat-side .list a.active { background: oklch(0.92 0 0); font-weight: 700; }
.catalog-main .row-head h2 { font-size: 26px; }
.empty-note { padding: 48px 0; text-align: center; color: var(--text-faint); font-size: 14.5px; }

.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 20px 48px 64px; }
.product-gallery { display: flex; flex-direction: column; gap: 10px; max-width: 420px; width: 100%; margin: 0 auto; }
.product-main { aspect-ratio: 1; max-height: 420px; border-radius: 12px; overflow: hidden; }
.product-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.product-thumbs button { width: 56px; height: 56px; border-radius: 8px; border: 2px solid transparent; padding: 0; overflow: hidden; cursor: pointer; background: none; }
.product-thumbs button.active { border-color: var(--accent); }
.product-info { display: flex; flex-direction: column; gap: 14px; }
.product-info h1 { font-family: var(--font-serif); font-size: 28px; font-weight: 600; margin: 0; }
.product-info .price { font-size: 24px; font-weight: 700; color: var(--text-muted); }
.product-info .desc { font-size: 15px; line-height: 1.7; color: var(--text-muted); margin: 8px 0; }
.qty-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.qty-row input { width: 90px; }

.prose { max-width: 760px; display: flex; flex-direction: column; gap: 20px; }
.prose h1 { font-family: var(--font-serif); font-size: 36px; font-weight: 600; margin: 0; }
.prose p { font-size: 16px; line-height: 1.8; color: var(--text-muted); margin: 0; }
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 12px; }
.mini-cards > div { border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.mini-cards .t { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.mini-cards .d { font-size: 13.5px; color: var(--text-muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .span2 { grid-column: span 2; }
.narrow { max-width: 640px; margin: 0 auto; }
.card-box { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--border); border-radius: 12px; padding: 32px; }
.hint { font-size: 12px; color: oklch(0.55 0 0); text-align: center; }

.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 32px; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-row .thumb { width: 48px; height: 48px; flex-shrink: 0; border-radius: 8px; }
.cart-row .info { min-width: 0; }
.cart-row .nm { font-weight: 600; font-size: 14px; }
.cart-row .meta { font-size: 12px; color: var(--text-faint); display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.cart-row .meta input { width: 56px; padding: 4px 6px; font-size: 12.5px; }
.cart-row .lt { font-weight: 700; font-size: 14px; flex-shrink: 0; }
.cart-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 24px; padding-top: 20px; align-items: center; }
.cart-foot .sub { font-size: 17px; font-weight: 700; }

.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.block-title { font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.opt-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border-input); border-radius: 8px; font-size: 13.5px; cursor: pointer; }
.opt-row.selected { border-color: var(--accent); }
.opt-row .price { margin-left: auto; font-weight: 600; }
.pay-icons { display: flex; gap: 6px; margin-left: auto; }
.pay-icons span { width: 22px; height: 22px; border-radius: 50%; color: oklch(0.98 0 0); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.summary { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px; align-self: start; display: flex; flex-direction: column; gap: 14px; }
.summary .line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.summary .totals { border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--text-faint); }
.summary .grand { border-top: 1px solid var(--border); padding-top: 14px; display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; }
.summary .items { display: flex; flex-direction: column; gap: 10px; max-height: 260px; overflow-y: auto; }

.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.panel .h { font-size: 12.5px; color: var(--text-faint); font-weight: 600; margin-bottom: 12px; }
.balance-big { font-size: 28px; font-weight: 700; margin: 6px 0 14px; color: var(--accent); }
.table-scroll { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow-x: auto; }
.grid-table { min-width: 640px; }
.grid-table .thead, .grid-table .trow { display: grid; gap: 10px; padding: 12px 16px; align-items: center; }
.grid-table .thead { background: oklch(0.94 0 0); font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.grid-table .trow { border-top: 1px solid var(--border-soft); font-size: 13.5px; }
.grid-table .trow.clickable { cursor: pointer; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { font-weight: 600; }

.admin { display: grid; grid-template-columns: 220px 1fr; min-height: 640px; border-top: 1px solid var(--border); }
.admin-side { background: var(--navy); color: oklch(0.9 0 0); padding: 28px 20px; display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.admin-side .brand { font-family: var(--font-serif); font-weight: 600; font-size: 18px; color: oklch(0.98 0 0); margin-bottom: 16px; }
.admin-side a { cursor: pointer; display: block; padding: 9px 12px; border-radius: 6px; text-decoration: none; font-size: 14px; color: oklch(0.95 0 0); font-weight: 500; }
.admin-side a.active { background: var(--navy-tab); font-weight: 700; }
.admin-side .back { color: oklch(0.7 0 0); font-size: 13.5px; margin-top: 24px; }
.admin-main { padding: 32px 40px; background: var(--bg); }
.admin-main h1 { font-family: var(--font-serif); font-weight: 600; margin: 0 0 20px; }
.admin-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.admin-head h1 { margin: 0; font-size: 26px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.stat .k { font-size: 12.5px; color: var(--text-faint); font-weight: 600; }
.stat .v { font-size: 28px; font-weight: 700; margin-top: 6px; }
.stat .v.accent { color: var(--accent); }
.admin-two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 24px; }
.bar-track { background: oklch(0.92 0 0); border-radius: 4px; height: 6px; overflow: hidden; }
.bar-fill { background: var(--accent); height: 100%; }
.editable-row { display: flex; gap: 10px; align-items: center; }
.stack-list { display: flex; flex-direction: column; gap: 10px; max-width: 480px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-input); border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.stepper button { background: var(--surface-2); border: none; width: 36px; height: 40px; font-size: 18px; line-height: 1; cursor: pointer; color: var(--text); }
.stepper button:hover { background: oklch(0.93 0 0); }
.stepper input { width: 54px; border: none; border-left: 1px solid var(--border-input); border-right: 1px solid var(--border-input); border-radius: 0; text-align: center; padding: 8px 4px; }

.modal-overlay { position: fixed; inset: 0; background: oklch(0.15 0 0 / 0.5); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 20px; }
.modal { background: var(--surface); border-radius: 12px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; padding: 28px; }
.modal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.modal-head h2 { font-family: var(--font-serif); font-size: 20px; font-weight: 600; margin: 0; }
.thumb-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb-strip .t { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-input); }
.thumb-strip .t button { position: absolute; top: 2px; right: 2px; background: oklch(0.15 0 0 / 0.6); color: oklch(0.98 0 0); border: none; border-radius: 50%; width: 18px; height: 18px; font-size: 12px; line-height: 1; cursor: pointer; }
.thumb-add { width: 64px; height: 64px; border-radius: 8px; border: 1.5px dashed oklch(0.75 0 0); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-faint); font-size: 22px; }
.thumb-add input { display: none; }

.toast {
  position: fixed; bottom: 24px; left: 16px; right: 16px; margin: 0 auto;
  width: fit-content; max-width: min(440px, calc(100vw - 32px));
  transform: translateY(20px); opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  background: var(--text); color: oklch(0.98 0 0);
  padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600;
  z-index: 50; box-shadow: 0 8px 20px oklch(0 0 0 / 0.25);
  display: flex; align-items: center; gap: 12px; pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.toast span { flex: 1; min-width: 0; line-height: 1.4; }
.toast button { flex-shrink: 0; background: var(--accent); color: oklch(0.98 0 0); border: none; padding: 8px 14px; border-radius: 7px; font-weight: 700; font-size: 12.5px; white-space: nowrap; cursor: pointer; }

.site-footer { background: var(--navy); color: oklch(0.8 0 0); padding: 64px 24px; display: flex; flex-direction: column; gap: 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; max-width: 1200px; margin: 0 auto; width: 100%; }
.footer-grid .brand { font-family: var(--font-serif); font-weight: 600; font-size: 20px; color: oklch(0.97 0 0); }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.footer-col .ct { color: oklch(0.97 0 0); font-weight: 600; margin-bottom: 4px; }
.footer-col a { text-decoration: none; cursor: pointer; }
.footer-legal { border-top: 1px solid oklch(0.35 0 0); padding-top: 16px; font-size: 12.5px; color: oklch(0.6 0 0); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; max-width: 1200px; margin: 0 auto; width: 100%; }
.footer-legal a { text-decoration: none; cursor: pointer; }

@media (max-width: 1180px) and (min-width: 921px) {
  .topbar .secondary .hide-md { display: none; }
  .search-box input { width: 150px; }
  .main-nav { gap: 14px; font-size: 14px; }
  .header-left { gap: 18px; }
  .header-right { gap: 12px; }
  .site-header { padding-left: 22px; padding-right: 22px; }
  .topbar { padding-left: 22px; padding-right: 22px; }
}
@media (max-width: 920px) {
  .topbar { display: none; }
  .site-header { padding: 14px 20px; gap: 12px; }
  .header-left { flex: 0 0 auto; gap: 0; }
  .main-nav, .header-right { display: none; }
  .mobile-bar { display: flex; flex: 1 1 auto; justify-content: flex-end; min-width: 0; gap: 12px; }
  .mobile-bar > * { flex-shrink: 0; }
  .mobile-bar .auth-link:first-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .logo { font-size: 21px; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-height: 320px; }
  .hero-art img { max-height: 320px; }
}
@media (max-width: 760px) {
  .section-pad { padding: 32px 20px; }
  .section-pad-x { padding-left: 20px; padding-right: 20px; }
  .crumbs { padding-left: 20px; padding-right: 20px; }
  .topbar { display: none; }
  .site-header { padding: 14px 16px; gap: 12px; }
  .header-left { flex: 0 0 auto; gap: 0; }
  .main-nav, .header-right { display: none; }
  .mobile-bar { display: flex; flex: 1 1 auto; justify-content: flex-end; min-width: 0; gap: 12px; }
  .mobile-bar > * { flex-shrink: 0; }
  .mobile-bar .auth-link:first-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .logo { font-size: 21px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 32px 20px; }
  .hero-title { font-size: 30px; }
  .value-strip { grid-template-columns: 1fr 1fr; }
  .row-head h2 { font-size: 22px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid.g5, .prod-grid.g4 { grid-template-columns: repeat(2, 1fr); }
  .catalog { grid-template-columns: 1fr; padding: 20px 20px 40px; }
  .cat-side .chev { display: inline; }
  .cat-side.collapsed .list { display: none; }
  .catalog.filtering .catalog-main { display: none; }
  .product { grid-template-columns: 1fr; padding: 20px 20px 40px; }
  .two-col, .checkout, .acct-grid, .admin-two, .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: 1; }
  .mini-cards { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin { grid-template-columns: 1fr; min-height: 0; }
  .admin-main { min-height: 60vh; }
  .admin-side { flex-direction: row; flex-wrap: nowrap; align-self: start; overflow-x: auto; -webkit-overflow-scrolling: touch; align-items: center; padding: 10px 12px; gap: 6px; }
  .admin-side > * { flex-shrink: 0; }
  .admin-side .brand { margin: 0 6px 0 2px; font-size: 16px; }
  .admin-side a { white-space: nowrap; padding: 8px 12px; }
  .admin-side .back { margin: 0 0 0 4px; }
  .admin-main { padding: 20px 16px 40px; }
  .admin-head { flex-direction: column; align-items: flex-start; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  
  .table-scroll { overflow-x: hidden; }
  .grid-table { min-width: 0 !important; }
  .grid-table .thead { display: none !important; }
  .grid-table .trow {
    display: flex !important; flex-direction: column; align-items: flex-start; gap: 7px;
    grid-template-columns: none !important; padding: 14px; text-align: left;
    border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
    margin-bottom: 10px;
  }
  .grid-table .trow > * { white-space: normal !important; overflow: visible !important; text-align: left; width: 100%; }
  .grid-table .trow > *:empty { display: none; }
  .grid-table .trow > *[data-l]::before {
    content: attr(data-l);
    display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--text-faint); margin-bottom: 2px;
  }
  .grid-table .trow .btn-outline { align-self: flex-start; margin-top: 6px; width: auto; }
  .grid-table .trow .link { align-self: flex-start; width: auto; }
}

/* ============================================================
   Poke King Shop — dark + gold theme overrides
   ============================================================ */

/* ---- buttons ----
   Matches pokekingshop: primary = white fill + near-black text;
   secondary/add-to-cart = black fill + yellow text + yellow border. */
.btn {
  background: #000000; color: var(--accent); border: 1.5px solid var(--accent);
  border-radius: 4px; font-weight: 600;
}
.btn:hover { background: var(--accent); color: #121212; opacity: 1; }
.btn-dark { background: #ffffff; color: #121212; border-color: #ffffff; }
.btn-dark:hover { background: #ffffff; color: #121212; opacity: 0.88; }
.btn-hero { background: #ffffff; color: #121212; border-color: #ffffff; border-radius: 4px; padding: 15px 34px; }
.btn-hero:hover { opacity: 0.88; color: #121212; }
.btn-ghost { background: transparent; color: #ffffff; border: 1.5px solid rgba(255,255,255,0.7); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #ffffff; opacity: 1; }
.btn-outline { border-color: var(--border-input); color: var(--text-muted); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.link { color: var(--accent); }
.prod-card .btn { margin-top: 8px; border-radius: 3px; }

/* ---- top region: solid black, clean & distinct from the hero ---- */
.topwrap { background: #000000; }
.topwrap .topbar { background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
.topwrap .site-header { background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.1); }

/* ---- announcement bar: continuous scrolling marquee ---- */
.topbar {
  display: block; padding: 0; overflow: hidden; cursor: pointer;
  color: var(--accent); flex-wrap: nowrap;
}
.marquee { display: flex; width: 100%; overflow: hidden; }
.marquee-track {
  display: flex; flex-shrink: 0; white-space: nowrap;
  animation: pk-marquee 28s linear infinite;
  will-change: transform;
}
.topbar:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex-shrink: 0; }
.marquee-item {
  display: inline-flex; align-items: center;
  padding: 9px 0; font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.marquee-sep { margin: 0 26px; opacity: 0.55; letter-spacing: 0; }
@keyframes pk-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---- centered header: search left · gold-clip logo center · account/cart right ---- */
.site-header { flex-direction: column; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 18px; }
.header-left { flex-direction: column; align-items: center; gap: 16px; flex: 0 0 auto; width: 100%; }
.logo {
  font-family: var(--font-script); font-weight: 400; font-size: 44px; letter-spacing: 0.5px;
  background: linear-gradient(92deg, #7a521a 0%, #e9c877 28%, #fff6d9 50%, #e9c877 72%, #7a521a 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  padding-bottom: 4px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.55));
}
.logo .dot { display: none; }
.main-nav { flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-weight: 600; text-transform: uppercase; font-size: 12.5px; letter-spacing: 0.06em; max-width: 900px; }
.main-nav a { color: #ffffff; }
.main-nav a:hover { color: var(--accent); opacity: 1; }
.nav-drop .sealed-link { color: #ffffff; }
.nav-drop:hover .sealed-link { color: var(--accent); }
.header-right { position: absolute; top: 44px; right: 26px; gap: 14px; align-items: center; }
.header-right .auth-link { color: #ffffff; font-size: 13px; }
.search-box input {
  width: 180px; max-width: 180px; padding: 9px 14px; border-radius: 999px;
  background: rgba(0,0,0,0.28); border-color: rgba(255,255,255,0.35); color: #fff;
}
.search-box input::placeholder { color: rgba(255,255,255,0.6); }
.balance-tag { color: var(--accent); }

/* ---- placeholder surfaces on dark ---- */
.ph, .ph-plain,
.cat-card .thumb {
  background: repeating-linear-gradient(45deg, oklch(0.22 0 0), oklch(0.22 0 0) 9px, oklch(0.27 0 0) 9px, oklch(0.27 0 0) 18px);
}
.ph::after, .cat-card .thumb span { color: var(--text-faint); }
.hero-art span { background: oklch(0.2 0 0 / 0.85); color: var(--text-muted); }

/* reset native button chrome on card-style buttons */
.cat-card { background: transparent; border: none; padding: 0; }
.cat-card .name { color: #ffffff; }
.cat-card .thumb { border-radius: 8px; }

/* ---- hero: the one gold-gradient showpiece (black at top → gold body) ---- */
.hero { grid-template-columns: 1fr; background: var(--gold-grad); }
.hero-copy { align-items: center; text-align: center; padding: 56px 24px 72px; gap: 18px; }
.eyebrow { color: rgba(255,255,255,0.8); letter-spacing: 0.12em; }
.hero-title { font-family: var(--font-sans); font-weight: 400; color: #ffffff; font-size: 40px; line-height: 1.2; max-width: 780px; }
.hero-sub { color: rgba(255,255,255,0.92); max-width: 620px; font-style: italic; font-size: 15px; }
.hero-actions { justify-content: center; margin-top: 6px; }
.hero-art { display: none; }

/* ---- value strip: its own solid dark band, clearly separate ---- */
.value-strip { background: #0d0d0d; border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); }
.value-strip > div { background: transparent; border-right: 1px solid rgba(255,255,255,0.07); }
.value-strip > div:last-child { border-right: none; }
.value-strip .vt { color: #ffffff; }
.value-strip .vd { color: var(--text-muted); }
.cat-side .list a.active { background: var(--surface-2); color: var(--accent); }

/* ---- home section headings ---- */
.row-head h2 { color: #fff; font-weight: 500; }

/* ---- product cards: flat on black, white price (like pokekingshop) ---- */
.prod-card { background: transparent; border: 1px solid var(--border-soft); border-radius: 6px; }
.prod-card .media { background: #0c0c0c; }
.prod-card .sku { color: var(--accent); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.prod-card .pname { color: #ffffff; }
.prod-card .price { color: #ffffff; }
.prod-card .moq { color: var(--text-faint); }
.product-info h1, .prose h1, .modal-head h2 { font-weight: 500; }
.product-info .price { color: #ffffff; }

/* ---- tables / misc light spots ---- */
.grid-table .thead { background: var(--surface-2); }
.bar-track { background: var(--surface-2); }
.stepper button:hover { background: var(--surface-2); }
.cta-banner { background: #101010; border-top: 1px solid rgba(255,219,0,0.25); border-bottom: 1px solid rgba(255,219,0,0.25); color: #fff; }
.cta-banner h3 { color: var(--accent); }
.cta-banner .btn { background: #000000; color: var(--accent); border: 1.5px solid var(--accent); }
.cta-banner .btn:hover { background: var(--accent); color: #121212; }

/* ---- hero product shot (optional admin image, under the CTA buttons) ---- */
.hero-shot { margin-top: 34px; width: 100%; max-width: 860px; }
.hero-shot img { width: 100%; height: auto; border-radius: 10px; display: block; }

/* ---- featured product spotlights (pokekingshop-style) ---- */
.spotlight {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
  padding: 64px 48px; max-width: 1200px; margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.spotlight.flip .spotlight-media { order: 2; }
.spotlight-media { background: #0c0c0c; border: 1px solid var(--border-soft); border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.spotlight-media img { width: 100%; height: 100%; object-fit: contain; }
.spotlight-info { display: flex; flex-direction: column; gap: 14px; }
.spotlight-info h2 { font-family: var(--font-sans); font-weight: 500; font-size: 28px; color: #fff; margin: 0; }
.spotlight-info .price { font-size: 22px; font-weight: 600; color: #fff; }
.spotlight-info .btn { align-self: flex-start; margin-top: 6px; }
.home-row { padding-top: 44px; padding-bottom: 12px; }
.home-row:last-of-type { padding-bottom: 56px; }

@media (max-width: 760px) {
  .spotlight { grid-template-columns: 1fr; gap: 22px; padding: 40px 20px; }
  .spotlight.flip .spotlight-media { order: 0; }
}
.cta-banner p { color: rgba(255,255,255,0.85); }

/* ---- toast: dark pill (base uses near-white → unreadable on this theme) ---- */
.toast { background: #1c1c1c; color: #ffffff; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.toast button { background: var(--accent); color: #121212; }

/* ---- footer: solid dark, its own section, gold accent line ---- */
.site-footer { background: #0a0a0a; color: var(--text-muted); padding: 56px 24px 52px; border-top: 2px solid var(--accent); }
.footer-grid .brand {
  font-family: var(--font-script); font-weight: 400; font-size: 28px;
  background: linear-gradient(92deg, #7a521a, #e9c877 40%, #fff6d9 55%, #e9c877 70%, #7a521a);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.footer-col .ct { color: #ffffff; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--accent); opacity: 1; }
.footer-legal { border-top-color: rgba(255,255,255,0.12); color: var(--text-faint); }

@media (max-width: 920px) {
  .site-header { flex-direction: row; }
  .header-left { flex-direction: row; width: auto; }
  .logo { font-size: 26px; }
  .topwrap .topbar { display: flex; }
}
@media (max-width: 760px) {
  .topwrap .topbar { display: flex; }
}

/* ============================================================
   Fine-tuning pass — match pokekingshop.com typography & rhythm
   (Inter, weight 400, 0.6px tracking everywhere; larger, lighter
    headings; tighter vertical rhythm; flat product cards)
   ============================================================ */
body { letter-spacing: 0.6px; }

/* headings: uniform light weight, roomier sizes */
.serif,
.hero-title,
.row-head h2,
.product-info h1,
.prose h1,
.modal-head h2,
.admin-main h1,
.spotlight-info h2,
.reviews-head h2,
.blog-post h1 { font-weight: 400; letter-spacing: 0.6px; }

.row-head h2 { font-size: 30px; }
.spotlight-info h2 { font-size: 34px; line-height: 1.25; }
.hero-title { font-size: 42px; }

/* nav: sentence case, larger, lighter (pokekingshop nav is 18/400) */
.main-nav { text-transform: none; font-size: 14px; font-weight: 500; letter-spacing: 0.4px; gap: 10px 22px; }
.nav-drop .sealed-link { font-weight: 500; text-transform: none; }

/* announcement marquee: calmer tracking, 12px/400 like the real bar */
.marquee-item { font-size: 12px; font-weight: 400; letter-spacing: 1px; }
.marquee-sep { margin: 0 22px; }

/* product cards: flat, larger + lighter title, 18px price, 5px button */
.prod-card { border: none; background: transparent; }
.prod-card .media { border: 1px solid var(--border-soft); border-radius: 4px; }
.prod-card .body { padding: 12px 2px 4px; gap: 5px; }
.prod-card .sku { font-size: 10.5px; }
.prod-card .pname { font-size: 15px; font-weight: 400; letter-spacing: 0.4px; line-height: 1.45; }
.prod-card .price { font-size: 16px; font-weight: 600; letter-spacing: 1px; }
.prod-card .btn { border-radius: 5px; font-size: 13px; font-weight: 500; letter-spacing: 0.8px; padding: 11px 12px; }

/* featured spotlight: media a touch narrower than info, like the real one */
.spotlight { grid-template-columns: 1fr 1.12fr; gap: 48px; }
.spotlight-info .price { font-size: 20px; font-weight: 600; letter-spacing: 1px; }

/* vertical rhythm: pokekingshop rows breathe less */
.home-row { padding-top: 34px; padding-bottom: 10px; }
.home-row:last-of-type { padding-bottom: 48px; }
.spotlight { padding-top: 52px; padding-bottom: 52px; }
.row-head { margin-bottom: 20px; }

/* section headings / "View all" on one calm line */
.row-head .link { font-weight: 500; letter-spacing: 0.6px; font-size: 13px; }

@media (max-width: 960px) {
  .spotlight { grid-template-columns: 1fr; gap: 22px; }
  .spotlight.flip .spotlight-media { order: 0; }
  .spotlight-media { max-width: 460px; }
}
@media (max-width: 920px) {
  .topwrap .topbar { display: block; }
}
@media (max-width: 760px) {
  .topwrap .topbar { display: block; }
  .hero-title { font-size: 30px; }
  .spotlight-info h2 { font-size: 26px; }
  .row-head h2 { font-size: 24px; }
}
