/* ============================================
   Mold: shop-fjell  (DEMO skin — "Varde")
   Editorial outdoor webstore: tinted paper + one ink + ONE accent,
   uppercase grotesk headings (500–600) + a mono accent, 4:5 images.
   Fictional shop — everything here is demo content.

   RE-SKIN = edit :root (palette, fonts, radius) — see BUILD.md §3.
   Pages are baked by bin/shop-build.py from _src/*.html.
   ============================================ */

/* CLIENT: fonts are self-hosted (no third-party request, no consent needed). Swap the files + names to re-brand. */
@font-face { font-family: 'Archivo'; src: url('assets/fonts/archivo-var.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('assets/fonts/plexmono-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('assets/fonts/plexmono-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
    /* CLIENT: palette — paper, ink and exactly ONE accent (rust here; moss = #44553A). Keep text contrast >= 4.5:1. */
    --paper: #F1EEE4;
    --paper-2: #E7E2D3;      /* image ground / quiet panels */
    --card: #FBFAF5;         /* header bar, buy box, drawer */
    --ink: #000E23;
    --ink-2: #33404F;        /* secondary text  (9.6:1 on paper) */
    --muted: #586170;        /* tertiary text   (5.4:1 on paper) */
    --line: rgba(0, 14, 35, 0.18);
    --accent: #9A3F22;       /* 6.3:1 on paper */
    --accent-ink: #FFFFFF;

    --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --mono: 'Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    --radius: 0px;           /* CLIENT: 0 = editorial; 4–8px = softer */
    --max: 1440px;
    --gutter: clamp(16px, 3vw, 40px);
    --gap: clamp(8px, 1vw, 14px);
    --section: clamp(56px, 8vw, 112px);
    --header-h: 56px;
    --ease: 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body:has(.agp-preview) { padding-bottom: 38px; } /* room for the fixed preview ribbon (gone in production) */
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding-left: 1.2em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 12px 16px; font: 500 0.75rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.eyebrow, .crumbs, .card-status, .card-attr, .price, .unit-price, .trust-k, .grid-count, .sort, .tile-count, .footer-h, .how-n, .form-ref, .gallery-nav, .pay-methods, .footer-credit { font-family: var(--mono); }
.eyebrow { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.h-page, .h-section, .h-band, .hero-title, .pdp-title, .h-small, .card-name, .wordmark, .tile-name { text-transform: uppercase; font-weight: 500; }
.h-page { font-size: clamp(2rem, 5vw, 4.25rem); line-height: 1.02; letter-spacing: -0.012em; max-width: 18ch; text-wrap: balance; }
.h-section { font-size: clamp(1.5rem, 2.6vw, 2.5rem); line-height: 1.08; letter-spacing: -0.005em; text-wrap: balance; }
.h-band { font-size: clamp(1.75rem, 3.6vw, 3.25rem); line-height: 1.04; letter-spacing: -0.01em; max-width: 20ch; text-wrap: balance; }
.h-small { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; margin-bottom: 14px; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.5; color: var(--ink-2); max-width: 56ch; }
.text-link, .link-btn { font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.link-btn { background: none; border: 0; cursor: pointer; padding: 10px 0; min-height: 24px; }
.text-link:hover, .link-btn:hover { color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border: 1px solid var(--ink); border-radius: var(--radius); font: 500 0.75rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background var(--ease), color var(--ease), border-color var(--ease); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:disabled, .btn:disabled:hover { background: transparent; border-color: var(--muted); color: var(--muted); cursor: not-allowed; }
.btn-paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-paper:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- demo stripe + announcement ---------- */
.demo-ribbon { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; padding: 8px var(--gutter); background: var(--accent); color: var(--accent-ink); font: 500 0.7rem/1.5 var(--mono); letter-spacing: 0.04em; }
.announce { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 28px; padding: 9px var(--gutter); background: var(--ink); color: var(--paper); font: 400 0.68rem/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- header: an inset bar that floats over the page ---------- */
.site-header { position: sticky; top: 10px; z-index: 100; height: var(--header-h); margin: 10px 12px calc(-1 * var(--header-h) - 10px); }
.bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 100%; padding: 0 20px; background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0, 14, 35, 0.08); }
.site-nav { display: flex; gap: 26px; }
.site-nav a, .lang-link, .cart-link, .menu-btn { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; padding: 12px 0; }
.site-nav a:hover, .lang-link:hover, .cart-link:hover, .site-nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.lang-link { padding-inline: 8px !important; } /* WCAG 2.5.8: a two-letter link still needs a 24px target */
.demo-ribbon a { padding-block: 5px; }
.wordmark { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.32em; text-decoration: none; padding-left: 0.32em; }
.bar-end { display: flex; justify-content: flex-end; gap: 22px; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; justify-self: start; }
.cart-word-short { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; height: 90vh; min-height: 560px; max-height: 1100px; color: var(--paper); background: var(--ink); overflow: hidden; }
.hero-media, .hero-media picture, .story-media, .story-media picture { position: absolute; inset: 0; }
.hero-media img, .story-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media img { object-position: 62% 50%; }
.hero::after, .story-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 14, 35, 0.78) 0%, rgba(0, 14, 35, 0.25) 42%, rgba(0, 14, 35, 0) 65%), linear-gradient(to bottom, rgba(0, 14, 35, 0.35) 0%, rgba(0, 14, 35, 0) 22%); }
.hero-inner, .story-inner { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding-bottom: clamp(36px, 6vw, 80px); }
.hero-title { font-size: clamp(2.1rem, 5.4vw, 5rem); line-height: 1; letter-spacing: -0.015em; max-width: 15ch; margin-bottom: 30px; text-wrap: balance; }

/* ---------- sections ---------- */
.section { padding: var(--section) 0 0; }
.section:last-of-type { padding-bottom: var(--section); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: clamp(20px, 3vw, 36px); }
.section-tiles { padding-top: var(--gap); }
.section-grid { padding-top: clamp(8px, 2vw, 28px); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); max-width: none; padding: 0 var(--gap); }
.tile { position: relative; display: block; aspect-ratio: 5 / 5.2; overflow: hidden; color: var(--paper); text-decoration: none; background: var(--paper-2); }
.tile picture, .tile img { width: 100%; height: 100%; object-fit: cover; }
.tile img { transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tile:hover img { transform: scale(1.03); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 14, 35, 0.6), rgba(0, 14, 35, 0) 45%); }
.tile-label { position: absolute; left: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.tile-name { font-size: clamp(1.5rem, 2.8vw, 2.6rem); line-height: 1; }
.tile-count { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- product grid + card ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px) var(--gap); }
.card { position: relative; }
.card-media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.card-media picture, .card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media img { transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover .card-media img { transform: scale(1.035); }
.card.is-soldout .card-media img { opacity: 0.55; }
.card-body { padding: 14px 2px 0; }
.card-status { min-height: 1.5em; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.card.is-soldout .card-status { color: var(--muted); }
.card-name { font-size: 0.92rem; line-height: 1.25; letter-spacing: 0.05em; }
.card-name a { text-decoration: none; }
.card-name a::after { content: ''; position: absolute; inset: 0; } /* the whole card is the link target */
.card-attr { font-size: 0.72rem; color: var(--muted); margin-top: 5px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 0.8rem; font-weight: 500; margin-top: 8px; }
.price-now.is-sale { color: var(--accent); }
.price-was { color: var(--muted); font-weight: 400; }
.price-note { font-size: 0.68rem; font-weight: 400; color: var(--muted); letter-spacing: 0.04em; }
.unit-price { font-size: 0.7rem; color: var(--muted); margin-top: 3px; }

.grid-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; margin-bottom: clamp(20px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.grid-count, .sort { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.sort { display: flex; align-items: center; gap: 10px; }
.sort select { min-height: 40px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); font: 500 0.7rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- story band + maker ---------- */
.story-band { position: relative; min-height: min(86vh, 900px); margin-top: var(--section); color: var(--paper); background: var(--ink); overflow: hidden; }
.story-inner .band-text { max-width: 52ch; margin: 18px 0 28px; font-size: 1.05rem; }
.maker-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.maker-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.maker-media picture, .maker-media img { width: 100%; height: 100%; object-fit: cover; }
.maker-text p:not(.eyebrow) { margin: 18px 0 22px; color: var(--ink-2); max-width: 48ch; }

/* ---------- trust triple ---------- */
.trust { list-style: none; padding: 0; margin-top: 22px; border-top: 1px dotted var(--ink); }
.trust li { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px dotted var(--ink); font-size: 0.82rem; line-height: 1.45; }
.trust-k { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 3px; }
.section-trust .trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--gap); border: 0; margin: 0; }
.section-trust .trust li { grid-template-columns: 1fr; gap: 4px; border-top: 1px solid var(--ink); border-bottom: 0; padding: 16px 0 0; font-size: 0.9rem; }

.demo-how { background: var(--paper-2); padding-bottom: var(--section); margin-top: var(--section); }
.demo-how-inner > p:not(.eyebrow) { max-width: 56ch; margin: 18px 0 26px; color: var(--ink-2); }

/* ---------- page head + prose ---------- */
.page-head { padding-top: clamp(110px, 12vw, 170px); padding-bottom: clamp(28px, 4vw, 56px); }
.page-head .lead { margin-top: 22px; }
.crumbs { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-underline-offset: 4px; }
.prose { max-width: calc(68ch + 2 * var(--gutter)); margin-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); padding-bottom: var(--section); }
.wrap.prose { margin-left: auto; margin-right: auto; max-width: var(--max); }
.prose > * { max-width: 68ch; }
.prose h2 { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin: 44px 0 12px; }
.prose h3 { font-size: 1rem; font-weight: 600; margin: 26px 0 8px; }
.prose p, .prose ul, .prose ol, .prose dl { margin-bottom: 14px; color: var(--ink-2); }
.prose .lead { margin-bottom: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.legal-note { padding: 14px 16px; border-left: 2px solid var(--accent); background: var(--paper-2); font-size: 0.92rem; }
.specs { display: grid; margin: 0; }
.specs > div { display: grid; grid-template-columns: minmax(110px, 0.4fr) 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.specs > div:first-child { border-top: 1px solid var(--line); }
.specs dt { font: 500 0.68rem/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.about-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 80px); padding-bottom: var(--section); }
.about-grid .prose, .contact-grid .prose { margin: 0; padding: 0; }
.about-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.about-media picture, .about-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- forms ---------- */
.form, .notify { display: grid; gap: 8px; align-content: start; }
.form label, .notify label, .opt legend { font: 500 0.68rem/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 10px; }
.form input, .form textarea, .notify input[type=email] { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--card); font-size: 1rem; }
.form button { margin-top: 14px; justify-self: start; }
.form-ok { padding: 12px 14px; border-left: 2px solid var(--accent); background: var(--paper-2); font-size: 0.88rem; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }

/* ---------- product page ---------- */
.pdp-stage { position: relative; }
.gallery-wrap { position: relative; }
.gallery { display: flex; gap: 4px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; height: min(calc(100svh - 112px), 1000px); min-height: 620px; padding-right: 470px; } /* 112px = announcement bar above + preview ribbon below */
.gallery-item { flex: 0 0 auto; height: 100%; aspect-ratio: 4 / 5; scroll-snap-align: start; overflow: hidden; }
.gallery-item picture, .gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 16px; padding: 2px 16px; background: var(--card); font-size: 0.7rem; letter-spacing: 0.1em; }
.buybox { position: absolute; right: 16px; bottom: 16px; width: 430px; max-height: calc(100% - var(--header-h) - 52px); overflow-y: auto; padding: 28px 28px 22px; background: var(--card); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 14, 35, 0.12); }
.buybox .crumbs { margin-bottom: 14px; }
.pdp-title { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.06; letter-spacing: 0.01em; margin-top: 2px; }
.pdp-tagline { margin-top: 10px; font-size: 0.95rem; color: var(--ink-2); }
.buybox .price { font-size: 1.05rem; margin-top: 16px; }
.opt { border: 0; margin-top: 18px; }
.opt legend { margin: 0 0 8px; padding: 0; }
.opt-values { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-value { position: relative; }
.opt-value input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.opt-face { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 15px; border: 1px solid var(--line); border-radius: var(--radius); font: 500 0.74rem/1 var(--mono); letter-spacing: 0.04em; transition: border-color var(--ease); }
.opt-value input:hover + .opt-face { border-color: var(--ink); }
.opt-value input:checked + .opt-face { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt-value input:focus-visible + .opt-face { outline: 2px solid var(--accent); outline-offset: 3px; }
.opt-value.is-out .opt-face { color: var(--muted); }
.opt-value.is-out .opt-face > span:not(.swatch):not(.opt-out) { text-decoration: line-through; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0, 14, 35, 0.35); }
.buy .btn, .notify { margin-top: 22px; }
.notify-lead { font-size: 0.9rem; color: var(--ink-2); }
.notify-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.notify-row .btn { margin: 0; min-height: 48px; padding: 0 18px; }
.alts { margin-top: 20px; }
.alts-h { font: 500 0.68rem/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.alts ul { list-style: none; padding: 0; }
.alts li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.alts li span { font-family: var(--mono); font-size: 0.78rem; }
.pdp-details { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 6vw, 96px); padding-top: var(--section); }
.pdp-desc p { font-size: 1.12rem; line-height: 1.6; color: var(--ink-2); margin-bottom: 16px; max-width: 58ch; }
.pdp-specs h3 { margin-top: 30px; }
.pdp-specs > p { font-size: 0.92rem; color: var(--ink-2); }
.pdp-food { grid-column: 1 / -1; max-width: 80ch; }
.pdp-story { margin-top: var(--section); padding: var(--section) 0; background: var(--ink); color: var(--paper); }
.pdp-story-inner p:not(.eyebrow) { max-width: 60ch; margin-top: 20px; font-size: 1.1rem; opacity: 0.9; }
.buybar { position: fixed; left: 0; right: 0; bottom: var(--ribbon-h, 0px); z-index: 90; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--card); border-top: 1px solid var(--line); }
.buybar-name { font-size: 0.78rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.2; }
.buybar-price { font: 500 0.78rem/1.4 var(--mono); }
.buybar .btn { min-height: 46px; padding: 0 18px; flex-shrink: 0; }

