/* =====================================================================
   Valbjørn Art – stilark
   Tema: skovbunden i græshøjde. Mos, bregner, fluesvampe, dugdråber,
   ildfluer og lyset, der falder ned gennem trækronerne.
   ===================================================================== */

@view-transition { navigation: auto; }

:root {
  /* Lyse flader: lav, mos og birkebark */
  --parchment: #f4f1e2;
  --parchment-2: #e9e8d0;
  --parchment-3: #d6d6b3;
  --white: #fffdf4;

  /* Skov og mos */
  --ink: #23301f;
  --ink-soft: #4a5a42;
  --muted: #7b8569;
  --moss: #6b8a45;
  --moss-light: #a3bb73;
  --forest: #3d5733;
  --forest-deep: #1c2a1d;
  --night: #131d15;

  /* Fluesvamp, sollys, bark og dug */
  --ember: #b8402c;
  --ember-deep: #93301f;
  --amber: #e8b04a;
  --gold: #a8874a;
  --bark: #6e4e33;
  --sea: #3c7f86;
  --sea-light: #8fc9c6;
  --danger: #a3301f;
  --ok: #4f7a3a;

  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito', 'Karla', 'Helvetica Neue', Arial, sans-serif;

  --radius: 22px;
  --radius-small: 12px;
  --shadow: 0 1px 2px rgba(28, 42, 29, .06), 0 12px 30px -14px rgba(28, 42, 29, .35);
  --shadow-lift: 0 2px 4px rgba(28, 42, 29, .08), 0 26px 46px -18px rgba(28, 42, 29, .45);
  --container: 1180px;
  --ease: cubic-bezier(.22, .8, .24, 1);

  --moss-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .22 0 0 0 0 .32 0 0 0 0 .12 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --dots: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .55) 0 2.5px, transparent 3px),
          radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .45) 0 2px, transparent 2.5px),
          radial-gradient(circle at 45% 80%, rgba(255, 255, 255, .4) 0 1.5px, transparent 2px);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--parchment);
  background-image: var(--moss-texture);
  overflow-x: hidden;
}

main { flex: 1; }

[hidden] { display: none !important; }

img { max-width: 100%; display: block; }

a { color: var(--forest); text-underline-offset: 3px; text-decoration-color: rgba(107, 138, 69, .5); }
a:hover { color: var(--ember); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--forest-deep);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.95rem, 3.8vw, 3rem); }
h3 { font-size: 1.35rem; }
h1 em, h2 em { font-style: italic; color: var(--ember); font-weight: 500; }

p { margin: 0 0 1em; }

::selection { background: var(--moss-light); color: var(--forest-deep); }
:focus-visible { outline: 3px solid var(--amber); 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;
}

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; position: relative; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Lille overskrift med fluesvamp */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: .9rem;
}
.eyebrow::before,
.eyebrow::after { content: ''; width: 24px; height: 1px; background: currentColor; opacity: .55; }

/* ---------- Knapper ---------- */
.btn {
  --btn-bg: var(--ember);
  --btn-fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .9em 1.7em;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 800 .95rem/1 var(--font-body);
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s var(--ease), background-color .25s ease, box-shadow .25s ease;
  box-shadow: 0 8px 20px -10px rgba(147, 48, 31, .8), inset 0 -3px 0 rgba(0, 0, 0, .12);
}
/* Fluesvampens prikker kommer frem, når man holder musen over */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--dots);
  background-size: 34px 22px;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .35s ease, transform .5s var(--ease);
}
.btn:hover { background: var(--ember-deep); color: var(--btn-fg); transform: translateY(-2px); }
.btn:hover::after { opacity: 1; transform: none; }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  border-color: currentColor;
  box-shadow: none;
}
.btn--ghost::after { display: none; }
.btn--ghost:hover { background: rgba(255, 253, 244, .14); color: inherit; }
.btn--forest { --btn-bg: var(--forest); box-shadow: 0 8px 20px -10px rgba(28, 42, 29, .8), inset 0 -3px 0 rgba(0, 0, 0, .15); }
.btn--forest:hover { background: var(--forest-deep); }
.btn--forest::after { display: none; }
.btn--small { padding: .65em 1.15em; font-size: .85rem; }
.btn--block { width: 100%; }
.btn--link {
  background: none; border: 0; box-shadow: none; padding: 0;
  color: var(--forest); text-decoration: underline; font-weight: 700; cursor: pointer; font-family: inherit;
}
.btn--link:hover { background: none; color: var(--ember); }

