/* Webshop-udgave: rem er omregnet til px (1rem = 16px), fordi webshoppen saetter html { font-size: 62.5% }. */
/* ==========================================================================
   AlberFood – 30 års jubilæumstema for webshoppen (1996–2026)
   --------------------------------------------------------------------------
   Midlertidigt tema. Indlæses EFTER webshoppens eksisterende CSS og ændrer
   kun udseendet: ingen ID'er, formularer eller JavaScript-hooks berøres.
   Fjern linket til denne fil (eller sæt JUBILAEUM_TEMA = False) for at gå
   tilbage til det normale design.

   Indhold
     1. Tokens (farver, typografi, afstande)
     2. Base
     3. Topbjælke og header
     4. Jubilæumshero
     5. Butikslayout: kategorier og værktøjslinje
     6. Produktkort
     7. Knapper, felter og pris
     8. Kurv (skuffe) og levering
     9. Modaler (login, kode, admin)
    10. Tryghedsbjælke og footer
    11. Responsivt og tilgængelighed
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap");

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Fra jubilæumslogoet og bookletten */
  /* Palet "Skovgrøn" */
  --af-primary: #23652e;
  --af-dark: #163d1d;
  --af-shade: 20, 52, 26;
  --af-gold: #b8893a;
  --af-gold-light: #e2c27c;
  --af-gold-rgb: 226, 194, 124;
  --af-gold-ink: #87621f;      /* guld til tekst på lys baggrund (kontrast ≥ 4.5:1) */
  --af-gold-line: #dcc48f;     /* hårfine rammer */
  --af-gold-soft: var(--af-gold-soft);     /* indre rammer */
  --af-paper: #faf8f3;
  --af-card: #ffffff;
  --af-ink: #1b2433;
  --af-muted: #5b6474;
  --af-danger: #a3322a;
  --af-success: #2f6b4a;

  --af-foil: linear-gradient(135deg, #f0d898 0%, #c99a46 38%, #a77a2c 62%, #e6c67e 100%);
  --af-foil-ink: #1b2433;

  --af-font-display: "Lora", Georgia, "Times New Roman", serif;
  --af-font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --af-step--1: 13px;
  --af-step-0: 16px;
  --af-step-1: 20px;
  --af-step-2: 26px;
  --af-step-3: 36px;
  --af-step-4: 52px;

  --af-notch: 14px;
  --af-radius: 10px;
  --af-shadow: 0 1px 2px rgba(var(--af-shade), .06), 0 8px 24px -12px rgba(var(--af-shade), .18);
  --af-max: 1280px;
}


/* 2. Base ------------------------------------------------------------------ */
.af-theme {
  background: var(--af-paper);
  color: var(--af-ink);
  font-family: var(--af-font-body);
  font-size: var(--af-step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.af-theme h1, .af-theme h2, .af-theme h3, .af-theme h4 {
  font-family: var(--af-font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--af-dark);
  letter-spacing: -0.005em;
}
.af-theme :where([class*="af-"], [class*="lp-"]),
.af-theme :where([class*="af-"], [class*="lp-"]) * { box-sizing: border-box; }
.af-theme :where(a:not(.af-btn)) { color: var(--af-primary); text-underline-offset: 3px; }
.af-theme :where(a:not(.af-btn)):hover { color: var(--af-gold-ink); }
.af-theme :focus-visible {
  outline: 2px solid var(--af-gold);
  outline-offset: 2px;
  border-radius: 4px;
}
.af-theme [hidden] { display: none !important; }
.af-wrap { max-width: var(--af-max); margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }

/* Guld-ornament: linje – stjerne – linje (fra bookletten) */
.af-ornament {
  display: flex; align-items: center; gap: 10px;
  color: var(--af-gold);
}
.af-ornament::before, .af-ornament::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--af-gold-line) 30%, var(--af-gold-line) 70%, transparent);
}
.af-ornament svg { width: 14px; height: 14px; flex: none; }

