/* Palette taken from the Seal's Deals artwork: sky/aqua water, buttery cream, golden lettering,
   deep teal-blue script, peach blob, coral hat band and the charcoal top hat.
   Layout: a white top strip (cart at the left, Account at the right), a dark navigation bar with
   a pill search, condensed uppercase headings, and a hero banner — in the style of a premium
   collectibles storefront. */
:root {
  --sky: #5bc0eb;
  --aqua: #35b7d6;
  --cream: #fff3cf;
  --gold: #eaa91e;
  --peach: #f6a96a;
  --coral: #ef6f7b;
  --hat: #3b3a46;

  --bg: #fff8e3;
  --surface: #ffffff;
  --surface-2: #eaf6fc;
  --panel: #f3f5f7;          /* grey hero / section panels */
  --text: #1f2d3d;
  --muted: #566579;
  --border: #cfe6f1;
  --brand: #0b7db0;
  --brand-ink: #ffffff;
  --brand-soft: #d8f0fa;
  --price: #a45f00;
  --nav: #25394b;            /* dark navigation bar */
  --nav-text: #fff3cf;
  --ok: #12703f;
  --ok-soft: #dcf5e6;
  --warn: #86560a;
  --warn-soft: #ffefc2;
  --danger: #b3261e;
  --danger-soft: #fde6e3;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 70, 100, .08), 0 8px 22px rgba(16, 90, 130, .10);
  --display: "Oswald", "Bebas Neue", "Arial Narrow", "Roboto Condensed", "Segoe UI Semibold", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a2130;
    --surface: #10344a;
    --surface-2: #16425c;
    --panel: #0e2b3d;
    --text: #eaf6fb;
    --muted: #a3c5d5;
    --border: #245672;
    --brand: #5bc0eb;
    --brand-ink: #05202e;
    --brand-soft: #164a66;
    --price: #f4b93a;
    --nav: #061826;
    --nav-text: #fff3cf;
    --ok: #6fd79a;
    --ok-soft: #14392a;
    --warn: #f4b93a;
    --warn-soft: #3d3110;
    --danger: #ff9a92;
    --danger-soft: #401f1d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 22px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(48rem 26rem at 105% -8%, color-mix(in srgb, var(--sky) 30%, transparent), transparent 62%),
    radial-gradient(42rem 24rem at -8% 108%, color-mix(in srgb, var(--aqua) 24%, transparent), transparent 62%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted, .sub { color: var(--muted); font-size: .875rem; }
.boot { padding: 48px 16px; text-align: center; color: var(--muted); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.display, .page-title, .section-title, .hero-copy h2, .hero h1, .greet strong, .panel h2 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .015em;
  font-weight: 700;
}

/* ── Buttons & forms ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 0 16px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); font-weight: 600;
  text-decoration: none; transition: transform .05s, background .15s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 2px 0 color-mix(in srgb, var(--brand) 60%, #000); }
.btn.primary:hover { filter: brightness(1.08); background: var(--brand); }
.btn.primary:active { box-shadow: none; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.link { background: none; border: 0; padding: 4px 2px; cursor: pointer; color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link.danger { color: var(--danger); }

.field { display: grid; gap: 4px; margin-bottom: 14px; }
.field > span { font-size: .875rem; font-weight: 600; }
.field small { color: var(--muted); }
input:not([type=radio]), select, textarea {
  width: 100%; min-height: 42px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
}
textarea { resize: vertical; }
.form-error, .form-ok { min-height: 1.4em; margin: 0 0 10px; font-size: .9rem; }
.form-error { color: var(--danger); }
.form-ok { color: var(--ok); }
.demo-note { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: .85rem; }

/* ── Sign-in screen: the poster — sky-blue water with cream splashes ───────── */
.auth {
  min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background:
    radial-gradient(38rem 22rem at 8% 12%, color-mix(in srgb, var(--cream) 85%, transparent), transparent 62%),
    radial-gradient(34rem 20rem at 96% 30%, color-mix(in srgb, var(--aqua) 70%, transparent), transparent 62%),
    radial-gradient(36rem 22rem at 30% 105%, color-mix(in srgb, var(--cream) 80%, transparent), transparent 60%),
    linear-gradient(170deg, var(--sky), color-mix(in srgb, var(--sky) 65%, var(--aqua)));
}
@media (prefers-color-scheme: dark) {
  .auth { background:
    radial-gradient(38rem 22rem at 8% 12%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 62%),
    radial-gradient(34rem 20rem at 96% 30%, color-mix(in srgb, var(--aqua) 30%, transparent), transparent 62%),
    linear-gradient(170deg, #0d3550, #0a2130); }
}
.auth-card { width: min(100%, 400px); background: color-mix(in srgb, var(--cream) 55%, var(--surface)); border: 2px solid color-mix(in srgb, var(--sky) 45%, var(--border)); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
@media (prefers-color-scheme: dark) { .auth-card { background: var(--surface); } }
.auth-logo { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; margin-bottom: 14px; }
.eyebrow { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--price); }
.auth-card h1 { font-size: 1.6rem; line-height: 1.2; margin: 2px 0 6px; color: var(--brand); }
.auth-card form { margin-top: 20px; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.demo-link { margin-top: 12px; text-align: center; font-size: .875rem; color: var(--muted); }
.demo-link a { color: var(--brand); font-weight: 600; }

/* ── Header: top strip (logo, search, ♥, cart, Account) ───────────────────── */
:root { --head-h: 68px; --side-w: 250px; }
.site-head { position: sticky; top: 0; z-index: 40; background: var(--surface); box-shadow: 0 6px 18px rgba(16, 60, 90, .14); }
.top-strip { display: flex; align-items: center; gap: 16px; padding: 8px 20px; min-height: var(--head-h); }
.menu-btn {
  display: none; place-items: center; width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
}
.menu-btn svg { width: 24px; height: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.brand-text { display: grid; line-height: 1.05; color: var(--brand); font-family: var(--display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }
.brand-text small { font-size: .62rem; letter-spacing: .14em; color: var(--price); font-weight: 600; }
.head-search { position: relative; flex: 1; max-width: 520px; margin: 0 auto; }
.head-search input { min-height: 42px; padding: 6px 46px 6px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); }
.head-search button { position: absolute; right: 4px; top: 5px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 50%; }
.head-search button:hover { color: var(--brand); }
.head-search button svg { width: 20px; height: 20px; }
.top-right { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.util-icon { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; text-decoration: none; color: var(--text); }
.util-icon svg { width: 26px; height: 26px; }
.util-icon:hover, .util-icon.active { color: var(--brand); background: var(--brand-soft); }
.util-icon[href="#/wishlist"]:hover, .util-icon[href="#/wishlist"].active { color: var(--coral); }
.util { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); text-transform: uppercase; font-size: .82rem; letter-spacing: .06em; padding: 8px 10px; border-radius: 10px; }
.util svg { width: 26px; height: 26px; }
.util:hover, .util.active { color: var(--brand); background: var(--brand-soft); }
.badge {
  position: absolute; top: 0; right: 0; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--coral); color: #fff; font-size: .72rem; font-weight: 800; border: 2px solid var(--surface);
}
.badge[hidden] { display: none; }

/* ── Left sidebar menu — soft, rounded and animated ─────────────────────── */
:root { --ease-out: cubic-bezier(.22, .9, .3, 1); }
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); align-items: start; }
.side {
  position: sticky; top: var(--head-h); height: calc(100vh - var(--head-h)); overflow-y: auto; padding: 16px 10px 32px;
  color: var(--nav-text);
  background: linear-gradient(180deg, var(--nav) 0%, color-mix(in srgb, var(--nav) 80%, var(--aqua)) 100%);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent;
}
.side-close { display: none; }
.side-menu, .side-sub { list-style: none; margin: 0; padding: 0; }
.side-menu > li { margin: 3px 0; }
.side-row { display: flex; align-items: center; gap: 2px; }
.side-link {
  position: relative; flex: 1; display: flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: 16px;
  text-decoration: none; color: var(--nav-text); font-family: var(--display); font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em;
  transition: background .3s ease, transform .35s var(--ease-out), color .2s ease, box-shadow .3s ease;
}
.side-link:hover { background: rgba(255, 255, 255, .1); transform: translateX(4px); }
.side-link.active {
  color: #fff; box-shadow: inset 3px 0 0 var(--gold);
  background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 32%, transparent), rgba(255, 255, 255, .05));
}
.group.open > .side-row .side-link:not(.active) { background: rgba(255, 255, 255, .06); }
.caret {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--nav-text); cursor: pointer;
  display: grid; place-items: center; transition: background .25s ease;
}
.caret:hover { background: rgba(255, 255, 255, .12); }
.caret::after {
  content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .45s var(--ease-out);
}
.group.open .caret::after { transform: rotate(225deg) translate(-2px, -2px); }

