/* ============================================================
   Denarius — designsystem
   Retning: moderne e-handel, høy tetthet. Lyst tema, bevisst valg.
   ============================================================ */

:root {
  /* Flater */
  --paper:      #F3F4F6;
  --surface:    #FFFFFF;
  --surface-2:  #EAECF0;
  --surface-3:  #E1E4EA;

  /* Tekst */
  --ink:        #14171C;
  --ink-2:      #3D4451;
  --muted:      #6B7280;

  /* Strek */
  --line:       #DDE0E6;
  --line-2:     #C7CCD5;

  /* Handling */
  --accent:     #16365E;
  --accent-hi:  #1E4A80;
  --accent-soft:#E7ECF4;

  /* Verdi */
  --brass:      #8E6F36;
  --brass-soft: #F4EFE3;

  /* Semantisk */
  --ok:         #2F6B3C;
  --ok-soft:    #E6F0E7;
  --sold:       #A23B2E;
  --sold-soft:  #F7E8E6;

  /* Type */
  --f-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-ui:      "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Mål */
  --maxw: 1480px;
  --gap:  16px;
  --r:    4px;

  --shadow-1: 0 1px 2px rgba(20,23,28,.06);
  --shadow-2: 0 2px 6px rgba(20,23,28,.08), 0 12px 32px -18px rgba(20,23,28,.3);
  --shadow-3: -8px 0 40px -12px rgba(20,23,28,.3);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.num { font-variant-numeric: tabular-nums; }

/* ---------- Toppstripe ---------- */
.topbar {
  background: var(--ink);
  color: #C9CED8;
  font-size: 12px;
  letter-spacing: .01em;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 34px; flex-wrap: wrap;
}
.topbar ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.topbar li { display: flex; align-items: center; gap: 6px; }
.topbar b { color: #fff; font-weight: 600; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: #5B9C68; flex: none; }

/* ---------- Header ---------- */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 60;
}
.header-main {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
}
.logo { display: flex; align-items: baseline; gap: 9px; }
.logo-mark {
  font-family: var(--f-display);
  font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--ink);
}
.logo-sub {
  font-size: 10px; text-transform: uppercase; letter-spacing: .16em;
  color: var(--muted); font-weight: 500;
}

/* Søk */
.search { position: relative; display: flex; }
.search input {
  width: 100%; font: inherit; font-size: 14px;
  padding: 10px 44px 10px 38px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search .ico-search {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
.search .search-go {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  background: var(--accent); color: #fff; border: 0; border-radius: 3px;
  padding: 6px 11px; font-size: 12px; font-weight: 600;
}
.search .search-go:hover { background: var(--accent-hi); }

.header-tools { display: flex; align-items: center; gap: 4px; }
.tool {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 10px; border-radius: var(--r);
  color: var(--ink-2); font-size: 13px; font-weight: 500;
  background: none; border: 0;
}
.tool:hover { background: var(--surface-2); color: var(--ink); }
.tool .count {
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}
.lang { display: flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.lang a { padding: 5px 9px; font-size: 12px; font-weight: 600; color: var(--muted); }
.lang a[aria-current] { background: var(--ink); color: #fff; }

/* Kategorinavigasjon */
.nav { border-top: 1px solid var(--line); background: var(--surface); }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.nav a {
  display: block; padding: 11px 13px; font-size: 13px; font-weight: 500;
  color: var(--ink-2); white-space: nowrap; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--accent); background: var(--surface-2); }
.nav a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.nav .nav-hi { color: var(--brass); }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r); border: 1px solid transparent;
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  transition: background .12s ease, border-color .12s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hi); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-sm { padding: 7px 12px; font-size: 12px; }

/* ---------- Seksjonshoder ---------- */
.sec { padding: 34px 0; }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 16px; flex-wrap: wrap;
}
.sec-head h2 {
  font-family: var(--f-display); font-size: 22px; font-weight: 600;
  letter-spacing: -.01em; margin: 0;
}
.sec-head .more { font-size: 13px; font-weight: 600; color: var(--accent); }
.sec-head .more:hover { text-decoration: underline; }
.eyebrow {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); font-weight: 600; margin: 0 0 5px;
}