/* 3. Topbjælke og header --------------------------------------------------- */
.af-topbar {
  background: var(--af-dark);
  color: #e9e3d4;
  font-size: var(--af-step--1);
  border-bottom: 1px solid rgba(var(--af-gold-rgb), .35);
}
.af-topbar .af-wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; min-height: 36px; flex-wrap: wrap;
}
.af-topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.af-topbar__item svg { width: 15px; height: 15px; color: var(--af-gold-light); }
.af-topbar__group { display: flex; gap: 22px; flex-wrap: wrap; }

.af-header {
  background: var(--af-card);
  border-bottom: 1px solid var(--af-gold-line);
  position: sticky; top: 0; z-index: 40;
}
.af-header .af-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: clamp(16px, 3vw, 40px);
  min-height: 84px;
}
.af-logo img { display: block; height: 62px; width: auto; }

.af-search {
  position: relative; max-width: 560px; width: 100%; justify-self: center;
}
.af-search input {
  width: 100%; height: 46px;
  padding: 0 16px 0 46px;
  border: 1px solid var(--af-gold-line);
  border-radius: 999px;
  background: var(--af-paper);
  font: inherit; color: var(--af-ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.af-search input::placeholder { color: var(--af-muted); }
.af-search input:focus {
  outline: none; background: #fff;
  border-color: var(--af-gold);
  box-shadow: 0 0 0 3px rgba(184, 137, 58, .18);
}
.af-search svg {
  position: absolute; left: 16px; top: 50%; translate: 0 -50%;
  width: 18px; height: 18px; color: var(--af-gold-ink); pointer-events: none;
}

.af-header__actions { display: flex; align-items: center; gap: 10px; }
.af-account {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 6px; border-radius: 999px;
  background: none; border: 1px solid transparent;
  font: inherit; color: var(--af-ink); cursor: pointer; text-align: left;
}
.af-account:hover { border-color: var(--af-gold-line); }
.af-account__icon {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--af-paper); border: 1px solid var(--af-gold-line);
  color: var(--af-primary);
}
.af-account__icon svg { width: 18px; height: 18px; }
.af-account__label { display: grid; line-height: 1.2; font-size: var(--af-step--1); }
.af-account__label strong { font-weight: 600; font-size: 14px; }
.af-account__label span { color: var(--af-muted); }

.af-cart-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 18px;
  border-radius: 999px; border: 0;
  background: var(--af-primary); color: #fff;
  font: inherit; font-weight: 500; cursor: pointer;
}
.af-cart-btn:hover { background: var(--af-dark); }
.af-cart-btn svg { width: 20px; height: 20px; }
.af-cart-btn__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--af-foil); color: var(--af-dark);
  font-size: 12px; font-weight: 600;
  display: inline-grid; place-items: center;
}

/* 4. Jubilæumshero --------------------------------------------------------- */
.af-hero {
  position: relative; overflow: hidden;
  background: var(--af-dark);
  color: #f3eee2;
  isolation: isolate;
}
/* Den buede papirflade med guldkant – samme bevægelse som bookletens sider */
.af-hero__sweep {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
}
.af-hero .af-wrap {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center; gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(36px, 6vw, 72px);
}
.af-hero__mark { display: grid; justify-items: center; text-align: center; }
.af-hero__thirty {
  position: relative;
  font-family: var(--af-font-display);
  font-weight: 400;
  font-size: clamp(112px, 17vw, 216px);
  line-height: .82;
  letter-spacing: -0.04em;
  background: var(--af-foil);
  background-size: 220% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: af-foil 2.4s cubic-bezier(.3, .6, .2, 1) .3s 1 both;
}
.af-hero__thirty small {
  position: absolute; right: 15%; top: 40%;
  font-size: .2em; letter-spacing: 0;
  -webkit-text-fill-color: var(--af-dark);
  color: var(--af-dark);
}
@keyframes af-foil { from { background-position: 0 0; } to { background-position: 100% 0; } }

.af-hero__years {
  margin-top: 18px;
  font-family: var(--af-font-display);
  font-size: var(--af-step-1);
  color: var(--af-gold-ink);
}
.af-hero__tagline {
  font-size: var(--af-step--1); letter-spacing: .14em;
  color: var(--af-primary); font-weight: 600;
}