/* ---------- Sidehoved ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 226, .9);
  backdrop-filter: saturate(1.3) blur(12px);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
}
.notice {
  background: var(--forest-deep);
  color: var(--parchment);
  text-align: center;
  font-size: .9rem;
  padding: .5em 16px;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--forest-deep);
}
.logo__mark { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 4px 6px rgba(23, 58, 66, .35)); transition: transform .6s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-12deg) scale(1.06); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; font-style: italic; }
.logo__tagline { font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: .35rem; }

.main-nav { display: flex; align-items: center; gap: .3rem; }
.main-nav a {
  position: relative;
  padding: .55em .95em;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  transition: background-color .25s ease, color .25s ease;
}
.main-nav a:hover { color: var(--forest); background: rgba(163, 187, 115, .25); }
.main-nav a[aria-current='page'] { color: var(--forest-deep); background: rgba(163, 187, 115, .3); }
.cart-link { display: inline-flex; align-items: center; gap: .4em; }
.cart-link svg { width: 20px; height: 20px; }
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.55em;
  height: 1.55em;
  padding: 0 .35em;
  border-radius: 999px;
  background: var(--ember);
  background-image: var(--dots);
  background-size: 18px 14px;
  color: var(--white);
  font-size: .75rem;
  font-weight: 800;
}
.cart-count.is-empty { background: var(--parchment-3); color: var(--ink-soft); }
.cart-count.bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.45) rotate(-8deg); } 60% { transform: scale(.9); } }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--forest-deep);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1.4rem 16px 1rem;
    background: var(--parchment);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-open .main-nav { display: flex; animation: drop .35s var(--ease); }
  .main-nav a { padding: .8em 1em; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .logo__name { font-size: 1.35rem; }
  .logo__tagline { font-size: .6rem; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- Mos, lys og dis ---------- */
/* Bånd af rigtigt mos, der glider blødt over i siden ovenover og nedenunder */
.moss-band {
  position: relative;
  height: clamp(160px, 22vw, 300px);
  margin-block: -1px;
  overflow: hidden;
  background: var(--forest-deep);
}
/* Bløde overgange til farven ovenover (--from) og nedenunder (--to) */
.moss-band::before,
.moss-band::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 45%;
  z-index: 2;
  pointer-events: none;
}
.moss-band::before { top: 0; background: linear-gradient(180deg, var(--from, var(--parchment)) 0%, transparent 100%); }
.moss-band::after { bottom: 0; background: linear-gradient(0deg, var(--to, var(--parchment)) 0%, transparent 100%); }
.moss-band__img {
  position: absolute;
  inset: -20% 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: center 55%;
  transform: translateY(var(--parallax, 0px)) scale(1.08);
  animation: kenburns 40s ease-in-out infinite alternate;
}
.moss-band--flip .moss-band__img { transform: translateY(var(--parallax, 0px)) scale(1.08) scaleX(-1); animation: none; }
@keyframes kenburns { to { scale: 1.08; translate: -2% 1%; } }

/* Dis, der driver langsomt hen over billederne */
.mist {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 40% at 20% 70%, rgba(236, 240, 226, .22), transparent 70%),
    radial-gradient(ellipse 50% 35% at 75% 60%, rgba(236, 240, 226, .16), transparent 70%);
  animation: mist 26s ease-in-out infinite alternate;
}
@keyframes mist { from { transform: translateX(-4%); opacity: .7; } to { transform: translateX(4%); opacity: 1; } }

