/* IsThatHux shop — same palette and fonts as style.css, standalone so the
   shop doesn't depend on the home page's layout rules. */
:root {
  --clr-bg:      #050508;
  --clr-surface: #0d0d14;
  --clr-card:    rgba(255,255,255,0.04);
  --clr-card-2:  rgba(255,255,255,0.07);
  --clr-border:  rgba(255,255,255,0.09);
  --clr-purple:  #a855f7;
  --clr-cyan:    #22d3ee;
  --clr-text:    #f0f0f8;
  --clr-muted:   #9a9ab8;
  --clr-error:   #f87171;
  --clr-ok:      #4ade80;
  --font-display: 'Orbitron', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --radius: 16px;
  --grad: linear-gradient(135deg, var(--clr-purple), var(--clr-cyan));
  /* backdrop behind product photos */
  --mock-bg:
    radial-gradient(circle at 50% 44%, rgba(168,85,247,0.38) 0%, rgba(168,85,247,0.08) 42%, transparent 62%),
    radial-gradient(circle at 82% 88%, rgba(34,211,238,0.20) 0%, transparent 46%),
    radial-gradient(circle at 12% 10%, rgba(236,72,153,0.12) 0%, transparent 40%),
    linear-gradient(165deg, #1b1233 0%, #100c1e 55%, #0a0a12 100%);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 16px; }
body {
  background: var(--clr-bg)
    radial-gradient(circle at 15% 0%, rgba(168,85,247,0.16) 0%, transparent 45%) no-repeat;
  color: var(--clr-text);
  font-family: var(--font-body);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--clr-cyan); }
:focus-visible { outline: 2px solid var(--clr-cyan); outline-offset: 2px; }

/* ── Top bar ─────────────────────────────────────────────────── */
.shop-top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.85rem max(16px, calc((100vw - 1200px) / 2));
  background: rgba(5,5,8,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
}
.shop-logo {
  font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; letter-spacing: 0.08em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; text-decoration: none;
}
.shop-crumb { color: var(--clr-muted); font-size: 0.9rem; }
.shop-crumb::before { content: "/"; margin-right: 0.9rem; opacity: 0.5; }
.cart-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.9rem; border-radius: 999px;
  background: var(--clr-card-2); border: 1px solid var(--clr-border);
  font-weight: 600; font-size: 0.92rem;
}
.cart-btn svg { width: 18px; height: 18px; }
.cart-btn:hover { border-color: rgba(168,85,247,0.6); }
.cart-count {
  min-width: 1.4rem; height: 1.4rem; padding: 0 0.35rem; border-radius: 999px;
  display: inline-grid; place-items: center; font-size: 0.75rem;
  background: var(--grad); color: #050508; font-weight: 700;
}

.test-banner {
  padding: 0.6rem 16px; text-align: center; font-size: 0.88rem;
  background: rgba(250,204,21,0.12); border-bottom: 1px solid rgba(250,204,21,0.35); color: #fde68a;
}
.test-banner code { font-family: ui-monospace, monospace; background: rgba(0,0,0,0.3); padding: 0.05rem 0.35rem; border-radius: 4px; }

/* ── Layout ──────────────────────────────────────────────────── */
.shop-main { width: min(1200px, 100% - 32px); margin: 0 auto; padding: 2rem 0 3rem; flex: 1; }
.shop-hero h1 {
  font-family: var(--font-display); font-weight: 900; letter-spacing: 0.06em;
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1;
}
.shop-hero p { color: var(--clr-muted); max-width: 60ch; margin-top: 0.6rem; }
.notice { margin-bottom: 1.2rem; padding: 0.8rem 1rem; border-radius: 12px; background: var(--clr-card); border: 1px solid var(--clr-border); }
.loading { color: var(--clr-muted); }

