/* ===========================================================
   BolaShop designsystem
   Mørk laboratorie-estetikk. Cyan som eneste signaturfarge,
   gull kun til dokumentasjon/sterilitet. Små tekniske radier.
   =========================================================== */

:root {
  --bg: #05090c;
  --bg-2: #080e13;
  --panel: #0b1116;
  --panel-2: #0e161c;
  --line: #16242d;
  --line-2: #1e3240;

  --fg: #e9eff4;
  --fg-dim: #9aa8b0;
  --fg-faint: #91a3ad;

  --cyan: #22d3ee;
  --cyan-deep: #0a7f94;
  /* Lysere gradient-ende kun for primærknapper: #04141a mot #0a7f94 gav
     kontrast 4,00, under WCAG AA-kravet på 4,5. */
  --cyan-btn-end: #17b3cc;
  --gold: #e2bb6a;
  --danger: #ff6b6b;
  --ok: #4ade80;

  --r-sm: 3px;
  --r: 7px;
  --r-lg: 12px;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --s-9: 112px;

  --display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --glow: 0 16px 38px rgba(10, 127, 148, 0.26);
  --edge: inset 0 0 16px rgba(255, 255, 255, 0.05);
  --drop: 0 22px 60px rgba(0, 0, 0, 0.34);

  --wrap: 1240px;
  --read: 68ch;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 4rem); font-weight: 300; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7ee8fa; }

img, svg, video { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cyan);
  color: #04141a;
  padding: var(--s-3) var(--s-4);
  font-weight: 700;
  z-index: 200;
}
.skip:focus { left: var(--s-4); top: var(--s-4); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-5); }

.eyebrow {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 var(--s-3);
  font-weight: 600;
}
.eyebrow.gold { color: var(--gold); }

.lede { font-size: 1.08rem; color: var(--fg-dim); max-width: 60ch; }

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Tillitsstripe ---------- */
.topbar {
  background: linear-gradient(90deg, #0d2832 0%, #123541 50%, #0d2832 100%);
  border-bottom: 1px solid rgba(34, 211, 238, 0.3);
  font-family: var(--display);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e0f8fb;
}
.topbar ul {
  display: flex;
  gap: var(--s-5);
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: var(--s-2) var(--s-5);
  flex-wrap: wrap;
}
.topbar li { display: flex; align-items: center; gap: var(--s-5); }
.topbar li + li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  flex: none;
}

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 10, 13, 0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-in {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--fg);
  font-family: var(--display);
  flex: none;
}
.brand-mark {
  width: 34px; height: 34px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #0d1c24, #061015);
  box-shadow: var(--edge);
}
.brand-name { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.04em; line-height: 1.1; }
.brand-sub {
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--fg-faint);
  line-height: 1;
}

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block;
  padding: var(--s-2) var(--s-3);
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 0.93rem;
  border-radius: var(--r);
}
.main-nav a:hover { color: var(--fg); background: var(--panel-2); }
.main-nav a[aria-current='page'] { color: var(--cyan); background: rgba(34, 211, 238, 0.08); }

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: var(--s-2) var(--s-3);
  text-decoration: none;
  color: var(--fg);
  font-size: 0.9rem;
  flex: none;
}
.cart-link:hover { border-color: var(--cyan-deep); color: var(--fg); }
.cart-count {
  background: var(--cyan);
  color: #04141a;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0 5px;
}

.burger {
  display: none;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: var(--fg);
  padding: var(--s-2) var(--s-3);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  align-items: center;
  gap: var(--s-2);
}

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.97rem;
  padding: 13px 22px;
  border-radius: var(--r);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
  line-height: 1.2;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-btn-end) 100%);
  color: #04141a;
  box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-1px); color: #04141a; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-2);
  color: var(--fg);
  box-shadow: var(--edge);
}
.btn-ghost:hover { border-color: var(--cyan-deep); color: var(--fg); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* Produktdetaljer: egne farger på kurvknappene */
form[data-add-to-cart] .qty-row > .btn-primary {
  background: #343a40;
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: none;
}
form[data-add-to-cart] .qty-row > .btn-primary:hover {
  color: var(--cyan);
  background: #40474e;
}
form[data-add-to-cart] .qty-row > .btn-ghost {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-btn-end));
  color: #04141a;
  border-color: transparent;
  box-shadow: var(--glow);
}
form[data-add-to-cart] .qty-row > .btn-ghost:hover {
  color: #04141a;
  border-color: transparent;
}

/* ---------- Kort og paneler ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--edge);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--r-sm);
  border: 1px solid;
}
.badge-sterile { color: var(--gold); border-color: rgba(226, 187, 106, 0.4); background: rgba(226, 187, 106, 0.08); }
.badge-plain { color: var(--fg-dim); border-color: var(--line-2); background: rgba(255, 255, 255, 0.02); }
.badge-stock { color: var(--ok); border-color: rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.07); }
.badge-out { color: var(--danger); border-color: rgba(255, 107, 107, 0.35); background: rgba(255, 107, 107, 0.07); }

/* ---------- Hero: asymmetrisk 7/5 ---------- */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 500px at 78% 18%, rgba(10, 127, 148, 0.2), transparent 70%),
    linear-gradient(180deg, #060d11 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
}
.hero h1 { margin-bottom: var(--s-5); }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  list-style: none;
  padding: 0;
  margin: var(--s-6) 0 0;
  font-size: 0.85rem;
  color: var(--fg-dim);
}
.hero-facts li { display: flex; align-items: center; gap: var(--s-2); }
.hero-facts li::before { content: ''; width: 5px; height: 5px; background: var(--cyan); border-radius: 50%; }
.hero-cta { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-6); }
.hero-note { font-size: 0.8rem; color: var(--fg-faint); margin-top: var(--s-5); max-width: 52ch; }

