/* Butikernas designsystem (från Stockroom). Varje butik injicerar sin palett som variabler, se src/views/layout.tsx. */
:root {
  --ground: #F3F4F1;
  --surface: #FFFFFF;
  --ink: #131513;
  --muted: #5F635C;
  --line: #DEE0DA;
  --soft: #E6E8E2;
  --accent: #131513;
  --on-accent: #FFFFFF;
  --tag: #FFD23F;
  --ok: #1F8A4C;
  --warn: #C27A00;
  --idle: #8A8F87;
  --sold: #E5484D;
  --display: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display-stretch: 112%;
  --display-weight: 800;
  --body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 6px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.no-scroll { overflow: hidden; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
code { font-family: var(--mono); font-size: .9em; background: color-mix(in srgb, var(--ink) 7%, transparent); padding: .1em .35em; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: var(--ground); padding: 8px 14px; border-radius: var(--r); }
.skip:focus { top: 12px; }
.wrap { max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 880px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.warn { color: var(--sold); font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-family: var(--display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); letter-spacing: -0.025em; line-height: 1.02; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(26px, 3vw, 38px); }
.h3 { font-size: 22px; margin: 36px 0 14px; }
.eyebrow, .crumbs, .count, .card-note, .tile-label, .stock, .sku, .board-head, .eyebrow-link, .ticker-label, .countdown-label, .kpi-label, .pill {
  font-family: var(--mono); font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase;
}

/* ---------- header ---------- */
.announce { background: var(--ink); color: var(--ground); font: 500 12px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; text-align: center; padding: 9px var(--gutter); }
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding-block: 14px; }
.head-row-simple { grid-template-columns: 1fr auto; }
.logo { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 21px; letter-spacing: -0.03em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.search { justify-self: center; width: min(420px, 100%); }
.search input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; background: var(--surface); }
.search input:focus { outline: none; border-color: var(--ink); }
.head-links { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 500; }
.head-links a { text-decoration: none; }
.head-links a:hover { text-decoration: underline; }
.bag { display: inline-flex; align-items: center; gap: 6px; }
.bag b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--ground); font: 500 12px var(--mono); }
.flash { padding-block: 12px; font-weight: 500; border-bottom: 1px solid var(--line); }
.flash-ok { background: color-mix(in srgb, var(--ok) 14%, var(--ground)); }
.flash-error { background: color-mix(in srgb, var(--sold) 14%, var(--ground)); }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r); border: 1.5px solid var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .15s ease, border-color .15s ease, opacity .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--ink); }
.btn-small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn-danger { background: var(--sold); border-color: var(--sold); color: #fff; }
.btn[disabled] { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.linklike.danger { color: var(--sold); }
.link { font-size: 14px; font-weight: 600; }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field-inline span, .upload label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea, .form-inline input, .filters input, .filters select, .data-edit input, .photo-form input, select {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface);
}
.field textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.field input[type=color] { padding: 4px; height: 44px; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus, select:focus, .form-inline input:focus { outline: none; border-color: var(--ink); }
.hint { font-size: 13px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-title { font-size: clamp(28px, 3vw, 36px); }
.form-links { font-size: 14px; color: var(--muted); margin: 0; }
.form { display: grid; gap: 16px; }
.form form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px 20px; }
.field-wide { grid-column: 1 / -1; }
.field-end { align-content: end; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 16px; }
.form-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-inline input { flex: 1 1 240px; width: auto; }
.color-pair { display: flex; gap: 8px; }
.color-pair input { width: 64px; height: 44px; padding: 4px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r) + 2px); padding: clamp(18px, 3vw, 28px); }
.panel h2, .panel-title { font-size: 20px; margin-bottom: 14px; }
.panel-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h2 { margin: 0 auto 0 0; }
.auth { padding-block: clamp(32px, 6vw, 72px); display: grid; justify-items: center; }
.auth .panel { width: min(440px, 100%); }
.demo-banner { background: color-mix(in srgb, var(--tag) 40%, var(--surface)); color: #131513; border: 1px solid color-mix(in srgb, var(--tag) 70%, #000 5%); border-radius: var(--r); padding: 12px 16px; margin-bottom: 20px; font-size: 14px; }
.demo-banner code { background: #0001; }

/* ---------- shared pieces ---------- */
.section { padding-top: clamp(56px, 6vw, 96px); }
.section-tight { padding-block: clamp(28px, 4vw, 48px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 24px; }
.section-head p { margin: 0; color: var(--muted); }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 36em; margin: 18px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.media { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--soft); border-radius: var(--r); max-width: 100%; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.media .art { width: 62%; height: auto; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }

.tag { position: absolute; top: 12px; left: 12px; z-index: 1; font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 10px 7px 22px; clip-path: polygon(11px 0, 100% 0, 100% 100%, 11px 100%, 0 50%); background: var(--tag); color: #131513; }
.tag::before { content: ""; position: absolute; left: 10px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--soft); }
.tag-low { background: var(--ink); color: var(--ground); }
.tag-soon { background: var(--accent); color: var(--on-accent); }
.tag-lg { top: 18px; left: 18px; font-size: 13px; padding: 9px 14px 9px 26px; }
.tag-lg::before { left: 12px; }

.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--idle); }
.status-production::before { background: var(--warn); }
.status-tba::before { background: var(--idle); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sold) 22%, transparent); }
.dot-live { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); }
.dot-soon { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 22%, transparent); }

