/* ==========================================================================
   Product Single Bliktud Section — sp-section-product-single-bliktud-*
   Mobile-first. Desktop breakpoint: min-width 1024px.
   ========================================================================== */

/* === Container-override ===
   NB: Astras #content > .ast-container har max-width 1240px på 922px+.
   Specificitet (1,1,1) overstyrer Astras (0,1,0) regel for .ast-container.
   #content er et ID og bidrager med 1,0,0; .bliktud-nonprofile-product 0,1,0;
   .ast-container 0,0,1 → samlet (1,1,1).
   Scoped til non-profile produktsider via body.bliktud-nonprofile-product.
   #content > combinator sikrer at kun main-content-wrapperens .ast-container
   rammes — ikke header- og footer-.ast-container. */
body.bliktud-nonprofile-product #content > .ast-container {
  max-width: var(--bs-desktop-section-max-width);
}

/* Root section wrapper */
.sp-section-product-single-bliktud {
  background: inherit;
  padding: 24px 16px;
  max-width: var(--bs-desktop-section-max-width, 1366px);
  margin-inline: auto;
}

/* ------------------------------------------------------------------
   Grid layout
   Mobile: single column stack
   Desktop: gallery | info | price-box (1.4fr 1.5fr 1fr)
   ------------------------------------------------------------------ */
.sp-section-product-single-bliktud-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .sp-section-product-single-bliktud-grid {
    grid-template-columns: 1.4fr 1.5fr 1fr;
    gap: 40px;
    align-items: start;
  }
}

/* ------------------------------------------------------------------
   Gallery column
   ------------------------------------------------------------------ */

/* Gallery-kolonnen er position:relative så logo-overlay kan anchor'es */
.sp-section-product-single-bliktud-gallery {
  position: relative;
}

.sp-section-product-single-bliktud-gallery .woocommerce-product-gallery {
  margin: 0;
}

/* Astra overstyrer div.images til width:50% i media-query med specificitet (1,4,2):
   .woocommerce #content .ast-woocommerce-container div.product div.images { width:50% }
   Vi vinder med (1,5,2) ved at tilføje en ekstra klasse i kæden (.ast-container). */
body.bliktud-nonprofile-product #content .ast-container .sp-section-product-single-bliktud-gallery div.images.woocommerce-product-gallery {
  width: 100%;
  max-width: 100%;
  float: none;
}

/* Produktbillede fylder kolonnens fulde bredde */
.sp-section-product-single-bliktud-gallery .woocommerce-product-gallery__image img,
.sp-section-product-single-bliktud-gallery .woocommerce-product-gallery img {
  width: 100%;
  height: auto;
  display: block;
}

/* Zoom-lup ikon flyttes til top-venstre (default top-right kolliderer med producent-logo) */
.sp-section-product-single-bliktud-gallery .woocommerce-product-gallery__trigger {
  left: 0.5em;
  right: auto;
}

/* Producent-logo: position:absolute top-right overlay over galleribillede.
   Z-index over billede så det overlapper ned over billedet. */
.sp-section-product-single-bliktud-manufacturer-logo {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 8px;
  border-radius: 4px;
}

/* ------------------------------------------------------------------
   Sektion B — Fonte, scoped strikt til sektionen (påvirker ikke andre sider)
   H1: Alexandria Medium 500 36px — ingen text-transform (mixed case per design guide)
   H2-H6: Alexandria
   Brødtekst: Roboto Regular 15px
   ------------------------------------------------------------------ */
.sp-section-product-single-bliktud h1 {
  font-family: var(--bs-font-alexandria), "Alexandria", sans-serif;
  font-weight: 500;
  font-size: 36px;
  text-transform: none;
}

.sp-section-product-single-bliktud h2,
.sp-section-product-single-bliktud h3,
.sp-section-product-single-bliktud h4,
.sp-section-product-single-bliktud h5,
.sp-section-product-single-bliktud h6 {
  font-family: var(--bs-font-alexandria), "Alexandria", sans-serif;
}

.sp-section-product-single-bliktud,
.sp-section-product-single-bliktud p,
.sp-section-product-single-bliktud li,
.sp-section-product-single-bliktud span,
.sp-section-product-single-bliktud button,
.sp-section-product-single-bliktud div {
  font-family: var(--bs-font-roboto), "Roboto Regular", sans-serif;
  font-size: 15px;
}

/* ------------------------------------------------------------------
   Short description — over bullets
   Fremhævet tekst: Roboto Bold 700 16px per design guide
   ------------------------------------------------------------------ */
.sp-section-product-single-bliktud-short-desc {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--bs-color-base-100, #453f2e);
  font-family: var(--bs-font-roboto-bold), "Roboto Bold", sans-serif;
  font-weight: 700;
}

/* ------------------------------------------------------------------
   Bullets — checkmark SVG: sort, tykkere stroke (3.5), 17.6px, 2px ned
   ------------------------------------------------------------------ */
.sp-section-product-single-bliktud-bullets {
  list-style: none;
  padding-left: 0;
  margin: 16px 0;
}

.sp-section-product-single-bliktud-bullets li {
  padding-left: 28px;
  margin-bottom: 8px;
  position: relative;
}