/* Spesifikasjonsoverlay i hero */
.spec-card {
  background: linear-gradient(180deg, rgba(13, 28, 36, 0.92), rgba(6, 16, 21, 0.95));
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--drop), var(--edge);
}
.spec-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-3);
}
.spec-card-head strong { font-family: var(--display); font-size: 0.95rem; font-weight: 600; }

/* Hero-bildet skal ikke dra kortet høyere enn tekstkolonnen.
   Uten denne begrensningen ble kortet 907px mot tekstens 473px. */
/* Hero-kortet: begrens høyden slik at kortet ikke blir høyere enn teksten,
   men la bildet beholde proporsjonene sine. */
.hero .ph-tall { aspect-ratio: 4 / 5; max-height: 420px; }
.spec-rows { margin: 0; display: grid; gap: 0; }
.spec-rows div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.87rem;
}
.spec-rows div:last-child { border-bottom: 0; }
.spec-rows dt { color: var(--fg-faint); }
.spec-rows dd { margin: 0; color: var(--fg); text-align: right; }

/* ---------- Bildeplassholder for produkt ---------- */
.ph {
  position: relative;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(14, 30, 38, 0.6), rgba(5, 12, 16, 0.6));
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  padding: var(--s-4);
  border-style: solid;
}
/* Bildet skal fylle rammen uten å strekkes. Gjelder både smale
   SVG-tegninger og vanlige produktfoto. */
.ph img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}
.ph-label {
  position: absolute;
  bottom: var(--s-3);
  left: var(--s-3);
  right: var(--s-3);
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  border: 1px solid var(--line);
  background: rgba(3, 9, 12, 0.82);
  border-radius: var(--r-sm);
  padding: 5px 8px;
  text-align: center;
}
.ph-sq { aspect-ratio: 1 / 1; }
.ph-tall { aspect-ratio: 3 / 4; }

/* ---------- Seksjonsrytme ---------- */
.sect { padding: var(--s-9) 0; border-bottom: 1px solid var(--line); }
.sect-tight { padding: var(--s-8) 0; }
.sect-alt { background: var(--bg-2); }
.sect-head { max-width: 62ch; margin-bottom: var(--s-7); }
.sect-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Delte seksjoner — egne klasser, slik at media queries kan kollapse dem.
   Inline grid-template-columns kan ikke overstyres og skal ikke brukes. */
.split { display: grid; gap: var(--s-8); }
.split-7-5 { grid-template-columns: 7fr 5fr; align-items: start; }
.split-6-6 { grid-template-columns: 6fr 6fr; align-items: start; }
.split-5-7 { grid-template-columns: 5fr 7fr; align-items: center; }
.split-7-4 { grid-template-columns: 7fr 4fr; align-items: start; }
.cta-row { display: grid; grid-template-columns: 1fr auto; gap: var(--s-5); align-items: center; }

.read { max-width: var(--read); }
.read h2 { margin-top: var(--s-7); }
.read h2:first-child { margin-top: 0; }
.read h3 { margin-top: var(--s-5); }
.read ul, .read ol { padding-left: 1.3em; color: var(--fg-dim); }
.read li { margin-bottom: var(--s-2); }

/* ---------- Bred spesifikasjonstabell ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
table.spec { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.spec caption {
  text-align: left;
  padding: var(--s-4) var(--s-5);
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 600;
  color: var(--fg);
}
table.spec th, table.spec td { padding: 13px var(--s-5); text-align: left; border-bottom: 1px solid var(--line); }
table.spec thead th {
  background: #071015;
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 600;
}
table.spec tbody tr:last-child th, table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec tbody tr:hover { background: rgba(34, 211, 238, 0.035); }
table.spec tbody th { font-weight: 500; color: var(--fg); }
table.spec td { color: var(--fg-dim); }

/* ---------- Katalog ---------- */
.catalog-layout { display: grid; grid-template-columns: 250px 1fr; gap: var(--s-7); align-items: start; }
.filters { position: sticky; top: 92px; }
.filter-group { border-bottom: 1px solid var(--line); padding-bottom: var(--s-4); margin-bottom: var(--s-4); }
.filter-group:last-of-type { border-bottom: 0; }
.filter-group h3 {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: var(--s-3);
}
.check { display: flex; align-items: center; gap: var(--s-2); padding: 5px 0; font-size: 0.9rem; color: var(--fg-dim); cursor: pointer; }
.check input { accent-color: var(--cyan); width: 16px; height: 16px; flex: none; }
.check:hover { color: var(--fg); }