.pill { display: inline-block; font-size: 11px; line-height: 1; padding: 5px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); white-space: nowrap; margin-right: 4px; }
.pill-live, .pill-paid, .pill-active { background: color-mix(in srgb, var(--ok) 18%, transparent); color: color-mix(in srgb, var(--ok) 70%, var(--ink)); }
.pill-sold_out, .pill-refunded { background: color-mix(in srgb, var(--sold) 16%, transparent); color: color-mix(in srgb, var(--sold) 70%, var(--ink)); }
.pill-coming_soon, .pill-pending, .pill-low, .pill-draft { background: color-mix(in srgb, var(--warn) 18%, transparent); color: color-mix(in srgb, var(--warn) 65%, var(--ink)); }
.pill-shipped, .pill-admin, .pill-featured { background: var(--ink); color: var(--ground); }
.pill-demo { background: var(--tag); color: #131513; }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 80px); padding-block: clamp(36px, 6vw, 88px) 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; margin: 0 0 22px; }
.hero h1 { font-size: clamp(44px, 6.8vw, 100px); line-height: .92; letter-spacing: -0.035em; }
.hero-form { margin-top: 28px; max-width: 480px; }
.viewers { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 36px; }
.tile { position: relative; display: block; text-decoration: none; }
.tile:nth-child(even) { transform: translateY(36px); }
.tile .media { aspect-ratio: 1; }
.tile-label { position: absolute; left: 10px; bottom: 10px; background: var(--surface); font-size: 11px; line-height: 1.2; padding: 6px 8px; border-radius: 4px; max-width: calc(100% - 20px); }
.countdown { display: flex; gap: 10px; margin-top: 26px; }
.countdown-part { display: grid; justify-items: center; min-width: 72px; padding: 12px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.countdown-num { font: 600 32px/1 var(--mono); font-variant-numeric: tabular-nums; }
.countdown-label { font-size: 10px; color: var(--muted); margin-top: 6px; }
.countdown.done .countdown-num { color: var(--ok); }

.ticker { border-block: 1px solid var(--line); background: var(--surface); margin-top: 32px; }
.ticker-row { display: flex; align-items: center; gap: 18px; padding-block: 12px; overflow: hidden; }
.ticker-label { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; flex: none; }
.ticker-track { display: flex; gap: 28px; overflow: hidden; white-space: nowrap; font-size: 14px; mask-image: linear-gradient(to right, #000 85%, transparent); }
.ticker-item { flex: none; }
.ticker-item time { color: var(--muted); }
.ticker-item.is-new { animation: slide-in .5s ease; }
@keyframes slide-in { from { opacity: 0; transform: translateX(-12px); } }
.strip { border-bottom: 1px solid var(--line); }
.strip-row { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 8px 24px; padding-block: 18px; font-size: 14px; font-weight: 600; }
.ticker + .strip { border-top: 0; }
.story { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(20px, 5vw, 64px); align-items: start; }
.story p { margin: 0; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.55; color: var(--muted); }

.board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.board-row { display: grid; grid-template-columns: 2.2fr .6fr 1.4fr 1fr; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); text-decoration: none; font-size: 15px; }
.board-row:first-child { border-top: 0; }
a.board-row:hover { background: color-mix(in srgb, var(--ink) 4%, var(--surface)); }
.board-head { font-size: 11px; color: var(--muted); padding-block: 12px; }
.board-cat { font-weight: 600; }
.board-row > :last-child { text-align: right; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; }
.card { display: block; text-decoration: none; }
.card-media { position: relative; }
.card-media .media { aspect-ratio: 4 / 5; }
.card-body { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding-top: 12px; }
.card-name { font-weight: 600; }
.card-price { font-variant-numeric: tabular-nums; }
.card-variant { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.card-note { grid-column: 1 / -1; margin-top: 6px; font-size: 11px; line-height: 1.4; }
.card:hover .art, .tile:hover .art { transform: scale(1.06); }
.card:hover img, .tile:hover img { transform: scale(1.03); }
.empty { padding-block: 32px; color: var(--muted); }

.band { background: var(--ink); color: var(--ground); margin-top: clamp(64px, 7vw, 112px); }
.band-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px; padding-block: clamp(44px, 5vw, 72px); }
.band h2 { font-size: clamp(30px, 4vw, 52px); }
.band p { margin: 12px 0 0; max-width: 36em; color: color-mix(in srgb, var(--ground) 72%, transparent); }
.band .btn { background: var(--tag); border-color: var(--tag); color: #131513; }
.band .notify input { background: transparent; color: var(--ground); border-color: color-mix(in srgb, var(--ground) 30%, transparent); }
.band .notify input::placeholder { color: color-mix(in srgb, var(--ground) 50%, transparent); }
.band .notify input:focus { border-color: var(--tag); }

.notify { display: flex; flex-wrap: wrap; gap: 10px; }
.notify input[type=email] { flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); }
.notify input:focus { outline: none; border-color: var(--ink); }
.notify-msg { flex-basis: 100%; margin: 0; font-weight: 500; }
.notify.done input[type=email], .notify.done button { display: none; }

.faq { margin-top: 20px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding-block: 18px; font-weight: 600; font-size: 17px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--muted); }
details[open] > summary::after { content: "\2212"; }
details > p, details > ul { margin: 0 0 18px; color: var(--muted); max-width: 62ch; }
details > ul { padding-left: 18px; }

/* ---------- listing ---------- */
.page-head { padding-block: clamp(28px, 4vw, 52px) 28px; }
.page-head h1 { font-size: clamp(40px, 6vw, 80px); margin-top: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); margin: 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 12px; margin-bottom: 28px; border-block: 1px solid var(--line); }
.count { font-size: 12px; color: var(--muted); }
.toolbar select { width: auto; min-height: 40px; }

/* ---------- product ---------- */
.product { padding-top: 24px; }
.product-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: clamp(28px, 5vw, 72px); margin-top: 20px; }
.gallery { position: sticky; top: 90px; display: grid; gap: 12px; }
.gallery-main { position: relative; }
.gallery-main .media { aspect-ratio: 1; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.thumb { padding: 0; border: 1.5px solid transparent; border-radius: calc(var(--r) + 2px); background: none; cursor: pointer; }
.thumb .media { aspect-ratio: 1; }
.thumb[aria-current="true"] { border-color: var(--ink); }
.info { display: grid; gap: 18px; }
.info > * { margin: 0; }
.eyebrow-link { font-size: 12px; color: var(--muted); text-decoration: none; }
.info h1 { font-size: clamp(38px, 4.6vw, 64px); }
.info .variant { margin-top: -10px; color: var(--muted); font-size: 18px; }
.price { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stock { font-size: 12px; }
.buy { display: grid; gap: 16px; }
.variants { border: 0; padding: 0; margin: 0; }
.opts-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; padding: 0; }
.opts-list { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: inline-grid; place-items: center; min-width: 52px; min-height: 42px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r); font-size: 14px; background: var(--surface); }
.opt:hover span { border-color: var(--muted); }
.opt input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt-out span { color: var(--muted); background: linear-gradient(to top right, transparent calc(50% - .75px), var(--line) 50%, transparent calc(50% + .75px)), var(--surface); }
.buy-row { display: flex; gap: 10px; }
.qty { width: 76px; min-height: 48px; padding: 0 10px; text-align: center; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); }
.notify-box { display: grid; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.notify-box p { margin: 0; }
.desc { font-size: 17px; max-width: 60ch; }
.info details:first-of-type { border-top: 1px solid var(--line); }
.sku { font-size: 12px; color: var(--muted); }

/* ---------- cart ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer-scrim { position: absolute; inset: 0; background: rgb(0 0 0 / .35); animation: fade .2s ease; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--ground); overflow-y: auto; padding: 20px clamp(16px, 3vw, 28px) 28px; box-shadow: -20px 0 60px rgb(0 0 0 / .15); animation: drawer-in .25s cubic-bezier(.2, .7, .2, 1); }
@keyframes fade { from { opacity: 0; } }
@keyframes drawer-in { from { transform: translateX(40px); opacity: .4; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer-head h2 { font-size: 26px; }
.icon-btn { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 22px; line-height: 1; cursor: pointer; }
.cart { display: grid; gap: 18px; }
.cart-empty { display: grid; justify-items: start; gap: 12px; padding-block: 12px; }
.cart-empty p { margin: 0; color: var(--muted); }
.ship-progress p { margin: 0 0 8px; font-size: 14px; }
.bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--ok); border-radius: inherit; transition: width .3s ease; }
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cart-line { display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cart-thumb .media { aspect-ratio: 4 / 5; }
.cart-info { display: grid; gap: 4px; font-size: 14px; }
.cart-name { font-weight: 600; font-size: 15px; text-decoration: none; }
.cart-qty select { width: auto; min-height: 36px; padding: 4px 10px; margin-top: 4px; }
.cart-price { font-variant-numeric: tabular-nums; font-weight: 600; }
.totals { margin: 0; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; }
.totals .total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-weight: 700; font-size: 18px; }
.totals .total dt { color: var(--ink); }
.pay-note { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.summary { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.summary li { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.order h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 8px; }
.order .panel { margin-top: 24px; }
.address { margin: 16px 0 0; line-height: 1.6; }

/* ---------- hub & account ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.hub-card { display: grid; background: var(--card-bg); color: var(--card-ink); border-radius: calc(var(--r) + 4px); overflow: hidden; text-decoration: none; border: 1px solid color-mix(in srgb, var(--card-ink) 10%, transparent); transition: transform .2s ease, box-shadow .2s ease; }
.hub-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgb(0 0 0 / .12); }
.hub-art { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--card-soft); }
.hub-art .art { width: 48%; }
.hub-body { display: grid; gap: 2px; padding: 14px 16px 16px; justify-items: start; }
.hub-body strong { font-size: 19px; font-family: 'Archivo', system-ui, sans-serif; font-stretch: 110%; }
.hub-body strong.serif { font-family: 'Newsreader', Georgia, serif; font-stretch: 100%; }
.hub-body > span:not(.pill) { font-size: 14px; opacity: .7; margin-bottom: 8px; }
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list-row { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.account .section-head h1 { font-size: clamp(34px, 5vw, 52px); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: calc(var(--r) + 2px); background: var(--surface); }
.data { width: 100%; border-collapse: collapse; font-size: 14px; }
.data th { text-align: left; font: 500 11px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data tr:last-child td { border-bottom: 0; }
.data .num { text-align: right; }
.data a { font-weight: 500; }
.data-edit input { min-height: 38px; }
.input-num { width: 96px !important; text-align: right; }
.row-new td { background: color-mix(in srgb, var(--ink) 3%, var(--surface)); }
.thumb-cell { width: 64px; }
.thumb-cell .media { width: 48px; aspect-ratio: 1; }
.data tr.is-new td { animation: flash-row 2.5s ease; }
@keyframes flash-row { from { background: color-mix(in srgb, var(--tag) 45%, var(--surface)); } }

/* ---------- toast & footer ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--ground); padding: 12px 18px; border-radius: var(--r); font-size: 14px; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgb(0 0 0 / .2); }
.site-footer { padding-block: 48px 32px; border-top: 1px solid var(--line); }
.band + .site-footer, main:has(> .band:last-child) + .site-footer { border-top: 0; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-about { margin: 12px 0 0; max-width: 34em; color: var(--muted); font-size: 14px; }
.foot h3 { margin-bottom: 14px; font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.head-row-simple + * .legal, .site-footer > .legal:first-child { margin-top: 0; border-top: 0; padding-top: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin { grid-template-columns: 1fr; }
  .admin-nav { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-nav nav { display: flex; flex-wrap: wrap; }
  .admin-nav-foot { margin-top: 0; margin-left: auto; display: flex; align-items: center; gap: 14px; }
}
@media (max-width: 860px) {
  .head-row { grid-template-columns: 1fr auto; gap: 12px; }
  .search { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .head-links { gap: 14px; }
  .head-links a:not(.bag) { display: none; }
  .head-row-simple .head-links a { display: inline; }
  .hero, .product-grid, .band-inner, .story, .checkout-grid, .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: static; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .board-head { display: none; }
  .board-row { grid-template-columns: 1fr auto; grid-template-areas: "cat eta" "status eta"; gap: 4px 16px; }
  .board-row > :nth-child(1) { grid-area: cat; }
  .board-row > :nth-child(2) { display: none; }
  .board-row > :nth-child(3) { grid-area: status; font-size: 14px; color: var(--muted); }
  .board-row > :nth-child(4) { grid-area: eta; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
  .countdown-part { min-width: 0; flex: 1; }
}
@media (max-width: 480px) {
  .card-body { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .strip-row { justify-content: flex-start; }
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-price { grid-column: 2; }
  .filters select, .filters input { min-width: 0; width: 100%; }
  .field-inline { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- tillägg för de statiska butikerna ---------- */
.grid-few { grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); }
.collage-few { grid-template-columns: repeat(2, 1fr); }
.tile-demo .media { background: var(--soft); }
.actions-col { flex-direction: column; align-items: stretch; }
.demo-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.demo-band .eyebrow { margin-bottom: 8px; }
.demo-band h2 { max-width: 20ch; }
.demo-band p { max-width: 48ch; }
.demo-band .btn { white-space: normal; text-align: center; }
.steps { padding-left: 20px; display: grid; gap: 8px; margin: 8px 0 0; }
.steps li { line-height: 1.5; }
.prose h2 { margin-top: 32px; font-size: 22px; }
.prose p { max-width: 68ch; }
.downloads { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.cart-lines-simple li { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cart-lines-simple .cart-price { margin-left: auto; }
.media-mini { display: block; width: 64px; height: 80px; border-radius: var(--r); background: linear-gradient(135deg, var(--a, #9A9E97), var(--b, #5F635C)); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer-head h2 { margin: 0; font-size: 20px; }
.tag-digital { background: var(--accent); color: var(--on-accent); }
.pay-note { font-size: 13px; color: var(--muted); }
.info .actions { margin: 8px 0 16px; }
@media (max-width: 860px) { .collage-few { grid-template-columns: repeat(2, 1fr); } }

/* ---------- små skärmar: menyn får radbrytas i stället för att skjuta över ---------- */
@media (max-width: 640px) {
  .head-row-simple { grid-template-columns: 1fr; gap: 6px; padding-block: 10px; }
  .head-row-simple .head-links { flex-wrap: wrap; gap: 8px 14px; font-size: 14px; }
  .announce { font-size: 11px; letter-spacing: .04em; padding-inline: 12px; }
  .collage-few { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero h1 { overflow-wrap: anywhere; }
}
.gallery-more { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery-more .media { aspect-ratio: 1; }
.hub-art img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb img { display: block; width: 64px; height: 80px; object-fit: cover; border-radius: var(--r); }