/* ---------- cart (drawer + page share the markup) ---------- */
.cart-drawer { position: fixed; inset: 0 0 0 auto; width: min(470px, 100vw); height: 100dvh; max-height: none; max-width: none; margin: 0; padding: 0; border: 0; background: var(--card); color: var(--ink); overflow-y: auto; }
.cart-drawer::backdrop { background: rgba(0, 14, 35, 0.5); }
.cart-drawer[open] { animation: drawer-in 0.32s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; background: var(--card); border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.cart-drawer .cart { padding: 8px 24px 60px; }
.cart-empty { padding: 28px 0; }
.cart-empty p { margin-bottom: 10px; }
.cart-items { list-style: none; padding: 0; }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item-media { display: block; aspect-ratio: 4 / 5; background: var(--paper-2); overflow: hidden; }
.cart-item-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.25; text-decoration: none; }
.cart-item-name:hover { text-decoration: underline; }
.cart-item-variant, .cart-item-status { font: 400 0.72rem/1.5 var(--mono); color: var(--muted); margin-top: 3px; }
.cart-item-status { color: var(--accent); }
.cart-item-row { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.cart-item-price { font: 500 0.82rem/1.4 var(--mono); white-space: nowrap; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); }
.qty button { width: 40px; height: 40px; background: none; border: 0; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.qty button:hover { background: var(--paper-2); }
.qty input { width: 46px; height: 40px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: none; text-align: center; font: 500 0.82rem/1 var(--mono); -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-summary { padding-top: 20px; }
.cart-gap { font: 500 0.74rem/1.5 var(--mono); letter-spacing: 0.02em; margin-bottom: 14px; }
.totals > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 0.92rem; }
.totals dd { font-family: var(--mono); font-size: 0.85rem; }
.totals-sum { margin-top: 6px; padding-top: 14px !important; border-top: 1px solid var(--ink); font-weight: 600; }
.totals-sum dd { font-size: 1rem; font-weight: 500; }
.totals-vat { color: var(--muted); font-size: 0.8rem !important; }
.cart-summary .btn { margin-top: 18px; }
.pay-note { margin-top: 12px; padding: 12px 14px; border-left: 2px solid var(--accent); background: var(--paper-2); font-size: 0.85rem; line-height: 1.5; }
.cart-more { display: inline-block; margin-top: 16px; }
.cart-legal { margin-top: 16px; font-size: 0.78rem; color: var(--muted); }
.cart-page { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 6vw, 96px); padding-bottom: var(--section); align-items: start; }
.cart-page .cart-item { grid-template-columns: 96px 1fr auto; }
.cart-aside .trust { margin-top: 0; }