.grid-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--cyan-deep); transform: translateY(-2px); }
.card .ph { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.card-body { padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.card-title { font-family: var(--display); font-size: 1rem; font-weight: 600; margin: 0; line-height: 1.3; }
.card-title a { color: var(--fg); text-decoration: none; }
.card-title a:hover { color: var(--cyan); }
.card-meta { font-size: 0.82rem; color: var(--fg-faint); margin: 0; }
.card-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.price { font-family: var(--display); font-size: 1.22rem; font-weight: 600; color: var(--fg); }
.price-unit { display: block; font-family: var(--text); font-size: 0.72rem; color: var(--fg-faint); font-weight: 400; }

/* ---------- Produktside ---------- */
.product-layout { display: grid; grid-template-columns: 5fr 6fr; gap: var(--s-8); align-items: start; }
.product-gallery { display: grid; gap: var(--s-3); }
.product-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.qty-row { display: flex; align-items: flex-end; gap: var(--s-3); flex-wrap: wrap; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); font-family: var(--display); font-weight: 600; }
input, select, textarea {
  font: inherit;
  font-size: 0.95rem;
  background: #060d11;
  border: 1px solid var(--line-2);
  color: var(--fg);
  border-radius: var(--r);
  padding: 11px var(--s-3);
  width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14); }
input[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: var(--danger); }
.field-err { color: var(--danger); font-size: 0.8rem; }
.qty-input { width: 92px; }
textarea { min-height: 120px; resize: vertical; }

.breadcrumb { font-size: 0.82rem; color: var(--fg-faint); padding: var(--s-4) 0; }
.breadcrumb ol { list-style: none; display: flex; gap: var(--s-2); flex-wrap: wrap; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: '/'; margin-right: var(--s-2); color: var(--line-2); }
.breadcrumb a { color: var(--fg-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan); }

/* ---------- Varsler ---------- */
.notice {
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--cyan);
  background: rgba(34, 211, 238, 0.05);
  border-radius: var(--r);
  padding: var(--s-4);
  font-size: 0.9rem;
  color: var(--fg-dim);
}
.notice.gold { border-left-color: var(--gold); background: rgba(226, 187, 106, 0.05); }
.notice.err { border-left-color: var(--danger); background: rgba(255, 107, 107, 0.06); color: #ffd9d9; }
.notice.ok { border-left-color: var(--ok); background: rgba(74, 222, 128, 0.06); }
.notice strong { color: var(--fg); }

.empty { text-align: center; padding: var(--s-8) var(--s-5); border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--fg-dim); }
.empty h2 { color: var(--fg); }