/* Støv og pollen, der svæver i lyset */
.fireflies { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.firefly {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(255, 248, 220, .95);
  box-shadow: 0 0 6px 2px rgba(255, 236, 170, .55), 0 0 18px 6px rgba(232, 200, 120, .25);
  filter: blur(.4px);
  animation: wander ease-in-out infinite alternate, blink ease-in-out infinite;
}
@keyframes wander { to { transform: translate(var(--dx), var(--dy)); } }
@keyframes blink { 0%, 100% { opacity: .1; } 50% { opacity: .9; } }

/* ---------- Hero i græshøjde ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: center;
  color: var(--parchment);
  background: var(--night);
}
.hero__image {
  position: absolute;
  top: -6%;
  left: 0;
  z-index: -3;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: center 70%;
  transform: translateY(var(--parallax, 0px)) scale(1.06);
  animation: kenburns 36s ease-in-out infinite alternate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 75% 20%, rgba(255, 236, 180, .25), transparent 50%),
    linear-gradient(90deg, rgba(16, 26, 14, .82) 0%, rgba(16, 26, 14, .55) 40%, rgba(16, 26, 14, .05) 75%),
    linear-gradient(0deg, rgba(16, 26, 14, .55) 0%, transparent 30%);
}
/* Solstråler gennem trækronerne */
.sunbeams {
  position: absolute;
  inset: -20% -10% 0 30%;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 40%, rgba(255, 233, 170, .16) 44%, transparent 50%),
    linear-gradient(112deg, transparent 52%, rgba(255, 233, 170, .12) 55%, transparent 60%),
    linear-gradient(100deg, transparent 63%, rgba(255, 233, 170, .1) 66%, transparent 71%);
  mix-blend-mode: screen;
  animation: beams 12s ease-in-out infinite alternate;
}
@keyframes beams { from { opacity: .5; transform: translateX(-2%); } to { opacity: 1; transform: translateX(2%); } }
.hero__content { padding-block: 6rem 8rem; max-width: 640px; position: relative; z-index: 2; }
.hero h1 { color: var(--white); text-shadow: 0 3px 30px rgba(0, 0, 0, .5); }
.hero h1 em { color: var(--amber); }
.hero p { font-size: 1.18rem; max-width: 520px; color: rgba(244, 241, 226, .92); }
.hero .eyebrow { color: var(--moss-light); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 5;
  translate: -50% 0;
  color: var(--parchment);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  display: grid;
  justify-items: center;
  gap: .3rem;
  opacity: .85;
}
.hero__scroll::after { content: ''; width: 1px; height: 28px; background: currentColor; animation: drip 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Indgang: ord vokser frem */
.grow-in > * { animation: grow-in 1.1s var(--ease) both; }
.grow-in > *:nth-child(2) { animation-delay: .15s; }
.grow-in > *:nth-child(3) { animation-delay: .3s; }
.grow-in > *:nth-child(4) { animation-delay: .45s; }
@keyframes grow-in { from { opacity: 0; transform: translateY(26px); filter: blur(4px); } }

/* ---------- Sektioner ---------- */
.section { position: relative; padding-block: clamp(4rem, 9vw, 7rem); }
.section--tint { background-color: var(--parchment-2); background-image: var(--moss-texture); }
.section--forest,
.section--night {
  background: var(--forest-deep);
  color: var(--parchment);
  overflow: hidden;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(163, 187, 115, .16), transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(232, 176, 74, .12), transparent 55%),
    var(--moss-texture);
}
.section--night { background-color: var(--night); }
.section--forest h2, .section--forest h3,
.section--night h2, .section--night h3 { color: var(--parchment); }
.section--forest .eyebrow, .section--night .eyebrow { color: var(--moss-light); }
.section__head { max-width: 680px; margin: 0 auto 3rem; text-align: center; position: relative; z-index: 2; }
.section__head p { color: var(--ink-soft); font-size: 1.1rem; }
.section--forest .section__head p, .section--night .section__head p { color: rgba(244, 241, 226, .8); }

