/*
Theme Name: Copenhagen Crafter
Description: Tema til Copenhagen Crafter. Organiske objekter til væggen og hjemmet, med WooCommerce.
Version: 0.8.5
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: copenhagen-crafter
*/

:root {
  --bg: #F2F2EE;
  --surface: #E8E9E4;
  --ink: #1C201E;
  --muted: #5B615D;
  --line: #CDD0C9;
  --accent: #1E5A4B;
  --on-accent: #FFFFFF;

  --font: "Albert Sans", system-ui, sans-serif;
  --serif: "Gloock", Georgia, serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  --step-3: clamp(2.2rem, 1.4rem + 3.4vw, 4.4rem);
  --display: clamp(2.2rem, 1rem + 3.2vw, 4.4rem);

  --gutter: clamp(1rem, 0.4rem + 2.6vw, 3rem);
  --ease-out: cubic-bezier(.2, .7, .1, 1);
  --header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: var(--gutter); top: -4rem; background: var(--ink); color: var(--bg); padding: .6rem 1rem; z-index: 100; }
.skip:focus { top: .75rem; }

/* Topmenu */
.top {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.admin-bar .top { top: 32px; }
.top.scrolled { border-bottom-color: var(--line); }
.wordmark { display: flex; align-items: center; gap: .8rem; text-decoration: none; justify-self: start; min-height: 44px; }
.wordmark .name { font-size: .7rem; font-weight: 500; letter-spacing: .32em; line-height: 1.35; }
/* Cc-logoet bruges som maske, så det kan farves med currentColor */
.logo-cc, .logo-lockup {
  display: block; background: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
}
.logo-cc { height: 26px; aspect-ratio: 1062 / 641; }
.logo-lockup { width: clamp(9rem, 14vw, 12rem); aspect-ratio: 1066 / 942; margin-bottom: 1.5rem; }
.nav ul { display: flex; gap: clamp(1rem, 2.4vw, 2.4rem); list-style: none; margin: 0; padding: 0; }
.nav a { display: block; text-decoration: none; padding: .5rem 0; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .25rem; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav a:hover::after, .nav .current-menu-item > a::after { transform: scaleX(1); }
.tools { justify-self: end; display: flex; align-items: center; gap: .5rem; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 99px; padding: 2px; list-style: none; margin: 0; }
.lang a { display: block; padding: .3rem .65rem; border-radius: 99px; text-decoration: none; font-size: var(--step--1); text-transform: uppercase; }
.lang .current-lang a, .lang [aria-current] { background: var(--ink); color: var(--bg); }
.icon-btn {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; background: none; border-radius: 50%; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--accent); color: var(--on-accent);
  font-size: 11px; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums;
}
.cart-count[data-n="0"] { display: none; }
.menu-btn { display: none; border: 0; background: none; padding: .5rem .25rem; min-height: 44px; cursor: pointer; font-weight: 600; }

/* Intro: video i fuld bredde med centreret overskrift ovenpå */
.intro { text-align: center; }
.hero {
  position: relative; overflow: hidden; background: #DCE1E1;
  height: min(calc(100svh - var(--header-h)), 58vw); min-height: 30rem;
}
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
/* Lys slør bag teksten, så den kan læses oven på hylderne */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 45% at 50% 52%, rgb(242 242 238 / .78), rgb(242 242 238 / .35) 60%, transparent 85%);
}
.hero-text { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; padding: 0 var(--gutter); }
.intro h1 {
  margin: 0 auto; max-width: 14ch;
  font-family: var(--serif); font-size: var(--display); font-weight: 400; line-height: .95; letter-spacing: -0.02em;
  text-wrap: balance;
}
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: center; margin-top: clamp(1.25rem, 2.5vw, 2rem); }
.intro-text { margin: clamp(2.5rem, 5vw, 4rem) auto 0; padding: 0 var(--gutter); max-width: 36rem; font-size: var(--step-1); line-height: 1.45; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 1.4rem;
  background: var(--accent); color: var(--on-accent); border: 0; border-radius: 99px;
  text-decoration: none; font-weight: 600; cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 85%, black); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.link { font-weight: 600; text-underline-offset: .3em; text-decoration-thickness: 1.5px; padding: .6rem 0; }