/* ---------- Kurv og kasse ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: var(--s-7); align-items: start; }
.summary { position: sticky; top: 92px; }
.sum-rows { display: grid; gap: 0; margin: 0 0 var(--s-4); }
.sum-rows > div { display: flex; justify-content: space-between; gap: var(--s-4); padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 0.9rem; }
.sum-rows dt { color: var(--fg-dim); }
.sum-rows dd { margin: 0; }
.sum-total { border-top: 1px solid var(--line-2); padding-top: var(--s-3); display: flex; justify-content: space-between; align-items: baseline; }
.sum-total .price { font-size: 1.5rem; }

.line-item { display: grid; grid-template-columns: 96px 1fr auto; gap: var(--s-4); align-items: center; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.line-item:last-child { border-bottom: 0; }
.line-item .ph { aspect-ratio: 1/1; border-radius: var(--r); }
.line-item .ph-label { display: none; }
.line-title { font-family: var(--display); font-weight: 600; font-size: 0.95rem; margin: 0 0 4px; }
.line-title a { color: var(--fg); text-decoration: none; }
.line-ctrl { display: flex; align-items: center; gap: var(--s-3); }
.linkbtn { background: none; border: 0; color: var(--fg-faint); font: inherit; font-size: 0.82rem; text-decoration: underline; cursor: pointer; padding: 4px; }
.linkbtn:hover { color: var(--danger); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form-grid .full { grid-column: 1 / -1; }
fieldset { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); margin: 0 0 var(--s-5); }
legend { font-family: var(--display); font-weight: 600; padding: 0 var(--s-2); font-size: 0.95rem; }

/* ---------- Betalingsvalg ---------- */
.coin-pick { display: grid; gap: var(--s-3); }
.coin {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  cursor: pointer;
}
.coin input[type="radio"] {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
}
.coin-code, .coin-name { display: inline; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: var(--s-3); }
details.faq { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
details.faq > summary {
  cursor: pointer;
  padding: var(--s-4);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.97rem;
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  align-items: center;
  list-style: none;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after { content: '+'; color: var(--cyan); font-size: 1.3rem; line-height: 1; flex: none; }
details.faq[open] > summary::after { content: '−'; }
details.faq > div { padding: 0 var(--s-4) var(--s-4); color: var(--fg-dim); font-size: 0.93rem; }

/* ---------- Footer ---------- */
.site-foot { margin-top: auto; background: #030809; border-top: 1px solid var(--line); padding: var(--s-8) 0 var(--s-5); font-size: 0.88rem; }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); margin-bottom: var(--s-7); text-align: center; }
.foot-grid h3 { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: var(--s-3); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.foot-grid a { color: var(--fg-dim); text-decoration: none; }
.foot-grid a:hover { color: var(--cyan); }
.foot-bar { border-top: 1px solid var(--line); padding-top: var(--s-4); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; color: var(--fg-faint); font-size: 0.82rem; }

/* Bunn-nav kun mobil */
.tabbar { display: none; }

/* ===================== RESPONSIV ===================== */
@media (max-width: 1080px) {
  .grid-products { grid-template-columns: repeat(2, 1fr); }
  .checkout-layout { grid-template-columns: 1fr 330px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #050b0e;
    border-bottom: 1px solid var(--line);
    padding: var(--s-3) var(--s-5) var(--s-5);
    backdrop-filter: none;
    z-index: 110;
  }
  .main-nav.open ul { flex-direction: column; gap: 2px; }
  .main-nav.open a { padding: var(--s-3); font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .burger { display: inline-flex; }
  .head-in { min-height: 60px; gap: var(--s-3); }
  .brand { margin-right: auto; min-width: 0; }
  .site-head { position: sticky; }

  /* Mobil: foto først, deretter tekst, deretter spesifikasjon */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: 0; }
  .product-layout { grid-template-columns: 1fr; gap: var(--s-6); }
  .catalog-layout { grid-template-columns: 1fr; gap: var(--s-5); }
  .filters { position: static; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-4); background: var(--panel); }

  /* Alle delte seksjoner kollapser til én kolonne */
  .split-7-5, .split-6-6, .split-5-7, .split-7-4 { grid-template-columns: 1fr; }
  .split { gap: var(--s-6); }
  .cta-row { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  /* Sticky sidepaneler slippes løs når de ligger under hovedinnholdet */
  .split aside.panel, .split .panel { position: static !important; top: auto !important; }
  .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .sect { padding: var(--s-8) 0; }

  /* Bunn-nav gir synlig kurv og katalog på mobil */
  .tabbar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 120;
    background: rgba(4, 9, 12, 0.97);
    border-top: 1px solid var(--line-2);
    backdrop-filter: blur(14px);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a {
    display: grid;
    place-items: center;
    gap: 3px;
    padding: 9px 4px;
    color: var(--fg-dim);
    text-decoration: none;
    font-family: var(--display);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .tabbar a[aria-current='page'] { color: var(--cyan); }
  .tabbar svg { width: 20px; height: 20px; }
  body { padding-bottom: 62px; }
}

@media (max-width: 640px) {
  :root { --s-9: 64px; --s-8: 48px; }
  .wrap { padding: 0 var(--s-4); }
  .grid-products { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .topbar ul { gap: var(--s-3); font-size: 0.6rem; }
  .topbar li { gap: var(--s-3); }
  .hero-cta .btn { width: 100%; }

  /* Header på smal skjerm: merke + burger + kurvikon må få plass på 390px.
     Teksten «Kurv» skjules; bunn-navet viser kurven med antall. */
  .head-in { gap: var(--s-2); }
  .brand-sub { display: none; }
  .cart-link { padding: var(--s-2); gap: 5px; }
  .cart-link > span:not(.cart-count) { display: none; }
  .burger span, .burger { font-size: 0.8rem; }

  .line-item { grid-template-columns: 68px 1fr; }
  .line-item .line-ctrl-wrap { grid-column: 1 / -1; }

  /* Tabell blir definisjonsliste i stedet for horisontal scroll */
  table.spec thead { display: none; }
  table.spec tbody tr { display: block; border-bottom: 1px solid var(--line); padding: var(--s-3) 0; }
  table.spec tbody tr:last-child { border-bottom: 0; }
  table.spec th, table.spec td { display: block; border: 0; padding: 3px var(--s-4); }
  table.spec tbody th { font-family: var(--display); color: var(--cyan); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
  table.spec td::before { content: attr(data-label) ': '; color: var(--fg-faint); }
}

@media (min-width: 1500px) {
  :root { --wrap: 1360px; }
}


/* ═══════════ Administrasjon ═══════════ */
.muted { color: var(--fg-dim); font-size: .9rem; }
.r { text-align: right; }
.nowrap { white-space: nowrap; }
.bad { color: var(--danger); font-weight: 600; }
.warn { color: var(--gold); font-weight: 600; }

.code {
  font-family: var(--mono); font-size: .85rem; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s-3) var(--s-4); overflow-x: auto; color: var(--cyan);
}

.btn-sm { padding: 6px 12px; font-size: .82rem; }
.btn-danger {
  background: transparent; color: var(--danger);
  border: 1px solid rgba(255, 107, 107, .4);
}
.btn-danger:hover { background: rgba(255, 107, 107, .12); border-color: var(--danger); }

.tag {
  display: inline-block; font-size: .72rem; letter-spacing: .04em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--fg-dim); white-space: nowrap;
}
.tag-betalt, .tag-levert { color: var(--ok); border-color: rgba(74, 222, 128, .45); }
.tag-sendt { color: var(--cyan); border-color: rgba(34, 211, 238, .45); }
.tag-avventer_betaling { color: var(--gold); border-color: rgba(226, 187, 106, .45); }
.tag-kansellert { color: var(--danger); border-color: rgba(255, 107, 107, .45); }

/* Innlogging */
.login-card {
  max-width: 30rem; margin: var(--s-7) auto; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-6); box-shadow: var(--drop);
}
.login-card h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: var(--s-2) 0 var(--s-4); }
.login-card .field { margin-bottom: var(--s-4); }
.login-card .btn { width: 100%; justify-content: center; }
.login-card .code { margin: var(--s-4) 0; }
/* Ramme: sidemeny + innhold */
.admin {
  display: grid; grid-template-columns: 236px minmax(0, 1fr);
  gap: var(--s-6); max-width: var(--wrap); margin: 0 auto;
  padding: var(--s-6) var(--s-5) var(--s-9);
}
.admin-side {
  position: sticky; top: var(--s-5); align-self: start;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--edge);
}
.admin-brand { display: block; text-decoration: none; margin-bottom: var(--s-5); }
.admin-brand strong {
  display: block; font-family: var(--display); font-size: 1.15rem; color: var(--fg);
}
.admin-brand span {
  display: block; font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cyan);
}
.admin-side nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.admin-side nav a {
  display: block; padding: 9px var(--s-3); border-radius: var(--r);
  color: var(--fg-dim); text-decoration: none; font-size: .94rem;
  border: 1px solid transparent;
}
.admin-side nav a:hover { color: var(--fg); background: var(--panel-2); }
.admin-side nav a[aria-current='page'] {
  color: var(--fg); background: var(--panel-2); border-color: var(--line-2);
}
.admin-out { margin-top: var(--s-5); border-top: 1px solid var(--line); padding-top: var(--s-4); }
.admin-out button {
  background: none; border: 0; color: var(--fg-faint); font: inherit;
  font-size: .88rem; cursor: pointer; padding: 0;
}
.admin-out button:hover { color: var(--danger); }

.admin-main { min-width: 0; }
.admin-head {
  display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: flex-end;
  justify-content: space-between; margin-bottom: var(--s-6);
  padding-bottom: var(--s-4); border-bottom: 1px solid var(--line);
}
.admin-head h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.1; margin: 0;
  letter-spacing: -.02em;
}
.admin-head p { color: var(--fg-dim); margin: var(--s-2) 0 0; font-size: .95rem; }
/* Nøkkeltall */
.stat-row {
  display: grid; gap: var(--s-4); margin-bottom: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.stat {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-5);
}
.stat-label {
  display: block; font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--fg-faint);
}
.stat-value {
  display: block; font-family: var(--display); font-size: 1.9rem;
  line-height: 1.15; margin-top: var(--s-2); color: var(--fg);
}
.stat-note { display: block; font-size: .85rem; color: var(--fg-dim); margin-top: 2px; }

