/* ─── Tokens (TilbudsPlan-spec.md, afsnit 2) ─────────────────────────── */
:root {
  --bg: #FFF8F0;
  --surface: #FFFFFF;
  --surface-2: #F4EDE2;
  --text: #2B2118;
  --text-2: #6E5E50;
  --border: #EFE2D2;
  --track: #EEE4D6;

  --accent: #1E874B;
  --accent-press: #176C3C;
  --on-accent: #FFFFFF;
  --accent-text: #17683A;
  --accent-soft: #E4F3E9;

  --offer: #0F6B38;
  --on-offer: #FFFFFF;
  --offer-soft-bg: #DDF1E4;
  --offer-soft-fg: #145C33;
  --check: #1E874B;

  --danger: #C8321F;
  --shadow: rgba(80, 50, 20, 0.10);

  --r-card: 28px;
  --r-badge: 15px;
  --font: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --nav-h: 76px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1511;
    --surface: #261E18;
    --surface-2: #2F251D;
    --text: #F7EDE3;
    --text-2: #C4B19E;
    --border: #3A2E25;
    --track: #3A2E25;

    --accent: #4CC27E;
    --accent-press: #3DAA6A;
    --on-accent: #0B2414;
    --accent-text: #6FD69A;
    --accent-soft: #1E3326;

    --offer: #2FA463;
    --on-offer: #07190D;
    --offer-soft-bg: #173524;
    --offer-soft-fg: #8BE0AE;
    --check: #3FAE6C;

    --danger: #FF6B5E;
    --shadow: rgba(0, 0, 0, 0.35);
  }
}