/* ---------- Hero (kompakt — tetthet foran stemning) ---------- */
.hero {
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--brass);
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px;
  align-items: center; padding: 38px 0;
}
.hero h1 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(27px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.02em;
  margin: 0 0 12px; text-wrap: balance;
}
.hero p { color: #B9C0CC; font-size: 15px; margin: 0 0 20px; max-width: 48ch; }
.hero .hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: #4A525F; }
.hero .btn-ghost:hover { border-color: #fff; }
.hero-stats {
  display: flex; gap: 28px; margin-top: 24px; padding-top: 20px;
  border-top: 1px solid #2C333E; flex-wrap: wrap;
}
.hero-stats div strong {
  display: block; font-family: var(--f-display); font-size: 21px; color: #fff;
  font-variant-numeric: tabular-nums;
}
.hero-stats div span { font-size: 11.5px; color: #8D96A5; text-transform: uppercase; letter-spacing: .09em; }
.hero-feature {
  background: #1C2129; border: 1px solid #2C333E; border-radius: var(--r);
  padding: 14px; display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center;
}
.hero-feature img { width: 112px; height: 112px; object-fit: cover; border-radius: 3px; background: #2C333E; }
.hero-feature .tag { margin-bottom: 7px; }
.hero-feature h3 { font-family: var(--f-display); font-size: 15px; margin: 0 0 6px; line-height: 1.3; color: #fff; }
.hero-feature .price { color: #E8C98A; font-size: 17px; font-weight: 700; }

/* ---------- Merkelapper ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 3px 7px; border-radius: 2px;
}
.tag-gold   { background: var(--brass-soft); color: var(--brass); }
.tag-new    { background: var(--accent-soft); color: var(--accent); }
.tag-sold   { background: var(--sold-soft);  color: var(--sold); }
.tag-sale   { background: var(--sold); color: #fff; }
.tag-stock  { background: var(--ok-soft);    color: var(--ok); }
.hero .tag-gold { background: rgba(232,201,138,.14); color: #E8C98A; }

/* ---------- Kategorifliser ---------- */
.cats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.cat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 12px; text-align: center; transition: border-color .12s, transform .12s;
}
.cat:hover { border-color: var(--accent); transform: translateY(-1px); }
.cat .cat-ico {
  width: 34px; height: 34px; margin: 0 auto 9px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #D8C49A, #9C7F4C 62%, #6F5730);
  box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.14);
}
.cat .cat-ico.silver { background: radial-gradient(circle at 34% 30%, #E8EBEF, #AFB6C0 62%, #7E868F); }
.cat .cat-ico.paper  { background: linear-gradient(145deg, #EFE7D4, #D6C9AC); border-radius: 3px; }
.cat b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.3; margin-bottom: 2px; }
.cat span { font-size: 11px; color: var(--muted); }

/* ---------- Produktrutenett ---------- */
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  display: flex; flex-direction: column; position: relative;
  transition: border-color .12s, box-shadow .12s;
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.card:hover .card-add { opacity: 1; transform: translateY(0); }
.card-media { position: relative; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; border-radius: var(--r) var(--r) 0 0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-flags { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; }
.card-add {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  opacity: 0; transform: translateY(5px);
  transition: opacity .14s ease, transform .14s ease;
}
.card-body { padding: 11px 12px 13px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-meta { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 600; }
.card h3 {
  font-family: var(--f-display); font-size: 14px; font-weight: 500; line-height: 1.32;
  margin: 0; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card:hover h3 { color: var(--accent); }
.card-foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.price { font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-gold { color: var(--brass); }
.price-old { font-size: 12px; color: var(--muted); text-decoration: line-through; font-weight: 400; }
.stock { font-size: 11px; font-weight: 600; color: var(--ok); display: flex; align-items: center; gap: 4px; }
.stock.out { color: var(--sold); }

/* Touch: vis kjøpsknappen permanent */
@media (hover: none) {
  .card-add { opacity: 1; transform: none; position: static; margin-top: 9px; }
}

/* ---------- Kategoriside ---------- */
.crumbs { font-size: 12px; color: var(--muted); padding: 13px 0; display: flex; gap: 7px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs span[aria-current] { color: var(--ink); font-weight: 600; }

.page-head { padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.page-head h1 { font-family: var(--f-display); font-size: 28px; font-weight: 600; margin: 0 0 6px; letter-spacing: -.015em; }
.page-head p { color: var(--muted); margin: 0; font-size: 13.5px; max-width: 70ch; }

.shop { display: grid; grid-template-columns: 236px minmax(0,1fr); gap: 28px; align-items: start; padding-bottom: 48px; }

.rail { position: sticky; top: 112px; }
.filter { border-bottom: 1px solid var(--line); padding: 14px 0; }
.filter:first-child { padding-top: 0; }
.filter h3 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .11em; font-weight: 700;
  margin: 0 0 10px; color: var(--ink);
}
.filter ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.filter label {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2);
  padding: 4px 6px; margin: 0 -6px; border-radius: 3px; cursor: pointer;
}
.filter label:hover { background: var(--surface-2); }
.filter input[type=checkbox] { accent-color: var(--accent); width: 14px; height: 14px; flex: none; }
.filter .n { margin-left: auto; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.range { display: flex; align-items: center; gap: 7px; }
.range input {
  width: 100%; font: inherit; font-size: 12.5px; padding: 7px 9px;
  border: 1px solid var(--line-2); border-radius: 3px; background: var(--surface);
  font-variant-numeric: tabular-nums;
}
.range span { color: var(--muted); }

.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-bottom: 14px; flex-wrap: wrap;
}
.toolbar .res { font-size: 13px; color: var(--muted); }
.toolbar .res b { color: var(--ink); font-variant-numeric: tabular-nums; }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.sel {
  font: inherit; font-size: 13px; padding: 7px 28px 7px 10px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface);
  color: var(--ink); appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500;
  background: var(--accent-soft); color: var(--accent); border-radius: 20px; padding: 4px 10px;
}
.chip button { background: none; border: 0; color: inherit; font-size: 13px; line-height: 1; padding: 0; opacity: .7; }
.chip button:hover { opacity: 1; }

.pager { display: flex; gap: 5px; justify-content: center; padding-top: 28px; }
.pager a, .pager span {
  min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r); font-size: 13px; font-weight: 500;
  background: var(--surface); color: var(--ink-2); padding: 0 9px;
}
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager [aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

/* ---------- Produktside ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr 332px; gap: 32px; align-items: start; padding-bottom: 48px; }
.gallery-main {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  aspect-ratio: 1; overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.thumbs button {
  aspect-ratio: 1; border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
  background: var(--surface); padding: 0;
}
.thumbs button[aria-current] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info h1 {
  font-family: var(--f-display); font-size: 25px; font-weight: 600;
  line-height: 1.22; margin: 7px 0 12px; letter-spacing: -.012em; text-wrap: balance;
}
.pdp-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pdp-lead { color: var(--ink-2); font-size: 14px; line-height: 1.62; margin: 0 0 18px; }

.specs { width: 100%; border-collapse: collapse; font-size: 13px; }
.specs caption {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .11em;
  font-weight: 700; color: var(--ink); padding-bottom: 9px;
}
.specs th, .specs td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 500; color: var(--muted); width: 42%; }
.specs td { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.buybox {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 18px; position: sticky; top: 112px; box-shadow: var(--shadow-1);
}
.buybox .price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 3px; }
.buybox .price-big { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.buybox .vat { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.buybox .stock { margin-bottom: 14px; font-size: 13px; }
.qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--line-2); border-radius: var(--r); width: fit-content; margin-bottom: 11px; }
.qty button { width: 34px; height: 38px; background: none; border: 0; color: var(--ink-2); font-size: 16px; }
.qty button:hover { background: var(--surface-2); color: var(--ink); }
.qty input {
  width: 42px; height: 38px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  text-align: center; font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; background: none; color: var(--ink);
}
.buybox .btn + .btn { margin-top: 8px; }
.assure { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.assure li { display: flex; gap: 9px; font-size: 12.5px; color: var(--ink-2); align-items: flex-start; }
.assure svg { flex: none; margin-top: 1px; color: var(--accent); }

/* ---------- Minikurv (skuff fra høyre) ---------- */
.scrim {
  position: fixed; inset: 0; background: rgba(20,23,28,.42);
  opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 90;
}
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(408px, 100%);
  background: var(--surface); z-index: 100; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .24s cubic-bezier(.3,.7,.3,1);
  box-shadow: var(--shadow-3);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line); flex: none;
}
.drawer-head h2 { font-family: var(--f-display); font-size: 17px; margin: 0; font-weight: 600; }
.drawer-head .x { background: none; border: 0; font-size: 20px; line-height: 1; color: var(--muted); padding: 4px 6px; border-radius: 3px; }
.drawer-head .x:hover { background: var(--surface-2); color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 6px 18px; }
.mini-item { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mini-item img { width: 62px; height: 62px; object-fit: cover; border-radius: 3px; background: var(--surface-2); }
.mini-item h4 { font-family: var(--f-display); font-size: 13.5px; font-weight: 500; margin: 0 0 4px; line-height: 1.32; }
.mini-item .mini-meta { font-size: 11.5px; color: var(--muted); }
.mini-item .mini-right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.mini-item .rm { background: none; border: 0; font-size: 11.5px; color: var(--muted); text-decoration: underline; padding: 0; }
.mini-item .rm:hover { color: var(--sold); }
.drawer-foot { flex: none; border-top: 1px solid var(--line); padding: 16px 18px; background: var(--surface); }
.sumline { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin-bottom: 7px; }
.sumline.total { font-size: 17px; font-weight: 700; color: var(--ink); padding-top: 9px; border-top: 1px solid var(--line); margin-bottom: 13px; }
.sumline .num { font-variant-numeric: tabular-nums; }
.freeship { background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 600; padding: 8px 11px; border-radius: 3px; margin-bottom: 13px; }

/* ---------- Handlekurv ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 28px; align-items: start; padding-bottom: 48px; }
.cart-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cart-table thead th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); font-weight: 700; padding: 11px 14px; background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.cart-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: 0; }
.cart-prod { display: grid; grid-template-columns: 68px 1fr; gap: 13px; align-items: center; }
.cart-prod img { width: 68px; height: 68px; object-fit: cover; border-radius: 3px; background: var(--surface-2); }
.cart-prod h3 { font-family: var(--f-display); font-size: 14.5px; font-weight: 500; margin: 0 0 4px; line-height: 1.3; }
.cart-prod .sku { font-size: 11.5px; color: var(--muted); }
.cart-table .right { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.cart-table .rm { background: none; border: 0; color: var(--muted); font-size: 16px; line-height: 1; padding: 5px; border-radius: 3px; }
.cart-table .rm:hover { background: var(--sold-soft); color: var(--sold); }

.summary { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px; position: sticky; top: 112px; }
.summary h2 { font-family: var(--f-display); font-size: 17px; margin: 0 0 14px; font-weight: 600; }
.promo { display: flex; gap: 7px; margin: 14px 0; }
.promo input { flex: 1; min-width: 0; font: inherit; font-size: 13px; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink); }
.pay-row { display: flex; gap: 7px; align-items: center; justify-content: center; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pay {
  height: 23px; padding: 0 9px; border: 1px solid var(--line); border-radius: 3px;
  display: inline-flex; align-items: center; font-size: 10px; font-weight: 700;
  color: var(--muted); letter-spacing: .04em; background: var(--surface);
}

/* ---------- Kasse ---------- */
.steps { display: flex; gap: 0; padding: 18px 0; align-items: center; justify-content: center; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); font-weight: 500; }
.step b { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700; }
.step[aria-current] { color: var(--ink); font-weight: 600; }
.step[aria-current] b { background: var(--accent); color: #fff; }
.step.done b { background: var(--ok); color: #fff; }
.step-sep { width: 40px; height: 1px; background: var(--line-2); margin: 0 14px; }

.checkout { display: grid; grid-template-columns: minmax(0,1fr) 358px; gap: 32px; align-items: start; padding-bottom: 56px; }
.fieldset { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 16px; }
.fieldset h2 { font-family: var(--f-display); font-size: 16.5px; margin: 0 0 15px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.fieldset h2 b { width: 21px; height: 21px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.frow.one { grid-template-columns: 1fr; }
.frow.third { grid-template-columns: .5fr 1fr; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 14px; padding: 10px 12px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; margin-bottom: 9px; background: var(--surface); }
.opt:hover { border-color: var(--ink-2); }
.opt[aria-checked=true] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.opt input { accent-color: var(--accent); margin-top: 2px; flex: none; }
.opt .opt-body { flex: 1; }
.opt b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.opt span { font-size: 12px; color: var(--muted); }
.opt .opt-price { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13.5px; }

.mini-review { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: center; }
.mini-review img { width: 48px; height: 48px; object-fit: cover; border-radius: 3px; background: var(--surface-2); flex: none; }
.mini-review h4 { font-family: var(--f-display); font-size: 13px; font-weight: 500; margin: 0 0 3px; line-height: 1.3; }
.mini-review .q { font-size: 11.5px; color: var(--muted); }
.mini-review .p { margin-left: auto; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Tillitsbånd ---------- */
.trust { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.trust-item { background: var(--surface); padding: 18px 16px; display: flex; gap: 12px; align-items: flex-start; }
.trust-item svg { flex: none; color: var(--accent); margin-top: 1px; }
.trust-item b { display: block; font-size: 13px; margin-bottom: 2px; }
.trust-item span { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #A9B1BE; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 32px; padding: 40px 0 32px; }
.footer h4 { color: #fff; font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 13px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a { font-size: 13px; color: #A9B1BE; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .logo-mark { color: #fff; }
.footer .logo-sub { color: #7F8795; }
.footer p { font-size: 13px; line-height: 1.6; margin: 12px 0 0; max-width: 34ch; }
.news { display: flex; gap: 7px; margin-top: 11px; }
.news input { flex: 1; min-width: 0; font: inherit; font-size: 13px; padding: 9px 11px; border: 1px solid #343C48; border-radius: var(--r); background: #1C2129; color: #fff; }
.news input::placeholder { color: #6E7684; }
.footer-bot {
  border-top: 1px solid #262D38; padding: 15px 0; display: flex; justify-content: space-between;
  gap: 16px; font-size: 12px; color: #7F8795; flex-wrap: wrap;
}
.footer-bot a { font-size: 12px; }

/* ---------- Responsivt ---------- */
@media (max-width: 1240px) {
  .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pdp { grid-template-columns: 1fr 1fr; }
  .pdp .buybox { grid-column: 1 / -1; position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 1000px) {
  .header-main { grid-template-columns: auto 1fr; row-gap: 12px; }
  .search { grid-column: 1 / -1; order: 3; }
  .shop { grid-template-columns: 1fr; }
  .rail { position: static; }
  .cart-layout, .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .grid, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdp { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sec { padding: 24px 0; }
  .wrap { padding: 0 14px; }
  .cart-table thead { display: none; }
  .cart-table td { display: block; border-bottom: 0; padding: 8px 14px; }
  .cart-table tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .cart-table .right { text-align: left; }
}
@media (max-width: 460px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
}

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