/* Trin: ild → form → mosebund */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
  position: relative;
  z-index: 2;
}
.step {
  position: relative;
  padding: 2.2rem 1.7rem 1.8rem;
  border-radius: 120px 120px var(--radius) var(--radius);
  background: rgba(255, 253, 244, .05);
  border: 1px solid rgba(163, 187, 115, .25);
  text-align: center;
  transition: transform .5s var(--ease), background-color .4s ease;
}
.step:hover { transform: translateY(-6px); background: rgba(255, 253, 244, .09); }
.step__icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(232, 176, 74, .45), rgba(107, 138, 69, .15));
  color: var(--amber);
  box-shadow: 0 0 30px rgba(232, 176, 74, .2);
}
.step__icon svg { width: 32px; height: 32px; }
.step h3 { margin-bottom: .4em; font-size: 1.5rem; }
.step p { margin: 0; color: rgba(244, 241, 226, .8); }

/* Trin på lys baggrund */
.steps--light .step { background: var(--white); border-color: rgba(107, 138, 69, .22); box-shadow: var(--shadow); }
.steps--light .step:hover { background: var(--white); box-shadow: var(--shadow-lift); }
.steps--light .step h3 { color: var(--forest-deep); }
.steps--light .step p { color: var(--ink-soft); }
.steps--light .step__icon { color: var(--ember); background: radial-gradient(circle at 35% 30%, rgba(232, 176, 74, .35), rgba(163, 187, 115, .25)); }

/* Fortælling: billede + tekst */
.story {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.story--reverse { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.story--reverse .story__media { order: 2; }
.story__media { position: relative; }
.story__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px var(--radius) var(--radius);
  box-shadow: var(--shadow-lift);
}
.story__media::before {
  content: '';
  position: absolute;
  inset: -14px;
  z-index: -1;
  border-radius: 999px 999px 30px 30px;
  background: url('/assets/img/mos-naerbillede.jpg') center / cover;
  opacity: .9;
}
.story__text p { color: var(--ink-soft); font-size: 1.08rem; }
.story__text blockquote {
  position: relative;
  margin: 1.8rem 0;
  padding: 0 0 0 2.2rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--forest);
}
.story__text blockquote::before {
  content: '';
  position: absolute;
  left: 0;
  top: .1em;
  bottom: .1em;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--moss), var(--bark));
}
@media (max-width: 820px) {
  .story,
  .story--reverse { grid-template-columns: 1fr; }
  .story--reverse .story__media { order: 0; }
  .story__media { max-width: 420px; margin-inline: auto; width: 100%; }
}

/* Dagens fortælling */
.tale {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 2;
}
.tale__media { position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; margin-inline: auto; }
.tale__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(163, 187, 115, .12), 0 0 0 22px rgba(163, 187, 115, .06), 0 30px 60px -20px rgba(0, 0, 0, .7);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.025); } }
.tale__text { font-family: var(--font-display); font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.6; color: rgba(244, 241, 226, .92); }
.tale__text p:first-of-type::first-letter {
  float: left;
  font-size: 3.6em;
  line-height: .8;
  padding: .08em .12em 0 0;
  color: var(--amber);
  font-weight: 600;
}
.tale__name { font-family: var(--font-body); font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; color: var(--moss-light); margin-top: 1.5rem; }
.tale__name a { color: var(--amber); }
@media (max-width: 820px) { .tale { grid-template-columns: 1fr; } }

/* Kategorier: små stier ind i skoven */
.category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}
.category-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 300px;
  padding: 1.5rem;
  overflow: hidden;
  border-radius: 999px 999px var(--radius) var(--radius);
  color: var(--white);
  text-decoration: none;
  isolation: isolate;
  box-shadow: var(--shadow);
  transition: transform .6s var(--ease), box-shadow .4s ease;
}
.category-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.category-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 35%, rgba(19, 29, 21, .85));
}
.category-tile:hover { color: var(--white); transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.category-tile:hover img { transform: scale(1.09); }
.category-tile h3 { color: var(--white); margin: 0; font-size: 1.6rem; }
.category-tile span { font-size: .9rem; opacity: .85; }

/* Hvilested */
.rest { text-align: center; position: relative; z-index: 2; max-width: 720px; margin-inline: auto; }
.rest p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.3; color: var(--parchment); }
.rest small { color: var(--moss-light); letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; }