.product-grid {
  margin-top: 2rem;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.pcard {
  display: flex; flex-direction: column;
  background: var(--clr-card); border: 1px solid var(--clr-border); border-radius: var(--radius);
  overflow: hidden; transition: border-color 0.2s, transform 0.2s;
}
.pcard:hover { border-color: rgba(168,85,247,0.55); transform: translateY(-2px); }
.pcard-art { display: block; border: 0; width: 100%; padding: 0; background: none; }

/* Product photo (cut out at build time) on an on-brand backdrop + print area overlay */
.mock {
  position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--mock-bg);
}
.mock::after { /* faint floor glow under the product */
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 4%; height: 7%;
  background: radial-gradient(ellipse at center, rgba(34,211,238,0.22), transparent 70%);
  pointer-events: none;
}
.mock-photo {
  position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,0.55));
}
.mock-print { z-index: 2; }
.mock-print { position: absolute; overflow: visible; pointer-events: none; }
.mock-print.ink-dark image, .mock-print.ink-dark text { mix-blend-mode: multiply; }
.mock-print text.hint { opacity: 0.28; }
.pcard-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.pcard h2 { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.04em; }
.pcard .from { color: var(--clr-muted); font-size: 0.9rem; }
.pcard .from strong { color: var(--clr-text); }
.pcard .dots { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.pcard .dots span { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); }
.pcard .tag { font-size: 0.78rem; color: var(--clr-cyan); }
.pcard .btn-primary { margin-top: auto; }

.btn-primary {
  display: inline-flex; justify-content: center; align-items: center; gap: 0.5rem;
  width: 100%; padding: 0.8rem 1.1rem; border: 0; border-radius: 12px;
  background: var(--grad); color: #050508; font-weight: 700; letter-spacing: 0.02em;
  transition: filter 0.2s, opacity 0.2s;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }

.shop-info {
  margin-top: 3rem; display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.shop-info h2 { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.4rem; }
.shop-info p { color: var(--clr-muted); font-size: 0.92rem; }

.shop-foot {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between;
  width: min(1200px, 100% - 32px); margin: 0 auto; padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--clr-border); color: var(--clr-muted); font-size: 0.85rem;
}
.shop-foot a { color: var(--clr-muted); text-decoration: none; }
.shop-foot a:hover { color: var(--clr-text); }