.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-5);
}
.panel h2 {
  font-size: 1.1rem; margin: 0 0 var(--s-4);
  padding-bottom: var(--s-3); border-bottom: 1px solid var(--line);
}
.admin-cols { display: grid; gap: var(--s-5); grid-template-columns: 1.4fr 1fr; }

/* Tabeller */
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th {
  text-align: left; font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--fg-faint);
  padding: 0 var(--s-3) var(--s-3); font-weight: 600;
}
.tbl td { padding: var(--s-3); border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:hover { background: var(--panel-2); }
.p-name { display: block; font-weight: 600; color: var(--fg); text-decoration: none; }
.p-name:hover { color: var(--cyan); }
.p-slug { display: block; font-family: var(--mono); font-size: .76rem; color: var(--fg-faint); }
.tbl-products td:last-child { display: flex; gap: var(--s-2); justify-content: flex-end; }
.tbl-products form { margin: 0; }

.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li {
  display: flex; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-3) 0; border-bottom: 1px solid var(--line); font-size: .92rem;
}
.mini-list li:last-child { border-bottom: 0; }
.mini-list a { color: var(--fg); text-decoration: none; }
.mini-list a:hover { color: var(--cyan); }
.mini-list.sums { margin-top: var(--s-3); border-top: 1px solid var(--line-2); }
.mini-list.sums li { color: var(--fg-dim); }
/* Produktskjema */
.prod-form { display: grid; gap: var(--s-5); }
.prod-form fieldset { border: 1px solid var(--line); }
.prod-form legend {
  font-family: var(--display); font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cyan); padding: 0 var(--s-3);
}
.prod-form .field { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.prod-form .field:last-child { margin-bottom: 0; }
.prod-form .field > span { font-size: .9rem; font-weight: 600; color: var(--fg); }
.prod-form .field > span em { color: var(--fg-faint); font-weight: 400; font-style: normal; }
.prod-form .field small { font-size: .82rem; color: var(--fg-faint); }
.prod-form input, .prod-form select, .prod-form textarea {
  width: 100%; background: var(--bg-2); color: var(--fg);
  border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 10px var(--s-3); font: inherit; font-size: .95rem;
}
.prod-form input:focus, .prod-form select:focus, .prod-form textarea:focus {
  outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan);
}
.prod-form textarea { resize: vertical; line-height: 1.6; }
.prod-form [aria-invalid='true'] { border-color: var(--danger); }
.field-err { font-size: .85rem; color: var(--danger); font-weight: 500; }

.grid-3 {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.grid-3 .field { margin-bottom: 0; }

.checks { display: flex; flex-wrap: wrap; gap: var(--s-5); margin-top: var(--s-4); }
.check { display: flex; align-items: center; gap: var(--s-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--cyan); flex: none; }
.check span { font-size: .94rem; }

.form-bar {
  display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center;
  position: sticky; bottom: 0; background: var(--bg);
  border-top: 1px solid var(--line); padding: var(--s-4) 0;
}

/* Ordrer og meldinger */
.order-list, .msg-list { display: grid; gap: var(--s-5); }
.order-head, .msg header {
  display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: baseline;
  justify-content: space-between; margin-bottom: var(--s-4);
  padding-bottom: var(--s-3); border-bottom: 1px solid var(--line);
}
.order-head h2, .msg header h2 { margin: 0; font-size: 1.15rem; border: 0; padding: 0; }
.order-sum { font-family: var(--display); font-size: 1.3rem; color: var(--cyan); }
.order-body { display: grid; gap: var(--s-5); grid-template-columns: 1.2fr 1fr; }
.order-body h3 {
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-faint); margin: 0 0 var(--s-3);
}
.addr { font-style: normal; line-height: 1.7; font-size: .92rem; color: var(--fg-dim); }
.order-note {
  margin-top: var(--s-3); font-size: .9rem; color: var(--fg-dim);
  background: var(--bg-2); border-left: 2px solid var(--cyan);
  padding: var(--s-3); border-radius: 0 var(--r) var(--r) 0;
}
.status-form { margin-top: var(--s-4); display: grid; gap: var(--s-3); justify-items: start; }
.status-form .field { display: grid; gap: var(--s-2); width: 100%; }
.status-form span { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint); }
.status-form select {
  background: var(--bg-2); color: var(--fg); border: 1px solid var(--line-2);
  border-radius: var(--r); padding: 9px var(--s-3); font: inherit; width: 100%;
}
.msg-from { font-size: .9rem; color: var(--fg-dim); margin: 0 0 var(--s-3); }
.msg-body { line-height: 1.7; max-width: var(--read); margin: 0; }