/* ---------- Produktkort ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.8rem;
  position: relative;
  z-index: 2;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: .7rem .7rem 0;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid rgba(107, 138, 69, .18);
  transition: transform .5s var(--ease), box-shadow .5s ease;
  animation: card-in .8s var(--ease) both;
}
.product-grid .card:nth-child(2) { animation-delay: .08s; }
.product-grid .card:nth-child(3) { animation-delay: .16s; }
.product-grid .card:nth-child(4) { animation-delay: .24s; }
.product-grid .card:nth-child(5) { animation-delay: .32s; }
.product-grid .card:nth-child(6) { animation-delay: .4s; }
@keyframes card-in { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow-lift); }
.card:nth-child(even):hover { transform: translateY(-6px) rotate(.4deg); }
.card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 999px 999px 14px 14px;
  background: var(--parchment-2);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s ease; }
.card:hover .card__media img { transform: scale(1.07); filter: saturate(1.1); }
.card__placeholder { width: 100%; height: 100%; background: var(--moss-texture), linear-gradient(135deg, var(--parchment-2), var(--parchment-3)); }
.card--soldout .card__media img { filter: grayscale(.55) brightness(.95); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1rem .6rem 1.2rem; }
.card__category { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--moss); }
.card__title { font-size: 1.45rem; margin: .2rem 0 .35rem; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--ember); }
.card__text { font-size: .93rem; color: var(--ink-soft); margin-bottom: .6rem; }
.card__tale {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: .98rem;
  color: var(--forest);
  text-decoration: none;
}
.card__tale::after { content: '→'; font-style: normal; transition: transform .4s var(--ease); }
.card__tale:hover::after { transform: translateX(4px); }
.card__footer { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; }
.card__buy { display: flex; gap: .5rem; align-items: center; }

.price { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; color: var(--forest-deep); }

.badge {
  position: absolute;
  top: 1rem;
  left: 50%;
  translate: -50% 0;
  padding: .3em .85em;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
  white-space: nowrap;
}
.badge--low { background: var(--amber); color: var(--ink); }
.badge--soldout { background: var(--forest-deep); color: var(--parchment); }

/* Antalsvælger */
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--parchment-3);
  border-radius: 999px;
  background: var(--parchment);
  overflow: hidden;
}
.stepper__btn {
  width: 34px;
  height: 36px;
  border: 0;
  background: none;
  color: var(--forest-deep);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.stepper__btn:hover { background: var(--parchment-2); color: var(--ember); }
.stepper__input {
  width: 2.6em;
  height: 36px;
  border: 0;
  background: none;
  text-align: center;
  font: 800 1rem var(--font-body);
  color: var(--ink);
  -moz-appearance: textfield;
}
.stepper__input::-webkit-outer-spin-button,
.stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Sidetop (butik, om, kurv) ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: 5rem 6rem;
  text-align: center;
  color: var(--parchment);
  background-color: var(--forest-deep);
}
.page-head::before {
  content: '';
  position: absolute;
  inset: -12px;
  z-index: -2;
  background: var(--head-image, url('/assets/img/mos-trarod.jpg')) center 70% / cover no-repeat;
  filter: blur(3px) saturate(1.1);
  transform: scale(1.05);
  animation: kenburns 40s ease-in-out infinite alternate;
}
.page-head::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(16, 26, 14, .78), rgba(16, 26, 14, .55) 60%, rgba(16, 26, 14, .85));
}
.page-head h1 { color: var(--white); }
.page-head h1 em { color: var(--amber); }
.page-head .eyebrow { color: var(--moss-light); }
.page-head p { color: rgba(244, 241, 226, .85); max-width: 620px; margin-inline: auto; font-size: 1.08rem; }
.page-head .container { z-index: 2; }

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.5rem 0 2rem;
  position: relative;
  z-index: 2;
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .55em 1.1em;
  border-radius: 999px;
  border: 1px solid var(--parchment-3);
  background: var(--white);
  color: var(--ink);
  font: 700 .9rem var(--font-body);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--moss); transform: translateY(-2px); }