/* The dropdown glides open: the row grows from 0 to its natural height, and the options ease in one after another. */
.side-sub-wrap {
  display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  transition: grid-template-rows .45s var(--ease-out), opacity .3s ease, visibility 0s linear .45s;
}
.group.open .side-sub-wrap { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition-delay: 0s; }
/* No vertical margin/padding on the list itself: it must be able to shrink to exactly 0 when closed.
   The breathing room lives on the first/last item instead, inside the clipped area. */
.side-sub {
  min-height: 0; max-height: 46vh; overflow-x: hidden; overflow-y: auto; margin: 0 0 0 24px; padding: 0 0 0 10px;
  border-left: 2px solid rgba(255, 243, 207, .2); scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent;
}
.side-sub li:first-child { margin-top: 6px; }
.side-sub li:last-child { margin-bottom: 10px; }
.side-sub li { opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .25s ease; }
.group.open .side-sub li {
  opacity: 1; transform: none;
  transition: opacity .4s ease, transform .5s var(--ease-out); transition-delay: calc(var(--i, 0) * 28ms + 90ms);
}
.side-sub a {
  display: block; margin: 1px 0; padding: 8px 14px; border-radius: 12px; text-decoration: none; color: var(--nav-text); font-size: .93rem;
  transition: background .25s ease, transform .35s var(--ease-out), color .2s ease;
}
.side-sub a:hover { background: rgba(255, 255, 255, .11); transform: translateX(5px); }
.side-sub a.active { color: var(--gold); font-weight: 700; background: rgba(255, 255, 255, .07); }
.side-sub a.active::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--gold); }
.side-sub .empty-note { padding: 8px 14px; color: rgba(255, 243, 207, .65); font-size: .9rem; }
.scrim { display: none; }
.content { min-width: 0; }

