/* StickerLab 3D storefront.
   Direction: a small print workshop. Warm paper greys, one ember accent, measurements in mono,
   and the dashed sticker cut line as the one signature detail (sticker shapes and drop zones only).
   Design pass guided by unslop by Damir Sokolovsky (@heydamir), CC BY 4.0. */
:root {
  /* warm neutral ramp */
  --bg: #f7f4ee;
  --surface: #fdfbf7;
  --surface-2: #efe9df;
  --ink: #1f1b16;
  --ink-2: #5e554a;
  --ink-3: #6f665a;
  --line: rgba(31, 27, 22, .1);
  --line-strong: rgba(31, 27, 22, .2);
  /* accent: --accent for actions and text (5:1 with white), --brand for the logo and the moments */
  --accent: #c4440c;
  --accent-hover: #ad3b0a;
  --accent-ink: #ffffff;
  --accent-soft: #f8e9de;
  --brand: #ff5b14;
  --ok: #16a34a;
  --ok-soft: #e7f3e9;
  --warn: #a16207;
  --warn-soft: #f8eedb;
  --bad: #dc2626;
  --bad-soft: #fbe9e6;
  /* shape */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(31, 27, 22, .05);
  --shadow-float: 0 8px 24px rgba(31, 27, 22, .08);
  /* type */
  --font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: var(--font);
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --fast: 150ms;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.6 var(--font); color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -.02em; }
h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.01em; }
h3 { font-size: 17px; line-height: 1.3; }
p { margin: 0 0 16px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
/* section label: quiet mono text, sentence case */
.eyebrow { font: 400 13px/1.4 var(--mono); color: var(--ink-3); margin-bottom: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* header */
.announce { background: var(--ink); color: #fff; text-align: center; font-size: 13px; padding: 8px 16px; }
.announce:empty { display: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font: 600 18px/1 var(--display); text-decoration: none; white-space: nowrap; }
.logo-mark { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; white-space: nowrap; transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.nav a:hover, .nav a.active { color: var(--ink); background: var(--surface-2); }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; text-decoration: none; font-weight: 500; padding: 0 12px; border-radius: var(--radius-sm); background: var(--ink); color: #fff; transition: background-color var(--fast) var(--ease); }
.cart-link:hover { background: #38322a; }
.cart-count { background: var(--brand); color: var(--ink); border-radius: 6px; font: 500 12px/1 var(--mono); min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 4px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); border-radius: 8px; }
@media (max-width: 1040px) {
  .menu-btn { display: block; margin-left: auto; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .site-header .container { gap: 12px; }
  .cart-link .label { display: none; }
  .container { padding: 0 16px; }
}

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 0 20px; font: 500 15px/1 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease), transform 120ms var(--ease); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #38322a; }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-link { background: none; border: 0; color: var(--ink-2); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
label { display: block; font-weight: 500; font-size: 13px; margin-bottom: 8px; }
.field { margin-bottom: 20px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=search], select, textarea {
  width: 100%; min-height: 44px; font: 15px var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 8px 12px; outline: none; transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
textarea { min-height: 112px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 24px; }
@media (max-width: 560px) { .card-pad { padding: 20px; } }

/* hero */
.hero { padding: 64px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.03em; margin-bottom: 20px; }
.hero p.lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 36rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-visual { position: relative; }
.hero-art { aspect-ratio: 1 / 1; border-radius: 20px; background: linear-gradient(180deg, #fdfbf7, #ece5d9); border: 1px solid var(--line); position: relative; overflow: hidden; }
.hero-art canvas { width: 100% !important; height: 100% !important; }
.hero-badges { display: none; }
/* the sticker lying on the print bed: one real object from the other half of the shop */
.hero-sticker { position: absolute; left: -24px; bottom: 40px; display: flex; align-items: center; gap: 12px; transform: rotate(-6deg); pointer-events: none; }
.hero-sticker .disc { width: 112px; height: 112px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 2px rgba(31, 27, 22, .12), 0 10px 24px rgba(31, 27, 22, .14); outline: 1.5px dashed var(--brand); outline-offset: 6px; }
.hero-sticker .disc span { width: 92px; height: 92px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; }
.hero-sticker .disc img { width: 52px; height: 52px; }
.hero-sticker .tag { font: 400 12px/1.4 var(--mono); color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; transform: rotate(6deg); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 40px; }
  .hero-sticker { left: 12px; bottom: 16px; }
  .hero-sticker .disc { width: 88px; height: 88px; } .hero-sticker .disc span { width: 72px; height: 72px; } .hero-sticker .disc img { width: 40px; height: 40px; }
}

/* how it works: two numbered lists, no cards */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 32px; }
.how h3 { display: flex; align-items: baseline; gap: 12px; font-size: 20px; margin-bottom: 8px; }
.how h3 a { font: 400 13px var(--mono); color: var(--accent); text-decoration: none; margin-left: auto; }
.how h3 a:hover { text-decoration: underline; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 0 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.step .num { font: 400 13px/24px var(--mono); color: var(--ink-3); grid-row: span 2; }
.step h4 { font-size: 16px; margin: 0 0 4px; line-height: 24px; }
.step p { margin: 0; font-size: 14px; color: var(--ink-2); }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; gap: 32px; } }

.materials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.material { padding: 20px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(31, 27, 22, .18); }

/* products */
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); height: 36px; padding: 0 12px; border-radius: 8px; cursor: pointer; font: 500 14px var(--font); color: var(--ink-2); transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.chip:hover { color: var(--ink); background: var(--surface-2); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.product-card { overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: border-color var(--fast) var(--ease); }
.product-card:hover { border-color: var(--line-strong); }
.product-img { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-body .cat { font: 400 12px/1.4 var(--mono); color: var(--ink-3); }
.product-body h3 { margin: 0; font-size: 17px; }
.product-body .price { margin-top: auto; padding-top: 12px; font-weight: 500; font-size: 17px; display: flex; justify-content: space-between; align-items: center; }
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.product-detail .product-img { border-radius: var(--radius); border: 1px solid var(--line); }
.product-detail .price-lg { font-size: 32px; font-weight: 500; margin: 8px 0 20px; }
@media (max-width: 820px) { .product-detail { grid-template-columns: 1fr; gap: 24px; } }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.qty button { width: 36px; height: 40px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--surface-2); }
.qty input { width: 48px; min-height: 0; border: 0; text-align: center; padding: 0; height: 40px; border-radius: 0; box-shadow: none !important; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: #15803d; }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: #b91c1c; }
.badge.accent { background: var(--accent-soft); color: var(--accent); }

/* custom order */
.custom-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 920px) { .custom-grid { grid-template-columns: 1fr; } }
/* drop zones use the cut line */
.dropzone { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); min-height: 420px; display: grid; place-items: center; text-align: center; padding: 32px; cursor: pointer; transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.dropzone:hover { border-color: var(--accent); }
.dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .icon { width: 40px; height: 40px; margin: 0 auto 16px; color: var(--ink-2); }
.dropzone h3 { font-size: 18px; margin-bottom: 4px; }
.viewer-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, #fdfbf7, #ece5d9); height: 480px; }
@media (max-width: 560px) { .viewer-wrap, .dropzone { height: 340px; min-height: 340px; } }
.viewer-wrap canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.viewer-hud { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; flex-wrap: wrap; }
.viewer-hud > * { pointer-events: auto; }
.hud-pill { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font: 400 12px/1.5 var(--mono); color: var(--ink-2); }
.viewer-tools { position: absolute; bottom: 12px; left: 12px; display: flex; gap: 4px; flex-wrap: wrap; }
.viewer-tools button { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; height: 32px; padding: 0 12px; font: 500 13px var(--font); cursor: pointer; color: var(--ink); transition: background-color var(--fast) var(--ease); }
.viewer-tools button:hover { background: var(--surface-2); }
.viewer-tools button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.viewer-loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(253, 251, 247, .8); font-weight: 500; }
.spinner { width: 24px; height: 24px; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 4px; }
.stat-row div { background: var(--surface-2); border-radius: 8px; padding: 8px 12px; }
.stat-row span { display: block; font-size: 12px; color: var(--ink-3); }
.stat-row strong { font: 500 14px var(--mono); }
.color-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.color-pick button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; }
.color-pick button.sel { box-shadow: 0 0 0 2px var(--accent); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { flex: 1 1 auto; min-height: 40px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--radius-sm); padding: 0 12px; font: 500 14px var(--font); cursor: pointer; color: var(--ink-2); transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.seg button:hover { color: var(--ink); background: var(--surface-2); }
.seg button.sel { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
input[type=range] { width: 100%; min-height: 0; accent-color: var(--accent); }
.price-box { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--line); margin-top: 8px; }
.price-box strong { font-size: 28px; font-weight: 500; }

/* cart */
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .cart-grid { grid-template-columns: 1fr; } }
.cart-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-item .thumb { width: 88px; height: 88px; border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden; display: grid; place-items: center; }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h4 { margin: 0 0 4px; font-size: 15px; word-break: break-word; }
.cart-item .meta { font-size: 13px; color: var(--ink-2); }
.cart-item .right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
@media (max-width: 560px) { .cart-item { grid-template-columns: 64px 1fr; } .cart-item .thumb { width: 64px; height: 64px; } .cart-item .right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; } }
.summary-line { display: flex; justify-content: space-between; padding: 4px 0; color: var(--ink-2); }
.summary-line.total { color: var(--ink); font-weight: 500; font-size: 18px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; }
.sticky { position: sticky; top: 88px; }
.empty { text-align: center; padding: 64px 20px; }
.radio-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 8px; cursor: pointer; font-weight: 500; font-size: 14px; background: var(--surface); transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio-card input { accent-color: var(--accent); margin: 0; }
.radio-card .p { margin-left: auto; font-weight: 500; }

/* order page */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 16px 24px; font-size: 14px; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.timeline li::after { content: ''; position: absolute; left: 7px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.progress { display: flex; gap: 4px; margin: 20px 0; }
.progress div { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.progress div.on { background: var(--accent); }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: #15803d; display: grid; place-items: center; margin-bottom: 16px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 48px; color: var(--ink-2); font-size: 14px; }
.site-footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer strong { font-weight: 600; color: var(--ink); }
.site-footer a { color: var(--ink-2); text-decoration: none; margin-right: 16px; }
.site-footer a:hover { color: var(--ink); }

/* toast */
.toast-wrap { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center; width: calc(100% - 32px); max-width: 420px; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; box-shadow: var(--shadow-float); animation: pop 240ms var(--ease); display: flex; gap: 12px; align-items: center; }
.toast.err { background: #b91c1c; }
.toast a { color: #fff; font-weight: 500; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.alert.err { background: var(--bad-soft); color: #b91c1c; }
.alert.info { background: var(--surface-2); color: var(--ink-2); }
.hidden { display: none !important; }

/* language switch */
.lang-switch { text-decoration: none; font: 500 12px/1 var(--mono); height: 32px; display: inline-grid; place-items: center; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.lang-switch:hover { color: var(--ink); background: var(--surface-2); }
@media (min-width: 1041px) { .nav { margin-right: 4px; } }
@media (max-width: 1040px) { .lang-switch { margin-left: auto; } .menu-btn { margin-left: 0; order: 3; } .cart-link { order: 4; } }

/* quote flow */
.quote-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px; margin: 8px 0 16px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--ink); }
.quote-note svg { color: var(--accent); flex: none; margin-top: 2px; }
.quote-box { border: 1px solid var(--accent); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; background: var(--surface); }
.quote-box .amount { font-size: 32px; font-weight: 500; margin: 4px 0 16px; }
.quote-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pending { color: var(--ink-3); }
.progress-labels { display: flex; justify-content: space-between; gap: 4px; }
.progress-labels span { flex: 1; text-align: center; }
.progress-labels span:first-child { text-align: left; }
.progress-labels span:last-child { text-align: right; }
@media (max-width: 560px) { .progress-labels { display: none; } }

/* ---------- stickers ---------- */
.sticker-stage { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, #fdfbf7, #ece5d9); height: 480px; }
.sticker-preview { position: absolute; inset: 52px 20px 60px; display: grid; place-items: center; }
.sticker-preview svg { width: 100%; height: 100%; display: block; }
@media (max-width: 560px) { .sticker-stage { height: 360px; } .sticker-preview { inset: 48px 8px 56px; } }
.shape-seg button { display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.shape-seg svg { width: 16px; height: 16px; flex: none; }
/* sizes are measurements: mono */
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 4px; max-height: 196px; overflow-y: auto; padding: 2px; }
.size-grid button { height: 36px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 8px; padding: 0 4px; font: 400 13px var(--mono); cursor: pointer; color: var(--ink-2); white-space: nowrap; transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.size-grid button:hover { color: var(--ink); background: var(--surface-2); }
.size-grid button.sel { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.sticker-price { display: flex; justify-content: space-between; gap: 12px; align-items: end; padding: 16px; margin: 8px 0 16px; border-radius: var(--radius-sm); background: var(--surface-2); }
.sticker-price span { display: block; }
.sticker-price strong { font-size: 28px; font-weight: 500; line-height: 1.1; }
.sticker-price div + div strong { font: 400 16px var(--mono); }
.qty-table summary { cursor: pointer; font-weight: 500; font-size: 14px; }
.qty-rows { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.qty-rows th { text-align: left; font-size: 12px; font-weight: 400; color: var(--ink-3); padding: 8px; border-bottom: 1px solid var(--line); }
.qty-rows td { padding: 8px; border-bottom: 1px solid var(--line); }
.qty-rows th:not(:first-child), .qty-rows td:not(:first-child) { text-align: right; }
.qty-rows tr[data-q] { cursor: pointer; }
.qty-rows tr[data-q]:hover td { background: var(--surface-2); }
.qty-rows tr.sel td { background: var(--accent-soft); font-weight: 500; }
.cart-item select.sticker-count { width: auto; min-height: 36px; padding: 4px 8px; font-size: 13px; }
/* home: sticker section, shapes drawn as real stickers with the cut line */
.sticker-promo { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 40px; }
.sticker-promo h2 { margin-top: 0; }
.sticker-promo .shapes { display: flex; gap: 16px; flex-wrap: nowrap; justify-content: center; align-items: center; padding: 8px; }
.sticker-promo .shapes span { display: grid; place-items: center; background: var(--brand); color: var(--ink); font: 500 12px var(--mono); border: 4px solid #fff; box-shadow: 0 1px 2px rgba(31, 27, 22, .1), 0 6px 16px rgba(31, 27, 22, .1); outline: 1.5px dashed var(--line-strong); outline-offset: 4px; }
.sticker-promo .shapes span:nth-child(2) { background: var(--ink); color: #fff; }
.sticker-promo .shapes span:nth-child(3) { background: #f3d9c6; }
.sticker-promo .shapes span:nth-child(4) { background: #fff; border-color: #fff; }
.sticker-promo .shapes span:nth-child(5) { background: #e9e2d6; }
.sticker-promo .shapes span:nth-child(odd) { transform: rotate(-4deg); }
.sticker-promo .shapes span:nth-child(even) { transform: rotate(3deg); }
@media (max-width: 1100px) { .sticker-promo .shapes { flex-wrap: wrap; } }
@media (max-width: 820px) { .sticker-promo { grid-template-columns: 1fr; padding: 24px; gap: 32px; } }
.btn.disabled { opacity: .45; pointer-events: none; }

/* section header row: title left, link right */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }

/* ---- brand ---- */
.logo-text b { color: var(--brand); font-weight: 600; }
@media (min-width: 1041px) and (max-width: 1200px) { .nav a { padding: 8px; font-size: 14px; } .cart-link .label { display: none; } }

/* ---- installable app ---- */
.install-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; font-weight: 500; }
.install-btn:hover { text-decoration: underline; }
.offline { max-width: 460px; margin: 12vh auto; padding: 0 16px; text-align: center; }
.offline img { margin: 0 auto; }
.offline h1 { margin: 20px 0 8px; }

/* ---- blog ---- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; margin-top: 24px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; transition: border-color var(--fast) var(--ease); }
.post-card:hover { border-color: var(--line-strong); }
.post-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-card img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.post-card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card-body h3 { margin: 0; font-size: 18px; }
.post-card-body p { margin: 0; flex: 1; }
.post-card-body > span:last-child { font: 400 12px var(--mono); color: var(--ink-3); }
.post-card .tag, .crumbs .tag { align-self: flex-start; font: 400 12px var(--mono); color: var(--accent); }
.post { max-width: 760px; }
.crumbs { color: var(--ink-3); margin-bottom: 16px; font-family: var(--mono); font-size: 12px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.post h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -.02em; }
.post-meta { font-family: var(--mono); font-size: 12px; }
.post-cover { width: 100%; height: auto; border-radius: var(--radius); margin: 20px 0 32px; border: 1px solid var(--line); }
.prose { font-size: 17px; line-height: 1.7; color: #2e2922; }
.prose .lead { font-size: 19px; color: var(--ink); }
.prose h2 { font-size: 24px; line-height: 1.25; margin: 40px 0 12px; color: var(--ink); }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose ul { padding-left: 24px; }
.prose li { margin: 4px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 20px 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.prose th { background: var(--surface-2); font-weight: 500; }
.prose td { font-variant-numeric: tabular-nums; }
.prose .callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; margin: 28px 0; }
.prose .callout ul { margin: 8px 0 0; }
.prose strong { font-weight: 600; }
.prose em { font-style: normal; font-family: var(--mono); font-size: .9em; }
.post-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.post-cta-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.post-more-title { margin-top: 48px; font-size: 22px; }
@media (max-width: 560px) { .prose { font-size: 16px; } .prose .lead { font-size: 17px; } }