/* Katalog */
.catalog { padding: clamp(4rem, 9vw, 8rem) var(--gutter) clamp(3rem, 6vw, 6rem); }
.catalog-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.catalog-head h2 { margin: 0; font-family: var(--serif); font-size: var(--step-3); font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
.catalog-head p { margin: 0; color: var(--muted); white-space: nowrap; }
/* Kataloget: antal kort pr. række styres af --cols, og en række, der ikke er fuld, centreres */
.grid {
  --cols: 5; --gap-x: clamp(1rem, 1.8vw, 2rem);
  display: flex; flex-wrap: wrap;
  column-gap: var(--gap-x); row-gap: clamp(2.5rem, 4vw, 4rem);
}
.grid > .item { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap-x)) / var(--cols)); min-width: 0; }
.item { display: flex; flex-direction: column; }
.item-img {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--surface); border-bottom: 2px solid var(--ink);
}
.item-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .5s ease, transform .9s var(--ease-out);
}
.item-img .alt { opacity: 0; }
.item:hover .item-img img { transform: scale(1.03); }
.item:hover .item-img .alt { opacity: 1; }
.item-row { display: flex; flex-direction: column; gap: .2rem; margin-top: .9rem; }
.item h3 { margin: 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 400; letter-spacing: -0.01em; line-height: 1.15; }
.item h3 a { text-decoration: none; }
.item h3 a:hover { text-decoration: underline; text-underline-offset: .2em; }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.price del { color: var(--muted); }
.item p { margin: .35rem 0 0; color: var(--muted); max-width: 34ch; font-size: var(--step--1); }
.item-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .75rem; }
.item-meta { display: flex; align-items: center; flex-wrap: wrap; }
.swatch-dot { width: 18px; height: 18px; margin: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18); }
.swatch-name { font-size: var(--step--1); color: var(--muted); }
.swatch-row { display: flex; margin: 7px .5rem 7px 7px; }
.swatch-row .swatch-dot { width: 16px; height: 16px; margin: 0 0 0 -4px; box-shadow: 0 0 0 1.5px var(--bg), inset 0 0 0 1px rgb(0 0 0 / .18); }
.swatch-row .swatch-dot:first-child { margin-left: 0; }
.stock { flex-basis: 100%; margin: .15rem 0 0 .45rem; font-size: var(--step--1); color: var(--accent); font-weight: 600; }
.add {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 1rem;
  border: 1.5px solid var(--ink); background: none; border-radius: 99px; cursor: pointer; font-weight: 600; font-size: var(--step--1);
  text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s;
}
.add:hover { background: var(--ink); color: var(--bg); }
.add svg { width: 16px; height: 16px; }
.add.loading { opacity: .5; pointer-events: none; }
.added_to_cart { display: none !important; }

/* Unika og solgt */
.badge {
  position: absolute; top: .85rem; left: .85rem; z-index: 1;
  padding: .3rem .7rem; border-radius: 99px; background: var(--bg); color: var(--ink);
  font-size: var(--step--1); font-weight: 600;
}
.badge.sold { background: var(--ink); color: var(--bg); }
.is-sold .item-img > img { filter: grayscale(.7); opacity: .6; }
.sold-note { margin: 0 !important; font-size: var(--step--1); }

/* Mere fra studiet */
.more { padding: 0 var(--gutter) clamp(4rem, 8vw, 7rem); }
.more a {
  display: grid; grid-template-columns: 1fr minmax(0, 26rem); gap: 1rem 2rem; align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0; border-top: 1px solid var(--line); text-decoration: none;
}
.more a:last-child { border-bottom: 1px solid var(--line); }
.more strong { font-family: var(--serif); font-size: var(--step-3); font-weight: 400; letter-spacing: -0.02em; line-height: 1; transition: transform .45s var(--ease-out); }
.more span { color: var(--muted); }
.more a:hover strong { transform: translateX(1rem); }

