/* Verbtee: monochrome storefront, one accent (the mark), square corners everywhere.
   Shape rule: all surfaces and controls are square; colour swatches are the only circles. */
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/Geist-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
/* Print face. Same files as the server renderer (OFL). */
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin-ext-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #F6F6F4;
  --surface: #FFFFFF;
  --stage: #ECECE9;
  --fg: #161617;
  --muted: #6B6B70;
  --line: #DEDEDA;
  --accent: #D4623A;
  --inverse-fg: #F6F6F4;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --print: "Newsreader", Georgia, serif;
  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
/* Theme: the configurator at the top is dark, everything below is light. One deliberate switch. */
.dark {
  --bg: #111112; --surface: #18181A; --stage: #1A1A1C; --fg: #EDEDEA; --muted: #9B9BA2;
  --line: #2A2A2E; --accent: #E2744C; --inverse-fg: #111112; color-scheme: dark;
  background: var(--bg); color: var(--fg);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* Nav: full width. Logo flush left, shop links truly centred, Contact and Cart flush right. */
.nav { position: sticky; top: 0; z-index: 10; height: 61px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-inline: 24px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .logo { justify-self: start; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--mono); font-weight: 500; font-size: 17px; letter-spacing: -.02em; }
.logo svg { width: 20px; height: 20px; color: var(--accent); overflow: visible; }
.nav-links, .nav-end { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav-end { justify-self: end; gap: 24px; }
.nav-links a, .nav-end a, .nav-cart { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"], .nav-end a:hover, .nav-cart:hover { color: var(--fg); }
.nav-cart { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0; border: 0; background: none; font-size: 14px; cursor: pointer; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; background: var(--line); color: var(--fg); font-size: 11px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.badge.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); } }
@media (max-width: 640px) {
  .nav { grid-template-columns: 1fr auto; padding-inline: 16px; }
  .nav-links { display: none; } /* the logo leads to Make yours; Classics is right below it */
  .nav-end { gap: 20px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border: 1px solid var(--fg); background: var(--fg); color: var(--inverse-fg); text-decoration: none; font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease), opacity .2s; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--fg); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #141415; font-weight: 600; }
.btn.accent:hover { filter: brightness(1.06); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn i { font-size: 18px; }
.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 18px; }
.icon-btn:hover { border-color: var(--fg); }

/* Cart drawer: slides in from the right, over a dimmed page. */
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0; border: 0; border-left: 1px solid var(--line);
  background: var(--bg); color: var(--fg); transform: translateX(100%); transition: transform .3s var(--ease); }