@media (max-width: 1000px) {
  .admin { grid-template-columns: 1fr; padding: var(--s-5) var(--s-4) var(--s-9); }
  .admin-side { position: static; }
  .admin-side nav ul { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .admin-cols, .order-body { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .tbl, .tbl thead, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tr {
    border: 1px solid var(--line); border-radius: var(--r);
    margin-bottom: var(--s-3); padding: var(--s-3);
  }
  .tbl td { border: 0; padding: 4px 0; text-align: left; }
  .tbl td.r { text-align: left; }
  .tbl-products td:last-child { justify-content: flex-start; margin-top: var(--s-3); }
  .admin-head { flex-direction: column; align-items: stretch; }
}

/* ═══════════ Opptrekkskalkulator ═══════════ */
.calc-layout {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--s-6); align-items: start;
}
.calc-form { display: grid; gap: var(--s-4); }
.calc-form fieldset { border: 1px solid var(--line); margin: 0; }
.calc-form legend {
  display: flex; align-items: center; gap: var(--s-2);
  font-family: var(--display); font-weight: 600; font-size: .98rem;
  padding: 0 var(--s-2); color: var(--fg);
}
.calc-step {
  display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--cyan); color: #04141a;
  font-size: .78rem; font-weight: 700; flex: none;
}
.calc-hint { font-size: .86rem; color: var(--fg-dim); margin: 0 0 var(--s-4); }
.calc-form .field { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.calc-form .field:last-child { margin-bottom: 0; }
.calc-form .field > span { font-size: .88rem; font-weight: 600; }
.calc-pair { display: grid; grid-template-columns: 1fr 110px; gap: var(--s-3); }
.calc-pair .field { margin-bottom: 0; }
.calc-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

.calc-out { position: sticky; top: var(--s-5); }
.calc-out h2 {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-faint); margin: 0 0 var(--s-4);
  padding-bottom: var(--s-3); border-bottom: 1px solid var(--line);
}
.calc-out .field { display: grid; gap: var(--s-2); margin-bottom: var(--s-5); }
.calc-out .field > span {
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-faint);
}
.calc-result { min-height: 120px; }
.calc-empty, .calc-problem { font-size: .92rem; margin: 0; }
.calc-empty { color: var(--fg-faint); }
.calc-problem {
  color: var(--gold); background: rgba(226, 187, 106, .08);
  border-left: 2px solid var(--gold); padding: var(--s-3);
  border-radius: 0 var(--r) var(--r) 0; margin-top: var(--s-3);
}
.calc-big {
  display: flex; flex-direction: column; gap: 2px;
  margin: 0 0 var(--s-4); padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.calc-big strong {
  font-family: var(--display); font-size: 3rem; line-height: 1;
  color: var(--cyan); font-weight: 600;
}
.calc-big span {
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-faint);
}
.calc-rows { margin: 0; display: grid; gap: 0; }
.calc-rows > div {
  display: flex; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-3) 0; border-bottom: 1px solid var(--line); font-size: .92rem;
}
.calc-rows > div:last-child { border-bottom: 0; }
.calc-rows dt { color: var(--fg-dim); }
.calc-rows dd { margin: 0; font-family: var(--mono); color: var(--fg); }
.calc-note { font-size: .84rem; color: var(--fg-dim); margin: var(--s-4) 0 0; }
.calc-disclaimer {
  font-size: .8rem; color: var(--fg-faint); margin: var(--s-3) 0 0;
  padding-top: var(--s-3); border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-out { position: static; }
}
@media (max-width: 480px) {
  .calc-pair { grid-template-columns: 1fr; }
  .calc-big strong { font-size: 2.4rem; }
}

/* ═══════════ Bildeopplasting i admin ═══════════ */
.img-row {
  display: grid; grid-template-columns: 140px minmax(0, 1fr);
  gap: var(--s-4); align-items: start; margin-bottom: var(--s-4);
}
.img-prev {
  display: grid; place-items: center; aspect-ratio: 3 / 4;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); overflow: hidden; padding: var(--s-3);
}
.img-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.img-prev span { font-size: .78rem; color: var(--fg-faint); text-align: center; }
.img-upload { display: grid; gap: var(--s-4); }
.img-upload input[type="file"] {
  width: 100%; font-size: .88rem; color: var(--fg-dim);
  padding: var(--s-3); border: 1px dashed var(--line);
  border-radius: var(--r); background: transparent;
}
.img-upload input[type="file"]::file-selector-button {
  margin-right: var(--s-3); padding: 6px 12px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); color: var(--fg); font: inherit; font-size: .84rem;
}
.img-upload small { display: block; font-size: .8rem; color: var(--fg-faint); }