/* Almindelige sider og WooCommerce-sider */
.page-main { padding: clamp(3rem, 7vw, 6rem) var(--gutter); max-width: 48rem; margin: 0 auto; }
.page-main h1 { font-family: var(--serif); font-weight: 400; font-size: var(--step-3); letter-spacing: -0.02em; line-height: 1; margin: 0 0 2rem; }
.page-main.wide { max-width: 80rem; }
.entry-content p { max-width: 65ch; }
.entry-content h2 { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); line-height: 1.15; margin: 2.5rem 0 .75rem; }
.entry-content ul { padding-left: 1.2rem; max-width: 65ch; }
.entry-content li { margin-bottom: .4rem; }
.entry-content .meta { color: var(--muted); font-size: var(--step--1); margin-top: 3rem; }
.entry-content .form-lines { padding: 1.25rem 1.5rem; background: var(--surface); }
.entry-content .form-lines p { margin: 0 0 .5rem; }
.ship-table, .entry-content table { width: 100%; max-width: 46rem; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: var(--step--1); }
.ship-table th, .ship-table td, .entry-content th, .entry-content td { text-align: left; padding: .7rem .75rem .7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ship-table th, .entry-content th { font-weight: 600; border-bottom: 2px solid var(--ink); }
.ship-table td:last-child { white-space: nowrap; text-align: right; }
@media (max-width: 600px) { .entry-content table { display: block; overflow-x: auto; } }

/* Produktside */
.product-page { padding: clamp(1.25rem, 2.5vw, 2rem) var(--gutter) 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(1.25rem, 2.5vw, 2rem); font-size: var(--step--1); color: var(--muted); }
.crumbs a { text-underline-offset: .25em; display: inline-block; padding: .25rem 0; }
.crumbs [aria-current] { color: var(--ink); }
.pp-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.pp-gallery { display: grid; gap: 1rem; }
.pp-gallery:focus-visible { outline-offset: 6px; }
.pp-shot { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.pp-shot:first-child { border-bottom: 2px solid var(--ink); }
.pp-shot img { width: 100%; height: 100%; object-fit: cover; }
.pp-count { display: none; }
.pp-sticky { position: sticky; top: calc(var(--header-h) + 2rem); padding-bottom: 2rem; }
.admin-bar .pp-sticky { top: calc(var(--header-h) + 2rem + 32px); }
.pp-badge {
  display: inline-block; margin: 0 0 1rem; padding: .3rem .8rem; border-radius: 99px;
  background: var(--surface); font-size: var(--step--1); font-weight: 600;
}
.pp-badge.sold { background: var(--ink); color: var(--bg); }
.pp-info h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: var(--step-3); letter-spacing: -0.02em; line-height: 1; text-wrap: balance; }
.pp-price { margin: .75rem 0 0; font-size: var(--step-1); font-variant-numeric: tabular-nums; }
.pp-price del { color: var(--muted); }
.pp-lead { color: var(--muted); max-width: 40ch; }
.pp-lead p { margin: 1rem 0 0; }
.pp-facts { margin: 1.75rem 0 0; }
.pp-facts > div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.pp-facts > div:last-child { border-bottom: 1px solid var(--line); }
.pp-facts dt { color: var(--muted); }
.pp-facts dd { margin: 0; display: flex; align-items: center; text-align: right; }
.pp-facts dd.low { color: var(--accent); font-weight: 600; }
.pp-facts .swatch-dot { margin: 0 .5rem 0 0; width: 16px; height: 16px; }
.pp-buy { margin-top: 1.75rem; }
.pp-buy form.cart { display: flex; gap: .75rem; margin: 0; }
.pp-buy .quantity:has(input[type="hidden"]) { display: none; }
/* Variable produkter: farveknapperne erstatter WooCommerce' dropdown */
.pp-colors { margin: 1.75rem 0 0; padding: 0; border: 0; }
.pp-colors legend { padding: 0; margin-bottom: .6rem; color: var(--muted); }
.pp-colors legend span { color: var(--ink); }
.pp-swatches { display: flex; flex-wrap: wrap; gap: .4rem; }
.pp-swatch { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
.pp-swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pp-swatch .dot { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18); transition: box-shadow .2s; }
.pp-swatch input:checked + .dot { box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18), 0 0 0 3px var(--bg), 0 0 0 4.5px var(--ink); }
.pp-swatch input:focus-visible + .dot { outline: 2px solid var(--accent); outline-offset: 6px; }
.pp-buy form.variations_form { display: block; }
.pp-buy table.variations, .pp-buy .reset_variations { display: none !important; }
.pp-buy .woocommerce-variation:empty, .pp-buy .woocommerce-variation-price:empty { display: none; }
.pp-buy .woocommerce-variation-add-to-cart { display: flex; gap: .75rem; }
.pp-buy .single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }
.pp-buy .quantity input {
  width: 4.75rem; height: 52px; border: 1.5px solid var(--line); border-radius: 99px; background: transparent;
  text-align: center; font: inherit; font-variant-numeric: tabular-nums;
}
.pp-buy .single_add_to_cart_button, .pp-cta {
  flex: 1; justify-content: center; min-height: 52px; padding: 0 1.5rem; border: 0; border-radius: 99px;
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; cursor: pointer;
  transition: background .2s, transform .2s;
}
.pp-buy .single_add_to_cart_button:hover { background: color-mix(in srgb, var(--accent) 85%, black); }
.pp-buy .single_add_to_cart_button:active { transform: scale(.98); }
.pp-cta { display: flex; margin-top: 1.25rem; }
.pp-ship { margin: .85rem 0 0; font-size: var(--step--1); color: var(--muted); }
.pp-sold-note { margin: 1.75rem 0 0; color: var(--muted); }
.pp-details { margin-top: 2.5rem; }
.pp-details details { border-top: 1px solid var(--line); }
.pp-details details:last-child { border-bottom: 1px solid var(--line); }
.pp-details summary {
  display: flex; justify-content: space-between; align-items: center; min-height: 52px;
  cursor: pointer; list-style: none; font-weight: 600;
}
.pp-details summary::-webkit-details-marker { display: none; }
.pp-details summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; transition: transform .3s var(--ease-out); }
.pp-details details[open] summary::after { transform: rotate(45deg); }
.pp-details details > div { padding-bottom: 1.25rem; color: var(--muted); }
.pp-details details > div p { margin: 0 0 .75rem; }
.pp-details details > div p > a:only-child { display: inline-block; padding: .25rem 0; }
.pp-spec { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.5rem; margin: 0; }
.pp-spec dt { color: var(--ink); }
.pp-spec dd { margin: 0; }
.product-page .related { padding-left: 0; padding-right: 0; }