/* ── Dialogs ─────────────────────────────────────────────────── */
dialog {
  color: var(--clr-text); background: var(--clr-surface);
  border: 1px solid var(--clr-border); border-radius: 20px; padding: 0; margin: auto; /* the reset above zeroes the UA centring */
  max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px);
}
dialog::backdrop { background: rgba(0,0,0,0.72); backdrop-filter: blur(4px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Close: solid dark disc with a white cross, readable over any photo */
.x-btn {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 4;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center;
  background: rgba(8,8,14,0.82); color: #fff; border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 4px 14px rgba(0,0,0,0.45); backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.x-btn svg { width: 1.1rem; height: 1.1rem; }
.x-btn:hover { background: rgba(168,85,247,0.85); border-color: rgba(255,255,255,0.6); transform: scale(1.05); }

/* Product customizer: photo left (pinned), options right */
.pdialog { width: 1000px; overflow: hidden; }
.pdialog-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); max-height: calc(100dvh - 34px); }
.p-preview { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.p-stage-wrap { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
.p-stage { width: 100%; }
.p-note { font-size: 0.72rem; color: var(--clr-muted); text-align: center; }
.view-tabs {
  position: absolute; left: 50%; bottom: 0.8rem; transform: translateX(-50%); z-index: 3;
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: rgba(8,8,14,0.72); border: 1px solid rgba(255,255,255,0.16); backdrop-filter: blur(8px);
}
.view-tabs button { border: 0; background: none; padding: 0.38rem 1.05rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.75); }
.view-tabs button[aria-selected="true"] { background: var(--grad); color: #050508; }

.p-options { padding: 1.5rem 1.5rem 0; display: flex; flex-direction: column; gap: 1.15rem; overflow-y: auto; min-height: 0; }
.p-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-right: 0.25rem; }
.p-head h2 { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.04em; line-height: 1.2; }
.p-price {
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; white-space: nowrap;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.p-blurb { color: var(--clr-muted); font-size: 0.9rem; margin-top: -0.6rem; }
.p-feats { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: -0.35rem; }
.p-feats li {
  font-size: 0.74rem; padding: 0.25rem 0.6rem; border-radius: 999px; color: #d8d8ec;
  background: rgba(255,255,255,0.05); border: 1px solid var(--clr-border);
}

.opt { border: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.opt-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #c9c9e0; }
.opt-label span { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--clr-muted); font-size: 0.85rem; }
fieldset.opt > legend.opt-label { margin-bottom: 0.55rem; }
.opt-badge { margin-left: auto; font-size: 0.75rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--clr-cyan); }

/* The name block is the star: framed and first */
.opt-name {
  padding: 0.9rem; border-radius: 14px;
  background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(34,211,238,0.06));
  border: 1px solid rgba(168,85,247,0.3);
}
.name-row { position: relative; }
.name-row input {
  width: 100%; padding: 0.8rem 3.6rem 0.8rem 0.9rem; border-radius: 10px;
  background: rgba(5,5,8,0.6); border: 1px solid var(--clr-border);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.name-row input::placeholder { text-transform: none; font-family: var(--font-body); font-weight: 400; letter-spacing: 0; color: var(--clr-muted); }
.name-row input:focus { border-color: var(--clr-purple); outline: none; box-shadow: 0 0 0 3px rgba(168,85,247,0.2); }
.name-count { position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%); font-size: 0.75rem; color: var(--clr-muted); font-variant-numeric: tabular-nums; }
.hint { font-size: 0.76rem; color: var(--clr-muted); }
.pos { border: 0; }
.pos-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0.4rem; }
.pos-opt {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.7rem; border-radius: 10px;
  background: rgba(5,5,8,0.45); border: 1px solid var(--clr-border); font-size: 0.84rem; cursor: pointer; line-height: 1.25;
}
.pos-opt:has(input:checked) { border-color: var(--clr-cyan); background: rgba(34,211,238,0.1); }
.pos-opt input { accent-color: var(--clr-cyan); flex: none; }

.designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 0.5rem; }
.design-btn {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0.6rem 0.5rem 0.45rem;
  border-radius: 12px; border: 1px solid var(--clr-border); background: var(--mock-bg);
  font-size: 0.78rem; font-weight: 600; color: #d8d8ec; transition: border-color 0.15s, transform 0.15s;
}
.design-btn img { width: 100%; height: 2.6rem; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }
.design-btn:hover { border-color: rgba(255,255,255,0.3); transform: translateY(-1px); }
.design-btn[aria-pressed="true"] { border-color: var(--clr-cyan); box-shadow: 0 0 0 3px rgba(34,211,238,0.2); }

.swatches { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.swatch {
  width: 2.3rem; height: 2.3rem; border-radius: 50%; padding: 0;
  border: 2px solid rgba(255,255,255,0.2); box-shadow: inset 0 0 0 3px var(--clr-surface);
  transition: transform 0.15s, border-color 0.15s;
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { border-color: var(--clr-cyan); box-shadow: inset 0 0 0 3px var(--clr-surface), 0 0 0 3px rgba(34,211,238,0.25); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.2rem, 1fr)); gap: 0.45rem; }
.size-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.05rem;
  padding: 0.5rem 0.4rem; border-radius: 10px; min-height: 2.8rem;
  background: var(--clr-card); border: 1px solid var(--clr-border); font-size: 0.9rem; font-weight: 600;
}
.size-btn small { color: var(--clr-muted); font-size: 0.68rem; font-weight: 500; }
.size-btn:hover { border-color: rgba(255,255,255,0.25); }
.size-btn[aria-pressed="true"] { border-color: var(--clr-cyan); background: rgba(34,211,238,0.12); }