.af-hero__copy h1 {
  font-size: clamp(36px, 4.6vw, var(--af-step-4));
  color: #fbf7ee; margin: 0 0 18px;
}
.af-hero__copy p { max-width: 46ch; margin: 0 0 28px; color: #d9d3c4; font-size: 17px; }
.af-hero__copy .af-ornament { max-width: 280px; margin-bottom: 22px; }
.af-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 5. Butikslayout ---------------------------------------------------------- */
.af-shop {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  padding-block: clamp(28px, 4vw, 48px);
}
.af-categories { position: sticky; top: 108px; align-self: start; }
.af-categories h2 { font-size: var(--af-step-1); margin: 0 0 12px; }
.af-categories ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.af-categories a, .af-categories button {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 10px 12px; border-radius: 8px;
  background: none; border: 0; text-align: left;
  font: inherit; color: var(--af-ink); text-decoration: none; cursor: pointer;
}
.af-categories a:hover, .af-categories button:hover { background: #f1ebde; color: var(--af-dark); }
.af-categories [aria-current="true"] {
  background: var(--af-primary); color: #fff;
}
.af-categories [aria-current="true"] .af-count { color: var(--af-gold-light); }
.af-count { font-size: var(--af-step--1); color: var(--af-muted); }
.af-categories__support { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--af-gold-line); }
.af-categories .af-categories__support .af-btn { justify-content: center; padding: 0 14px; }

.af-toolbar {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 16px; margin-bottom: 22px;
}
.af-toolbar h2 { font-size: var(--af-step-3); margin: 0; }
.af-toolbar p { margin: 4px 0 0; color: var(--af-muted); font-size: 15px; }
.af-toolbar__controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.af-select {
  height: 42px; padding: 0 38px 0 14px;
  border: 1px solid var(--af-gold-line); border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2387621f' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none; font: inherit; color: var(--af-ink); cursor: pointer;
}

/* 6. Produktkort ----------------------------------------------------------- */
.af-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}
/* "Billetkort" med indhakkede hjørner og hårfin guldramme, som i bookletten.
   Ydre lag = guldlinjen, indre lag = kortets flade. */