/* Infosider: Studiet, Specialbestillinger, FAQ */
.info-page { padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(4rem, 8vw, 7rem); }
.info-page h2 { margin: 0 0 .75rem; font-family: var(--serif); font-weight: 400; font-size: var(--step-2); letter-spacing: -0.01em; line-height: 1.1; }
.info-head { max-width: 52rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.info-head h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: var(--step-3); letter-spacing: -0.02em; line-height: 1; }
.info-lead { margin: 1.25rem 0 0; font-size: var(--step-1); line-height: 1.45; color: var(--muted); max-width: 40rem; }
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.about-photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); border-radius: 999px 999px 0 0; border-bottom: 2px solid var(--ink); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { display: grid; place-items: center; height: 100%; padding: 2rem; text-align: center; color: var(--muted); font-size: var(--step--1); }
.about-text p { color: var(--muted); max-width: 52ch; margin: 0 0 1rem; }
.about-text h2 { font-size: var(--step-3); line-height: 1; margin-bottom: 1.25rem; }
.info-figure { margin: 0 0 clamp(3rem, 6vw, 5rem); aspect-ratio: 16 / 7; overflow: hidden; background: var(--surface); border-bottom: 2px solid var(--ink); }
.info-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.info-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.info-cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-cols > div { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.info-cols p { margin: 0; color: var(--muted); max-width: 42ch; }

/* Trin i en rækkefølge: nummereringen er indhold, ikke pynt */
.steps-wrap { margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.steps { list-style: none; counter-reset: step; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); }
.steps li { counter-increment: step; display: grid; gap: .4rem; align-content: start; padding-top: 1rem; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: var(--step-2); line-height: 1; color: var(--accent); }
.steps span { color: var(--muted); }

.materials { margin-bottom: clamp(3.5rem, 7vw, 6rem); max-width: 52rem; }
.materials dl { margin: 1.25rem 0 0; }
.materials dl > div { display: grid; grid-template-columns: 14rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.materials dl > div:last-child { border-bottom: 1px solid var(--line); }
.materials dt { font-weight: 600; }
.materials dd { margin: 0; color: var(--muted); }

.info-cta { padding: clamp(2.5rem, 5vw, 4rem); background: var(--surface); text-align: center; }
.info-cta p { margin: 0 auto 1.5rem; color: var(--muted); }

.faq { display: grid; gap: clamp(2.5rem, 5vw, 4rem); max-width: 52rem; }
.faq .pp-details { margin-top: 0; }
.faq .pp-details a { color: var(--ink); }

/* Formular */
.form-wrap { max-width: 46rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.inquiry { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { display: grid; gap: .4rem; align-content: start; }
.field label { font-weight: 600; }
.field .opt, .hint, .form-foot { font-weight: 400; color: var(--muted); font-size: var(--step--1); }
.hint { margin: 0; }
.req { color: #A23B2A; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem 1rem; border: 1.5px solid var(--line); border-radius: 12px;
  background: #FAFAF7; font: inherit; color: var(--ink);
  transition: border-color .2s;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #A23B2A; }
.field input[type="file"] { font: inherit; font-size: var(--step--1); padding: .5rem 0; }
.field.check { grid-template-columns: auto 1fr; align-items: start; column-gap: .75rem; }
.field.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--accent); }
.field.check label { font-weight: 400; }
.field.check .field-error { grid-column: 1 / -1; }
.field-error { margin: 0; color: #A23B2A; font-size: var(--step--1); font-weight: 600; }
.form-foot { margin: 0; }
.inquiry .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error-summary, .form-success { margin-top: 1.5rem; padding: 1.25rem 1.5rem; border-left: 3px solid #A23B2A; background: var(--surface); }
.form-success { border-left-color: var(--accent); }
.error-summary p, .form-success p { margin: 0 0 .5rem; }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.error-summary a { color: #A23B2A; }

/* Kurv og kasse (WooCommerce-blokke) i temaets stil */
.wc-block-components-button:not(.is-link) {
  border-radius: 99px !important; background: var(--accent) !important; color: var(--on-accent) !important;
  min-height: 52px; font-weight: 600;
}
.wc-block-components-button:not(.is-link):hover { background: color-mix(in srgb, var(--accent) 85%, black) !important; }
.wc-block-components-text-input input, .wc-block-components-combobox .components-combobox-control__input,
.wc-blocks-components-select .wc-blocks-components-select__select, .wc-block-components-textarea {
  border-radius: 12px !important; border: 1.5px solid var(--line) !important; background: #FAFAF7 !important;
}
/* Landevælgerens ramme har sin egen hvide baggrund med mindre runding, som stak ud i hjørnerne */
.wc-blocks-components-select .wc-blocks-components-select__container { background: transparent !important; border-radius: 12px !important; }
.wc-block-components-title, .wc-block-components-checkout-step__title { font-family: var(--serif) !important; font-weight: 400 !important; }
.wc-block-cart__submit-container, .wc-block-checkout__actions { margin-top: 1rem; }
/* Hurtig betaling (Apple Pay, Google Pay) står lige over betalingsmulighederne i stedet for øverst i kassen, og uden egen boks */
.wc-block-checkout__form { display: flex; flex-direction: column; }
.wc-block-checkout__form > div:has(> .wc-block-components-express-payment) { order: 1; margin-bottom: 1rem; }
.wc-block-checkout__form > .wc-block-checkout__payment-method,
.wc-block-checkout__form > .wc-block-checkout__payment-method ~ * { order: 2; }
.wc-block-components-express-payment--checkout .wc-block-components-express-payment__title-container { display: block; position: static !important; margin-bottom: 1rem; }
.wc-block-components-express-payment--checkout .wc-block-components-express-payment__title-container::before,
.wc-block-components-express-payment--checkout .wc-block-components-express-payment__title-container::after { display: none; }
.wc-block-components-express-payment--checkout .wc-block-components-express-payment__title { font-size: 20px; padding: 0; background: none; transform: none !important; }
.wc-block-components-express-payment--checkout .wc-block-components-express-payment__content { border: 0; padding: 0; margin: 0; }
/* WooCommerce runder og beskærer knappernes felter, men Stripe tegner knappen lidt ud over feltet, så hjørnerne blev skåret af */
.wc-block-components-express-payment--checkout .wc-block-components-express-payment__event-buttons,
.wc-block-components-express-payment--checkout .wc-block-components-express-payment__event-buttons > li { overflow: visible !important; border-radius: 0 !important; }

/* WooCommerce-beskeder, f.eks. "lagt i kurven" */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem;
  margin: 0 0 1.5rem; padding: 1rem 1.25rem; list-style: none;
  background: var(--surface); border-left: 3px solid var(--accent);
}
.woocommerce-error { border-left-color: #A23B2A; }
.woocommerce-message .button, .woocommerce-info .button {
  order: 2; display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border-radius: 99px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; font-size: var(--step--1);
}

/* Footer */
.site-footer {
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2rem; background: var(--ink); color: var(--bg);
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
}
.site-footer p, .site-footer li { margin: 0; color: #C4C8C2; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer a { text-decoration: none; display: inline-block; padding: .2rem 0; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2 { font-size: var(--step-0); font-weight: 600; margin: 0 0 .75rem; color: var(--bg); }
.fineprint { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 2rem; border-top: 1px solid #3A403C; font-size: var(--step--1); }
.fineprint p { margin: 0; }
.consent-open { border: 0; background: none; padding: .2rem 0; color: #C4C8C2; font: inherit; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.consent-open:hover { color: var(--bg); }

/* Cookiebanner */
.consent {
  position: fixed; left: var(--gutter); bottom: var(--gutter); z-index: 70; max-width: 26rem;
  padding: 1.5rem; background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 50px rgb(28 32 30 / .18);
}
.consent[hidden] { display: none; }
.consent h2 { margin: 0 0 .5rem; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
.consent p { margin: 0 0 .75rem; font-size: var(--step--1); color: var(--muted); }
.consent a { color: var(--ink); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1rem; }
/* Begge knapper ser ens ud, så det er lige så let at sige nej som ja */
.consent-btn {
  min-height: 46px; padding: 0 1rem; border: 1.5px solid var(--ink); border-radius: 99px;
  background: var(--ink); color: var(--bg); font: inherit; font-weight: 600; font-size: var(--step--1); cursor: pointer;
}
.consent-btn:hover { background: var(--accent); border-color: var(--accent); }
@media (max-width: 520px) { .consent { left: .75rem; right: .75rem; bottom: .75rem; max-width: none; } }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 60;
  transform: translate(-50%, 150%); opacity: 0;
  background: var(--ink); color: var(--bg); padding: .85rem 1.25rem; border-radius: 99px;
  transition: transform .4s var(--ease-out), opacity .3s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* Mobilmenu */
.sheet {
  position: fixed; inset: var(--header-h) 0 0; z-index: 40; background: var(--bg);
  padding: 2rem var(--gutter); display: none;
}
.sheet.open { display: block; }
.sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet .menu a { display: block; font-family: var(--serif); font-size: var(--step-3); font-weight: 400; letter-spacing: -0.02em; text-decoration: none; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.sheet .lang { display: inline-flex; margin-top: 1.5rem; }

/* Indlæsning: videoen falder på plads, og teksten toner frem */
@media (prefers-reduced-motion: no-preference) {
  .js .intro h1, .js .intro .actions { opacity: 0; transform: translateY(1rem); }
  .js .hero video { transform: scale(1.08); }
  .loaded .hero video { transform: scale(1); transition: transform 2.4s var(--ease-out); }
  .loaded .intro h1, .loaded .intro .actions { opacity: 1; transform: none; transition: opacity .9s ease .5s, transform 1s var(--ease-out) .5s; }
  .loaded .intro .actions { transition-delay: .65s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media (max-width: 1200px) {
  .grid { --cols: 4; }
}
@media (max-width: 1000px) {
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .grid { --cols: 3; }
  .info-cols, .info-cols.two, .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 26rem; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .field-row { grid-template-columns: 1fr; }
  .materials dl > div { grid-template-columns: 1fr; gap: .25rem; }
  .info-figure { aspect-ratio: 4 / 3; }
  .pp-grid { grid-template-columns: 1fr; }
  .pp-gallery-wrap { position: relative; margin: 0 calc(var(--gutter) * -1); }
  .pp-gallery { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pp-gallery::-webkit-scrollbar { display: none; }
  .pp-shot { flex: 0 0 100%; scroll-snap-align: start; }
  .pp-count {
    display: block; position: absolute; right: var(--gutter); bottom: 1rem; margin: 0; padding: .25rem .7rem; border-radius: 99px;
    background: rgb(242 242 238 / .85); font-size: var(--step--1); font-variant-numeric: tabular-nums;
  }
  .pp-sticky { position: static; }
}
@media (max-width: 782px) {
  .admin-bar .top { top: 46px; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .top { grid-template-columns: 1fr auto; }
  .tools > .lang { display: none; }
  .more a { grid-template-columns: 1fr; }
  .hero { height: calc(100svh - var(--header-h) - 4rem); min-height: 26rem; }
  .hero::after { background: radial-gradient(ellipse 85% 40% at 50% 52%, rgb(242 242 238 / .82), rgb(242 242 238 / .4) 65%, transparent 90%); }
}
@media (max-width: 600px) {
  /* To kort pr. række på mobil: kun det vigtigste på kortet */
  .grid { --cols: 2; --gap-x: .75rem; row-gap: 2rem; }
  .item h3 { font-size: 1.05rem; }
  .item p { display: none; }
  .item-foot { flex-direction: column; align-items: stretch; }
  .item-foot .add { justify-content: center; padding: 0 .5rem; }
  .badge { top: .5rem; left: .5rem; padding: .2rem .55rem; font-size: .75rem; }
}
@media (max-width: 520px) {
  .site-footer { grid-template-columns: 1fr; }
}