.chip[aria-pressed='true'] { background: var(--forest); border-color: var(--forest); color: var(--parchment); }
.shop-toolbar__right { display: flex; flex-wrap: wrap; gap: .6rem; }

.input,
.select,
.textarea {
  width: 100%;
  padding: .78em 1em;
  border: 1px solid var(--parchment-3);
  border-radius: var(--radius-small);
  background: var(--white);
  color: var(--ink);
  font: 1rem var(--font-body);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus,
.select:focus,
.textarea:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 4px rgba(163, 187, 115, .3); }
.textarea { min-height: 110px; resize: vertical; }
.shop-toolbar .input,
.shop-toolbar .select { width: auto; min-width: 180px; border-radius: 999px; }
@media (max-width: 600px) {
  .shop-toolbar__right { width: 100%; }
  .shop-toolbar .input,
  .shop-toolbar .select { flex: 1; min-width: 0; }
}

.empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--muted);
  border: 2px dashed var(--parchment-3);
  border-radius: var(--radius);
}

.skeleton {
  border-radius: var(--radius);
  min-height: 420px;
  background: linear-gradient(100deg, var(--parchment-2) 30%, var(--parchment) 50%, var(--parchment-2) 70%);
  background-size: 300% 100%;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- Produktside ---------- */
.breadcrumbs { font-size: .9rem; color: var(--muted); padding-top: 2.4rem; position: relative; z-index: 2; }
.breadcrumbs a { color: var(--muted); }
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: 1.5rem 3rem;
  align-items: start;
  position: relative;
  z-index: 2;
}
.gallery__main {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: var(--parchment-2);
  box-shadow: var(--shadow-lift);
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; animation: fade-in .6s ease; }
@keyframes fade-in { from { opacity: 0; } }
.gallery__thumbs { display: flex; gap: .6rem; margin-top: .9rem; flex-wrap: wrap; justify-content: center; }
.gallery__thumbs button {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  background: none;
  opacity: .7;
  transition: opacity .2s ease, transform .3s var(--ease);
}
.gallery__thumbs button:hover { opacity: 1; transform: scale(1.06); }
.gallery__thumbs button[aria-current='true'] { border-color: var(--ember); opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product__info { position: sticky; top: 120px; }
.product__info .price { font-size: 2.2rem; display: block; margin: .2rem 0 1rem; }
.product__lead { font-size: 1.15rem; color: var(--ink-soft); }
.product__buy {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
  margin: 1.6rem 0;
  padding: 1.2rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(107, 138, 69, .22);
  box-shadow: var(--shadow);
}
.product__buy .btn { flex: 1; min-width: 180px; }
.product__stock { width: 100%; margin: 0; font-size: .9rem; color: var(--ink-soft); }
.product__stock .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .4em; background: var(--ok); box-shadow: 0 0 0 4px rgba(79, 122, 58, .18); }
.product__stock--low .dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(232, 176, 74, .25); }
.product__stock--out .dot { background: var(--danger); box-shadow: none; }
.product__tale-link { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; }
.product__tale-link::after { content: '↓'; font-style: normal; }
.product__desc { border-top: 1px solid var(--parchment-3); padding-top: 1.4rem; margin-top: 1.4rem; }
.perks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .6rem; font-size: .95rem; color: var(--ink-soft); }
.perks li { display: flex; gap: .6rem; align-items: flex-start; }
.perks li::before { content: '❦'; color: var(--moss); }
@media (max-width: 820px) {
  .product { grid-template-columns: 1fr; }
  .product__info { position: static; }
}