/* Buy bar: quantity + add, pinned to the bottom of the options */
.p-buybar {
  position: sticky; bottom: 0; z-index: 2; margin: auto -1.5rem 0; padding: 0.9rem 1.5rem 1.1rem;
  display: flex; gap: 0.6rem; align-items: stretch;
  background: linear-gradient(to top, var(--clr-surface) 70%, rgba(13,13,20,0));
}
.p-buybar .btn-primary { flex: 1; font-size: 0.98rem; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--clr-border); border-radius: 12px; overflow: hidden; background: var(--clr-card); }
.stepper button { width: 2.4rem; height: 2.9rem; border: 0; background: none; font-size: 1.15rem; }
.stepper button:hover { background: var(--clr-card-2); }
.stepper input { width: 2.2rem; height: 2.9rem; text-align: center; border: 0; background: transparent; -moz-appearance: textfield; font-weight: 600; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.form-error { color: var(--clr-error); font-size: 0.86rem; }
.form-error:empty { display: none; }

/* Cart drawer */
.cdialog { width: 440px; margin: auto 16px auto auto; height: calc(100dvh - 32px); }
.cdialog-inner { display: flex; flex-direction: column; height: 100%; }
.c-head { position: relative; padding: 1.2rem 1.25rem 0.8rem; border-bottom: 1px solid var(--clr-border); }
.c-head h2 { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.05em; }
.c-head .x-btn { top: 0.7rem; width: 2.3rem; height: 2.3rem; }
.c-lines { list-style: none; overflow-y: auto; flex: 1; padding: 0.5rem 1.25rem; }
.c-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 0.8rem; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--clr-border); }
.c-line .thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; }
.c-line h3 { font-size: 0.92rem; font-weight: 600; }
.c-line .meta { font-size: 0.8rem; color: var(--clr-muted); }
.c-line .meta b { font-family: var(--font-display); font-weight: 700; color: var(--clr-text); letter-spacing: 0.04em; }
.c-line .right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; }
.c-line .stepper button, .c-line .stepper input { height: 1.9rem; }
.c-line .stepper button { width: 1.9rem; }
.c-line .stepper input { width: 2.2rem; font-size: 0.85rem; }
.link-btn { background: none; border: 0; color: var(--clr-muted); font-size: 0.78rem; text-decoration: underline; }
.link-btn:hover { color: var(--clr-error); }
.c-empty { padding: 2rem 1.25rem; color: var(--clr-muted); }
.c-foot { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--clr-border); display: flex; flex-direction: column; gap: 0.6rem; }
.c-country { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; font-size: 0.9rem; font-weight: 600; }
.c-country select { flex: 1; max-width: 60%; padding: 0.5rem 0.6rem; border-radius: 10px; background: var(--clr-card-2); border: 1px solid var(--clr-border); }
.c-country select option { background: var(--clr-surface); }
.c-sums div { display: flex; justify-content: space-between; font-size: 0.92rem; padding: 0.15rem 0; }
.c-sums dt { color: var(--clr-muted); }
.c-sums .c-total { font-weight: 700; font-size: 1.05rem; border-top: 1px solid var(--clr-border); margin-top: 0.3rem; padding-top: 0.5rem; }
.c-sums .c-total dt { color: var(--clr-text); }