@media (max-width: 560px) {
  .img-row { grid-template-columns: 1fr; }
  .img-prev { aspect-ratio: 4 / 3; max-width: 180px; }
}

/* ═══════════ Innholdsredigering ═══════════ */
.grid-2 {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.grid-2 .field { margin-bottom: 0; }
.danger-zone {
  display: flex; flex-wrap: wrap; gap: var(--s-4);
  align-items: center; justify-content: space-between;
  margin-top: var(--s-6); padding: var(--s-4) var(--s-5);
  border: 1px solid rgba(255, 107, 107, .3); border-radius: var(--r-lg);
  background: rgba(255, 107, 107, .04);
}
.danger-zone strong { display: block; font-family: var(--display); }
.danger-zone p { margin: 2px 0 0; font-size: .86rem; color: var(--fg-dim); }
.foot-about p { color: var(--fg-dim); max-width: 34ch; margin: 0 0 var(--s-2); }
.foot-about p:last-child { margin-bottom: 0; }

/* Produktkort i hero + tomt bilde */
.ph-none { font-size: .8rem; color: var(--fg-faint); }
.hero-solo { grid-template-columns: 1fr; }
.showcase { display: block; text-decoration: none; color: inherit; }
.showcase .ph { margin-bottom: var(--s-4); }
.showcase-info {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s-3); flex-wrap: wrap;
}
.showcase-info strong { font-family: var(--display); font-size: 1.02rem; }
.showcase:hover .showcase-info strong { color: var(--cyan); }

/* Underkategori i filterlisten */
.check-sub { padding-left: var(--s-4); font-size: .9rem; color: var(--fg-dim); }

/* For Research Use Only */
.research-label {
  display: inline-block;
  width: fit-content;
  padding: 9px 16px;
  border: 1px solid var(--cyan);
  border-radius: 3px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: var(--s-3);
}

/* Kontaktkort */
.contact-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  color: var(--fg);
  text-decoration: none;
  min-width: 0;
  position: relative;
  padding-right: 3rem;
}
.contact-card::after {
  content: '↗';
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  color: var(--cyan);
  font-size: 1.15rem;
  line-height: 1;
}
.contact-card strong {
  font-size: clamp(1rem, 2vw, 1.3rem);
  overflow-wrap: anywhere;
}
.contact-card:hover {
  border-color: var(--cyan);
}
@media (max-width: 700px) {
  .contact-links { grid-template-columns: 1fr; }
}

/* BolaShop-logo */
.brand-logo {
  display: block;
  width: 180px;
  height: auto;
  max-height: 60px;
  object-fit: contain;
}

/* ---------- Posten-guide ---------- */
.posten-guide {
  display: grid;
  gap: var(--s-5);
  max-width: 1100px;
}

.posten-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--s-6);
  padding: var(--s-6);
}

.posten-step-text {
  min-width: 0;
}

.posten-number {
  display: inline-block;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: var(--s-3);
}

.posten-step h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  line-height: 1.25;
  margin: 0 0 var(--s-4);
}

.posten-step p {
  color: var(--fg-dim);
  max-width: 55ch;
  margin: 0 0 var(--s-4);
}

.posten-step .btn {
  margin-top: var(--s-2);
}

.posten-image-slot {
  min-width: 0;
}

.posten-image-slot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
}

.posten-step-last {
  grid-template-columns: 1fr;
  border-color: var(--cyan-deep);
}

@media (max-width: 700px) {
  .posten-step {
    grid-template-columns: 1fr;
    gap: var(--s-4);
    padding: var(--s-5);
  }
}

/* ---------- Felles premium sideoverskrift ---------- */
.page-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(36px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 85% 10%, rgba(34, 211, 238, 0.075), transparent 48%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}

.page-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent 30%, black 100%);
}

.page-intro .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.page-intro .eyebrow::before {
  content: "";
  width: 3px;
  height: 17px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.4);
  border-radius: 2px;
}

.page-intro h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 3.3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.page-intro .lede {
  margin: 18px 0 0;
  max-width: 65ch;
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  line-height: 1.7;
}

.page-intro .wrap::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  margin-top: 28px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

@media (max-width: 700px) {
  .page-intro {
    padding: 32px 0 38px;
  }

  .page-intro::before {
    opacity: 0.1;
  }

  .page-intro .wrap::after {
    margin-top: 22px;
  }
}


/* Kompakt avstand mellom sideoverskrift og hovedinnhold */
.page-content {
  padding-top: 40px;
}

@media (max-width: 700px) {
  .page-content {
    padding-top: 28px;
  }
}

/* Samme cyan-kant rundt alle fem steg i Frakt-guiden */
.posten-step {
  border-color: var(--cyan-deep);
}

/* ---------- Premium forside: hero ---------- */
.hero {
  isolation: isolate;
  background:
    radial-gradient(ellipse at 78% 32%, rgba(34, 211, 238, 0.11), transparent 48%),
    linear-gradient(180deg, #071218 0%, var(--bg) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent 10%, black 100%);
}

.hero-grid {
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(36px, 5vw, 64px) 0;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.hero .lede {
  max-width: 54ch;
  line-height: 1.75;
}

.hero .spec-card {
  border-color: var(--cyan-deep);
  box-shadow:
    0 0 45px rgba(34, 211, 238, 0.055),
    var(--drop);
}

.hero .ph-tall {
  max-height: 350px;
}

@media (max-width: 700px) {
  .hero-grid {
    padding: 32px var(--s-4);
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3.3rem);
    overflow-wrap: anywhere;
  }

  .hero-grid > div {
    min-width: 0;
  }

  .hero .ph-tall {
    max-height: 280px;
  }
}



/* ---------- Forside: informasjonsstripe ---------- */
.home-benefits {
  padding: 20px 0;
  background: #09151b;
  border-bottom: 1px solid var(--line);
}

.home-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-benefit {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, #10232c, #0b171d);
  color: var(--fg);
  text-decoration: none;
}

.home-benefit-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.06);
  color: var(--cyan);
  font-size: 1.3rem;
}