.page { max-width: 1200px; margin: 0 auto; padding: 14px 20px 96px; }

/* ── Breadcrumb, headings, hero ──────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 4px 0 14px; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
.crumbs a { color: var(--brand); }
.crumbs svg { width: 13px; height: 13px; color: var(--muted); }
.crumbs span { color: var(--text); }

.page-title { font-size: 1.9rem; line-height: 1.15; margin-bottom: 16px; color: var(--text); }
.section-title { font-size: 2.3rem; line-height: 1.1; margin: 0 0 6px; }
.section-sub { text-transform: uppercase; letter-spacing: .02em; margin-bottom: 18px; color: var(--muted); font-size: .9rem; }

.hero-banner { display: grid; grid-template-columns: 1fr 2.2fr 1fr; gap: 12px; padding: 12px; background: var(--panel); border-radius: 6px; margin-bottom: 22px; }
.hero-panel { background: #fff; display: grid; place-items: center; min-height: 210px; overflow: hidden; position: relative; }
.hero-panel img { width: 100%; height: 100%; max-height: 240px; object-fit: contain; padding: 10px; }
.hero-panel .no-image { min-height: 200px; }
.hero-copy { text-align: center; padding: 18px 12px; display: grid; gap: 4px; justify-items: center; color: #1f2d3d; background:
  radial-gradient(18rem 10rem at 12% 20%, color-mix(in srgb, var(--cream) 90%, #fff), transparent 70%),
  radial-gradient(18rem 10rem at 92% 88%, color-mix(in srgb, var(--sky) 45%, #fff), transparent 70%), #fff; }
.hero-copy .kicker { font-family: var(--display); text-transform: uppercase; font-weight: 700; letter-spacing: .12em; font-size: .95rem; color: #b57a0a; }
.hero-copy h2 { font-size: clamp(2.2rem, 6vw, 4rem); line-height: .95; color: #0b7db0; text-shadow: 0 3px 0 rgba(234, 169, 30, .55); }
.hero-copy p { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: #4a5a6c; margin-top: 4px; }
.hero-copy img { width: 62px; height: 62px; border-radius: 14px; margin-bottom: 4px; }

.title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.title-row .page-title { margin-bottom: 8px; font-size: 2.4rem; }
.desc { border-bottom: 1px solid var(--border); padding-bottom: 18px; margin-bottom: 28px; }
.desc summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); text-transform: uppercase; font-size: .85rem; letter-spacing: .05em; font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.desc summary::-webkit-details-marker { display: none; }
.desc summary::after { content: "+"; font-size: 1.3rem; line-height: 1; text-decoration: none; }
.desc[open] summary::after { content: "–"; }
.desc p { margin-top: 10px; max-width: 70ch; color: var(--muted); }

/* ── Shop grid ───────────────────────────────────────────────────────────── */
.toolbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; margin-bottom: 12px; }
.sel { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.count { color: var(--muted); font-size: .875rem; margin: 4px 0 12px; min-height: 1.3em; }
.section { margin-bottom: 40px; }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 220px); gap: 16px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; }
.row-scroll .tile { scroll-snap-align: start; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid color-mix(in srgb, var(--sky) 45%, var(--border)); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tile:hover { box-shadow: 0 2px 0 var(--gold), var(--shadow); }
.tile-img { position: relative; border: 0; padding: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--sky) 30%, var(--surface)), color-mix(in srgb, var(--cream) 70%, var(--surface)) 85%); cursor: zoom-in; aspect-ratio: 5 / 6; display: block; overflow: hidden; }
.tile-img img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; border-radius: 6px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25)); }
.tile-img .no-image { position: absolute; inset: 0; border-radius: 0; }
.no-image { display: grid; place-items: center; width: 100%; height: 100%; min-height: 80px; color: var(--muted); font-size: .8rem; background: color-mix(in srgb, var(--sky) 18%, var(--surface)); border-radius: 8px; }
.tile-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.tile-body h3 { font-size: 1rem; line-height: 1.25; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: .75rem; font-weight: 600; color: var(--muted); }
.chip[class*="cond-"]::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--muted); }
.cond-mint::before, .cond-near-mint::before { background: #2fae66 !important; }
.cond-lightly-played::before { background: #8bc34a !important; }
.cond-moderately-played::before { background: #f0a92e !important; }
.cond-heavily-played::before { background: #e8742c !important; }
.cond-damaged::before { background: #d64545 !important; }
.tile-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; }
.tile-foot .btn { white-space: nowrap; padding: 0 12px; }
.pricing { display: grid; }
.price { font-size: 1.15rem; color: var(--price); }
.stock { font-size: .78rem; color: var(--muted); }
.stock.low { color: #bf3644; font-weight: 600; }
@media (prefers-color-scheme: dark) { .stock.low { color: #ff9aa4; } }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.stepper button { width: 38px; height: 40px; border: 0; background: transparent; cursor: pointer; font-size: 1.2rem; }
.stepper button:hover:not(:disabled) { background: var(--surface-2); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 30px; text-align: center; font-weight: 700; }
.more { display: grid; place-items: center; margin: 24px 0; }
.thumb { width: 72px; aspect-ratio: 5 / 7; border-radius: 6px; overflow: hidden; background: color-mix(in srgb, var(--sky) 18%, var(--surface)); display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.sm { width: 44px; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); grid-column: 1 / -1; }
.empty.big { display: grid; gap: 10px; justify-items: center; padding: 64px 16px; }
.empty.big h2 { color: var(--text); font-family: var(--display); text-transform: uppercase; font-size: 1.6rem; }

/* ── Cart & checkout ─────────────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; padding: 12px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--sky) 45%, var(--border)); border-radius: var(--radius); }
.line-info { display: grid; gap: 4px; align-content: start; }
.line-info .chip { justify-self: start; }
.line-side { display: grid; gap: 8px; justify-items: end; align-content: start; }
.checkout { position: sticky; top: 150px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--sky) 45%, var(--border)); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.checkout h2 { font-family: var(--display); text-transform: uppercase; font-size: 1.3rem; margin-bottom: 10px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0 14px; font-size: 1.1rem; }
.total-row strong { font-size: 1.4rem; color: var(--price); }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; }
.checkout .sub { margin: 4px 0 14px; }
.checkout .link { display: inline-block; margin-top: 10px; text-decoration: none; }
.pay { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; background: var(--surface); }
.radio:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radio input { margin-top: 4px; accent-color: var(--brand); }
.radio > span { display: grid; }
.radio small { color: var(--muted); }
.stack { display: grid; gap: 4px; align-content: start; min-width: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.fee { font-weight: 700; color: var(--price); margin-left: 6px; }
.fee.free { color: var(--ok); }

.steps-bar { display: flex; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; flex-wrap: wrap; }
.steps-bar li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: .875rem; font-weight: 600; }
.steps-bar li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); font-size: .8rem; }
.steps-bar li.current { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.steps-bar li.current span { background: var(--brand); color: var(--brand-ink); }
.steps-bar li.done span { background: var(--ok); color: #fff; }

.pay-layout { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 24px; align-items: start; max-width: 860px; }
.qr-card { background: var(--surface); border: 2px solid color-mix(in srgb, var(--sky) 55%, var(--border)); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--shadow); }
.qr-box { width: 100%; aspect-ratio: 1; display: grid; place-items: center; background: #fff; border-radius: 12px; border: 2px dashed color-mix(in srgb, var(--sky) 60%, var(--border)); overflow: hidden; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-missing { padding: 16px; color: #566579; font-weight: 600; text-align: center; }
.qr-label { margin-top: 10px; font-weight: 600; }
.qr-amount { font-size: 1.9rem; font-weight: 800; color: var(--price); margin-top: 10px; line-height: 1.1; }
.ref { color: var(--brand); font-size: 1.05em; letter-spacing: .04em; }
.pay-steps { display: grid; gap: 14px; }
.steps { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; }
.steps li::marker { color: var(--brand); font-weight: 800; }
.hold-note { padding: 10px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); }
.pay-steps .link { justify-self: center; }

.hero { max-width: 560px; margin: 24px auto; text-align: center; padding: 32px 24px; background: var(--surface); border: 2px solid color-mix(in srgb, var(--sky) 45%, var(--border)); border-radius: 22px; box-shadow: var(--shadow); display: grid; gap: 12px; justify-items: center; }
.hero h1 { font-size: 2rem; color: var(--brand); }
.hero-icon { width: 72px; height: 72px; }
.hero.warn .hero-icon { color: var(--gold); }
.hero.ok .hero-icon { color: var(--ok); }
.hero-lead { font-size: 1.05rem; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ── Orders ──────────────────────────────────────────────────────────────── */
.orders { display: grid; gap: 16px; max-width: 760px; }
.order { background: var(--surface); border: 1px solid color-mix(in srgb, var(--sky) 45%, var(--border)); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.order > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.order > header > div { display: grid; }
.order-lines { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 10px; }
.order-lines li { display: flex; align-items: center; gap: 12px; }
.order-lines .grow { flex: 1; display: grid; min-width: 0; }
.order .how { margin: -2px 0 10px; }
.order > footer { border-top: 1px solid var(--border); padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill { padding: 3px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.muted { background: var(--surface-2); color: var(--muted); }

/* ── Account ("My page") ─────────────────────────────────────────────────── */
.greet { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 4px 18px; }
.greet > div { display: flex; align-items: center; gap: 12px; }
.greet svg { width: 34px; height: 34px; color: var(--text); }
.greet strong { font-size: 1.15rem; letter-spacing: .01em; text-transform: none; }
.greet .memno { font-size: .9rem; color: var(--muted); }
.panel { background: var(--surface); border-radius: 4px; padding: 30px 34px 34px; box-shadow: 0 0 0 1px var(--border), 0 10px 40px rgba(16, 60, 90, .12); }
.panel section + section { margin-top: 34px; }
.panel h2 { display: flex; align-items: center; gap: 14px; font-size: 1.9rem; margin-bottom: 14px; }
.panel h2 svg { width: 34px; height: 34px; }
.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.link-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 4px; min-height: 52px; border: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: -1px; background: none; text-decoration: none; text-align: left; cursor: pointer; width: 100%; }
.link-row:hover { color: var(--brand); background: var(--brand-soft); }
.link-row svg { width: 18px; height: 18px; flex: none; }
.account-form { max-width: 520px; }
.account-form .field small { margin-top: 2px; }
.ro { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }

/* ── Zoom + toasts ───────────────────────────────────────────────────────── */
.notice { padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; line-height: 1.45; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.error { background: var(--danger-soft); color: var(--danger); }
dialog#zoom { border: 0; padding: 16px; border-radius: 18px; background: var(--surface); color: var(--text); max-width: min(92vw, 520px); }
dialog#zoom::backdrop { background: rgba(8, 12, 24, .7); }
#zoomImg { max-height: 74vh; width: auto; margin: 0 auto; border-radius: 10px; }
#zoomCaption { text-align: center; margin-top: 10px; color: var(--muted); font-size: .9rem; }
.zoom-close { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); cursor: pointer; font-size: 1.4rem; line-height: 1; }
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--text); color: var(--bg); box-shadow: var(--shadow); font-size: .92rem; }
.toast.error { background: var(--danger); color: #fff; }
.toast.ok { background: var(--ok); color: #fff; }

/* ── Tablet & phone ──────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: grid; }
  .top-strip { flex-wrap: wrap; gap: 8px 10px; padding: 8px 14px; }
  .head-search { order: 5; flex-basis: 100%; max-width: none; margin: 0; }
  .side {
    position: fixed; z-index: 60; left: 0; top: 0; bottom: 0; height: auto; width: min(84vw, 320px); padding-top: 12px;
    transform: translateX(-104%); transition: transform .22s ease; box-shadow: 10px 0 30px rgba(0, 0, 0, .35);
  }
  body.nav-open .side { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(8, 12, 24, .55); }
  body.nav-open { overflow: hidden; }
  .side-close { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 8px 6px auto; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: var(--nav-text); cursor: pointer; }
  .side-close svg { width: 22px; height: 22px; }
}
@media (max-width: 960px) {
  .toolbar { grid-template-columns: 1fr 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout { position: static; }
  .hero-banner { grid-template-columns: 1fr 1.6fr 1fr; }
  .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pay-layout { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .qr-card { max-width: 340px; margin: 0 auto; width: 100%; }
  .brand img { width: 36px; height: 36px; }
  .brand-text { font-size: 1.1rem; }
  .brand-text small { display: none; }
  .util span { display: none; }
  .hero-banner { grid-template-columns: 1fr; padding: 8px; }
  .hero-panel.side-art { display: none; }
  .title-row .page-title, .section-title { font-size: 1.8rem; }
  .panel { padding: 20px 16px 24px; }
  .link-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .row-scroll { grid-auto-columns: minmax(160px, 170px); gap: 10px; }
  .tile-body { padding: 10px; }
  .tile-foot { flex-direction: column; align-items: stretch; }
  .tile-foot .btn, .tile-foot .stepper { width: 100%; }
  .stepper { justify-content: space-between; }
  .stepper button { flex: 1; }
  .line { grid-template-columns: 56px minmax(0, 1fr); }
  .thumb { width: 56px; }
  .line-side { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ── Wish list ───────────────────────────────────────────────────────────── */
.tile { position: relative; }
.heart {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--border); background: rgba(255, 255, 255, .92); color: #566579; cursor: pointer;
  box-shadow: 0 2px 6px rgba(16, 60, 90, .18); transition: transform .12s, color .12s;
}
.heart svg { width: 21px; height: 21px; }
.heart:hover { transform: scale(1.08); color: var(--coral); }
.heart.on { color: var(--coral); border-color: color-mix(in srgb, var(--coral) 55%, var(--border)); }

.tile.oos .tile-img { cursor: default; }
.tile.oos .tile-img img { filter: grayscale(1) drop-shadow(0 4px 8px rgba(0, 0, 0, .2)); opacity: .5; }
.tile.oos .tile-body h3, .tile.oos .tile-body .sub { color: var(--muted); }
.tile-img.static { display: block; }
.oos-badge {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); z-index: 1; padding: 8px 6px; text-align: center;
  background: rgba(37, 57, 75, .9); color: #fff3cf; font-family: var(--display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 1rem;
}
.oos-text { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-size: 1rem; }

/* ── Landing pages: one tile per set / rarity / condition ─────────────────── */
.facet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.facet-tile { display: block; text-decoration: none; background: var(--surface); border: 1px solid color-mix(in srgb, var(--sky) 45%, var(--border)); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .12s; }
.facet-tile:hover { transform: translateY(-2px); box-shadow: 0 2px 0 var(--gold), var(--shadow); }
.facet-img { position: relative; aspect-ratio: 5 / 4; background: linear-gradient(160deg, color-mix(in srgb, var(--sky) 30%, var(--surface)), color-mix(in srgb, var(--cream) 70%, var(--surface)) 85%); overflow: hidden; }
.facet-img img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25)); }
.facet-img .no-image { position: absolute; inset: 0; border-radius: 0; }
.facet-body { display: grid; gap: 2px; padding: 12px 14px 14px; }
.facet-body strong { font-family: var(--display); text-transform: uppercase; font-size: 1.15rem; letter-spacing: .02em; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

/* ── New arrivals: arrow buttons instead of a drag bar ────────────────────── */
.carousel { position: relative; }
.row-scroll { scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 6px 2px 16px; }
.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll .tile { scroll-snap-align: start; }
.row-arrow {
  position: absolute; top: 42%; z-index: 3; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); box-shadow: 0 6px 18px rgba(16, 60, 90, .22);
  transform: translateY(-50%); transition: opacity .25s ease, transform .3s var(--ease-out), background .2s ease, color .2s ease;
}
.row-arrow svg { width: 22px; height: 22px; }
.row-arrow.prev { left: -14px; }
.row-arrow.next { right: -14px; }
.row-arrow.prev svg { transform: rotate(180deg); }
.row-arrow:hover:not(:disabled) { background: var(--brand); color: var(--brand-ink); transform: translateY(-50%) scale(1.08); }
.row-arrow:disabled { opacity: 0; pointer-events: none; transform: translateY(-50%) scale(.85); }
@media (max-width: 760px) {
  .row-arrow { width: 40px; height: 40px; }
  .row-arrow.prev { left: -6px; }
  .row-arrow.next { right: -6px; }
}

/* ── Set booster-pack pictures ─────────────────────────────────────────────── */
.facet-tile.is-set .facet-img { aspect-ratio: 1 / 1; background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--cream) 80%, var(--surface)), color-mix(in srgb, var(--sky) 28%, var(--surface)) 75%); }
.facet-img img.pack { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .28)); transition: transform .4s var(--ease-out); }
.facet-tile:hover img.pack { transform: scale(1.06) rotate(-1.5deg); }
.set-head { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.set-head .page-title { margin: 0; }
.set-pack { width: 76px; height: 108px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)); flex: none; }