.af-card {
  --n: var(--af-notch);
  position: relative;
  display: flex; flex-direction: column;
  padding: 1px;
  background: var(--af-gold-line);
  -webkit-mask:
    radial-gradient(circle at top left, #0000 var(--n), #000 calc(var(--n) + .5px)) top left / 51% 51% no-repeat,
    radial-gradient(circle at top right, #0000 var(--n), #000 calc(var(--n) + .5px)) top right / 51% 51% no-repeat,
    radial-gradient(circle at bottom left, #0000 var(--n), #000 calc(var(--n) + .5px)) bottom left / 51% 51% no-repeat,
    radial-gradient(circle at bottom right, #0000 var(--n), #000 calc(var(--n) + .5px)) bottom right / 51% 51% no-repeat;
          mask:
    radial-gradient(circle at top left, #0000 var(--n), #000 calc(var(--n) + .5px)) top left / 51% 51% no-repeat,
    radial-gradient(circle at top right, #0000 var(--n), #000 calc(var(--n) + .5px)) top right / 51% 51% no-repeat,
    radial-gradient(circle at bottom left, #0000 var(--n), #000 calc(var(--n) + .5px)) bottom left / 51% 51% no-repeat,
    radial-gradient(circle at bottom right, #0000 var(--n), #000 calc(var(--n) + .5px)) bottom right / 51% 51% no-repeat;
  transition: background .2s;
}
.af-card:hover, .af-card:focus-within { background: var(--af-gold); }
.af-card__inner {
  --n: var(--af-notch);
  flex: 1;
  display: flex; flex-direction: column;
  background: var(--af-card);
  padding: 14px 14px 16px;
  /* Indre lag får sine egne hakker, så guldlinjen følger buen */
  -webkit-mask:
    radial-gradient(circle at top left, #0000 var(--n), #000 calc(var(--n) + .5px)) top left / 51% 51% no-repeat,
    radial-gradient(circle at top right, #0000 var(--n), #000 calc(var(--n) + .5px)) top right / 51% 51% no-repeat,
    radial-gradient(circle at bottom left, #0000 var(--n), #000 calc(var(--n) + .5px)) bottom left / 51% 51% no-repeat,
    radial-gradient(circle at bottom right, #0000 var(--n), #000 calc(var(--n) + .5px)) bottom right / 51% 51% no-repeat;
          mask:
    radial-gradient(circle at top left, #0000 var(--n), #000 calc(var(--n) + .5px)) top left / 51% 51% no-repeat,
    radial-gradient(circle at top right, #0000 var(--n), #000 calc(var(--n) + .5px)) top right / 51% 51% no-repeat,
    radial-gradient(circle at bottom left, #0000 var(--n), #000 calc(var(--n) + .5px)) bottom left / 51% 51% no-repeat,
    radial-gradient(circle at bottom right, #0000 var(--n), #000 calc(var(--n) + .5px)) bottom right / 51% 51% no-repeat;
}

.af-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  border: 1px solid #efe6d2;
  background: var(--af-paper);
  overflow: hidden;
  display: grid; place-items: center;
  cursor: pointer;
}
.af-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.af-card__media .af-placeholder { width: 46%; color: var(--af-gold-line); }

.af-badge {
  position: absolute; left: 10px; top: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: var(--af-dark); color: var(--af-gold-light);
  font-size: 12px; font-weight: 500;
  box-shadow: 0 0 0 1px rgba(var(--af-gold-rgb), .6) inset;
}
.af-badge svg { width: 12px; height: 12px; color: var(--af-gold-light); }
.af-badge--new { background: #fff; color: var(--af-primary); box-shadow: 0 0 0 1px var(--af-gold-line) inset; }

.af-card__body { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; flex: 1; }
.af-card__title {
  font-family: var(--af-font-display);
  font-size: 19px; font-weight: 500; line-height: 1.2;
  color: var(--af-dark); margin: 0;
}
.af-card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--af-step--1); color: var(--af-muted); }
.af-stock { display: inline-flex; align-items: center; gap: 6px; font-size: var(--af-step--1); color: var(--af-success); }
.af-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.af-stock--low { color: #9a6a12; }
.af-stock--out { color: var(--af-danger); }

.af-card__buy { margin-top: auto; padding-top: 14px; display: grid; gap: 10px; }

/* 7. Pris, knapper og felter ----------------------------------------------- */
.af-price {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--af-gold-line); border-radius: 6px;
  background: linear-gradient(180deg, #fffdf8, #fbf5e7);
}
.af-price__value {
  font-family: var(--af-font-display);
  font-size: 22px; font-weight: 600; color: var(--af-dark);
  font-variant-numeric: lining-nums tabular-nums;
}
.af-price__unit { font-size: 12px; color: var(--af-muted); }
.af-price__before { font-size: 13px; color: var(--af-muted); text-decoration: line-through; }
.af-price--locked {
  justify-content: center;
  color: var(--af-gold-ink); font-weight: 500; font-size: 14px;
  background: none; cursor: pointer; width: 100%; font-family: inherit;
}
.af-price--locked:hover { border-color: var(--af-gold); background: #fffaf0; }
.af-price--locked svg { width: 15px; height: 15px; align-self: center; }

.af-qty {
  display: inline-grid; grid-template-columns: 34px 44px 34px;
  height: 40px; border: 1px solid var(--af-gold-line); border-radius: 8px; overflow: hidden;
  background: #fff;
}
.af-qty button { border: 0; background: none; font-size: 18px; color: var(--af-primary); cursor: pointer; }
.af-qty button:hover { background: #f5efe2; }
.af-qty input {
  width: 100%; border: 0; border-inline: 1px solid #efe6d2;
  text-align: center; font: inherit; font-variant-numeric: tabular-nums; color: var(--af-ink);
  -moz-appearance: textfield;
}
.af-qty input::-webkit-outer-spin-button, .af-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.af-buyrow { display: grid; grid-template-columns: 1fr; gap: 8px; }
.af-buyrow .af-qty { width: 100%; grid-template-columns: 40px 1fr 40px; }

.af-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 18px;
  border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-weight: 500; font-size: 15px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.af-btn:active { transform: translateY(1px); }
.af-btn svg { width: 17px; height: 17px; }
.af-btn--primary { background: var(--af-primary); color: #fff; }
.af-btn--primary:hover { background: var(--af-dark); color: #fff; }
.af-btn--gold {
  background: var(--af-foil); color: var(--af-dark);
  border-color: rgba(135, 98, 31, .35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
}
.af-btn--gold:hover { filter: brightness(1.04); color: var(--af-dark); }
.af-btn--outline { background: transparent; border-color: var(--af-gold-line); color: var(--af-primary); }
.af-btn--outline:hover { border-color: var(--af-gold); background: #fffaf0; }
.af-btn--ghost-light { background: transparent; border-color: rgba(var(--af-gold-rgb), .55); color: #f3eee2; }
.af-btn--ghost-light:hover { background: rgba(var(--af-gold-rgb), .12); color: #fff; }
.af-btn--lg { min-height: 50px; padding: 0 26px; font-size: 16px; }
.af-btn--block { width: 100%; }
.af-btn--danger-text { background: none; color: var(--af-danger); padding: 0 8px; }

.af-field { display: grid; gap: 6px; margin-bottom: 14px; }
.af-field label { font-size: 14px; font-weight: 500; color: var(--af-primary); }
.af-field input, .af-field textarea, .af-field select {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--af-gold-line); border-radius: 8px;
  background: #fff; font: inherit; color: var(--af-ink);
}
.af-field input:focus, .af-field textarea:focus, .af-field select:focus {
  outline: none; border-color: var(--af-gold); box-shadow: 0 0 0 3px rgba(184, 137, 58, .18);
}
.af-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--af-muted); }
.af-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--af-primary); }

/* 8. Kurv (skuffe) --------------------------------------------------------- */
.af-scrim {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(var(--af-shade), .45);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.af-scrim.is-open { opacity: 1; visibility: visible; }

.af-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(440px, 100%);
  display: flex; flex-direction: column;
  background: var(--af-paper);
  border-left: 1px solid var(--af-gold-line);
  box-shadow: -20px 0 50px -20px rgba(var(--af-shade), .35);
  translate: 100% 0; transition: translate .3s cubic-bezier(.2, .7, .2, 1);
}
.af-drawer.is-open { translate: 0 0; }
.af-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px 16px; padding-top: calc(20px + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid var(--af-gold-line); background: #fff;
}
.af-drawer__head h2 { margin: 0; font-size: var(--af-step-2); }
.af-drawer__head p { margin: 2px 0 0; font-size: var(--af-step--1); color: var(--af-muted); }
.af-icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--af-gold-line); background: #fff; color: var(--af-primary); cursor: pointer;
}
.af-icon-btn:hover { border-color: var(--af-gold); }
.af-icon-btn svg { width: 18px; height: 18px; }

.af-drawer__body { flex: 1; overflow-y: auto; padding: 18px 22px; display: grid; align-content: start; gap: 22px; }
.af-drawer__foot {
  padding: 18px 22px; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--af-gold-line); background: #fff; display: grid; gap: 12px;
}

.af-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid #ece3cf; }
.af-line:last-child { border-bottom: 0; }
.af-line__name { font-weight: 500; }
.af-line__meta { grid-column: 1; font-size: var(--af-step--1); color: var(--af-muted); }
.af-line__total { grid-row: 1; grid-column: 2; font-variant-numeric: tabular-nums; font-weight: 500; }
.af-line .af-qty { grid-column: 1; justify-self: start; height: 34px; grid-template-columns: 30px 40px 30px; margin-top: 6px; }

.af-empty { text-align: center; padding: 30px 10px; color: var(--af-muted); }
.af-empty strong { display: block; font-family: var(--af-font-display); font-size: var(--af-step-1); color: var(--af-dark); font-weight: 500; margin-bottom: 6px; }

.af-section-title { font-family: var(--af-font-display); font-size: var(--af-step-1); margin: 0 0 10px; color: var(--af-dark); font-weight: 500; }
.af-options { display: grid; gap: 10px; }
.af-option {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 14px; border: 1px solid var(--af-gold-line); border-radius: 10px; background: #fff; cursor: pointer;
}
.af-option input { accent-color: var(--af-primary); width: 18px; height: 18px; }
.af-option small { display: block; color: var(--af-muted); font-size: var(--af-step--1); }
.af-option strong { font-variant-numeric: tabular-nums; }
.af-option:has(input:checked) { border-color: var(--af-primary); box-shadow: 0 0 0 1px var(--af-primary) inset; }

.af-totals { display: grid; gap: 6px; font-size: 15px; }
.af-totals div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.af-totals .af-totals__grand {
  padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--af-gold-line);
  font-family: var(--af-font-display); font-size: var(--af-step-1); color: var(--af-dark); font-weight: 600;
}
.af-progress { font-size: var(--af-step--1); color: var(--af-muted); }
.af-progress__bar { height: 4px; border-radius: 4px; background: #ece3cf; margin-top: 6px; overflow: hidden; }
.af-progress__bar span { display: block; height: 100%; background: var(--af-foil); transition: width .3s; }

/* 9. Modaler --------------------------------------------------------------- */
.af-modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 20px;
  background: rgba(var(--af-shade), .55);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.af-modal.is-open { opacity: 1; visibility: visible; }
.af-modal__panel {
  position: relative; width: min(440px, 100%);
  background: var(--af-paper);
  border: 1px solid var(--af-gold-line);
  border-radius: 14px;
  padding: 34px 30px 28px;
  box-shadow: 0 30px 60px -20px rgba(var(--af-shade), .45);
}
/* Dobbelt guldramme som på bookletens forside */
.af-modal__panel::before {
  content: ""; position: absolute; inset: 7px; border: 1px solid var(--af-gold-soft); border-radius: 9px; pointer-events: none;
}
.af-modal__panel > * { position: relative; }
.af-modal__close { position: absolute; top: 14px; right: 14px; }
.af-modal h2 { margin: 0 0 6px; font-size: var(--af-step-3); text-align: center; }
.af-modal__lead { text-align: center; color: var(--af-muted); margin: 0 0 22px; font-size: 15px; }
.af-modal .af-ornament { margin: 0 auto 20px; max-width: 200px; }
.af-modal__links { display: flex; justify-content: space-between; margin-top: 14px; font-size: 14px; }

/* 10. Tryghedsbjælke og footer -------------------------------------------- */
.af-trust { border-block: 1px solid var(--af-gold-line); background: #fff; }
.af-trust .af-wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.af-trust__item { display: flex; gap: 14px; align-items: center; padding: 22px 18px; }
.af-trust__item + .af-trust__item { border-left: 1px solid #efe6d2; }
.af-trust__icon {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--af-paper); border: 1px solid var(--af-gold-line); color: var(--af-gold-ink);
}
.af-trust__icon svg { width: 22px; height: 22px; }
.af-trust h3 { font-size: 17px; margin: 0 0 2px; }
.af-trust p { margin: 0; color: var(--af-muted); font-size: 14px; }

.af-footer {
  position: relative;
  background: var(--af-dark); color: #cfc8b8;
  padding-block: 48px 28px; font-size: 15px;
}
.af-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--af-gold) 20%, var(--af-gold-light) 50%, var(--af-gold) 80%, transparent);
}
.af-footer .af-wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.af-footer h3 { color: var(--af-gold-soft); font-size: var(--af-step-1); margin: 0 0 12px; }
.af-footer a { color: #f3eee2; }
.af-footer a:hover { color: var(--af-gold-light); }
.af-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.af-footer__jubilee { font-family: var(--af-font-display); color: var(--af-gold-light); font-size: var(--af-step-2); line-height: 1.1; margin: 0 0 10px; }
.af-footer__bottom {
  grid-column: 1 / -1; margin-top: 12px; padding-top: 20px;
  border-top: 1px solid rgba(var(--af-gold-rgb), .2);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: var(--af-step--1);
}
.af-footer__bottom img { height: 26px; width: auto; }

/* Stykpris under kollipris */
.af-price__main { display: grid; gap: 2px; }
.af-price__piece { font-size: 12px; color: var(--af-muted); font-variant-numeric: lining-nums tabular-nums; }

/* Footer med fire kolonner (webshoppen) */
.af-footer--wide .af-wrap { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.af-footer__note { margin: 0 0 14px; }

/* LeverandørService: span#LS_Link får klassen af-footer__ls. Webshoppens JS
   skriver selv linket ind for kunder, der er logget ind. */
.af-footer__ls { display: grid; gap: 12px; justify-items: start; }
.af-footer__ls a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 9px 18px; border-radius: 6px;
  border: 1px solid rgba(var(--af-gold-rgb), .55); background: transparent;
  color: #f3eee2; font-weight: 500; font-size: 15px; text-decoration: none;
  transition: background-color .15s, border-color .15s;
}
.af-footer__ls a:hover { background: rgba(var(--af-gold-rgb), .12); border-color: var(--af-gold-light); color: #fff; }
.af-footer__ls a:focus-visible { outline: 2px solid var(--af-gold-light); outline-offset: 2px; }
.af-footer__cards { display: block; max-width: 225px; width: 100%; height: auto; padding: 6px 10px; background: #fff; border-radius: 6px; }

/* Smiley / kontrolrapport */
.af-footer__smiley { display: inline-block; margin-top: 6px; line-height: 0; border-radius: 6px; overflow: hidden; border: 1px solid rgba(var(--af-gold-rgb), .35); transition: transform .15s, border-color .15s; }
.af-footer__smiley:hover { transform: translateY(-1px); border-color: var(--af-gold-light); }
.af-footer__smiley:focus-visible { outline: 2px solid var(--af-gold-light); outline-offset: 2px; }
.af-footer__smiley img { display: block; width: 150px; height: auto; }

/* Toast-besked */
.af-toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 120;
  translate: -50% 20px; opacity: 0;
  background: var(--af-dark); color: #fff;
  padding: 12px 18px; border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(var(--af-gold-rgb), .5) inset, 0 12px 30px -10px rgba(0, 0, 0, .4);
  font-size: 15px; transition: opacity .2s, translate .2s; pointer-events: none;
}
.af-toast.is-visible { opacity: 1; translate: -50% 0; }

/* 11. Responsivt og tilgængelighed ---------------------------------------- */
@media (max-width: 960px) {
  .af-hero .af-wrap { grid-template-columns: 1fr; text-align: center; padding-top: 28px; }
  .af-hero__sweep { display: none; }
  /* Mobil: papirfladen ligger bag 30-tallet og ender i en blød bue med guldkant */
  .af-hero__mark { position: relative; padding-bottom: 34px; }
  .af-hero__mark::before {
    content: ""; position: absolute; z-index: -1;
    left: -50vw; right: -50vw; top: -200px; bottom: 0;
    background: var(--af-paper);
    border-bottom: 1px solid var(--af-gold);
    border-radius: 0 0 50% 50% / 0 0 46px 46px;
  }
  .af-hero__copy p, .af-hero__copy .af-ornament { margin-inline: auto; }
  .af-hero__actions { justify-content: center; }
  .af-shop { grid-template-columns: 1fr; }
  .af-categories { position: static; }
  .af-categories h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .af-categories ul { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: none; }
  .af-categories li { flex: none; }
  .af-categories a, .af-categories button { border: 1px solid var(--af-gold-line); border-radius: 999px; background: #fff; padding: 8px 14px; gap: 8px; }
  .af-categories__support { display: none; }
  .af-trust .af-wrap { grid-template-columns: 1fr; }
  .af-trust__item + .af-trust__item { border-left: 0; border-top: 1px solid #efe6d2; }
  .af-footer .af-wrap { grid-template-columns: 1fr 1fr; }
  .af-footer .af-wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .af-header .af-wrap { grid-template-columns: auto 1fr; padding-block: 10px; row-gap: 10px; }
  .af-logo img { height: 48px; }
  .af-header__actions { justify-self: end; }
  .af-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .af-account__label { display: none; }
  .af-account { padding: 0; }
  .af-cart-btn__text { display: none; }
  .af-topbar__group:last-child { display: none; }
  .af-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .af-card__inner { padding: 10px 10px 12px; }
  .af-card__title { font-size: 17px; }
  .af-price--locked { font-size: 13px; padding: 9px 8px; }
  .af-footer .af-wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .af-theme *, .af-theme *::before, .af-theme *::after { animation: none !important; transition: none !important; }
  .af-hero__thirty { background-position: 100% 0; }
}