.home-benefit strong {
  display: block;
  font-family: var(--display);
  font-size: 0.95rem;
}

.home-benefit p {
  margin: 5px 0 0;
  color: var(--fg-dim);
  font-size: 0.8rem;
}

.home-benefit-link {
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.home-benefit-link:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.home-benefit-arrow {
  margin-left: auto;
  color: var(--cyan);
}

@media (max-width: 850px) {
  .home-benefits-grid {
    grid-template-columns: 1fr;
  }

  .home-benefit {
    padding: 16px;
  }
}


/* ---------- Forside: kompakt produktseksjon ---------- */
.home-products {
  padding-top: 44px;
  padding-bottom: 64px;
}

.home-products .sect-head {
  margin-bottom: 28px;
}

@media (max-width: 700px) {
  .home-products {
    padding-top: 32px;
    padding-bottom: 44px;
  }
}

/* Fjern unødvendig luft over produkter på forsiden */
section.sect.home-products {
  padding-top: 40px;
  margin-top: 0;
}

section.sect.home-products .sect-head {
  margin-top: 0;
  margin-bottom: 24px;
}

@media (max-width: 700px) {
  section.sect.home-products {
    padding-top: 28px;
  }
}


/* ---------- Forside: produktseksjon ---------- */
.home-products-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.home-products-heading .eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  letter-spacing: 0.16em;
}

.home-products-heading .sect-head {
  margin: 0;
}

.home-products-heading .sect-head h2 {
  margin-bottom: 0;
}

.home-products-all {
  flex-shrink: 0;
  margin-bottom: 4px;
}

.home-products-all span {
  margin-left: 8px;
  color: var(--cyan);
}

@media (max-width: 700px) {
  .home-products-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
  }
}


/* ---------- Forside: Posten-seksjon ---------- */
.home-shipping {
  padding: 0 0 72px;
}

.home-shipping-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 5vw, 60px);
  border: 1px solid var(--cyan-deep);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 85% 50%, rgba(34, 211, 238, 0.12), transparent 40%),
    linear-gradient(120deg, #102b35, #08171e);
}

.home-shipping-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.home-shipping-content .eyebrow {
  margin: 0 0 16px;
}

.home-shipping-content h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.home-shipping-content > p:not(.eyebrow) {
  max-width: 52ch;
  margin: 0 0 28px;
  color: var(--fg-dim);
  line-height: 1.7;
}

.home-shipping-content .btn span {
  margin-left: 8px;
}

.home-shipping-visual {
  display: grid;
  place-items: center;
  flex: 0 0 180px;
  color: var(--cyan);
  opacity: 0.75;
}

.home-shipping-visual svg {
  width: 100%;
  max-width: 180px;
  filter: drop-shadow(0 0 22px rgba(34, 211, 238, 0.2));
}

@media (max-width: 700px) {
  .home-shipping {
    padding-bottom: 44px;
  }

  .home-shipping-card {
    padding: 28px;
  }

  .home-shipping-visual {
    display: none;
  }
}

/* Forside: diskret kataloglenke under produktene */
.home-products-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}

.home-products-footer .btn {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--cyan);
  font-size: 0.9rem;
}

.home-products-footer .btn:hover {
  background: transparent;
  color: var(--fg);
  box-shadow: none;
}

@media (max-width: 700px) {
  .home-products-footer {
    justify-content: flex-start;
  }
}


/* Katalog: mobilfilter */
.catalog-filter-toggle {
  display: none;
}

@media (max-width: 900px) {
  .catalog-filter-toggle {
    display: block;
    width: 100%;
    padding: 14px 18px;
    color: var(--fg);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }

  .catalog-filter-toggle::after {
    content: "+";
    float: right;
    color: var(--cyan);
  }

  .catalog-filter-toggle[aria-expanded="true"]::after {
    content: "−";
  }

  .catalog-layout .filters {
    display: none;
  }

  .catalog-layout .filters.is-open {
    display: block;
  }
}


/* Kompakt toppbar på mobil */
@media (max-width: 640px) {
  .topbar ul {
    flex-wrap: nowrap;
    justify-content: center;
    padding: 8px 12px;
  }
  .topbar li:not(:first-child) {
    display: none;
  }
  .topbar li:first-child {
    text-align: center;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    line-height: 1.4;
  }
}


/* Tilbudspriser */
.sale-prices {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem;
}
.sale-prices del {
  color: var(--fg-faint);
  font-size: .8em;
  font-weight: 400;
}
.sale-prices strong {
  color: var(--cyan);
  font-weight: 700;
}
.sale-badge {
  background: #b91c1c;
  color: #fff;
  border-color: #b91c1c;
}

/* Betalingsvalg */
.payment-methods {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.payment-card,
.payment-crypto {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.payment-card {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.payment-crypto summary {
  cursor: pointer;
  font-weight: 650;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.payment-card:has(input:checked),
.payment-crypto:has(input:checked) {
  border-color: var(--cyan);
}
