:root {
  --bg: #fff; --surface: #fff; --fg: #111; --muted: #6b6b70; --line: #e6e6e8; --well: #f4f4f2;
  --accent: #111; --accent-fg: #fff; --danger: #b42318;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111113; --surface: #18181b; --fg: #f2f2f4; --muted: #a3a3ad; --line: #2e2e34; --well: #1f1f23;
    --accent: #f2f2f4; --accent-fg: #111; --danger: #ff7b6e; color-scheme: dark;
  }
}
/* The store themes the try-on window with its own colours, light and dark. */
[data-giga-tryon] { --gt-bg: var(--surface); --gt-fg: var(--fg); --gt-muted: var(--muted); --gt-line: var(--line); --gt-stage: var(--well);
  --gt-accent: var(--accent); --gt-accent-fg: var(--accent-fg); --gt-danger: var(--danger); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }

.top { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  height: 60px; padding: 0 max(20px, env(safe-area-inset-left)); background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.tag { font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
  padding: 2px 6px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line); }
#who { display: flex; align-items: center; gap: 4px 16px; font-size: 14px; min-width: 0; }
#who .name { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 24ch; }
.bag { font-variant-numeric: tabular-nums; white-space: nowrap; }

main { max-width: 1200px; margin: 0 auto; padding: 32px 20px 24px; }
h1 { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 8px; }
h2.section { font-size: 20px; letter-spacing: -.015em; margin: 0 0 16px; }
h2.section:not(:first-child) { margin-top: 48px; }
.muted { color: var(--muted); font-size: 13px; }
.err { color: var(--danger); font-size: 14px; margin: 0; }
.err:empty { display: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; max-width: 420px; margin: 8vh auto 0; }
.card p.muted { margin: 0 0 4px; }
details.card { max-width: none; margin: 56px 0 0; padding: 20px 24px; }
summary { cursor: pointer; font-weight: 600; }
form { display: grid; gap: 14px; margin-top: 20px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input { font: inherit; font-size: 16px; color: var(--fg); background: var(--bg); height: 46px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
input:focus { border-color: var(--fg); outline: none; }
button { font: inherit; font-weight: 600; cursor: pointer; padding: 0 18px; min-height: 46px; border-radius: 999px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-fg); transition: opacity .15s, background-color .15s; }
button.link { background: none; border: 0; color: var(--fg); font-weight: 400; text-decoration: underline; text-underline-offset: 3px;
  padding: 0; min-height: 0; height: 32px; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.product .ghost:focus-visible { outline-offset: -4px; outline-width: 1.5px; }
@media (hover: hover) {
  button:not(.link):not(.ghost):hover { opacity: .86; }
  .product .ghost:hover { background: var(--well); }
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 32px 16px; }
.product { display: flex; flex-direction: column; min-width: 0; }
.product img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; background: var(--well); display: block; }
.product h3 { font-size: 14px; font-weight: 500; line-height: 1.35; margin: 12px 0 0; }
.product p { margin: 2px 0 12px; }
.product .ghost { margin-top: auto; min-height: 40px; font-size: 14px; background: transparent; color: var(--fg); border-color: var(--fg); }
@media (max-width: 599px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  main { padding-top: 24px; }
  #who .name { display: none; }
}
.custom { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); align-items: end; }
footer { text-align: center; padding: 40px 20px 48px; }

.doc { max-width: 680px; padding-top: 48px; }
.doc h1 { font-size: 28px; margin-bottom: 16px; }
.doc h2 { font-size: 17px; margin: 32px 0 8px; }
.doc ul { padding-left: 20px; }
.doc li + li { margin-top: 6px; }