.drawer.open { transform: none; }
.drawer::backdrop { background: rgb(0 0 0 / 0); transition: background .3s; }
.drawer.open::backdrop { background: rgb(0 0 0 / .45); }
html:has(.drawer[open]) { overflow: hidden; }
.drawer-inner { height: 100%; display: flex; flex-direction: column; }
.drawer-head { flex: none; height: 61px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 16px; font-weight: 500; display: flex; align-items: baseline; gap: 10px; }
.drawer-head .icon-btn { border-color: transparent; }
.drawer-head .icon-btn:hover { border-color: var(--line); }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line .thumb { width: 76px; }
.line .info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.line .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.line .name { font-family: var(--print); font-weight: 500; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.line .price { flex: none; font-variant-numeric: tabular-nums; }
.line .meta { font-size: 13px; color: var(--muted); }
.line .ctrl { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.qty { display: inline-flex; align-items: center; height: 34px; border: 1px solid var(--line); }
.qty button { width: 34px; height: 100%; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; font-size: 14px; }
.qty button:hover:not(:disabled) { background: var(--surface); }
.qty button:disabled { color: var(--muted); opacity: .45; cursor: default; }
.qty output { min-width: 26px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.line .remove { color: var(--muted); background: none; border: 0; padding: 4px 0; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.line .remove:hover { color: var(--fg); }
.drawer .empty { padding: 48px 0; display: grid; justify-items: start; gap: 16px; }
.drawer .empty p { margin: 0; color: var(--muted); }
.drawer-foot { flex: none; padding: 20px 24px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: grid; gap: 6px; }
.drawer-foot .sum { display: flex; justify-content: space-between; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.drawer-foot .note { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.drawer-foot .btn { width: 100%; height: 52px; font-size: 16px; }
.drawer-foot .err { margin: 6px 0 0; color: #F08A6E; font-size: 14px; }
@media (max-width: 640px) {
  .drawer-head { padding-left: 16px; padding-right: 8px; }
  .drawer-body { padding: 0 16px; }
  .drawer-foot { padding-inline: 16px; }
}

/* Toast, bottom right: confirms an add, with a way into the cart. Phones: full width with 16px gutters. */
.toasts { position: fixed; right: 24px; bottom: calc(var(--toast-lift, 24px) + env(safe-area-inset-bottom, 0px)); z-index: 30; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; width: min(400px, calc(100vw - 32px)); padding: 12px 12px 12px 16px; background: var(--surface); color: var(--fg);
  border: 1px solid var(--line); box-shadow: 0 16px 40px rgb(0 0 0 / .28); opacity: 0; transform: translateY(8px); transition: opacity .2s ease-out, transform .35s var(--ease); }
.toast.on { opacity: 1; transform: none; }
.toast > i { font-size: 18px; color: var(--accent); flex: none; }
.toast .t-text { flex: 1; min-width: 0; display: grid; font-size: 13px; line-height: 1.4; }
.toast .t-text b { font-weight: 500; font-size: 14px; }
.toast .t-text span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast .t-action { flex: none; height: 36px; padding: 0 12px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 13px; }
.toast .t-action:hover { border-color: var(--fg); }
@media (max-width: 640px) { .toasts { left: 16px; right: 16px; bottom: calc(var(--toast-lift, 16px) + env(safe-area-inset-bottom, 0px)); } .toast { width: 100%; } }

/* Product imagery and the logo: no selecting, dragging or "save image". */
.live, .shirt, .logo, #live, .viewer { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.live text, .shirt .line { pointer-events: none; }
.shirt img, .live image { -webkit-user-drag: none; user-drag: none; }

/* Shirt render: Teemill photo + print overlay at the garment's print area */
.shirt { position: relative; background: var(--stage); overflow: hidden; aspect-ratio: 1 / 1; }
.shirt .live { width: 100%; height: 100%; display: block; transition: transform .5s var(--ease); }
.card:hover .shirt .live { transform: scale(1.03); }
.shirt .frame { position: absolute; inset: 0; transition: transform .6s var(--ease); }
.shirt img { width: 100%; height: 100%; object-fit: contain; }
.shirt .area { position: absolute; container-type: inline-size; }
.shirt .art { position: absolute; inset: 0 0 auto 0; aspect-ratio: 4 / 5; display: flex; justify-content: center; padding-top: 10cqw; }
.shirt .line { display: flex; align-items: center; white-space: nowrap; height: fit-content; line-height: 1; font-family: var(--print); font-weight: 500;
  font-size: min(11cqw, calc(92cqw / var(--em, 8))); color: var(--ink); mix-blend-mode: var(--blend); opacity: .95; }
.shirt .line svg { width: .9em; height: .9em; margin-right: .28em; flex: none; color: #D4623A; overflow: visible; position: relative; top: -.115em; }
.shirt.detail .frame { transform: scale(2); transform-origin: var(--ox, 50%) var(--oy, 34%); }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 16px; }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.card .shirt img { transition: transform .5s var(--ease); }
.card:hover .shirt img { transform: scale(1.03); }
.card .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.card .name { font-family: var(--print); font-weight: 500; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.card .price { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Pills (filters, suggestions) */
.pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; height: 34px; padding: 0 14px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 13.5px; white-space: nowrap; }
.pill:hover { border-color: var(--muted); }
.pill[aria-pressed="true"] { background: var(--fg); color: var(--inverse-fg); border-color: var(--fg); }
.pill.mono { font-family: var(--print); font-size: 15px; }

/* Inputs */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .label { font-size: 13px; color: var(--muted); }
.input { height: 48px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-family: var(--mono); font-size: 16px; width: 100%; min-width: 0; }
.input:focus { outline: none; border-color: var(--fg); }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 120px; }
.foot .wrap { padding-block: 40px 56px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; font-size: 14px; color: var(--muted); }
.foot h4 { margin: 0 0 10px; font-size: 13px; font-weight: 500; color: var(--fg); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }
.foot p { margin: 0; max-width: 40ch; }
@media (max-width: 720px) { .foot .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