/* ---------- how it works (demo-only page) ---------- */
.how { padding-bottom: var(--section); }
.how-steps { list-style: none; padding: 0; margin-top: clamp(40px, 6vw, 80px); display: grid; gap: clamp(40px, 6vw, 88px); }
.how-step { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 96px); align-items: center; }
.how-step:nth-child(even) .how-art { order: 2; }
.how-art { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--paper-2); padding: 24px; }
.how-n { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 14px; }
.how-text p:last-child { margin-top: 18px; color: var(--ink-2); max-width: 50ch; }
.mock { width: min(340px, 100%); background: var(--card); box-shadow: 0 20px 50px rgba(0, 14, 35, 0.14); font: 400 0.74rem/1.4 var(--mono); }
.mock-bar { padding: 10px 14px; background: var(--ink); color: var(--paper); letter-spacing: 0.06em; }
.mock-field { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.mock-field b { font-weight: 500; color: var(--ink); }
.mock-btn { margin: 12px 14px 14px; padding: 9px; text-align: center; background: var(--ink); color: var(--paper); letter-spacing: 0.1em; text-transform: uppercase; }
.mock-card { width: min(230px, 100%); padding-bottom: 12px; }
.mock-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.mock-name { padding: 10px 12px 0; font: 500 0.78rem/1.3 var(--font); text-transform: uppercase; letter-spacing: 0.05em; }
.mock-price { padding: 2px 12px 0; }
.how-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 96px); margin-top: clamp(48px, 7vw, 104px); padding-top: 28px; border-top: 1px solid var(--ink); }
.how-split ul { list-style: none; padding: 0; }
.how-split li { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.how-cost { margin-top: clamp(40px, 6vw, 80px); padding: clamp(24px, 4vw, 48px); background: var(--paper-2); }
.how-cost p { max-width: 64ch; color: var(--ink-2); margin-bottom: 22px; }
.how-cost p:last-child { margin: 0; }

/* ---------- angreskjema (printable) ---------- */
.angreskjema { max-width: 68ch; margin: 48px 0 24px; padding: clamp(20px, 3vw, 36px); border: 1px solid var(--ink); background: var(--card); }
.angreskjema h2 { margin-top: 0; }
.blank { height: 34px; border-bottom: 1px solid var(--ink); margin-bottom: 8px !important; }
.blank-inline { display: inline-block; width: 140px; border-bottom: 1px solid var(--ink); vertical-align: baseline; }
.form-line { line-height: 2.1; }
.form-ref { font-size: 0.7rem; color: var(--muted); margin: 18px 0 0 !important; }
.no-print { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(48px, 7vw, 96px) 0 28px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px var(--gutter); }
.footer-brand p:last-child { margin-top: 14px; max-width: 28ch; opacity: 0.8; }
.footer-h { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.65; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li a, .footer-seller a { display: inline-block; padding: 5px 0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-seller p { line-height: 1.9; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; margin-top: clamp(36px, 5vw, 72px); padding-top: 22px; border-top: 1px solid rgba(241, 238, 228, 0.22); }
.pay-methods, .footer-credit { font-size: 0.68rem; letter-spacing: 0.08em; opacity: 0.75; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .bar { padding: 0 14px; }
    .menu-btn { display: block; }
    .site-nav { display: none; position: absolute; top: calc(var(--header-h) + 6px); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 14px; background: var(--card); box-shadow: 0 20px 40px rgba(0, 14, 35, 0.16); }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 0.8rem; }
    .bar-end { gap: 14px; }
    .hero-media img { object-position: 76% 50%; }
    .cart-word { display: none; }
    .cart-word-short { display: inline; }
    .tiles { grid-template-columns: 1fr; }
    .tile { aspect-ratio: 4 / 4.2; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .maker-grid, .about-grid, .contact-grid, .pdp-details, .cart-page, .how-step, .how-split { grid-template-columns: 1fr; }
    .how-step:nth-child(even) .how-art { order: 0; }
    .section-trust .trust { grid-template-columns: 1fr; }
    .section-trust .trust li { padding: 14px 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .gallery { height: auto; min-height: 0; padding-right: 0; gap: 2px; }
    .gallery-item { width: 88vw; height: auto; }
    .gallery-item:only-child { width: 100vw; }
    .gallery-nav { bottom: 10px; left: 10px; }
    .buybox { position: static; width: auto; max-height: none; padding: 26px var(--gutter) 8px; background: none; box-shadow: none; }
    .buybar:not([hidden]) { display: flex; }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
    .announce span:nth-child(n+3) { display: none; }
    .wordmark { font-size: 0.95rem; letter-spacing: 0.24em; }
    .cart-item { grid-template-columns: 64px 1fr; }
    .cart-item-price { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    .agp-preview, .demo-ribbon, .announce, .site-header, .site-footer, .page-head, .no-print, .cart-drawer, .skip-link,
    .page-withdrawal .legal > :not(.angreskjema) { display: none !important; }
    body { background: #fff; padding: 0; }
    .angreskjema { border: 0; margin: 0; padding: 0; max-width: none; }
}