/* ─── Basis ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--accent-text); }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.app-main {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px calc(var(--nav-h) + 32px + env(safe-area-inset-bottom));
}

.muted { color: var(--text-2); }
.pad { padding: 24px 0; }
.center { text-align: center; }
.text-link { font-size: 15px; font-weight: 600; text-decoration: none; padding: 10px 0; }

h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.1; }

.eyebrow, .eyebrow-week {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-2);
}

.error-banner {
  position: sticky; top: 0; z-index: 50;
  background: var(--danger); color: #fff;
  padding: 12px 20px; font-size: 15px; font-weight: 600; text-align: center;
}

/* ─── Knapper ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 60px; padding: 0 28px; border-radius: 30px;
  font-size: 18px; font-weight: 800; text-decoration: none;
  transition: background .15s, transform .1s, opacity .15s;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-press); }
.btn-outline { background: transparent; color: var(--text); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--text-2); }
.btn-block { display: flex; width: 100%; }
.btn-pill {
  min-height: 48px; padding: 0 20px; border-radius: 24px; font-size: 16px;
  background: var(--accent); color: var(--on-accent);
}
.btn-pill:hover { background: var(--accent-press); }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 24px; flex-shrink: 0;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  box-shadow: 0 2px 8px var(--shadow);
}

/* ─── Wizard ──────────────────────────────────────────────────────────── */
.wiz { min-height: 100vh; display: flex; flex-direction: column; }
.wiz-top { padding: 20px 0 8px; }
.wiz-top-row { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.wiz-brand { font-weight: 800; font-size: 18px; color: var(--accent-text); letter-spacing: -0.3px; }
.wiz-step-label { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.dots { display: flex; gap: 6px; margin-top: 10px; }
.dot { width: 10px; height: 10px; border-radius: 5px; background: var(--track); transition: width .25s, background .25s; }
.dot.done { background: var(--accent); }
.dot.active { width: 28px; background: var(--accent); }

.wiz-body { flex: 1; padding: 28px 0 24px; }
.wiz-title { margin-bottom: 8px; }
.wiz-title:focus { outline: none; }
.wiz-lead { color: var(--text-2); margin-bottom: 28px; }

.wiz-footer {
  position: sticky; bottom: 0;
  display: flex; gap: 12px; padding: 16px 0 calc(16px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.wiz-footer .btn-primary { flex: 1; }

/* Trin a: stepper */
.stepper-card {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface-2); border-radius: var(--r-card); padding: 28px 22px;
}
.stepper-btn {
  width: 64px; height: 64px; border-radius: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--text); box-shadow: 0 2px 10px var(--shadow);
}
.stepper-plus { background: var(--accent); color: var(--on-accent); }
.stepper-btn:disabled { opacity: .35; cursor: not-allowed; }
.stepper-value { display: flex; flex-direction: column; align-items: center; }
.stepper-num { font-size: 88px; font-weight: 800; line-height: 1; letter-spacing: -3px; font-variant-numeric: tabular-nums; }
.stepper-unit { color: var(--text-2); font-weight: 600; margin-top: 4px; }

/* Trin b: budget */
.budget-field {
  display: flex; align-items: baseline; gap: 10px;
  background: var(--surface); border: 2px solid var(--accent); border-radius: var(--r-card);
  padding: 16px 24px; margin-bottom: 18px;
}
.budget-field input {
  flex: 1; min-width: 0; border: none; background: none; outline: none;
  font-size: 56px; font-weight: 800; letter-spacing: -1.5px; font-variant-numeric: tabular-nums;
}
.budget-suffix { font-size: 24px; font-weight: 700; color: var(--text-2); }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 48px; padding: 0 20px; border-radius: 24px;
  background: var(--surface); border: 2px solid var(--border);
  font-size: 16px; font-weight: 700;
}
.chip-lg { min-height: 56px; padding: 0 22px; border-radius: 28px; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.info-box {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 22px;
  background: var(--accent-soft); color: var(--text); border-radius: 18px; padding: 14px 16px; font-size: 15px;
}
.info-box svg { color: var(--accent-text); flex-shrink: 0; margin-top: 1px; }

/* Trin c: butikker */
.search-field {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 2px solid var(--border); border-radius: 28px;
  padding: 0 18px; min-height: 56px; margin-bottom: 14px; color: var(--text-2);
}
.search-field:focus-within { border-color: var(--accent); }
.search-field input { flex: 1; min-width: 0; border: none; background: none; outline: none; font-size: 17px; color: var(--text); }

.limit-banner {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  background: var(--accent-soft); color: var(--accent-text); border-radius: 18px;
  padding: 14px 16px; font-size: 15px; font-weight: 700; text-decoration: none;
}

.store-list { display: flex; flex-direction: column; gap: 10px; }
.store-row {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; text-align: left;
  background: var(--surface); border: 2px solid var(--border); border-radius: 22px; padding: 12px 16px;
  transition: border-color .15s, background .15s, opacity .15s;
}
.store-row[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.store-row.locked { opacity: .45; cursor: not-allowed; }
.store-meta { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.store-name { font-weight: 700; }
.store-type { font-size: 14px; color: var(--text-2); }
.check-circle {
  width: 30px; height: 30px; border-radius: 15px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--border); color: var(--text-2);
}
.store-row[aria-pressed="true"] .check-circle { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.store-row.locked .check-circle { border: none; }

.store-tile {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px;
  background: var(--surface-2); color: var(--text);
}
.store-tile-lg { width: 52px; height: 52px; border-radius: 16px; font-size: 24px; }

/* Trin d: udstyr */
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 140px; border-radius: var(--r-card);
  background: var(--surface); border: 2px solid var(--border);
  transition: border-color .15s, background .15s;
}
.tile-icon { color: var(--text-2); }
.tile-label { font-weight: 700; }
.tile[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.tile[aria-pressed="true"] .tile-icon { color: var(--accent-text); }
.tile-badge {
  position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 13px;
  display: none; align-items: center; justify-content: center;
  background: var(--accent); color: var(--on-accent);
}
.tile[aria-pressed="true"] .tile-badge { display: flex; }

/* Trin e: præferencer */
.badge-optional {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: var(--r-badge);
  background: var(--surface-2); color: var(--text-2);
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
}
.summary {
  margin-top: 32px; padding: 16px 18px; border-radius: 18px;
  background: var(--surface-2); color: var(--text-2); font-size: 15px; font-weight: 600;
}

/* ─── Indlæsning ──────────────────────────────────────────────────────── */
.loading { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 0; }
.basket-anim { position: relative; width: 200px; height: 190px; margin-bottom: 28px; color: var(--accent); }
.halo {
  position: absolute; left: 50%; top: 58%; width: 170px; height: 170px; margin: -85px 0 0 -85px;
  border-radius: 50%; background: var(--accent-soft); animation: pulse 2.2s ease-in-out infinite;
}
.basket { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); }
.food {
  position: absolute; top: 0; width: 26px; height: 26px; border-radius: 50%;
  animation: drop 1.8s cubic-bezier(.5, 0, .75, 1) infinite;
}
.food-1 { left: 66px; background: #F08A3C; }
.food-2 { left: 88px; background: #F4B53F; animation-delay: .6s; }
.food-3 { left: 110px; background: #E5694E; animation-delay: 1.2s; }
@keyframes drop {
  0% { transform: translateY(-10px); opacity: 0; }
  15% { opacity: 1; }
  70% { transform: translateY(105px); opacity: 1; }
  100% { transform: translateY(105px); opacity: 0; }
}
@keyframes pulse { 0%, 100% { transform: scale(.92); opacity: .7; } 50% { transform: scale(1.05); opacity: 1; } }

.loading-title { font-size: 28px; max-width: 320px; margin-bottom: 26px; }
.status-list { display: flex; flex-direction: column; gap: 12px; text-align: left; width: 100%; max-width: 340px; }
.status-row { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.status-row.pending { color: var(--text-2); }
.status-icon {
  width: 30px; height: 30px; border-radius: 15px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.status-row.done .status-icon { background: var(--accent); color: var(--on-accent); }
.status-row.error .status-icon { background: var(--danger); color: #fff; }
.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid var(--track); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
.pending-dot { width: 10px; height: 10px; border-radius: 5px; background: var(--track); }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-error { margin-top: 26px; max-width: 340px; }
.loading-error p { color: var(--danger); font-weight: 600; margin-bottom: 16px; }
.loading-actions { display: flex; flex-direction: column; gap: 10px; }

/* ─── Ugeplan ─────────────────────────────────────────────────────────── */
.budget-bar {
  position: sticky; top: 0; z-index: 20;
  margin: 0 -20px; padding: 14px 20px 16px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.budget-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.budget-left { font-size: 15px; font-weight: 700; color: var(--accent-text); }
.budget-amounts { justify-content: flex-start; margin: 2px 0 10px; }
.budget-sum { font-size: 30px; font-weight: 800; letter-spacing: -0.8px; font-variant-numeric: tabular-nums; }
.budget-total { font-size: 17px; font-weight: 600; color: var(--text-2); }
.budget-bar.over .budget-left, .budget-bar.over .budget-sum { color: var(--danger); }
.budget-bar.over .progress-fill { background: var(--danger); }

.progress { height: 10px; border-radius: 5px; background: var(--track); overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: 5px; background: var(--accent); transition: width .35s ease; }

.plan-header { padding: 26px 0 22px; }
.plan-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 6px; }
.plan-meta { color: var(--text-2); margin-bottom: 16px; }

.day-list { display: flex; flex-direction: column; gap: 18px; }
.day-card {
  background: var(--surface); border-radius: var(--r-card); overflow: hidden;
  box-shadow: 0 4px 18px var(--shadow);
}
.day-photo {
  position: relative; height: 184px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--from), var(--to));
}
.day-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.day-emoji { font-size: 76px; line-height: 1; filter: drop-shadow(0 6px 12px rgba(80, 30, 0, .25)); }
.badge-offer, .store-pill {
  position: absolute; top: 14px; padding: 6px 12px; border-radius: var(--r-badge);
  font-size: 13px; font-weight: 800;
}
.badge-offer { left: 14px; background: var(--offer); color: var(--on-offer); }
.store-pill {
  right: 14px; background: rgba(255, 255, 255, .9); color: #2B2118;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.day-body { padding: 16px 20px 18px; }
.day-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.day-weekday {
  display: block; font-size: 13px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--accent-text);
}
.day-name { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; line-height: 1.2; margin-top: 2px; }
.day-price { text-align: right; flex-shrink: 0; }
.day-price-num { display: block; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.day-price-sub { font-size: 13px; color: var(--text-2); }
.day-meta { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 15px; color: var(--text-2); }

.day-card.empty {
  background: transparent; box-shadow: none; border: 2px dashed var(--border); padding: 20px;
}
.day-empty-title { font-weight: 700; color: var(--text-2); margin-top: 4px; }
.day-card.empty .muted { font-size: 15px; }

.premium-card {
  margin-top: 32px; padding: 24px 20px; border-radius: var(--r-card); background: var(--surface-2);
}
.premium-card h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; }
.premium-card > .muted { font-size: 15px; margin: 4px 0 18px; }
.premium-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.premium-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px;
  background: var(--surface); color: var(--text-2); font-size: 15px;
}
.premium-icon, .premium-lock { flex-shrink: 0; display: flex; }
.premium-text { flex: 1; }
.premium-card .btn-outline { min-height: 56px; font-size: 17px; }

/* ─── Indkøbsliste ────────────────────────────────────────────────────── */
.list-header {
  position: sticky; top: 0; z-index: 20;
  margin: 0 -20px; padding: 20px 20px 16px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.list-header h1 { margin: 4px 0 14px; }
.list-count { margin-top: 8px; font-size: 15px; font-weight: 700; color: var(--accent-text); }

.add-form { margin-top: 18px; }
.add-field {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 2px solid var(--border); border-radius: 28px;
  padding: 4px 4px 4px 18px; min-height: 60px;
}
.add-field:focus-within { border-color: var(--accent); }
.add-field input { flex: 1; min-width: 0; border: none; background: none; outline: none; font-size: 17px; }
.add-btn {
  width: 50px; height: 50px; border-radius: 25px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--on-accent);
}
.add-btn:hover { background: var(--accent-press); }
.add-stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.chip[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.store-section { margin-top: 28px; }
.store-section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.store-section-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; line-height: 1.2; }
.store-section-head .muted { font-size: 14px; }

.cat-card { background: var(--surface); border-radius: var(--r-card); padding: 8px; margin-bottom: 12px; box-shadow: 0 2px 12px var(--shadow); }
.cat-title {
  padding: 12px 12px 6px; font-size: 13px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text-2);
}
.item-row { display: flex; align-items: center; gap: 4px; }
.item-toggle {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 14px; min-height: 66px;
  padding: 10px 12px; border-radius: 20px; text-align: left;
}
.item-toggle:hover { background: var(--surface-2); }
.item-action {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 24px;
  display: flex; align-items: center; justify-content: center; color: var(--text-2);
}
.item-action:hover { background: var(--surface-2); color: var(--accent-text); }
.item-remove:hover { color: var(--danger); }
.item-check {
  width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--border); color: transparent;
  transition: background .15s, border-color .15s;
}
.item-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.item-name { font-size: 17px; font-weight: 700; }
.item-qty { font-size: 14px; color: var(--text-2); }
.item-price { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 15px; font-weight: 700; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.badge-tilbud {
  padding: 2px 8px; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
  text-transform: uppercase; background: var(--offer-soft-bg); color: var(--offer-soft-fg);
}
.item-row.checked { opacity: .5; }
.item-row.checked .item-check { background: var(--check); border-color: var(--check); color: #fff; }
.item-row.checked .item-name { text-decoration: line-through; }

.empty-state { padding: 60px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }

.see-in-catalog {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 6px;
  font-size: 15px; font-weight: 700; color: var(--accent-text); text-decoration: none;
}

/* ─── Aviser ──────────────────────────────────────────────────────────── */
.page-header { padding: 26px 0 4px; }
.page-header h1 { margin-top: 4px; }

.catalog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.catalog-card {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  color: var(--text); text-decoration: none;
}
.catalog-cover {
  display: block; border-radius: 18px; overflow: hidden;
  background: var(--surface-2); box-shadow: 0 4px 16px var(--shadow);
}
.catalog-cover img { width: 100%; height: 100%; object-fit: cover; }
.catalog-label { font-weight: 800; margin-top: 6px; line-height: 1.25; }
.catalog-meta { font-size: 14px; color: var(--text-2); }

/* Avisvisning: siderne fylder fuld bredde, uden for .app-main's polstring. */
.cv { margin: 0 -20px; }
.cv-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.cv-title { flex: 1; min-width: 0; }
.cv-title h1 { font-size: 20px; letter-spacing: -0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-title p { font-size: 14px; }
.cv-note { padding: 10px 20px 0; font-size: 14px; color: var(--text-2); }

.cv-strip {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: none;
}
.cv-strip::-webkit-scrollbar { display: none; }
.cv-strip:focus-visible { outline-offset: -3px; }
.cv-page {
  flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; justify-content: center; padding: 14px 12px;
}
.cv-sheet {
  position: relative;
  /* Hele siden skal kunne ses uden lodret scroll: begræns bredden af højden. */
  width: min(100%, calc((100dvh - 190px) / var(--aspect)));
  aspect-ratio: 1 / var(--aspect);
  border-radius: 10px; overflow: hidden; background: var(--surface-2);
  box-shadow: 0 6px 24px var(--shadow);
}
.cv-sheet img { width: 100%; height: 100%; object-fit: contain; }

.hotspot {
  position: absolute; border-radius: 10px;
  background: transparent; border: 2px solid transparent;
  transition: background .15s, border-color .15s;
}
.hotspot:hover, .hotspot:focus-visible { background: rgba(30, 135, 75, .12); border-color: var(--accent); }
.hotspot.on-list { border-color: var(--accent); }
.hotspot.on-list::after {
  content: '✓'; position: absolute; top: 6px; right: 6px;
  width: 24px; height: 24px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 800;
}
.hotspot.highlight {
  border: 3px solid var(--accent); background: rgba(30, 135, 75, .16);
  animation: hotspot-pulse 1s ease-in-out 3;
}
@keyframes hotspot-pulse { 50% { box-shadow: 0 0 0 10px rgba(30, 135, 75, .25); } }

.cv-nav { display: flex; justify-content: center; gap: 16px; padding: 4px 0 8px; }
.cv-nav .btn-icon:disabled { opacity: .35; cursor: not-allowed; }

.sheet-backdrop {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, .45);
}
.sheet {
  width: 100%; max-width: 560px; padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border-radius: 28px 28px 0 0;
  box-shadow: 0 -8px 30px var(--shadow);
  animation: sheet-up .22s ease-out;
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.sheet-handle { align-self: center; width: 44px; height: 5px; border-radius: 3px; background: var(--track); margin-bottom: 6px; }
.sheet h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; line-height: 1.2; }
.sheet h2:focus { outline: none; }
.sheet-qty { color: var(--text-2); }
.sheet-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 2px 0 8px; }
.sheet-price-num { font-size: 30px; font-weight: 800; letter-spacing: -0.8px; }
.badge-save {
  padding: 3px 10px; border-radius: var(--r-badge); font-size: 13px; font-weight: 800;
  background: var(--offer-soft-bg); color: var(--offer-soft-fg);
}

.zoom-overlay { position: fixed; inset: 0; z-index: 70; background: #000; }
.zoom-scroll { width: 100%; height: 100%; overflow: auto; overscroll-behavior: contain; }
.zoom-scroll img { width: 220%; max-width: none; }
.zoom-close { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 1; }

/* ─── Bundnavigation ──────────────────────────────────────────────────── */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: center; gap: 8px;
  padding: 8px 20px calc(8px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}
.nav-tab {
  flex: 1; max-width: 200px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 13px; font-weight: 700; color: var(--text-2); text-decoration: none;
}
.nav-pill { display: flex; align-items: center; justify-content: center; width: 64px; height: 32px; border-radius: 16px; transition: background .15s; }
.nav-tab[aria-current="page"] { color: var(--accent-text); }
.nav-tab[aria-current="page"] .nav-pill { background: var(--accent-soft); }

/* ─── Profil ──────────────────────────────────────────────────────────── */
.profil { padding-top: 20px; padding-bottom: 40px; display: flex; flex-direction: column; align-items: flex-start; }
.profil-back { margin-bottom: 36px; }
.profil-icon {
  width: 84px; height: 84px; border-radius: 28px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-text);
}
.badge-soon {
  padding: 4px 12px; border-radius: var(--r-badge); margin-bottom: 10px;
  background: var(--offer-soft-bg); color: var(--offer-soft-fg);
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px;
}
.profil h1 { margin-bottom: 12px; }
.profil-lead { color: var(--text-2); margin-bottom: 28px; }
.info-card {
  display: flex; gap: 14px; width: 100%; padding: 18px; margin-bottom: 28px;
  border-radius: 22px; background: var(--surface); box-shadow: 0 2px 12px var(--shadow);
}
.info-card-icon {
  width: 34px; height: 34px; border-radius: 17px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--on-accent);
}
.info-card h2 { font-size: 17px; font-weight: 800; }
.info-card p { font-size: 15px; color: var(--text-2); }

/* ─── Reduceret bevægelse ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .food { display: none; }
}