/* Order status */
.order-panel {
  margin-bottom: 2rem; padding: 1.4rem 1.5rem; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(34,211,238,0.08));
  border: 1px solid rgba(168,85,247,0.35);
}
.order-panel h2 { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.04em; }
.order-panel .status { display: inline-block; margin: 0.6rem 0; padding: 0.3rem 0.7rem; border-radius: 999px; background: rgba(0,0,0,0.3); font-size: 0.88rem; font-weight: 600; }
.order-panel ul { list-style: none; margin: 0.4rem 0; font-size: 0.92rem; }
.order-panel li { padding: 0.15rem 0; }
.order-panel .muted { color: var(--clr-muted); font-size: 0.85rem; }
.order-panel .track { margin-top: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.order-panel .track a { padding: 0.4rem 0.8rem; border-radius: 10px; background: var(--clr-card-2); text-decoration: none; font-size: 0.88rem; }

/* ── Small screens ───────────────────────────────────────────── */
@media (max-width: 760px) {
  /* Full-screen sheet: the photo pins to the top while options scroll under it */
  .pdialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; border: 0; }
  .pdialog-inner { display: block; height: 100%; max-height: none; overflow-y: auto; overscroll-behavior: contain; }
  .p-preview {
    position: sticky; top: 0; z-index: 3; padding: 0;
    background: var(--mock-bg); box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  }
  .p-stage-wrap { border-radius: 0; box-shadow: none; }
  .p-stage .mock { background: none; } /* the pinned header carries the backdrop edge to edge */
  .p-stage { width: min(100%, 44dvh); margin: 0 auto; }
  .p-note { display: none; }
  .p-options { overflow: visible; padding: 1.1rem 16px 0; gap: 1.05rem; }
  .p-head h2 { font-size: 1.2rem; }
  .p-buybar { margin: 0.25rem -16px 0; padding: 0.8rem 16px calc(0.9rem + env(safe-area-inset-bottom)); }

  .cdialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; border: 0; }
  .shop-crumb { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ── Size guide ─────────────────────────────────────────────── */
.sg-link {
  align-self: flex-start; margin-top: -0.45rem; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0; border: 0; background: none; color: var(--clr-cyan); font-size: 0.82rem; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.sg-link svg { width: 1.1rem; height: 1.1rem; }
.sg-link:hover { color: #67e8f9; }
.sgdialog { width: 640px; }
.sg-inner { display: flex; flex-direction: column; max-height: calc(100dvh - 34px); }
.sg-head { position: relative; display: flex; align-items: center; gap: 0.75rem; padding: 1.1rem 4rem 0.9rem 1.25rem; border-bottom: 1px solid var(--clr-border); }
.sg-head h2 { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.04em; }
.sg-head .x-btn { top: 0.7rem; right: 0.8rem; width: 2.3rem; height: 2.3rem; }
.unit-toggle { margin-left: auto; display: inline-flex; padding: 3px; border-radius: 999px; background: var(--clr-card-2); border: 1px solid var(--clr-border); }
.unit-toggle button { border: 0; background: none; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: var(--clr-muted); }
.unit-toggle button[aria-pressed="true"] { background: var(--grad); color: #050508; }
.sg-body { overflow-y: auto; padding: 1rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: 1.4rem; }
.sg-table h3 { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.6rem; color: #c9c9e0; }
.sg-scroll { overflow-x: auto; border: 1px solid var(--clr-border); border-radius: 12px; }
.sg-scroll table { width: 100%; border-collapse: collapse; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.sg-scroll th, .sg-scroll td { padding: 0.55rem 0.7rem; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--clr-border); }
.sg-scroll tr:last-child td { border-bottom: 0; }
.sg-scroll thead th { background: rgba(168,85,247,0.12); font-weight: 700; }
.sg-scroll tbody th { text-align: left; font-weight: 600; color: #d8d8ec; position: sticky; left: 0; background: var(--clr-surface); }
.sg-fig { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; align-items: start; margin-top: 0.8rem; }
.sg-fig img { width: 100%; border-radius: 10px; background: #fff; }
.sg-fig ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.8rem; color: var(--clr-muted); }
.sg-fig li b { color: var(--clr-text); }
.sg-note { font-size: 0.78rem; color: var(--clr-muted); margin-top: 0.5rem; }
.sg-note.fit { color: #fde68a; }
@media (max-width: 760px) {
  .sgdialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; border: 0; }
  .sg-inner { height: 100%; max-height: none; }
  .sg-fig { grid-template-columns: 6.5rem 1fr; }
}

/* ── Text pages (support / privacy / terms) ─────────────────── */
.doc { width: min(760px, 100% - 32px); margin: 0 auto; padding: 2.5rem 0 3rem; flex: 1; line-height: 1.7; }
.doc h1 { font-family: var(--font-display); font-weight: 900; letter-spacing: 0.05em; font-size: clamp(1.8rem, 5vw, 2.4rem); }
.doc .lede, .doc .updated { color: var(--clr-muted); margin: 0.4rem 0 1.4rem; }
.doc h2 { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.06em; margin: 2rem 0 0.5rem; color: #e4e4f4; scroll-margin-top: 80px; }
.doc p, .doc li { color: #c4c4d8; font-size: 0.95rem; }
.doc p + p { margin-top: 0.6rem; }
.doc ul { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.4rem; }
.doc strong { color: var(--clr-text); }
.doc code { font-family: ui-monospace, monospace; font-size: 0.85em; background: var(--clr-card-2); padding: 0.05rem 0.35rem; border-radius: 4px; }
.contact-card {
  margin: 0.5rem 0 1rem; padding: 1.3rem 1.4rem; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(168,85,247,0.14), rgba(34,211,238,0.07)); border: 1px solid rgba(168,85,247,0.35);
}
.contact-card h2 { margin-top: 0; }
.contact-card .btn-primary { width: auto; margin-top: 0.9rem; text-decoration: none; }
a.cart-btn { text-decoration: none; color: var(--clr-text); }

.fit-hint { color: #fde68a; }
.pos-options.stack { grid-template-columns: 1fr; }

/* ── Front logo layouts, back logo, "+N" colours and sizes ───── */
.layouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; }
.layout-btn {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 0.6rem 0.4rem 0.5rem;
  border-radius: 12px; border: 1px solid var(--clr-border); background: var(--mock-bg);
  font-size: 0.74rem; font-weight: 700; color: #d8d8ec; text-align: center; line-height: 1.2;
  transition: border-color 0.15s, transform 0.15s;
}
.layout-btn:hover { border-color: rgba(255,255,255,0.3); transform: translateY(-1px); }
.layout-btn[aria-pressed="true"] { border-color: var(--clr-cyan); box-shadow: 0 0 0 3px rgba(34,211,238,0.2); }
.layout-btn small { font-size: 0.66rem; font-weight: 500; color: var(--clr-muted); }
.layout-art { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 2.7rem; width: 100%; }
.layout-art img { max-width: 88%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }
.layout-art.stack img:first-child { max-height: 62%; }
.layout-art.stack img:last-child { max-height: 30%; }
.layout-label { overflow-wrap: anywhere; }

.back-note { font-size: 0.8rem; color: #d8d8ec; padding: 0.55rem 0.7rem; border-radius: 10px; background: rgba(168,85,247,0.1); border: 1px solid rgba(168,85,247,0.3); }
.check-opt {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.7rem; border-radius: 10px; cursor: pointer;
  background: rgba(5,5,8,0.45); border: 1px solid var(--clr-border); font-size: 0.86rem; font-weight: 600;
}
.check-opt:has(input:checked) { border-color: var(--clr-cyan); background: rgba(34,211,238,0.1); }
.check-opt input { accent-color: var(--clr-cyan); width: 1.05rem; height: 1.05rem; flex: none; }
.check-opt img { height: 1.1rem; width: auto; max-width: 6.5rem; object-fit: contain; flex: none; }
.pos-legend { font-size: 0.74rem; font-weight: 600; color: var(--clr-muted); margin-bottom: 0.35rem; }
.pos-options.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.swatch.more, .size-btn.more { color: var(--clr-text); font-weight: 700; }
.swatch.more { background: rgba(255,255,255,0.06); font-size: 0.72rem; border-style: dashed; }
.size-btn.more { border-style: dashed; }