/* Fortællingen på produktsiden – et lille blad af birkebark */
.tale-scroll {
  position: relative;
  max-width: 720px;
  margin: 1rem auto 0;
  padding: clamp(2.4rem, 5vw, 3.4rem) clamp(1.4rem, 5vw, 3.6rem) clamp(2rem, 4vw, 3rem);
  border-radius: 6px 26px 8px 30px;
  background: var(--white);
  background-image: var(--moss-texture), linear-gradient(175deg, #fffdf4, #f5f0dc);
  box-shadow: var(--shadow-lift);
  transform: rotate(-.6deg);
  z-index: 2;
}
.tale-scroll::before {
  content: '';
  position: absolute;
  top: -22px;
  left: 50%;
  width: 44px;
  height: 44px;
  translate: -50% 0;
  border-radius: 50%;
  background: url('/assets/img/mos-naerbillede.jpg') 30% 50% / cover;
  box-shadow: 0 0 0 4px var(--white), 0 6px 14px rgba(0, 0, 0, .25);
}
.tale-scroll h2 { text-align: center; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.tale-scroll h2 em { display: block; font-size: .55em; color: var(--moss); font-style: italic; letter-spacing: .05em; margin-bottom: .3em; }
.tale-scroll__body { font-family: var(--font-display); font-size: clamp(1.1rem, 1.7vw, 1.28rem); line-height: 1.7; color: var(--ink-soft); }
.tale-scroll__body p { opacity: 0; transform: translateY(12px); transition: opacity 1s ease, transform 1s var(--ease); }
.tale-scroll.is-visible .tale-scroll__body p { opacity: 1; transform: none; }
.tale-scroll.is-visible .tale-scroll__body p:nth-child(2) { transition-delay: .5s; }
.tale-scroll.is-visible .tale-scroll__body p:nth-child(3) { transition-delay: 1s; }
.tale-scroll__body p:first-child::first-letter {
  float: left;
  font-size: 3.8em;
  line-height: .78;
  padding: .06em .12em 0 0;
  color: var(--ember);
  font-weight: 600;
}
.tale-scroll__end { text-align: center; color: var(--moss); letter-spacing: .6em; margin: 1.2rem 0 0; }

/* ---------- Kurv & kasse ---------- */
.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding-block: 2.5rem 5rem;
  align-items: start;
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } }

.panel {
  position: relative;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(107, 138, 69, .2);
  box-shadow: var(--shadow);
}
.panel h2 { font-size: 1.8rem; }

.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--parchment-3);
  animation: card-in .6s var(--ease) both;
}
.cart-line:last-child { border-bottom: 0; }
.cart-line img,
.cart-line__ph { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; background: var(--parchment-2); box-shadow: 0 0 0 4px var(--parchment-2); }
.cart-line__name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--forest-deep); text-decoration: none; }
.cart-line__unit { font-size: .88rem; color: var(--muted); }
.cart-line__controls { display: flex; align-items: center; gap: .8rem; margin-top: .4rem; flex-wrap: wrap; }
.cart-line__total { font-weight: 800; text-align: right; white-space: nowrap; }
@media (max-width: 520px) {
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-line img, .cart-line__ph { width: 64px; height: 64px; }
  .cart-line__total { grid-column: 2; text-align: left; }
}

.totals { margin: 1.2rem 0 0; display: grid; gap: .45rem; }
.totals div { display: flex; justify-content: space-between; }
.totals .totals__grand {
  margin-top: .4rem;
  padding-top: .8rem;
  border-top: 1px solid var(--parchment-3);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--forest-deep);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
.field label,
.field legend { display: block; margin-bottom: .35rem; font-weight: 700; font-size: .92rem; }
.field small { color: var(--muted); font-weight: 400; }
fieldset.field { border: 0; padding: 0; margin: 0; }

.choice {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: .9rem 1rem;
  border: 1px solid var(--parchment-3);
  border-radius: var(--radius-small);
  margin-bottom: .6rem;
  cursor: pointer;
  background: var(--parchment);
  transition: border-color .2s ease, background-color .2s ease;
}
.choice:has(input:checked) { border-color: var(--moss); background: rgba(163, 187, 115, .15); }
.choice input { margin-top: .3rem; accent-color: var(--forest); }
.choice strong { display: block; }
.choice span { font-size: .88rem; color: var(--muted); }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.checkbox input { margin-top: .35rem; accent-color: var(--forest); width: 18px; height: 18px; }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert {
  padding: .9rem 1.1rem;
  border-radius: var(--radius-small);
  background: rgba(163, 48, 31, .08);
  border: 1px solid rgba(163, 48, 31, .3);
  color: var(--danger);
  margin: 1rem 0;
}
.alert--info { background: rgba(60, 127, 134, .08); border-color: rgba(60, 127, 134, .3); color: var(--sea); }