.sp-section-product-single-bliktud-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 17.6px;
  height: 17.6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ------------------------------------------------------------------
   Sektion D — Faner (tabs)
   Aktiv: beige (#F2EFE9 = --bs-color-base-10), Alexandria Bold 700 16px
   Inaktiv: hvid (#fff = --bs-color-base-00)
   Top-corners 6px radius, ingen border-bottom så fane og panel flyder sammen
   ------------------------------------------------------------------ */
.sp-section-product-single-bliktud-tabs {
  display: flex;
  gap: 8px;
  border-bottom: none;
  margin-top: 24px;
}

/* Specificitet (0,1,0): .sp-section-...-tab-button — overstyrer Astras button-defaults (0,0,1) */
.sp-section-product-single-bliktud-tab-button {
  background: var(--bs-color-base-00, #fff);
  border: 1px solid var(--bs-color-base-10, #f2efe9);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 14px 28px;
  font-family: var(--bs-font-alexandria), "Alexandria", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--bs-color-ink, #0f0f0f);
  cursor: pointer;
  /* Astra giver alle <button> en `box-shadow: rgba(0,0,0,.05) 0 1px 2px` der renderes
     som en svag kant under fanen — nulstil den så fane og panel flyder helt sammen. */
  box-shadow: none;
  transition: background 0.15s, border-color 0.15s;
}

/* Font re-asserteres over den brede `.sp-…-bliktud button`-regel (0,1,1, linje 115-123).
   Kun font sættes her (0,2,1) — IKKE background/border — så :hover/.is-active-states (0,2,0)
   beholder deres eget visuelle udtryk uforstyrret. */
.sp-section-product-single-bliktud-tabs button.sp-section-product-single-bliktud-tab-button {
  font-family: var(--bs-font-alexandria), "Alexandria", sans-serif;
  font-size: 16px;
}

/* Hover — subtil feedback, men forskellig fra aktiv-state */
.sp-section-product-single-bliktud-tab-button:hover {
  background: var(--bs-color-base-10, #f2efe9);
  color: var(--bs-color-ink, #0f0f0f);
  border-color: var(--bs-color-base-10, #f2efe9);
}

/* Focus / active states — override Astra's defaults.
   .is-active regel kommer EFTER :focus så valgt fane bevarer sit visuelle udtryk */
.sp-section-product-single-bliktud-tab-button:focus-visible,
.sp-section-product-single-bliktud-tab-button:focus,
.sp-section-product-single-bliktud-tab-button:active {
  color: var(--bs-color-ink, #0f0f0f);
  background-color: var(--bs-color-base-00, #fff);
  border-color: var(--bs-color-base-10, #f2efe9);
  outline: none;
}

/* Aktiv fane: beige baggrund + ink-tekst + flyder visuelt med panel nedenunder */
.sp-section-product-single-bliktud-tab-button.is-active {
  background: var(--bs-color-base-10, #f2efe9);
  border-color: var(--bs-color-base-10, #f2efe9);
  color: var(--bs-color-ink, #0f0f0f);
}

/* ------------------------------------------------------------------
   Sektion D — Faneblade (panels)
   Beige baggrund, 22px 26px padding, border-radius 0 6px 6px 6px
   (øverste venstre flade fordi aktiv fane "sidder ovenpå")

   Streg-fix: fane-knapperne har border:1px solid base-10 med border-bottom:none.
   Uden eksplicit overlapning kan browser-rendering introducere en synlig
   sub-pixel streg i grænsen fane↔panel. margin-top:-1px trækker panelet
   1px op under fane-bunden og eliminerer synlig streg. border-top:none
   sikrer at panelet selv ikke starter med en synlig kant-linje.
   ------------------------------------------------------------------ */
.sp-section-product-single-bliktud-tab-panel {
  display: none;
  padding: 22px 26px;
  background: var(--bs-color-base-10, #f2efe9);
  border-radius: 0 6px 6px 6px;
  margin-top: -1px; /* overlap fane-knappens bund — fjerner synlig streg */
  border-top: none;
  color: var(--bs-color-base-100, #453f2e);
}

.sp-section-product-single-bliktud-tab-panel.is-active {
  display: block;
}

/* ------------------------------------------------------------------
   Varenummer (SKU) — top of specifications tab
   ------------------------------------------------------------------ */
.sp-section-product-single-bliktud-sku {
  margin: 0 0 14px;
  font-size: 15px;
}

.sp-section-product-single-bliktud-sku-label {
  font-weight: 600;
}

/* ------------------------------------------------------------------
   Specifikationstekst (WYSIWYG) inside specifications tab
   ------------------------------------------------------------------ */
.sp-section-product-single-bliktud-specification-text {
  margin: 0 0 16px;
  line-height: 1.6;
}

.sp-section-product-single-bliktud-specification-text img {
  max-width: 100%;
  height: auto;
}

.sp-section-product-single-bliktud-specification-text a {
  color: var(--bs-color-action-100, #536508);
  text-decoration: underline;
}

/* ------------------------------------------------------------------
   Datasheets list inside specifications tab
   ------------------------------------------------------------------ */
.sp-section-product-single-bliktud-datasheets h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 16px 0 8px;
}

.sp-section-product-single-bliktud-datasheets ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.sp-section-product-single-bliktud-datasheets li {
  margin-bottom: 6px;
}

.sp-section-product-single-bliktud-datasheets a {
  color: var(--bs-color-action-100, #536508);
  text-decoration: underline;
}

/* ------------------------------------------------------------------
   Sektion E — Pris-boks (højre kolonne)
   Baggrund var(--bs-color-base-10), padding 26px 28px, border-radius 6px
   ------------------------------------------------------------------ */
.sp-section-product-single-bliktud-price-box {
  background: var(--bs-color-base-10, #f2efe9);
  padding: 26px 28px;
  border-radius: 6px;
  border: 0;
}

@media (max-width: 1023px) {
  .sp-section-product-single-bliktud-price-box {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
  }
}

/* Sektion E — SPAR-badge: gul (--bs-color-yellow), base-100-tekst, Alexandria 700 13px
   Scopet til price-box + element (0,2,1) så font-family/-size slår den brede
   `.sp-…-bliktud span`-regel (0,1,1) på linje 115-123. */
.sp-section-product-single-bliktud-price-box span.sp-section-product-single-bliktud-spar-badge {
  display: inline-block;
  background: var(--bs-color-yellow, #fae052);
  color: var(--bs-color-base-100, #453f2e);
  font-family: var(--bs-font-alexandria), "Alexandria", sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 6px;
}

/* Sektion E — Gennemstreget/var-pris: base-50 farve, Alexandria 500 15px
   Design guide: .price-block { font-family: var(--font-display) } + .was { font-weight: 500 }.
   Scopet til price-box + element (0,2,1) så Alexandria slår den brede `.sp-…-bliktud p` (0,1,1). */
.sp-section-product-single-bliktud-price-box p.sp-section-product-single-bliktud-price-regular {
  color: var(--bs-color-base-100, #453F2E);
  text-decoration: line-through;
  font-size: 15px;
  font-family: var(--bs-font-alexandria), "Alexandria", sans-serif;
  font-weight: 500;
  margin: 0 0 4px 0;
}

/* Sektion E — Hovedpris: Alexandria Bold 700 40px, base-100 farve
   Scopet til price-box + element (0,2,1) så font-size 40px + Alexandria slår den brede
   `.sp-…-bliktud p`-regel (0,1,1) der ellers tvang 15px Roboto. */
.sp-section-product-single-bliktud-price-box p.sp-section-product-single-bliktud-price-main,
.sp-section-product-single-bliktud-price-box p.sp-section-product-single-bliktud-price-main span {
  font-family: var(--bs-font-alexandria), "Alexandria", sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--bs-color-base-100, #453f2e);
  margin: 0;
  line-height: 1.05;
}

/* Hovedpris: 37px på desktop (mobil beholder 40px fra reglen ovenfor).
   Skal stå EFTER base-reglen for at vinde ved samme specificitet (0,2,1). */
@media (min-width: 1024px) {
  .sp-section-product-single-bliktud-price-box p.sp-section-product-single-bliktud-price-main {
    font-size: 37px;
  }
}

/* Sektion E — "ekskl. moms"-tekst: Alexandria 600 14px, base-50 farve
   Design guide: .price-block { font-family: var(--font-display) } gælder hele prisblokken.
   Scopet til price-box + element (0,2,1) så Alexandria + 14px slår den brede `.sp-…-bliktud p`
   (0,1,1) der ellers tvang 15px Roboto. */
.sp-section-product-single-bliktud-price-box p.sp-section-product-single-bliktud-price-excl,
.sp-section-product-single-bliktud-price-box p.sp-section-product-single-bliktud-price-excl span {
  font-family: var(--bs-font-roboto-bold), "Roboto bold", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--bs-color-base-100, #453f2e);
  /* Ingen top-margin: "ekskl. moms"-teksten skal ligge tæt op ad hovedprisen
     (hovedprisen har margin:0). 16px under til næste element. */
  margin: 0 0 16px 0;
}

/* For VARIABLE produkter ligger pris-<p>'erne i WC's .single_variation_wrap.
   WC's stylesheet sætter `.woocommerce-js div.product form.cart .single_variation_wrap p
   { margin-bottom: 1em }` (specificitet 0,4,3) som slår vores price-main-regel (0,2,1)
   og genindfører 16px afstand under hovedprisen → mellemrum til "ekskl. moms".
   Vi matcher WC's kæde + vores egen klasse (0,5,3) for at vinde uden !important. */
.woocommerce-js div.product form.cart .single_variation_wrap p.sp-section-product-single-bliktud-price-main {
  margin-bottom: 0;
}

/* Simple-produkt: wc_price() pakker beløbet i <span class="woocommerce-Price-amount">,
   som temaet (Astra) giver egen font-size/-weight → prisen så mindre/lettere ud end
   variant-prisen (ren tekst sat af JS). Tving span'en til at arve <p>'ens typografi,
   så simple- og variant-pris matcher. */
body.woocommerce-js.bliktud-nonprofile-product .sp-section-product-single-bliktud .sp-section-product-single-bliktud-price-box .sp-section-product-single-bliktud-price-main .woocommerce-Price-amount,
body.woocommerce-js.bliktud-nonprofile-product .sp-section-product-single-bliktud .sp-section-product-single-bliktud-price-box .sp-section-product-single-bliktud-price-regular .woocommerce-Price-amount,
body.woocommerce-js.bliktud-nonprofile-product .sp-section-product-single-bliktud .sp-section-product-single-bliktud-price-box .sp-section-product-single-bliktud-price-excl .woocommerce-Price-amount {
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  color: inherit;
}

/* Sektion C — Add to cart-knap: grøn, hvid tekst, Roboto Bold 16px, pill-form
   FIX: tidligere selector `.woocommerce-js body.bliktud-nonprofile-product …` var ugyldig —
   `.woocommerce-js` sidder PÅ <body>, ikke som forfader, så reglen matchede aldrig og knappen
   faldt tilbage til Astras blå button-default. Nu samlet på body: (0,6,1) slår både Astras
   customizer-button (0,0,1) og WC-grid `.woocommerce-js div.product form.cart .button…` (0,3,2). */
body.woocommerce-js.bliktud-nonprofile-product .sp-section-product-single-bliktud .sp-section-product-single-bliktud-price-box .button.single_add_to_cart_button,
body.woocommerce-js.bliktud-nonprofile-product .sp-section-product-single-bliktud .sp-section-product-single-bliktud-price-box button[type="submit"].single_add_to_cart_button {
  background: var(--bs-color-action-30, #90a539);
  color: var(--bs-color-base-00, #fff);
  border: 0;
  border-radius: 999px;
  /* Samme højde som antal-vælgeren (44px). Lodret padding fjernet til fordel
     for fast højde + inline-flex-centrering (håndterer ikon + tekst). */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  box-sizing: border-box;
  padding: 0 24px;
  /* WC's `…form.cart .button { margin-bottom:1em; float:left }` (0,4,2) skubber
     knappen opad i den centrerede flex-række — nulstil margin/float. */
  margin: 0;
  float: none;
  font-family: var(--bs-font-roboto-bold), "Roboto Bold", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  width: 100%;
  /* "Tilføj til kurv" på én linje (jf. design #18) */
  white-space: nowrap;
  /* WC fader knappen (opacity) i "selection needed"-tilstanden før variant er
     valgt — designet viser den solid, så vi holder den fuldt synlig. */
  opacity: 1;
}

body.woocommerce-js.bliktud-nonprofile-product .sp-section-product-single-bliktud .sp-section-product-single-bliktud-price-box .button.single_add_to_cart_button:hover,
body.woocommerce-js.bliktud-nonprofile-product .sp-section-product-single-bliktud .sp-section-product-single-bliktud-price-box button[type="submit"].single_add_to_cart_button:hover {
  background: var(--bs-color-action-60, #6e8316);
  color: var(--bs-color-base-00, #fff);
}

/* I variable-produktets flex-række (.variations_button) må køb-knappen IKKE
   fylde 100% — det får dens flex-basis (flex:1 1 auto → basis fra width) til at
   kræve fuld bredde og wrappe ned under antal-vælgeren. width:auto lader flex
   styre bredden, så knappen fylder resten af rækken ved siden af qty.
   Specificitet (0,7,1) slår width:100%-reglen ovenfor (0,6,1). */
body.woocommerce-js.bliktud-nonprofile-product .sp-section-product-single-bliktud .sp-section-product-single-bliktud-price-box .variations_button .button.single_add_to_cart_button,
body.woocommerce-js.bliktud-nonprofile-product .sp-section-product-single-bliktud .sp-section-product-single-bliktud-price-box .variations_button button[type="submit"].single_add_to_cart_button {
  width: auto;
  min-width: 0;
}

/* ------------------------------------------------------------------
   Sektion F — Stock-status: grøn cirkel + hvidt flueben + Alexandria 600
   ------------------------------------------------------------------ */
.sp-section-product-single-bliktud-stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--bs-font-alexandria), "Alexandria", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--bs-color-base-100, #453f2e);
  margin: 12px 0 0 0;
}

/* Grøn cirkel-container: 22×22, border-radius 50%, action-30 baggrund */
.sp-section-product-single-bliktud-stock-dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background-color: var(--bs-color-action-30, #90a539);
  color: #fff;
  flex-shrink: 0;
}

/* SVG flueben: 13×13 px inde i cirklen */
.sp-section-product-single-bliktud-stock-dot svg {
  width: 13px;
  height: 13px;
  display: block;
}

/* Ikke-på-lager: rød cirkel (eksisterende farve bevaret) */
.sp-section-product-single-bliktud-stock.is-out-of-stock {
  color: #c44;
}

/* ==========================================================================
   Sektion G — Variant-pills (custom UI med .is-selected som aktiv-klasse)
   Container: inline-flex med grøn border, pill-form
   Aktiv pille: grøn baggrund + hvid tekst
   NB: Disse pills er sektionens egne knapper (ikke WC's native <select>).
   Aktiv-state styres af script.js via klassen .is-selected.
   ========================================================================== */

.sp-section-product-single-bliktud-variants {
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sp-section-product-single-bliktud-variant-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-section-product-single-bliktud-variant-label {
  font-weight: 600;
  color: var(--bs-color-base-100, #453f2e);
  font-size: 14px;
}

/* --- Pills-container: segment-stil — knapperne ligger op ad hinanden UDEN mellemrum,
   med kun de yderste hjørner afrundede (ingen radius ind mod hinanden). --- */

.sp-section-product-single-bliktud-variant-pills {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

/* --- Pille-knap default (ikke-valgt): hvid baggrund, 1.5px base-20 ramme --- */
.sp-section-product-single-bliktud-variant-pill {
  flex: 1 1 0;
  padding: 9px 16px;
  background: var(--bs-color-base-00, #fff);
  /* border: 1.5px solid var(--bs-color-base-20, #ded9cd); */
  border-radius: 0;
  font-family: var(--bs-font-alexandria), "Alexandria", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--bs-color-base-40, #B6A78B);
  cursor: pointer;
  text-align: center;
  position: relative; /* så z-index på hover/aktiv løfter knappens egen ramme over naboens */
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;

  height: 44px;
}

/* Naboknapper overlapper deres 1.5px-rammer → én delt streg i stedet for dobbelt 3px-linje. */
.sp-section-product-single-bliktud-variant-pill:not(:first-child) {
  margin-left: -1.5px;
}

/* Kun YDERSTE hjørner afrundede — ingen radius ind mod nabo-knappen. */
.sp-section-product-single-bliktud-variant-pill:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}
.sp-section-product-single-bliktud-variant-pill:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* Font re-asserteres over den brede `.sp-…-bliktud button`-regel (0,1,1).
   Specificitet (0,2,1) — kun font, så .is-selected (0,2,0) beholder grøn baggrund + hvid tekst. */
.sp-section-product-single-bliktud-variant-pills button.sp-section-product-single-bliktud-variant-pill {
  font-family: var(--bs-font-roboto-bold), "Roboto Bold", sans-serif;
  font-weight: var(--bs-font-roboto-bold-weight);
}

/* --- Pille-knap hover: mørkegrøn (action-60) — samme som "Tilføj til kurv"-hover.
   Sætter background EKSPLICIT (ikke kun border) så Astras `button:hover`-blå
   (`background: var(--ast-global-color-1)`) overstyres. Specificitet (0,2,0) > Astras (0,0,1).
   z-index løfter den hover'de knaps ramme over naboens overlap. --- */
.sp-section-product-single-bliktud-variant-pill:hover {
  background-color: var(--bs-color-action-60, #6e8316);
  color: var(--bs-color-base-00, #fff);
  border-color: var(--bs-color-action-60, #6e8316);
  z-index: 2;
  box-shadow: 0px 3px 6px #00000029;
}

/* --- Pille-knap aktiv (.is-selected): grøn baggrund + hvid tekst, ingen synlig ramme --- */
.sp-section-product-single-bliktud-variant-pill.is-selected {
  background-color: var(--bs-color-action-30, #90a539);
  color: var(--bs-color-base-00, #fff);
  border-color: var(--bs-color-action-30, #90a539); /* matcher baggrund — ingen synlig ramme */
  z-index: 1; /* aktiv ramme over nabo, men under en aktiv hover (z-index:2) */
  box-shadow: 0px 3px 6px #00000029;
}

/* Aktiv + hover: behold den mørkegrønne hover-feedback også på den valgte knap. */
.sp-section-product-single-bliktud-variant-pill.is-selected:hover {
  background-color: var(--bs-color-action-60, #6e8316);
  border-color: var(--bs-color-action-60, #6e8316);
}

/* --- Dropdown (≥3 options) — uændret segment-logik --- */

.sp-section-product-single-bliktud-variant-dropdown {
  position: relative;
  display: inline-block;
  min-width: 200px;
}

.sp-section-product-single-bliktud-variant-dropdown-toggle {
  width: 100%;
  padding: 10px 16px;
  background: var(--bs-color-base-00, #fff);
  border: 2px solid var(--bs-color-base-20, #ded9cd);
  border-radius: 4px;
  font-size: 14px;
  color: var(--bs-color-base-100, #453f2e);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
}

/* Toggle hover: grøn border (krav 6) i stedet for Astras blå.
   Specificitet (0,2,0) overstyrer Astras button:hover (0,0,1) der sætter
   border-color:var(--ast-border-color) = blå. background-color override
   sikrer vi ikke arver Astras background-change på hover heller. */
.sp-section-product-single-bliktud-variant-dropdown-toggle:hover {
  border-color: var(--bs-color-action-30, #90a539);
  background-color: var(--bs-color-base-00, #fff);
  color: var(--bs-color-base-100, #453f2e);
}

/* Toggle focus/focus-visible: grøn outline + grøn border — overstyr Astras blå.
   outline erstatter browser-default blaøblå focus-ring (a11y: synlig focus bevares,
   bare i grøn frem for blå). */
.sp-section-product-single-bliktud-variant-dropdown-toggle:focus,
.sp-section-product-single-bliktud-variant-dropdown-toggle:focus-visible {
  border-color: var(--bs-color-action-30, #90a539);
  background-color: var(--bs-color-base-00, #fff);
  color: var(--bs-color-base-100, #453f2e);
  outline: 2px solid var(--bs-color-action-30, #90a539);
  outline-offset: 1px;
}

.sp-section-product-single-bliktud-variant-dropdown-caret {
  transition: transform 0.15s ease;
}

.sp-section-product-single-bliktud-variant-dropdown.is-open .sp-section-product-single-bliktud-variant-dropdown-caret {
  transform: rotate(180deg);
}

.sp-section-product-single-bliktud-variant-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 4px 0 0 0;
  padding: 4px 0;
  background: var(--bs-color-base-00, #fff);
  border: 1px solid var(--bs-color-base-20, #ded9cd);
  border-radius: 4px;
  list-style: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 10;
  max-height: 280px;
  overflow-y: auto;
}

.sp-section-product-single-bliktud-variant-dropdown.is-open .sp-section-product-single-bliktud-variant-dropdown-menu {
  display: block;
}

.sp-section-product-single-bliktud-variant-dropdown-item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--bs-color-base-100, #453f2e);
}

.sp-section-product-single-bliktud-variant-dropdown-item:hover {
  background: var(--bs-color-base-10, #f2efe9);
}

/* Valgt liste-punkt: grøn baggrund + hvid tekst (krav 6 — var mørkebrun base-100) */
.sp-section-product-single-bliktud-variant-dropdown-item.is-selected {
  background: var(--bs-color-action-30, #90a539);
  color: var(--bs-color-base-00, #fff);
}

/* --- Skjul WC's native variations table --- */

.sp-section-product-single-bliktud-form .variations {
  display: none !important;
}

/* --- Skjul WC's auto-populerede .single_variation (vi viser vores custom display) --- */

.sp-section-product-single-bliktud-form .single_variation {
  display: none !important;
}

/* --- Variations button-styling (qty + add-to-cart) inde i .single_variation_wrap --- */

.sp-section-product-single-bliktud-form .variations_button {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  /* nowrap: køb-knappen skal blive på samme række som antal-vælgeren og i
     stedet KRYMPE (flex-shrink) når kolonnen er smal — ikke wrappe ned under. */
  flex-wrap: nowrap;
}

.sp-section-product-single-bliktud-form .variations_button .quantity {
  flex: 0 0 auto;
}

.sp-section-product-single-bliktud-form .variations_button .single_add_to_cart_button {
  /* Indholds-bredde ved siden af qty (jf. design #18): voks/krymp ikke.
     white-space:nowrap → "Tilføj til kurv" bliver på én linje. */
  flex: 0 0 auto;
  white-space: nowrap;
}

/* --- Simple-produkt: WC's add-to-cart-form (form.cart) layoutes som variant-
   produktets .variations_button — qty + knap side om side. (form.cart her er
   add-to-cart-formen INDE i .price-box; variant-produktets ydre form omslutter
   hele grid'et og rammes derfor ikke.) --- */
.sp-section-product-single-bliktud-price-box form.cart {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  flex-wrap: nowrap;
}

.sp-section-product-single-bliktud-price-box form.cart .quantity {
  flex: 0 0 auto;
}

.sp-section-product-single-bliktud-price-box form.cart .single_add_to_cart_button {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Køb-knappen må ikke fylde 100% i flex-rækken (samme som variant-stien).
   (0,7,2) slår width:100%-reglen (0,6,1). */
body.woocommerce-js.bliktud-nonprofile-product .sp-section-product-single-bliktud .sp-section-product-single-bliktud-price-box form.cart .button.single_add_to_cart_button,
body.woocommerce-js.bliktud-nonprofile-product .sp-section-product-single-bliktud .sp-section-product-single-bliktud-price-box form.cart button[type="submit"].single_add_to_cart_button {
  width: auto;
  min-width: 0;
}

/* --- Antal-vælger: rundet boks med − / + knapper (jf. design) ---
   JS (initQtyStepper) injicerer knapperne; .quantity får klassen .sp-…-qty.
   Body-scoped kæde (som køb-knap-reglerne) for at slå Astras/WC's .qty-defaults. */
body.woocommerce-js.bliktud-nonprofile-product .sp-section-product-single-bliktud .sp-section-product-single-bliktud-qty {
  /* Fælles højde med køb-knappen: 44px. align-items:stretch + box-sizing
     border-box → −/input/+ fylder hele højden (border vokser indad). */
  display: inline-flex;
  align-items: stretch;
  height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--bs-color-base-20, #ded9cd);
  border-radius: 10px;
  background: var(--bs-color-base-00, #fff);
  overflow: hidden;
}

/* WC sætter `.woocommerce-js div.product form.cart div.quantity
   { float:left; margin:0 1em 1em 0 }` (0,4,3) → ekstra luft til højre/under.
   Vi tilføjer `div.quantity` i kæden (elementet har både .quantity og vores
   klasse) → (0,5,2) slår WC's (0,4,3). */
body.woocommerce-js.bliktud-nonprofile-product .sp-section-product-single-bliktud div.quantity.sp-section-product-single-bliktud-qty {
  margin: 0;
  float: none;
}

body.woocommerce-js.bliktud-nonprofile-product .sp-section-product-single-bliktud .sp-section-product-single-bliktud-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bs-color-ink, #0f0f0f);
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

/* +/− ikon: 15×15 (jf. design). stroke-width sættes på SVG'en (3px). */
body.woocommerce-js.bliktud-nonprofile-product .sp-section-product-single-bliktud .sp-section-product-single-bliktud-qty-icon {
  width: 15px;
  height: 15px;
  display: block;
}

body.woocommerce-js.bliktud-nonprofile-product .sp-section-product-single-bliktud .sp-section-product-single-bliktud-qty-btn:hover {
  color: var(--bs-color-action-30, #90a539);
}

/* Number-input: ingen spinner, centreret, gennemsigtig, fast bredde */
body.woocommerce-js.bliktud-nonprofile-product .sp-section-product-single-bliktud .sp-section-product-single-bliktud-qty input.qty,
body.woocommerce-js.bliktud-nonprofile-product .sp-section-product-single-bliktud .sp-section-product-single-bliktud-qty input[type="number"] {
  width: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--bs-color-ink, #0f0f0f);
  -moz-appearance: textfield;
  appearance: textfield;
  box-shadow: none;
}

body.woocommerce-js.bliktud-nonprofile-product .sp-section-product-single-bliktud .sp-section-product-single-bliktud-qty input.qty::-webkit-outer-spin-button,
body.woocommerce-js.bliktud-nonprofile-product .sp-section-product-single-bliktud .sp-section-product-single-bliktud-qty input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* --- Mobile: dropdown fylder fuld bredde --- */

@media (max-width: 1023px) {
  .sp-section-product-single-bliktud-variant-dropdown {
    width: 100%;
    min-width: 0;
  }

  /* Mobil: fanerne (.tabs-wrap) skal stå UNDER pris-boksen.
     .info udlades af layoutet (display:contents) så dens to wrappers
     — .info-top og .tabs-wrap — bliver direkte grid-items i den
     enkelt-kolonne-grid. .tabs-wrap får order:1 og lander dermed efter
     pris-boksen (order:0). .info-top beholder sin egen interne afstand,
     så kun blok-rytmen (grid gap 32px) gælder mellem hovedblokkene. */
  .sp-section-product-single-bliktud-info {
    display: contents;
  }
  .sp-section-product-single-bliktud-tabs-wrap {
    order: 1;
  }

  /* Mobil: KUN pris-boksen centreres (desktop + øvrige elementer uændret) */
  .sp-section-product-single-bliktud-price-box {
    text-align: center;
  }

  /* Mobil: antal-vælger stables OVER køb-knappen, begge centreret (jf. design).
     Desktop beholder side-om-side via base-reglens flex-row. I kolonne-retning
     krymper knappen til indhold (width:auto + align-items:center) → kompakt pille.
     gap:8px fra base-reglen bliver nu lodret afstand mellem qty og knap. */
  .sp-section-product-single-bliktud-form .variations_button,
  .sp-section-product-single-bliktud-price-box form.cart {
    flex-direction: column;
    align-items: center;
  }

}

/* ==========================================================================
   Sektion C — Video i galleri-rammen
   Videoen eksponeres som første thumbnail (orange afspil-badge) i FlexSliders
   thumb-strip. Klik afspiller embeddet som overlay PRÆCIST over hovedbilledet
   (.flex-viewport). iframe oprettes først ved klik (facade) → ingen embed-
   omkostning ved initial paint, så hastighedsscoren holdes grøn.
   ========================================================================== */

/* Video-thumbnail: arver li-størrelse/border fra FlexSliders .flex-control-thumbs,
   så den ser ud som en søskende-thumbnail. Orange afspil-badge centreret. */
/* Posteren males som background-image (sat inline af JS), IKKE som <img>.
   Et <img> ville arve temaets/WC's thumbnail-img-regler (fx Astras
   '.flex-control-thumbs li img', specificitet 0,4,4) der tvinger height:auto
   og letterboxer 16:9-posteren. background-image er immun over for de regler.
   aspect-ratio:1 holder boksen kvadratisk; cover/center fylder den centreret. */
.sp-section-product-single-bliktud-video-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  /* Matcher de native thumbnails' ramme (.flex-control-thumbs li img):
     1px base-20, 2px ink når aktiv. box-sizing:border-box → rammen vokser
     indad, så den ydre dimension er uændret (ingen layout-shift). */
  border: 1px solid var(--bs-color-base-20, #ded9cd);
  box-sizing: border-box;
  transition: border-color 0.15s ease;
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.sp-section-product-single-bliktud-video-thumb.is-active {
  border-color: var(--bs-color-ink, #0f0f0f);
  border-width: 2px;
}

/* Orange afspil-cirkel med hvid SVG-trekant centreret over thumbnailen.
   SVG (ikke Unicode ▶) fordi U+25B6 rendres som system-emoji på mange platforme. */
.sp-section-product-single-bliktud-video-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bs-color-orange, #DD921A);
  border-radius: 50%;
  line-height: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.sp-section-product-single-bliktud-video-thumb-play svg {
  width: 13px;
  height: 13px;
  display: block;
  margin-left: 2px; /* optisk centrering af trekanten */
}

.sp-section-product-single-bliktud-video-thumb:focus-visible {
  outline: 2px solid var(--bs-color-action-30, #90a539);
  outline-offset: 2px;
}

/* Fallback thumb-strip når produktet kun har ét billede (ingen FlexSlider-nav).
   Selvstændig styling (genbruger IKKE .flex-control-thumbs for at undgå WC's
   25%/float-regler) — holder produktbillede + video-thumbnail side om side. */
.sp-section-product-single-bliktud-thumb-strip {
  display: flex;
  align-items: flex-start; /* undgå at flex strækker li'erne til højeste søskende */
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

/* Fast kvadratisk boks; flex:0 0 auto forhindrer stræk/krymp. Billederne
   ligger position:absolute inset:0 (se nedenfor), så de fylder boksen præcist. */
.sp-section-product-single-bliktud-thumb-strip li {
  flex: 0 0 auto;
  position: relative;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border: 1px solid var(--bs-color-base-20, #ded9cd);
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

/* Aktiv thumbnail: ink-sort 2px ramme — matcher FlexSliders flex-active-look. */
.sp-section-product-single-bliktud-thumb-strip li.is-active {
  border-color: var(--bs-color-ink, #0f0f0f);
  border-width: 2px;
}

/* Specificitet (0,3,1) — slår galleri-reglens height:auto (0,2,1), så begge
   thumbs (produktbillede + video) fylder den kvadratiske boks centreret. */
.sp-section-product-single-bliktud-gallery .woocommerce-product-gallery .sp-section-product-single-bliktud-thumb-strip img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-section-product-single-bliktud-thumb-strip li:focus-visible {
  outline: 2px solid var(--bs-color-action-30, #90a539);
  outline-offset: 2px;
}

/* Anchor for overlay'et — sættes på .flex-viewport (eller .woocommerce-product-gallery
   for ét-billede-produkter) via JS, så overlay'et kan anchor'es inset:0. */
.sp-section-product-single-bliktud-frame-video-anchor {
  position: relative;
}

/* Skjul WC's zoom-lup mens videoen afspilles — dens høje z-index lægger den
   ellers oven på spilleren. Klassen sættes på .woocommerce-product-gallery af JS. */
.sp-section-product-single-bliktud-gallery .woocommerce-product-gallery.bliktud-video-playing .woocommerce-product-gallery__trigger {
  display: none;
}

/* Video-overlay dækker hovedbilled-rammen. .flex-viewport har overflow:hidden,
   så iframe'en klippes pænt til rammen. */
.sp-section-product-single-bliktud-frame-video {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: #000;
}

.sp-section-product-single-bliktud-frame-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Luk-knap (×) øverst til højre — returnerer til billedet. */
.sp-section-product-single-bliktud-frame-video-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 0;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.sp-section-product-single-bliktud-frame-video-close:hover,
.sp-section-product-single-bliktud-frame-video-close:focus {
  background: rgba(0, 0, 0, 0.85);
}

/* ==========================================================================
   FlexSlider bladre-pile (main-billede) — cirkler med chevron-SVG
   Targetter .woocommerce-product-gallery .flex-direction-nav — .flex-direction-nav
   er et DIREKTE BARN af .woocommerce-product-gallery (sibling til __wrapper),
   IKKE inde i __wrapper. Brug af __wrapper i selector matchede aldrig DOM'en
   og pilene vistes som blå tekst-links. Korrekt selector slår igennem med
   specificitet (0,3,2): .sp-section-...-gallery .woocommerce-product-gallery
   .flex-direction-nav li a — overstyrer FlexSliders egne regler (0,1,1).
   ========================================================================== */

/* Overlay-ul: gør .flex-direction-nav til et absolut overlay PRÆCIST over hovedbilledet.
   To formål på én gang:
   1. Pilene centreres lodret på BILLEDET (ikke hele galleriet) — `<a> top:50%` regnes nu af
      ul'ens højde. Hovedbilledet er kvadratisk (WC square-galleri), så `aspect-ratio: 1/1` +
      `width:100%` giver ul'en samme højde som billedet → pilene rammer billedets midte.
   2. Den absolutte ul forlader normal flow → de tidligere to tomme <li> (med disc-bullets +
      browser-default ul-margin) fylder ikke længere 50px under galleriet. list-style/margin/
      padding nulstilles så ingen markører/indryk vises. */
.sp-section-product-single-bliktud-gallery .woocommerce-product-gallery .flex-direction-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none; /* overlay blokerer ikke klik/zoom på billedet — kun <a> er klikbar */
  z-index: 5;
}

.sp-section-product-single-bliktud-gallery .woocommerce-product-gallery .flex-direction-nav li {
  list-style: none;
  margin: 0;
}

/* Skjul FlexSlider's standard tekst/ikon på <a>-elementet */
.sp-section-product-single-bliktud-gallery .woocommerce-product-gallery .flex-direction-nav li a {
  text-indent: -9999px;
  overflow: hidden;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bs-color-base-40, #b6a78b);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  cursor: pointer;
  opacity: 1;
  pointer-events: auto; /* genaktivér klik på selve pilen (ul har pointer-events:none) */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  transition: background-color 0.15s ease;
}

/* Forrige-knap: chevron-venstre — flush til venstre kant */
.sp-section-product-single-bliktud-gallery .woocommerce-product-gallery .flex-direction-nav li a.flex-prev {
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 6l-6 6 6 6' stroke='white' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Næste-knap: chevron-højre — flush til højre kant */
.sp-section-product-single-bliktud-gallery .woocommerce-product-gallery .flex-direction-nav li a.flex-next {
  right: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 6l6 6-6 6' stroke='white' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Hover/focus: action-30 grøn */
.sp-section-product-single-bliktud-gallery .woocommerce-product-gallery .flex-direction-nav li a:hover,
.sp-section-product-single-bliktud-gallery .woocommerce-product-gallery .flex-direction-nav li a:focus {
  background-color: var(--bs-color-action-30, #90a539);
}

/* ==========================================================================
   Thumbnail-borders — BORDER-strategi (ikke box-shadow)
   Baggrund: Astra's woocommerce.min.css sætter opacity på
   .woocommerce-js div.product div.images .flex-control-thumbs li img
   med specificitet (0,4,4): .woocommerce-js(1c) div(1e) .product(1c) div(1e)
   .images(1c) .flex-control-thumbs(1c) li(1e) img(1e) = 4 klasser + 4 elementer.
   Vores box-shadow-inset-strategi fra v1.1.77 viste sig at blive reporteret
   som box-shadow:none i browseren — sandsynligvis fordi browser's computed
   style normaliserer det. Skifter til border-strategi med box-sizing:border-box
   så der ingen layout-shift er (border bytter "plads" med transparent-perioden).

   Specificitet (0,5,4) overstyrer Astras/WC's (0,4,4) for .flex-control-thumbs img.
   body(1e) + .woocommerce-js(1c) + .bliktud-nonprofile-product(1c)
   + .sp-section-product-single-bliktud-gallery(1c) + div.images(1c+1e)
   + .flex-control-thumbs(1c) + li(1e) + img(1e) = 5 classes + 4 elements = (0,5,4).
   Astras konkurrerende regel har 4 classes = (0,4,4) → vi vinder på class-niveau.

   Layout-shift: ikke-valgt = 1px base-20, aktiv = 2px ink. box-sizing:border-box
   sikrer at border vokser indad, så thumbnailens ydre dimension er uændret.
   ========================================================================== */

/* Specificitet (0,5,4) — slår Astras/WC's (0,4,4) for .flex-control-thumbs li img.
   body.woocommerce-js=1e+1c, .bliktud-nonprofile-product=1c,
   .sp-section-product-single-bliktud-gallery=1c, div.images=1c+1e,
   .flex-control-thumbs=1c, li=1e, img=1e → 5 classes + 4 elements = (0,5,4).
   Astras '.woocommerce-js div.product div.images .flex-control-thumbs li img' = (0,4,4).
   Vores 5 classes > Astras 4 classes — vi vinder på class-niveau. */
body.woocommerce-js.bliktud-nonprofile-product .sp-section-product-single-bliktud-gallery div.images .flex-control-thumbs li img {
  border: 1px solid var(--bs-color-base-20, #ded9cd); /* spec: ikke-valgt = 1px; box-sizing:border-box sikrer ingen layout-shift ved skift til 2px aktiv */
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

/* Aktiv thumbnail: ink-sort 2px ramme (--bs-color-ink = #0f0f0f)
   border-width:2px sættes eksplicit fordi ikke-valgt-reglen ovenfor sætter
   border:1px via shorthand; color-only override arver 1px. Skal stå her.
   Specificitet (0,6,4) — slår Astras (0,4,5) for li img.flex-active:
   Astras .woocommerce-js div.product div.images .flex-control-thumbs li img.flex-active
   = 4 classes + 5 elements = (0,4,5). Vores 6 classes > 4 → vi vinder. */
body.woocommerce-js.bliktud-nonprofile-product .sp-section-product-single-bliktud-gallery div.images .flex-control-thumbs li.flex-active img,
body.woocommerce-js.bliktud-nonprofile-product .sp-section-product-single-bliktud-gallery div.images .flex-control-thumbs li img.flex-active {
  border-color: var(--bs-color-ink, #0f0f0f);
  border-width: 2px;
}

/* ── "Kunder som købte dette produkt, købte også" — related-products carousel ── */
.sp-section-product-single-bliktud-also-bought {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 3rem;
  padding: 2.5rem 0 3rem;
  background: var(--bs-color-base-10, #f5f0e3);
}

.sp-section-product-single-bliktud-also-bought-inner {
  max-width: var(--bs-desktop-section-max-width, 1366px);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sp-section-product-single-bliktud-also-bought-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* margin override beats any global first-heading margin rule */
.sp-section-product-single-bliktud-also-bought-head .sp-section-product-single-bliktud-also-bought-title {
  margin: 0;
  font-family: var(--bs-font-header, inherit);
  font-size: 1.6rem;
  text-transform: uppercase;
  color: var(--bs-color-base-100, #453f2e);
}

.sp-section-product-single-bliktud-also-bought-nav {
  display: flex;
  flex-shrink: 0;
  gap: 0.5rem;
}

.sp-section-product-single-bliktud-also-bought-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--bs-color-base-00, #fff);
  color: var(--bs-color-base-100, #453f2e);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.sp-section-product-single-bliktud-also-bought-arrow--next {
  background: var(--bs-color-action-30, #90a539);
  color: #fff;
}

.sp-section-product-single-bliktud-also-bought-arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

.sp-section-product-single-bliktud-also-bought-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 1.25rem) / 4);
  gap: 1.25rem;
  /* Negative margin + matching padding gives the card shadows room inside the
     scroll container (overflow would otherwise clip them) while keeping the
     cards aligned with the heading. */
  margin: 0 -16px;
  padding: 6px 16px 20px;
  list-style: none;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 16px;
  scrollbar-width: none;
}

.sp-section-product-single-bliktud-also-bought-track::-webkit-scrollbar {
  display: none;
}

@media (max-width: 1023px) {
  .sp-section-product-single-bliktud-also-bought-track {
    grid-auto-columns: calc((100% - 1.25rem) / 2);
  }
}

@media (max-width: 599px) {
  .sp-section-product-single-bliktud-also-bought-track {
    grid-auto-columns: 82%;
  }
}

/* Card (mirrors the category overview card) */
.sp-section-product-single-bliktud-also-bought-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  background: var(--bs-color-base-00, #fff);
  overflow: hidden;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.sp-section-product-single-bliktud-also-bought-card-link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1.25rem;
  color: inherit;
  text-decoration: none;
}

.sp-section-product-single-bliktud-also-bought-card-head .sp-section-product-single-bliktud-also-bought-card-title {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--bs-color-base-100, #453f2e);
}

.sp-section-product-single-bliktud-also-bought-card-subtitle {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.25;
  color: var(--bs-color-base-40, #b6a78b);
}

.sp-section-product-single-bliktud-also-bought-card-image {
  margin: 1rem 0;
  text-align: center;
}

.sp-section-product-single-bliktud-also-bought-card-image img {
  max-width: 100%;
  height: auto;
}

.sp-section-product-single-bliktud-also-bought-card-price {
  margin-top: auto;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bs-color-base-100, #453f2e);
}

.sp-section-product-single-bliktud-also-bought-card-price del {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--bs-color-base-40, #b6a78b);
}

.sp-section-product-single-bliktud-also-bought-card-price ins {
  text-decoration: none;
}

.sp-section-product-single-bliktud-also-bought-card-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  background: #f5c518;
  font-size: 0.85rem;
  font-weight: 700;
  vertical-align: middle;
  color: var(--bs-color-base-100, #453f2e);
}

.sp-section-product-single-bliktud-also-bought-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.sp-section-product-single-bliktud-also-bought-card-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--bs-color-action-30, #90a539);
}

.sp-section-product-single-bliktud-also-bought-card-stock-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
}

.sp-section-product-single-bliktud-also-bought-card-stock-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Video indicator — just shows the product has a video (no play icon/text) */
.sp-section-product-single-bliktud-also-bought-card-video {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #dd921a;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}