.payment-note {
  display: flex;
  gap: .8rem;
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: var(--radius-small);
  background: var(--parchment);
  font-size: .9rem;
  color: var(--ink-soft);
}

/* Tak / tom kurv / 404 */
.thanks { text-align: center; padding-block: 5rem; max-width: 640px; position: relative; z-index: 2; }
.thanks__seal {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: url('/assets/img/fluesvampe-knopper.jpg') 50% 30% / cover;
  box-shadow: 0 0 0 6px var(--white), 0 0 0 7px rgba(107, 138, 69, .4), 0 16px 30px -10px rgba(28, 42, 29, .5);
  animation: pop 1s var(--ease) both;
  font-size: 0;
  color: transparent;
}
@keyframes pop { from { transform: scale(0) translateY(40px); } 70% { transform: scale(1.12); } }
.order-number { font-family: var(--font-display); font-size: 2.2rem; color: var(--ember); }

/* Tekstsider */
.prose { max-width: 760px; margin-inline: auto; padding-block: 2.5rem 5rem; position: relative; z-index: 2; }
.prose h2 { font-size: 1.9rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose li { margin-bottom: .4rem; }
.placeholder { background: rgba(232, 176, 74, .3); padding: 0 .3em; border-radius: 4px; }

/* ---------- Sidefod ---------- */
.site-footer {
  position: relative;
  margin-top: auto;
  padding-top: 0;
  background: var(--forest-deep);
  background-image: radial-gradient(ellipse at 80% 0%, rgba(232, 176, 74, .1), transparent 50%), var(--moss-texture);
  color: rgba(244, 241, 226, .82);
  font-size: .95rem;
  isolation: isolate;
}
.site-footer__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2rem;
  padding-block: 3rem 3rem;
}
.site-footer h3 { color: var(--amber); font-size: 1.2rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: rgba(244, 241, 226, .85); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.logo--footer { color: var(--parchment); margin-bottom: 1rem; }
.logo--footer .logo__tagline { color: rgba(244, 241, 226, .6); }
.site-footer__lead { max-width: 320px; }
.site-footer__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.3rem;
  border-top: 1px solid rgba(244, 241, 226, .12);
  font-size: .85rem;
  color: rgba(244, 241, 226, .6);
}
.runes { letter-spacing: .5em; color: var(--gold); }
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Beskeder ---------- */
.toasts {
  position: fixed;
  bottom: 20px;
  left: 50%;
  translate: -50% 0;
  z-index: 100;
  display: grid;
  gap: .5rem;
  width: min(100% - 32px, 420px);
}
.toast {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1.2rem;
  border-radius: 999px;
  background: var(--forest-deep);
  color: var(--parchment);
  box-shadow: var(--shadow-lift);
  animation: toast-in .5s var(--ease);
  transition: opacity .4s ease, transform .4s ease;
}
.toast--error { background: var(--danger); }
.toast--leaving { opacity: 0; transform: translateY(10px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.95); } }

/* Afsløring ved scroll */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(3px);
  transition: opacity 1s ease, transform 1.1s var(--ease), filter 1s ease;
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* Blød overgang mellem sider */
::view-transition-old(root) { animation: vt-out .35s ease both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .tale-scroll__body p { opacity: 1; transform: none; filter: none; }
  .fireflies, .mist { display: none; }
}
.tale-scroll.reveal.is-visible { transform: rotate(-.6deg); }
@media (max-width: 700px) {
  .hero__image { object-position: 60% 70%; }
  .hero { align-items: start; }
  .hero__content { padding-block: 3rem 12rem; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(16, 26, 14, .85) 0%, rgba(16, 26, 14, .5) 55%, rgba(16, 26, 14, .05) 85%);
  }
}
.site-footer > .moss-band { height: clamp(120px, 14vw, 200px); }
