/*
Theme Name: Woolf
Description: Blokktema for Woolf Merino. Design i theme.json, maler og mønstre i kode.
Version: 1.0.14
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: woolf
*/

/* Header ligger over hero på forsiden, men skyver innholdet ned på mobil (feilen på dagens side). */
.woolf-header { position: relative; z-index: 10; }
.home .woolf-header { position: absolute; inset: 0 0 auto 0; }
.home .woolf-hero .wp-block-cover__inner-container { padding-top: 5.5rem; }

.woolf-header .wp-block-navigation a,
.woolf-header .wp-block-site-title a { text-decoration: none; }
/* Logoen (1. okt, Woolf: «ikke den ekte logoen»): deres egen logo fra Shopify-kassa i hvitt, i Site Logo-blokken
   så den kan byttes i editoren. 180 px på PC, 150 px på mobil; headeren er fortsatt 69 px. */
.woolf-header .wp-block-site-logo { line-height: 0; }
.woolf-header .wp-block-site-logo img { width: 180px; height: auto; }
@media (max-width: 781px) { .woolf-header .wp-block-site-logo img { width: 150px; } }
.woolf-header .wp-block-navigation { text-transform: uppercase; font-size: 0.78rem; }

.woolf-band .wp-block-cover__inner-container { width: 100%; }
/* Bildebånd og bilde+tekst som dagens side (målt 1. okt): 40 px kant på PC og 20 px på mobil, overskrifter 30/20 px,
   brødtekst 14/12 px, uthevet tekst i vekt 500. Høyde, bredde og plassering per seksjon ligger i assets/css/sections.css. */
.woolf-band { padding-left: var(--woolf-gutter) !important; padding-right: var(--woolf-gutter) !important; }
.woolf-band > .wp-block-cover__inner-container { padding: 0 !important; }
:is(.woolf-band, .woolf-split) :is(h1, h2, h3) { font-size: 30px !important; line-height: 1.22 !important; letter-spacing: normal !important; font-weight: 700; }
:is(.woolf-band, .woolf-split) :is(p, li) { font-size: 14px !important; line-height: 1.75 !important; }
:is(.woolf-band, .woolf-split) strong { font-weight: 500; }
@media (max-width: 781px) {
  :is(.woolf-band, .woolf-split) :is(h1, h2, h3) { font-size: 20px !important; line-height: 1.33 !important; }
  :is(.woolf-band, .woolf-split) :is(p, li) { font-size: 12px !important; line-height: 1.714 !important; }
}
/* Bilde+tekst (Wool Care): bildet står i 2:3 som originalen (var fast 640 px), teksten 40 px fra bildet på PC og
   rett under det med 20 px kant på mobil, maks 544 px bred. */
.woolf-split .woolf-split-media { min-height: 0 !important; aspect-ratio: 2 / 3 !important; height: auto !important; }
/* Luft mellom tekstene som originalen: avsnitt i et bånd ligger tett (0), overskrift til tekst 20 px på forsiden og i
   bilde+tekst, 28 px i båndene på seksjonssidene (mobil 8, 12 og 23 px). */
:is(.woolf-band, .woolf-split) :is(.wp-block-cover__inner-container, .wp-block-column) > :is(p, ul) + :is(p, ul) { margin-top: 0 !important; }
:is(.woolf-band, .woolf-split) :is(.wp-block-cover__inner-container, .wp-block-column) > :is(h1, h2, h3) + * { margin-top: 20px !important; }
.woolf-section-hero > .wp-block-cover__inner-container > :is(h1, h2, h3) + * { margin-top: 28px !important; }
:is(.woolf-band, .woolf-split) :is(.wp-block-cover__inner-container, .wp-block-column) > :first-child { margin-top: 0 !important; }
/* En tom linje foran avsnittet der originalen har et tomt avsnitt (<p><br></p>), som på Wool Care. Settes som klassen
   woolf-gap på avsnittsblokken (Avansert → Ekstra CSS-klasse). */
:is(.woolf-band, .woolf-split) :is(.wp-block-cover__inner-container, .wp-block-column) > p.woolf-gap { margin-top: 24.5px !important; }
@media (max-width: 781px) {
  .woolf-band > .wp-block-cover__inner-container > :is(h1, h2, h3) + * { margin-top: 8px !important; }
  .woolf-split .wp-block-column > :is(h1, h2, h3) + * { margin-top: 12px !important; }
  :is(.woolf-band, .woolf-split) :is(.wp-block-cover__inner-container, .wp-block-column) > p.woolf-gap { margin-top: 20.57px !important; }
  .woolf-section-hero > .wp-block-cover__inner-container > :is(h1, h2, h3) + * { margin-top: 23px !important; }
}
/* Tekstseksjonen på Warranty: 14/12 px, en linje mellom avsnittene, uthevet i vekt 500. */
.woolf-s-warranty-1 :is(p, li, h2, h3) { font-size: 14px !important; line-height: 1.75 !important; font-weight: 400; letter-spacing: normal !important; text-transform: none !important; text-align: left !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.woolf-s-warranty-1 :is(p, h2, h3) + :is(p, h2, h3) { margin-top: 24.5px !important; }
.woolf-s-warranty-1 :is(strong, h2, h3) { font-weight: 500 !important; }
@media (max-width: 781px) {
  .woolf-s-warranty-1 :is(p, li, h2, h3) { font-size: 12px !important; line-height: 1.714 !important; }
  .woolf-s-warranty-1 :is(p, h2, h3) + :is(p, h2, h3) { margin-top: 20.57px !important; }
}
.woolf-split > .wp-block-column:not(:has(.woolf-split-media)) { padding: 0 40px !important; }
.woolf-split > .wp-block-column:not(:has(.woolf-split-media)) > * { max-width: 544px; }
.woolf-s-wool-care-1 > .wp-block-column:not(:has(.woolf-split-media)) > * { max-width: 448px; }
@media (max-width: 781px) {
  .woolf-split .wp-block-cover.woolf-split-media { min-height: 150vw !important; aspect-ratio: auto !important; } /* 2:3; aspect-ratio ble ikke regnet med i kolonnen på mobil */
  .woolf-split.woolf-split-reverse > .wp-block-column.wp-block-column { flex-basis: auto !important; flex-shrink: 0 !important; }
  .woolf-split.woolf-split { gap: 0 !important; } /* teksten 20 px under bildet, ikke 20 + kolonneavstand */ /* i kolonneretning ble 50 % høyden */
  .woolf-split > .wp-block-column:not(:has(.woolf-split-media)) { padding: 20px 20px 24px !important; }
}
/* Tekstseksjonen på Warranty: 768 px bred midt på, som originalen. */
.woolf-s-warranty-1 { padding-top: 22px !important; padding-bottom: 24px !important; }
.woolf-s-warranty-1 > * { max-width: 768px; margin-left: auto !important; margin-right: auto !important; }
@media (max-width: 781px) { .woolf-s-warranty-1 { padding-left: 20px !important; padding-right: 20px !important; } }
.woolf-band p { max-width: 34rem; }
.woolf-band.is-centered p { margin-inline: auto; }

.woolf-footer a { text-decoration: none; }
.woolf-footer a:hover { text-decoration: underline; }
.woolf-footer h2 { text-transform: uppercase; letter-spacing: 0.04em; }

img, video { max-width: 100%; height: auto; }

.home .woolf-header { background: transparent !important; }
.woolf-footer ul.is-style-none { list-style: none; padding-left: 0; }

/* Tekst i venstrestilte bånd skal flukte med overskriften, ikke sentreres av constrained-layout. */
.woolf-band:not(.is-centered) .wp-block-cover__inner-container > * { margin-left: 0 !important; margin-right: auto !important; }
/* Sidemargen som dagens side (målt 1. okt): 20 px opp til 639 px bredde, 40 px fra 640 px. Brukes av theme.json og headeren. */
:root { --woolf-gutter: 20px; }
@media (min-width: 640px) { :root { --woolf-gutter: 40px; } }
.woolf-header { padding-left: var(--woolf-gutter); padding-right: var(--woolf-gutter); }
/* Samme høyde som dagens header (69 px på mobil og PC, målt 1. okt). Blokkens egen luft over og under (inline) tas bort. */
.woolf-header { min-height: 69px; box-sizing: border-box; padding-top: 0 !important; padding-bottom: 0 !important; }

/* Knapper er mørke som standard; på bildebånd er de lyse. */
.woolf-band .wp-block-button__link { background-color: var(--wp--preset--color--snow); color: var(--wp--preset--color--ink); }
.woolf-band .wp-block-button__link:hover { background-color: var(--wp--preset--color--mist); }


.wp-block-post-template .wp-block-post-title { font-size: var(--wp--preset--font-size--large); }

/* ---------- Produktside ---------- */
.woolf-product-cols { align-items: flex-start !important; }
.woolf-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.woolf-gallery__item { margin: 0; background: var(--wp--preset--color--mist); }
.woolf-gallery__item img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.woolf-product-info { position: sticky; top: 6.25rem; } /* under den faste headeren (75 px) */
/* Produktsiden som dagens side (målt 1. okt ved 1440 og 1920): full bredde med 40 px kant (maks 1920, malen),
   bildene 2/3 av bredden med 20 px mellom, infokolonnen starter 35 px fra bildene ved 1440 og 101 px ved 1920 og
   er maks 450 px bred, tittelen 27 px og 40 px lavere enn bildene, bildene 40 px under headeren. */
@media (min-width: 782px) {
  main.woolf-product { padding-top: 0 !important; margin-top: 40px !important; } /* 40 px til bildene (margen slår sammen med innholdets) */
  .woolf-product-cols { gap: 0 !important; }
  .woolf-product-cols > .woolf-product-media { flex-basis: 66.32% !important; }
  .woolf-product-cols > .woolf-product-info { flex-basis: 33.68% !important; box-sizing: border-box; padding-left: clamp(35px, calc(13.75vw - 163px), 101px); padding-top: 40px; }
  .woolf-product-info > * { max-width: 450px; }
  .woolf-gallery { gap: 20px; }
  .woolf-product-info h1.wp-block-post-title.has-large-font-size { font-size: 1.6875rem !important; }
}
.woolf-product-info > * + * { margin-top: 0.9rem; }
.woolf-product-info .wp-block-post-title { margin: 0; }
.woolf-tax-note { color: var(--wp--preset--color--stone); }
.woolf-size-guide { margin: 0; }
.woolf-size-guide a { font-size: var(--wp--preset--font-size--small); text-decoration: underline; }

/* Trekkspill (details-blokker i produktbeskrivelsen) */
.woolf-product-accordions .wp-block-details { border-top: 1px solid #e5e5e3; padding: 0.85rem 0; margin: 0; font-size: var(--wp--preset--font-size--small); }
.woolf-product-accordions .wp-block-details:last-child { border-bottom: 1px solid #e5e5e3; }
.woolf-product-accordions summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.woolf-product-accordions summary::-webkit-details-marker { display: none; }
.woolf-product-accordions summary::after { content: "+"; font-weight: 400; }
.woolf-product-accordions details[open] summary::after { content: "–"; }
.woolf-product-accordions details p { margin: 0.6rem 0 0; }

/* Størrelsesguide som vindu */
.woolf-dialog { max-width: min(720px, 92vw); border: 0; padding: 2rem; font-size: var(--wp--preset--font-size--small); }
.woolf-dialog::backdrop { background: rgb(0 0 0 / 0.55); }
.woolf-dialog h2 { font-size: var(--wp--preset--font-size--large); margin-top: 0; }
.woolf-dialog form { position: absolute; top: 0.5rem; right: 0.75rem; }
.woolf-dialog__close { background: none; border: 0; font-size: 1.75rem; cursor: pointer; line-height: 1; }
.woolf-dialog table { width: 100%; border-collapse: collapse; }
.woolf-dialog td { padding: 0.35rem 0.5rem; border-bottom: 1px solid #eee; }

/* Anmeldelser: bare anmeldelsesfanen vises, uten fanemeny */
.woolf-reviews-tabs .wc-tabs, .woolf-reviews-tabs .woocommerce-Tabs-panel > h2 { display: none !important; }
.woolf-reviews-tabs .woocommerce-Reviews-title { display: none; }

/* ---------- Produktlister (kategori, butikk, anbefalt) ---------- */
/* Kategorisidene som dagens side (1. okt): overskrift, filtre og rutenett i samme bredde, 40 px kant og maks 1920 px
   (malens contentSize). Filterkolonnen 253 px og 20 px mellom produktene; bildene vokser med skjermen. */
.woolf-archive-cols .wc-block-product-template__responsive.columns-3 { gap: 20px; grid-template-columns: repeat(auto-fill, minmax(max(150px, calc(33.333% - 13.34px)), 1fr)); }
/* Luft som dagens side (målt 1. okt): 120 px fra beskrivelsen til rutenettet på PC, 22 px fra bildet til navnet,
   overskriften med linjehøyde 1.33, og 40 px fra headeren til overskriften på mobil. Blokkene har luften inline. */
.woolf-archive-intro .wp-block-query-title { line-height: 1.33; }
.woolf-archive-intro .wp-block-term-description { line-height: 1.714; }
.woolf-archive-cols .wp-block-post-title { margin-top: 22px !important; line-height: 1.714 !important; }
@media (min-width: 782px) { .woolf-archive-cols { margin-top: 120px !important; } }
@media (max-width: 781px) { main.woolf-archive { padding-top: 20px !important; } .woolf-archive-intro .wp-block-query-title { margin-bottom: 0; } .woolf-archive-intro .wp-block-term-description { margin-top: 8px !important; } } /* + 20 px fra blokkavstanden = 40 */
.woolf-archive-intro .wp-block-query-title { margin-bottom: 1rem; }
.woolf-grid .wc-block-components-product-image { position: relative; margin-bottom: 0; }
.woolf-grid .wc-block-components-product-image img { aspect-ratio: 2 / 3; object-fit: cover; }
.woolf-grid .wp-block-post-title a { text-decoration: none; }
.woolf-grid .wc-block-components-product-price { font-size: var(--wp--preset--font-size--small); }
.woolf-soldout { position: absolute; right: 0.6rem; bottom: 0.6rem; background: #555; color: #fff; border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.75rem; }
.woolf-related { margin-top: var(--wp--preset--spacing--60); }
.woolf-filters { font-size: var(--wp--preset--font-size--small); }

@media (max-width: 781px) {
  .woolf-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.5rem; max-width: 100%; }
  .woolf-gallery__item { flex: 0 0 85%; scroll-snap-align: start; }
  .woolf-product-info { position: static; }
  .woolf-split .wp-block-cover { min-height: 320px !important; }
  .woolf-split-reverse { flex-direction: column-reverse; }
}

/* Footer */
.woolf-footer .wp-block-columns .wp-block-columns { gap: 1rem; }
.woolf-footer ul.is-style-none li { margin-bottom: 0.35rem; }
.woolf-footer-signup .wp-block-button__link { border-color: currentColor; color: inherit; background: transparent; }
.woolf-footer-rule { border-color: rgb(255 255 255 / 0.25); opacity: 1; }
.woolf-pay { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.woolf-pay img { display: block; }
.woolf-search .wp-block-search__button { background: none; color: inherit; padding: 0.4rem; }

.woolf-split > .wp-block-column { box-sizing: border-box; }

@media (max-width: 781px) { .woolf-icons { flex-wrap: wrap !important; row-gap: 1.5rem; } .woolf-icons > .wp-block-column { flex-basis: 45% !important; } }

/* Seksjonssider (Our Approach, Sustainability osv.): seksjonene ligger kant i kant */
.woolf-sections .wp-block-post-content > * { margin-block: 0 !important; }
.woolf-sections .wp-block-cover.is-position-top-right .wp-block-cover__inner-container,
.woolf-sections .wp-block-cover.is-position-center-right .wp-block-cover__inner-container,
.woolf-sections .wp-block-cover.is-position-bottom-right .wp-block-cover__inner-container { text-align: right; }
.woolf-sections .is-position-top-right .wp-block-cover__inner-container > *,
.woolf-sections .is-position-center-right .wp-block-cover__inner-container > *,
.woolf-sections .is-position-bottom-right .wp-block-cover__inner-container > * { margin-left: auto !important; margin-right: 0 !important; }
.woolf-sections .is-position-center-center .wp-block-cover__inner-container,
.woolf-sections .is-position-top-center .wp-block-cover__inner-container,
.woolf-sections .is-position-bottom-center .wp-block-cover__inner-container { text-align: center; }
.woolf-sections .is-position-center-center .wp-block-cover__inner-container > *,
.woolf-sections .is-position-top-center .wp-block-cover__inner-container > *,
.woolf-sections .is-position-bottom-center .wp-block-cover__inner-container > * { margin-inline: auto !important; }
.woolf-section-hero .wp-block-cover__inner-container p { font-size: var(--wp--preset--font-size--small); max-width: 26rem; }
.woolf-section-hero .wp-block-buttons { justify-content: inherit; }
.woolf-inline { font-size: var(--wp--preset--font-size--small); }

/* Films */
.woolf-film { margin: 0 clamp(1rem, 3vw, 2.5rem) 1.5rem !important; }
.woolf-film .wp-block-cover__inner-container { display: flex; gap: 1.25rem; align-items: center; }
.woolf-film h2 { text-transform: uppercase; margin: 0; }
.woolf-film__play .wp-block-button__link { width: 3rem; height: 3rem; padding: 0; border-radius: 50%; font-size: 0; background: #fff; position: relative; }
.woolf-film__play .wp-block-button__link::before { content: ""; position: absolute; left: 1.2rem; top: 0.95rem; border-style: solid; border-width: 0.55rem 0 0.55rem 0.8rem; border-color: transparent transparent transparent #000; }
.woolf-film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }

.woolf-sections .wp-block-post-content > .woolf-film { margin: 0 clamp(1rem, 3vw, 2.5rem) 1.5rem !important; }
.woolf-film .wp-block-cover__inner-container { flex-wrap: wrap; }
.woolf-film p { flex-basis: 100%; margin: 0 0 0 4.25rem; }

.woolf-inline-gallery.wp-block-gallery { gap: 1rem !important; }
.woolf-inline-gallery figure.wp-block-image { align-items: center; justify-content: center; }
.woolf-inline-gallery figure figcaption { position: static !important; background: none !important; color: inherit !important; text-align: center; font-size: 1rem !important; padding-top: 0.75rem !important; }
.woolf-inline-gallery:not(.is-cropped) img { object-fit: contain !important; }

.wp-site-blocks > main.woolf-sections, .wp-site-blocks > .woolf-sections { margin-block-start: 0 !important; }
.woolf-inline h2, .woolf-inline h3 { text-align: center; }

/* Skjemaer (kontakt, anmeldelser, gavekort): samme stil som kassa */
.wpcf7 label, .comment-form label { display: block; font-size: var(--wp--preset--font-size--small); font-weight: 500; margin-bottom: 0.35rem; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 textarea,
.comment-form input[type=text], .comment-form input[type=email], .comment-form textarea,
#pwgc-redeem-gift-card-number, .pwgc-redeem-gift-card-form input[type=text] {
  display: block; width: 100%; max-width: 36rem; box-sizing: border-box; margin-top: 0.35rem;
  border: 1px solid #c9c9c6; border-radius: 4px; padding: 0.75rem 0.9rem; font: inherit; font-size: 1rem; background: #fff;
}
.wpcf7 textarea, .comment-form textarea { min-height: 9rem; }
.wpcf7 p, .comment-form p { margin: 0 0 1.1rem; }
.wpcf7 input[type=submit], .comment-form input[type=submit], .comment-form .submit, #pwgc-redeem-button, .pwgc-redeem-gift-card-form button {
  background: var(--wp--preset--color--ink); color: #fff; border: 0; border-radius: 999px; padding: 0.85rem 1.9rem;
  font: inherit; font-size: var(--wp--preset--font-size--small); font-weight: 500; cursor: pointer;
}
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* Lange nettadresser i policy-tekstene skal brekke, ikke skyve siden ut på mobil */
.wp-block-post-content { overflow-wrap: anywhere; }
.wp-block-post-content table { display: block; overflow-x: auto; }

/* Kasse: gavekortfeltet fra PW Gift Cards i samme stil som resten av kassa */
.wc-block-checkout #pwgc-redeem-gift-card-form input[type=text], .wc-block-checkout [id*=pwgc] input[type=text] { width: 100%; box-sizing: border-box; border: 1px solid #c9c9c6; border-radius: 4px; padding: 0.7rem 0.9rem; font: inherit; }
.wc-block-checkout [id*=pwgc] button, .wc-block-checkout [class*=pwgc] button { margin-top: 0.5rem; background: var(--wp--preset--color--ink); color: #fff; border: 0; border-radius: 999px; padding: 0.7rem 1.4rem; font: inherit; font-size: var(--wp--preset--font-size--small); cursor: pointer; }
.wc-block-checkout__sidebar .wc-block-components-order-summary, .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block { background: #fafafa; }

/* Mobilheader som på dagens side: meny til venstre, navnet i midten, handlekurv til høyre */
@media (max-width: 781px) {
  .woolf-header { position: relative; }
  .woolf-header > .wp-block-group:first-child { flex: 1; }
  .woolf-header :is(.wp-block-site-title, .wp-block-site-logo) { position: absolute; left: 50%; transform: translateX(-50%); }
  .woolf-header .wp-block-navigation { order: -1; }
  .woolf-header .woolf-search, .woolf-header .wp-block-woocommerce-customer-account { display: none; }
  .home .woolf-header { position: absolute; }
}
/* Mobilmenyen: se «Mobilmenyen som panel fra venstre» nederst i fila. */

/* ---------- Hurtigpanelet (Quick Add, handlekurv, søk), som på dagens side ---------- */
.woolf-qc { position: fixed; inset: 0; z-index: 100000; }
.woolf-qc[hidden] { display: none; }
.woolf-qc__overlay { position: absolute; inset: var(--woolf-qc-top, 0px) 0 0 0; background: rgb(0 0 0 / 0.45); opacity: 0; transition: opacity 0.2s; }
.woolf-qc.is-open .woolf-qc__overlay { opacity: 1; }
.woolf-qc__panel {
  position: absolute; top: var(--woolf-qc-top, 44px); right: var(--woolf-gutter); width: 355px; max-height: calc(100vh - var(--woolf-qc-top, 44px) - 16px); overflow-y: auto;
  background: #000; color: #fff; padding: 1.25rem; box-sizing: border-box; font-size: 0.8125rem;
  opacity: 0; transform: translateY(-8px); transition: opacity 0.2s, transform 0.2s;
}
.woolf-qc.is-open .woolf-qc__panel { opacity: 1; transform: none; }
.woolf-qc__close { position: absolute; top: 0.4rem; right: 0.6rem; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.woolf-qc__panel a { color: inherit; }
.woolf-qc__title { font-size: 0.8125rem; font-weight: 600; margin: 0 0 1rem; }
.woolf-qc__items { list-style: none; margin: 0; padding: 0; }
.woolf-qc__item { display: flex; gap: 0.85rem; background: #1c1c1e; padding: 0.6rem; margin-bottom: 0.6rem; }
.woolf-qc__thumb img { width: 64px; height: 80px; object-fit: cover; display: block; }
.woolf-qc__info { flex: 1; line-height: 1.5; min-width: 0; }
.woolf-qc__name { display: block; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.woolf-qc__row { display: flex; align-items: center; gap: 1.25rem; margin-top: 0.4rem; }
.woolf-qc__qty { display: inline-flex; align-items: center; border: 1px solid #555; }
.woolf-qc__qty button { background: none; border: 0; color: #fff; width: 1.8rem; height: 1.8rem; cursor: pointer; }
.woolf-qc__qty span { min-width: 1.5rem; text-align: center; }
.woolf-qc__remove { background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; padding: 0; font: inherit; }
.woolf-qc__note { text-align: center; color: #ddd; margin: 1rem 0; line-height: 1.6; }
.woolf-qc__button { display: block; width: 100%; box-sizing: border-box; text-align: center; background: #fff; color: #000 !important; border: 0; border-radius: 999px; padding: 0.8rem; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
.woolf-qc__button:disabled { opacity: 0.45; cursor: not-allowed; }
.woolf-qc__empty { margin: 0 0 1rem; }
.woolf-qc__error { background: #7a1c1c; padding: 0.5rem 0.75rem; margin: 0 0 0.75rem; }
.woolf-qc__product { display: flex; gap: 0.85rem; margin: 0.5rem 0 1rem; }
.woolf-qc__product img { width: 64px; height: 80px; object-fit: cover; }
.woolf-qc__price del { opacity: 0.6; }
.woolf-qc__opt { border: 0; margin: 0 0 1rem; padding: 0; }
.woolf-qc__opt legend { font-weight: 600; margin-bottom: 0.5rem; padding: 0; }
.woolf-qc__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.woolf-qc__chip { min-width: 2.2rem; height: 2.2rem; padding: 0 0.6rem; border-radius: 999px; border: 1px solid #fff; background: none; color: #fff; font: inherit; cursor: pointer; }
.woolf-qc__chip.is-selected { background: #fff; color: #000; }
.woolf-qc__swatch { width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 2px solid #000; outline: 1px solid #777; background-size: cover; background-position: center; cursor: pointer; }
.woolf-qc__swatch.is-selected { outline: 2px solid #fff; }
.woolf-qc__search input[type=search] { width: 100%; box-sizing: border-box; background: #fff; color: #000; border: 0; border-radius: 999px; padding: 0.7rem 1rem; font: inherit; margin-bottom: 1rem; }
.woolf-qc__hits { list-style: none; margin: 0; padding: 0; }
.woolf-qc__hits a { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; padding: 0.35rem 0; }
.woolf-qc__hits img { width: 48px; height: 60px; object-fit: cover; }
.woolf-qc__all { display: inline-block; margin-top: 0.75rem; text-decoration: underline; }
@media (max-width: 781px) { .woolf-qc__panel { right: 0; width: 100%; } }

/* Quick Add på produktkortene: vises ved hover (og alltid på berøringsskjerm) */
.woolf-quick-add {
  position: absolute; left: 0; right: 0; bottom: 0; background: rgb(0 0 0 / 0.72); color: #fff; text-align: center;
  padding: 0.8rem; font-size: 0.8125rem; text-decoration: none; opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s;
}
.wc-block-components-product-image:hover .woolf-quick-add, .woolf-quick-add:focus-visible { opacity: 1; transform: none; }
/* Som dagens side: ingen Quick Add på telefon og nettbrett uten mus. Produktkortet går rett til produktsida. */
@media (hover: none) { .woolf-quick-add { visibility: hidden; pointer-events: none; } }

/* Kurvikonet i headeren */
.woolf-cart-btn { position: relative; display: inline-flex; color: inherit; }
.woolf-cart-btn__count { position: absolute; top: -6px; right: -9px; min-width: 16px; height: 16px; border-radius: 999px; background: #fff; color: #000; font-size: 10px; line-height: 16px; text-align: center; font-weight: 600; }
.woolf-header p:has(> .woolf-cart-btn) { margin: 0; }

/* Fargeprøver på produktsiden */
.woolf-color-attr .woolf-swatch { width: 1.9rem; height: 1.9rem; min-width: 0; padding: 0; border-radius: 50%; font-size: 0; color: transparent; border: 2px solid #fff; outline: 1px solid #c9c9c6; background-size: cover; background-position: center; }
.woolf-color-attr .woolf-swatch[aria-checked="true"], .woolf-color-attr .woolf-swatch.is-selected { outline: 2px solid #000; }
.woolf-color-name { font-weight: 400; color: var(--wp--preset--color--stone); }

/* Kategorifiltre som på dagens side: overskrift med pil som folder sammen, pris som to felter uten glidebryter */
.woolf-filters .wp-block-woocommerce-product-filter-attribute,
.woolf-filters .wp-block-woocommerce-product-filter-price { border-bottom: 1px solid #e5e5e3; padding-bottom: 0.9rem; margin-bottom: 0.9rem; }
.woolf-filter-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; padding: 0; font: inherit; font-weight: 500; cursor: pointer; color: inherit; }
.woolf-filter-toggle::after { content: ""; border-style: solid; border-width: 5px 5px 0; border-color: currentColor transparent transparent; transition: transform 0.2s; }
.is-collapsed .woolf-filter-toggle::after { transform: rotate(-90deg); }
.is-collapsed > :not(h3) { display: none !important; }
.woolf-filters .wc-block-product-filter-price-slider__range { display: none; }
.woolf-filters .wc-block-product-filter-price-slider__content { display: flex !important; align-items: center; gap: 0.5rem; }
.woolf-filters .wc-block-product-filter-price-slider__left::after { content: "–"; margin-left: 0.5rem; }
/* WooCommerce setter max-width 60 px, som kutter «2.999 kr» til «2.999 k». */
.woolf-filters .wc-block-product-filter-price-slider__content input[type=text] { width: 5.5rem; max-width: none; box-sizing: border-box; border: 1px solid #c9c9c6; border-radius: 4px; padding: 0.5rem; font: inherit; font-size: 0.8125rem; }

/* Søk i headerlinja: gjennomsiktig felt i headeren, svarte treff under */
.woolf-qc--search .woolf-qc__panel { top: var(--woolf-search-top, 0px); right: var(--woolf-search-right, 120px); width: 520px; max-width: calc(100vw - 2rem); background: transparent; padding: 0; overflow: visible; max-height: none; }
.woolf-qc--search .woolf-qc__close { top: calc(var(--woolf-header-h, 60px) / 2 - 0.75rem); right: 0.25rem; }
.woolf-qc--search .woolf-qc__search { height: var(--woolf-header-h, 60px); display: flex; align-items: center; padding: 0 2.5rem 0 1.25rem; }
.woolf-qc--search .woolf-qc__search input[type=search] { background: transparent; color: #fff; border: 0; border-radius: 0; padding: 0; margin: 0; font-size: 0.9rem; outline: none; }
.woolf-qc--search .woolf-qc__search input[type=search]::placeholder { color: #aaa; }
.woolf-qc--search .woolf-qc__results:not(:empty) { background: #000; padding: 1.25rem; max-height: calc(100vh - var(--woolf-qc-top, 60px) - 16px); overflow-y: auto; }
@media (max-width: 781px) { .woolf-qc--search .woolf-qc__panel { right: 0; width: 100%; max-width: none; background: #000; } }

/* ---------- Skala og detaljer målt på dagens side (23. sep) ---------- */
/* Headeren blir liggende øverst når man ruller, som på dagens side */
.wp-site-blocks > header:first-child { position: sticky; top: 0; z-index: 50; }
body.admin-bar .wp-site-blocks > header:first-child { top: 32px; }
.home .wp-site-blocks > header:first-child { position: fixed; left: 0; right: 0; }
.home .woolf-header { position: relative; }
.home.woolf-scrolled .woolf-header { background: var(--wp--preset--color--ink) !important; }
.woolf-header .wp-block-navigation { font-size: 0.75rem; }

/* Produktsiden: runde størrelsesknapper og «Add to cart» i full bredde */
.woolf-product-info .wp-block-post-title { font-size: var(--wp--preset--font-size--x-large); }
.woolf-product-info .wc-block-product-filter-chips__item:not(.woolf-swatch) { min-width: 45px; height: 44px; border-radius: 999px; font-size: 0.75rem; justify-content: center; }
.woolf-product-info .wc-block-product-filter-chips__item[aria-checked="true"]:not(.woolf-swatch) { background: #000; color: #fff; border-color: #000; }
.woolf-product-info .wp-block-woocommerce-add-to-cart-with-options form > .wp-block-group,
.woolf-product-info .wp-block-woocommerce-add-to-cart-with-options .wp-block-group:has(> .wp-block-woocommerce-product-button) { flex-direction: column; align-items: stretch; }
.woolf-product-info .wp-block-woocommerce-product-button { align-items: stretch !important; }
.woolf-product-info .wp-block-woocommerce-product-button button { width: 100% !important; justify-content: center; }
.woolf-product-info .wp-block-woocommerce-product-button button { background: #000 !important; color: #fff !important; border-radius: 999px; min-height: 41px; font-size: 0.75rem; opacity: 1; }
.woolf-product-info .wp-block-woocommerce-product-button button.disabled, .woolf-product-info .wp-block-woocommerce-product-button button:disabled { opacity: 0.45; }
.woolf-product-summary, .woolf-product-accordions, .woolf-tax-note { font-size: 0.75rem; }
.woolf-product-accordions .wp-block-details { font-size: 0.75rem; }
.woolf-product-info .wc-block-product-filter-chips__item:not(.woolf-swatch) { min-width: 45px !important; height: 44px !important; border-radius: 999px !important; display: inline-flex !important; align-items: center; justify-content: center; padding: 0 0.75rem !important; }
.woolf-archive-intro .wp-block-term-description { max-width: 26rem; }

/* Kontaktskjemaet som på dagens side: feltnavnet i feltet, 41 px høye felt i full bredde (600 px).
   16 px tekst på mobil så iPhone ikke zoomer inn når man trykker i feltet. */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 textarea { max-width: none; margin-top: 0; min-height: 41px; padding: 0.6rem 0.9rem; }
.wpcf7 textarea { height: 179px; min-height: 0; }
.wpcf7 p { margin: 0 0 0.75rem; }
@media (min-width: 768px) { .wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 textarea { font-size: 0.75rem; } }

/* Tabeller i sider (størrelsesguidene) som på dagens side: 12 x 20 px luft og tynne grå linjer. */
.wp-block-post-content table { border-collapse: collapse; width: 100%; }
.wp-block-post-content td, .wp-block-post-content th { padding: 12px 20px; border: 1px solid #eaeaea; text-align: left; }
@media (max-width: 600px) { .wp-block-post-content td, .wp-block-post-content th { padding: 8px 6px; } }
.wp-block-post-content .wp-block-table { overflow-x: auto; }
.wpcf7 form p > br { display: none; }
.wpcf7 .wpcf7-form-control:not([type=submit]) { font-weight: 400; }

/* Kasse-header som Shopify-kassa: logo midt på (256 px), kurv til høyre, tynn linje under. */
.woolf-co-header { border-bottom: 1px solid #dedede; padding-block: 1.25rem; background: #fff; }
.woolf-co-header__spacer { width: 24px; }
.woolf-co-header .woolf-co-logo { margin: 0; }
.woolf-co-header .woolf-co-logo img { width: min(256px, 60vw) !important; height: auto; display: block; }

/* Produktvideoer i galleriet: samme format som bildene (2:3), fyller ruta. */
.woolf-gallery__item--video video { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; background: var(--wp--preset--color--mist); }

/* Footer som dagens side (29. sep): ingen hvit stripe over footeren, e-postfelt som pille, større sosiale ikoner. */
.wp-site-blocks > footer { margin-block-start: 0; }
.woolf-newsletter input[type=email] { width: 100%; box-sizing: border-box; height: 40px; padding: 0 1rem; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 0.8125rem; }
.woolf-newsletter input[type=email]::placeholder { color: inherit; opacity: 0.7; }
.woolf-newsletter input[type=email]:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.woolf-footer .wp-block-social-links .wp-social-link svg { width: 20px; height: 20px; }

/* Footer-trekkspill på mobil (site.js). Som dagens side: hel linje mellom radene, pil til høyre. */
@media (max-width: 781px) {
  .woolf-footer > .wp-block-columns { gap: 0 !important; }
  .woolf-footer .woolf-acc { border-bottom: 1px solid rgb(255 255 255 / 0.25); }
  .woolf-footer .woolf-acc > h2 { margin: 0; }
  .woolf-acc__btn { all: unset; box-sizing: border-box; display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 1.25rem 0; cursor: pointer; }
  .woolf-acc__btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
  .woolf-acc--pay .woolf-acc__btn { text-transform: none; }
  .woolf-acc__icon { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; transition: transform 0.2s; }
  .woolf-acc__btn[aria-expanded="true"] .woolf-acc__icon { transform: rotate(180deg); }
  .woolf-acc__panel { padding-bottom: 1.25rem; }
  .woolf-footer-rule { display: none; }
  .woolf-footer .woolf-acc--pay .woolf-pay { justify-content: flex-start; }
}

/* Produkttekst med fet ingress og avsnitt, som dagens side (h3 15 px fet, avsnitt 12 px). */
.woolf-product-summary h3 { font-size: 0.9375rem; font-weight: 700; line-height: 1.35; margin: 0 0 1.5rem; }
.woolf-product-summary p { margin: 0 0 1em; }
.woolf-product-summary p:last-child { margin-bottom: 0; }
.woolf-product-summary { margin-top: 1.5rem; }

/* Utsolgt: grå, deaktivert «Back in stock soon» som på dagens side. */
.woolf-product-info .woolf-oos .wp-block-woocommerce-product-button button.woolf-oos__btn:disabled { background: #808080 !important; color: #fff !important; opacity: 1; cursor: not-allowed; }
.woolf-oos .wc-block-components-quantity-selector__button:disabled { opacity: 0.5; cursor: not-allowed; }
/* Samme oppstilling som de ekte velgerne: etikett over valgene, luft mellom gruppene. */
.woolf-oos .wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute > .wp-block-group { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.woolf-oos .wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute { margin-bottom: 1.25rem; }
.woolf-oos > .wp-block-group { display: flex; flex-direction: column; align-items: stretch; gap: 1.25rem; margin-top: 0.5rem; }

/* Bildevisning (product.js), som dagens side: lys bakgrunn, miniatyrer øverst, runde hvite knapper nederst. */
.woolf-gallery__item[data-full] { cursor: zoom-in; }
.woolf-lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--wp--preset--color--mist); overflow: hidden; }
.woolf-lightbox::backdrop { background: var(--wp--preset--color--mist); }
.woolf-lightbox__thumbs { position: absolute; top: 2rem; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 1.5rem; padding: 0 1rem; overflow-x: auto; }
.woolf-lightbox__thumb { flex: 0 0 auto; width: 76px; height: 76px; padding: 0; border: 1px solid #d6d6d4; background: var(--wp--preset--color--snow); cursor: pointer; }
.woolf-lightbox__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.woolf-lightbox__thumb[aria-current="true"] { outline: 2px solid var(--wp--preset--color--ink); outline-offset: 2px; }
.woolf-lightbox__stage { position: absolute; inset: 3rem 0 3rem; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.woolf-lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.woolf-lightbox__nav { position: absolute; left: 0; right: 0; bottom: 1.75rem; z-index: 2; display: flex; justify-content: center; gap: 1rem; }
.woolf-lightbox__btn { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--wp--preset--color--snow); color: var(--wp--preset--color--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 10px rgb(0 0 0 / 0.08); }
.woolf-lightbox__btn:disabled { background: #d9d9d7; cursor: default; opacity: 0.8; }
.woolf-lightbox__btn:focus-visible, .woolf-lightbox__thumb:focus-visible { outline: 2px solid var(--wp--preset--color--ink); outline-offset: 2px; }
@media (max-width: 781px) {
  .woolf-lightbox__thumbs { top: 1rem; justify-content: flex-start; gap: 0.75rem; }
  .woolf-lightbox__thumb { width: 56px; height: 56px; }
  .woolf-lightbox__stage { inset: 5.5rem 0 6rem; }
  .woolf-lightbox__btn { width: 52px; height: 52px; }
}

/* Handlekurv: «Apply Gift Card» som de andre knappene, «Continue shopping» som lenke (som dagens side). */
.pwgc-apply-gift-card-button.wc-block-components-button { background: var(--wp--preset--color--ink) !important; color: var(--wp--preset--color--snow) !important; border: 0; border-radius: 999px; min-height: 41px; padding: 0 1.5rem; font-size: 0.75rem; cursor: pointer; }
.woolf-continue a { text-decoration: underline; }
.wp-block-woocommerce-empty-cart-block { padding: 1rem 0 3rem; font-size: var(--wp--preset--font-size--small); }

/* Produkt med bare ett bilde (gavekortet): bildet fyller hele galleriet, som på dagens side. */
.woolf-gallery__item:only-child { grid-column: 1 / -1; }

/* Gavekortets beløpsvalg (klassisk variantskjema) som dagens side: etikett over, valgfelt i full bredde.
   Mottakerfeltene fra utvidelsen (To, From, Message) får samme stil som skjemaene ellers. */
.woolf-product-info form.variations_form table.variations, .woolf-product-info form.variations_form table.variations tbody, .woolf-product-info form.variations_form table.variations tr, .woolf-product-info form.variations_form table.variations th, .woolf-product-info form.variations_form table.variations td { display: block; width: 100%; border: 0; padding: 0; text-align: left; }
.woolf-product-info form.variations_form table.variations th label { font-size: 0.75rem; font-weight: 600; display: block; margin-bottom: 0.6rem; }
.woolf-product-info form.variations_form select { width: 100%; height: 40px; padding: 0 0.75rem; border: 1px solid #d6d6d4; border-radius: 0; background-color: var(--wp--preset--color--snow); font: inherit; font-size: 0.75rem; }
.woolf-product-info form.variations_form .reset_variations { display: none !important; }
.woolf-product-info form.variations_form .woocommerce-variation-price { display: none; }
.woolf-product-info #pwgc-purchase-container { margin: 1.25rem 0; font-size: 0.75rem; }
.woolf-product-info .pwgc-field-container { margin-bottom: 1rem; }
.woolf-product-info .pwgc-label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.woolf-product-info .pwgc-input-text, .woolf-product-info #pwgc-message { width: 100%; box-sizing: border-box; border: 1px solid #d6d6d4; border-radius: 0; padding: 0.6rem 0.75rem; font: inherit; font-size: 0.8125rem; }
.woolf-product-info .pwgc-subtitle { color: var(--wp--preset--color--stone); margin-top: 0.3rem; }
.woolf-product-info form.variations_form .variations_button { display: flex; flex-direction: column; gap: 1rem; align-items: stretch; }
.woolf-product-info form.variations_form .single_add_to_cart_button { width: 100%; min-height: 41px; border-radius: 999px; background: var(--wp--preset--color--ink) !important; color: var(--wp--preset--color--snow) !important; font-size: 0.75rem; }
.woolf-product-info form.variations_form select { height: 40px !important; line-height: 38px !important; padding: 0 2rem 0 0.75rem !important; color: var(--wp--preset--color--ink); } /* WooCommerce sin egen stil vinner ellers og skyver teksten ut av feltet. */
.woolf-product-info form.variations_form .variations_button .quantity { align-self: flex-start; width: auto; }

/* Films som dagens side. Desktop: kort i 16:9, luft under menyen, tittel 15 px i maks 500 px med tynn linje under.
   Mobil: bildet i 16:9 med avspillingsknappen midt på, og tittelen i sort under bildet. */
.woolf-film { min-height: 0 !important; aspect-ratio: 16 / 9 !important; }
.woolf-sections .wp-block-post-content > .woolf-film:first-child { margin-top: 2.5rem !important; }
.woolf-film .wp-block-cover__inner-container { padding: 2.5rem; align-self: flex-start; }
.woolf-film h2 { font-size: 0.9375rem !important; max-width: 500px; line-height: 1.35; }
.woolf-film .wp-block-cover__inner-container::after { content: ""; flex-basis: 100%; border-top: 1px solid rgb(255 255 255 / 0.35); }
@media (max-width: 781px) {
  .woolf-film { --film-w: calc(100vw - 2 * clamp(1rem, 3vw, 2.5rem)); display: grid !important; aspect-ratio: auto !important; overflow: visible; margin-bottom: 2.5rem !important; }
  .woolf-sections .wp-block-post-content > .woolf-film:first-child { margin-top: 1.25rem !important; }
  .woolf-film .wp-block-cover__image-background { position: relative !important; grid-row: 1; width: 100%; height: auto !important; aspect-ratio: 16 / 9; object-fit: cover; }
  .woolf-film .wp-block-cover__background { inset: 0 0 auto 0 !important; height: auto !important; aspect-ratio: 16 / 9; }
  .woolf-film .wp-block-cover__inner-container { position: static !important; grid-row: 2; padding: 1.25rem 1.25rem 0; color: var(--wp--preset--color--ink) !important; }
  .woolf-film .wp-block-cover__inner-container::after { content: none; }
  .woolf-film h2 { font-size: 1.25rem !important; max-width: none; color: var(--wp--preset--color--ink); }
  .woolf-film .wp-block-buttons { position: absolute; left: 50%; top: calc(var(--film-w) * 9 / 32); transform: translate(-50%, -50%); z-index: 1; margin: 0; }
  .woolf-film p { margin: 0.5rem 0 0; }
  .woolf-film iframe { inset: 0 0 auto 0 !important; height: auto !important; aspect-ratio: 16 / 9; }
}

/* Woolf 1. okt, tilbakemelding punkt 2: filmene kant i kant. På PC fyller hver film skjermen under menyen (69 px),
   så toppen av neste film ikke synes, og rullingen stopper på hver film. Mobil: kant i kant i 16:9, tittelen under. */
.woolf-sections .wp-block-post-content > .woolf-film,
.woolf-sections .wp-block-post-content > .woolf-film:first-child { margin: 0 !important; }
@media (min-width: 782px) {
  .woolf-film { aspect-ratio: auto !important; height: calc(100vh - 69px); height: calc(100svh - 69px); scroll-snap-align: start; }
  html:has(.woolf-film) { scroll-snap-type: y proximity; scroll-padding-top: 69px; }
}
@media (max-width: 781px) {
  .woolf-film { --film-w: 100vw; }
  .woolf-sections .wp-block-post-content > .woolf-film,
  .woolf-sections .wp-block-post-content > .woolf-film:first-child { margin: 0 0 2.5rem !important; }
}

/* Søkeresultater som dagens side (inc/search.php): antall treff, søkefelt som pille, sortering, artikkelkort. */
.woolf-search-title { font-size: var(--wp--preset--font-size--large); margin: 0 0 1rem; }
.woolf-search-page .wp-block-search__inside-wrapper { border: 1px solid #dcdcdc; border-radius: 999px; padding: 0 0.5rem 0 1rem; }
.woolf-search-page .wp-block-search__input { border: 0; background: transparent; font-size: 0.8125rem; min-height: 38px; }
.woolf-search-page .wp-block-search__button { background: transparent; color: inherit; border: 0; padding: 0 0.25rem; }
.woolf-sort { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #e6e6e6; }
.woolf-sort ul { list-style: none; margin: 0.625rem 0 0; padding: 0; font-size: 0.75rem; }
.woolf-sort li { margin: 0 0 0.45rem; }
.woolf-sort a { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: inherit; }
.woolf-sort a::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 1px solid #bdbdbd; box-sizing: border-box; }
.woolf-sort a[aria-current="true"]::before { border: 4px solid var(--wp--preset--color--ink); }
.woolf-search-content { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 1rem; }
.woolf-search-content a { display: block; text-decoration: none; color: inherit; }
.woolf-search-content img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.woolf-search-content__title { display: block; margin-top: 0.75rem; font-size: 0.75rem; font-weight: 600; }
.woolf-search-content p { margin: 0.25rem 0 0; font-size: 0.75rem; }
@media (max-width: 781px) { .woolf-search-content { grid-template-columns: repeat(2, 1fr); } }
.woolf-film .wp-block-cover__inner-container { width: 100%; box-sizing: border-box; }
@media (max-width: 781px) { .woolf-film { padding: 0 !important; } .woolf-film .wp-block-cover__inner-container { padding: 1.25rem 1.25rem 0 !important; } }
.wp-block-cover.woolf-film .wp-block-cover__inner-container { width: 100% !important; } /* WordPress gir «topp venstre» width:auto; linja skal gå over hele kortet. */
@media (max-width: 781px) { .woolf-sections .wp-block-post-content > .woolf-film { margin-bottom: 3.5rem !important; } }
.woolf-film .wp-block-cover__inner-container > * { margin-left: 0 !important; margin-right: 0 !important; max-width: none; }
.woolf-film .wp-block-cover__inner-container > h2 { max-width: 500px; }

/* Innleggsoversikten som dagens side: kort med tynn ramme, tekst i eget felt, kort utdrag med grå «more». */
.woolf-blog-grid { gap: 1.25rem; }
.woolf-blog-card { height: 100%; display: flex; flex-direction: column; border: 1px solid #e6e6e4; }
.woolf-blog-card .wp-block-post-featured-image { margin: 0; }
.woolf-blog-card__body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 2.5rem; margin: 0 !important; }
.woolf-blog-card__body .wp-block-post-title { margin: 0 0 1rem; }
.woolf-blog-card__body .wp-block-post-excerpt { margin: 0; }
.woolf-blog-card__body .wp-block-post-excerpt__excerpt { margin: 0; }
.woolf-blog-card__body .wp-block-post-excerpt__more-link { color: var(--wp--preset--color--stone); text-decoration: none; margin-left: 0.3em; }
@media (max-width: 781px) { .woolf-blog-card__body { padding: 1.5rem; } }
.woolf-blog-card__body { min-height: 14.5rem; box-sizing: border-box; }

/* Sidedeling i innleggsoversikten som dagens side: rammet linje med piler til venstre og sidetall til høyre.
   Teksten «Previous»/«Next» er skjult for øyet, men leses av skjermlesere. Grå pil når man er på første side. */
.woolf-pagination { border: 1px solid #e6e6e4; padding: 0.875rem 1.25rem; margin-top: 1.25rem; gap: 1.25rem; align-items: center; }
.woolf-pagination .wp-block-query-pagination-previous, .woolf-pagination .wp-block-query-pagination-next { order: 1; font-size: 0; text-decoration: none; }
.woolf-pagination .wp-block-query-pagination-previous-arrow, .woolf-pagination .wp-block-query-pagination-next-arrow { font-size: 1.5rem; font-weight: 600; margin: 0; color: var(--wp--preset--color--ink); }
.woolf-pagination .wp-block-query-pagination-numbers { order: 3; margin-left: auto; font-size: 0.75rem; display: flex; gap: 0.75rem; }
.woolf-pagination:not(:has(.wp-block-query-pagination-previous))::before { content: "\2190"; order: 0; font-size: 1.5rem; font-weight: 600; color: #9a9a98; }
.woolf-pagination:not(:has(.wp-block-query-pagination-next))::after { content: "\2192"; order: 2; font-size: 1.5rem; font-weight: 600; color: #9a9a98; }
@media (max-width: 781px) { .woolf-blog-card__body .wp-block-post-title { font-size: 1rem !important; } .woolf-blog-card__body { min-height: 0; } }

/* ---------- Explore som megameny, som på dagens side (29. sep) ----------
   Svart panel rett under headeren: overskrift, lenker i vanlig skrift og bilde til høyre. Åpnes ved klikk
   (navigasjonens «submenuVisibility»), lukkes med Escape eller klikk utenfor. Plassering settes i site.js. */
.woolf-header .woolf-mega > .wp-block-navigation__submenu-icon { display: none; }
.woolf-header .woolf-mega > .wp-block-navigation-submenu__toggle { display: flex; align-items: center; gap: 5px; padding-right: 0; }
.woolf-header .woolf-mega > .wp-block-navigation-submenu__toggle::after { content: ""; border-style: solid; border-width: 5px 4.5px 0; border-color: currentColor transparent transparent; transition: transform 0.2s; }
@media (min-width: 960px) {
  .woolf-header .wp-block-navigation .woolf-mega > .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
    top: calc(100% + var(--woolf-mega-drop, 0px)); left: -20px;
    width: min(825px, calc(100vw - var(--woolf-mega-x, 0px) - 1rem)); min-height: 448px; height: auto;
    padding: 22px 0 20px; box-sizing: border-box; border: 0;
    background: var(--wp--preset--color--ink) !important; color: var(--wp--preset--color--snow) !important;
    text-transform: none; letter-spacing: normal; font-size: 0.75rem;
  }
  .woolf-header .woolf-mega__heading { width: 275px; box-sizing: border-box; padding: 0 20px; font-weight: 500; text-transform: uppercase; line-height: 15px; margin-bottom: 11.5px; }
  .woolf-header .woolf-mega > .wp-block-navigation__submenu-container > .wp-block-navigation-item { width: 275px; box-sizing: border-box; padding: 0 20px; }
  .woolf-header .woolf-mega > .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 2px 0 !important; line-height: 20.5px; text-transform: none; }
  .woolf-header .woolf-mega > .wp-block-navigation__submenu-container a:hover,
  .woolf-header .woolf-mega > .wp-block-navigation__submenu-container a[aria-current="page"] { opacity: 0.5; }
  .woolf-header .woolf-mega__image { position: absolute; top: 0; right: 0; bottom: 0; width: calc(100% - 275px); }
  .woolf-header .woolf-mega__image .wp-block-template-part, .woolf-header .woolf-mega__image figure { height: 100%; margin: 0; }
  .woolf-header .woolf-mega__image img { width: 100%; height: 100%; object-fit: cover; }
}

/* ---------- Mobilmenyen som panel fra venstre, som på dagens side (29. sep) ----------
   Søkefelt øverst, menyen, Explore som undermeny med pil, og «Register / Login» nederst. Søkefeltet og
   innloggingslenka ligger i samme navigasjon som desktopmenyen og skjules der; alt redigeres ett sted. */
:where(body:not(.editor-styles-wrapper)) .woolf-header .wp-block-navigation__responsive-container:not(.is-menu-open) :is(.woolf-nav-search, .woolf-nav-account) { display: none; }
/* Bare i editoren (30. sep): der vises søkefeltet og innloggingslenka (over), og kurven er en kortkode som WordPress
   tegner som en stor hvit boks. Til sammen brakk headeren i to linjer. Smalere søkefelt og en liten kortkodeboks
   holder den på én linje; butikken er uendret. WordPress setter tekstfeltet med !important, derfor her også. */
.editor-styles-wrapper .woolf-header { flex-wrap: nowrap; }
.editor-styles-wrapper .woolf-header :is(.wp-block-site-title, .wp-block-site-logo) { flex-shrink: 0; }
.editor-styles-wrapper .woolf-header .woolf-nav-search { width: 150px; }
.editor-styles-wrapper .woolf-header .woolf-nav-search .wp-block-search__inside-wrapper { width: 100% !important; min-width: 0 !important; }
.editor-styles-wrapper .woolf-header .woolf-nav-search .wp-block-search__input { min-width: 0; }
.editor-styles-wrapper .woolf-header .wp-block-shortcode,
.editor-styles-wrapper .woolf-header .wp-block-shortcode .components-placeholder { min-width: 0; min-height: 0; width: auto; padding: 0; background: none; box-shadow: none; }
.editor-styles-wrapper .woolf-header .wp-block-shortcode .components-placeholder__label { display: none; }
.editor-styles-wrapper .woolf-header .wp-block-shortcode .blocks-shortcode__textarea { width: 120px; height: 28px; white-space: nowrap; min-height: 0; padding: 4px 8px !important; font-size: 11px !important; overflow: hidden; }
/* Menyknappen brukes opp til 959 px, som på dagens side (WordPress bytter ellers ved 600 px). Mellom 782 og 959 px
   står navnet i midten og søk, konto og kurv til høyre, som på dagens side; under 782 px bare kurven. */
/* Gjelder ikke i editoren, der lerretet ofte er smalere enn 960 px og menypunktene skal kunne redigeres direkte. */
@media (min-width: 600px) and (max-width: 959px) {
  :where(body:not(.editor-styles-wrapper)) .woolf-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  :where(body:not(.editor-styles-wrapper)) .woolf-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (min-width: 782px) and (max-width: 959px) {
  :where(body:not(.editor-styles-wrapper)) .woolf-header > .wp-block-group:first-child { flex: 1; }
  :where(body:not(.editor-styles-wrapper)) .woolf-header :is(.wp-block-site-title, .wp-block-site-logo) { position: absolute; left: 50%; transform: translateX(-50%); }
  :where(body:not(.editor-styles-wrapper)) .woolf-header .wp-block-navigation { order: -1; }
}
.woolf-header .wp-block-navigation__responsive-container.is-menu-open { background: rgb(0 0 0 / 0.5) !important; color: var(--wp--preset--color--snow) !important; padding: 0 !important; animation-name: woolf-fade-in; }
.woolf-header .is-menu-open .wp-block-navigation__responsive-close { position: relative; width: min(340px, calc(100vw - 50px)); max-width: none; min-height: 100%; margin: 0; background: var(--wp--preset--color--ink); }
@media not (prefers-reduced-motion) { .woolf-header .is-menu-open .wp-block-navigation__responsive-close { animation: woolf-drawer-in 0.35s ease-in-out; } }
@keyframes woolf-drawer-in { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes woolf-fade-in { from { opacity: 0; } to { opacity: 1; } }
/* Dagens side lukkes ved å trykke i det mørke feltet ved siden av panelet (eller Escape), uten synlig kryss. Krysset
   står der fortsatt for tastatur og skjermleser, og vises når det får fokus. */
.woolf-header .is-menu-open .wp-block-navigation__responsive-container-close { position: absolute; top: 20px; left: calc(100% + 13px); right: auto; color: var(--wp--preset--color--snow); opacity: 0; }
.woolf-header .is-menu-open .wp-block-navigation__responsive-container-close:focus-visible { opacity: 1; }
.woolf-header .is-menu-open .wp-block-navigation__responsive-container-content { padding: 20px 8px 2rem !important; gap: 0 !important; align-items: stretch !important; }
.woolf-header .is-menu-open .woolf-nav-search { margin: 0 12px; }
.woolf-header .woolf-nav-search .wp-block-search__inside-wrapper { height: 48px; box-sizing: border-box; padding: 0 12px 0 20px; border: 0; border-radius: 48px; background: var(--wp--preset--color--snow); }
.woolf-header .woolf-nav-search .wp-block-search__input { border: 0; padding: 0; background: transparent; color: var(--wp--preset--color--ink); font-size: 16px; text-transform: none; }
.woolf-header .woolf-nav-search .wp-block-search__input::placeholder { font-size: 0.75rem; color: #767676; }
.woolf-header .woolf-nav-search .wp-block-search__button { margin: 0; padding: 0; border: 0; background: transparent; color: var(--wp--preset--color--ink); }
.woolf-header .woolf-nav-search .wp-block-search__button svg { width: 24px; height: 24px; fill: currentColor; }
/* Søkeknappen vises først når noe er skrevet inn, som på dagens side. */
.woolf-header .woolf-nav-search .wp-block-search__button { transition: opacity 0.2s; }
.woolf-header .woolf-nav-search:has(.wp-block-search__input:placeholder-shown) .wp-block-search__button { opacity: 0; }
.woolf-header .is-menu-open .woolf-mega a[aria-current="page"] { opacity: 0.5; }
.woolf-header .is-menu-open .wp-block-navigation__container { order: 0; gap: 0 !important; margin-top: 16px; align-items: stretch !important; }
.woolf-header .is-menu-open .wp-block-navigation-item { align-items: stretch !important; }
.woolf-header .is-menu-open .wp-block-navigation-item__content { display: flex; align-items: center; width: 100%; min-height: 48px; box-sizing: border-box; padding: 0 12px !important; font-size: 1rem; letter-spacing: normal; }
.woolf-header .is-menu-open .woolf-nav-account { margin-top: 16px; }
.woolf-header .is-menu-open .woolf-nav-account .wp-block-navigation-item__content { text-transform: none; }
.woolf-header .is-menu-open .woolf-mega > .wp-block-navigation-submenu__toggle { justify-content: space-between; text-transform: uppercase; }
.woolf-header .is-menu-open .woolf-mega > .wp-block-navigation-submenu__toggle::after { transform: rotate(-90deg); }
.woolf-header .is-menu-open .woolf-mega--open > .wp-block-navigation-submenu__toggle::after { transform: rotate(90deg); }
/* Åpnet Explore viser bare undermenyen (med «Explore» som tilbakeknapp), som på dagens side. WordPress viser alle
   undermenyer utbrettet i mobilmenyen, så site.js holder styr på om Explore er åpen (klassen woolf-mega--open). */
.woolf-header .is-menu-open .woolf-mega:not(.woolf-mega--open) > .wp-block-navigation__submenu-container { display: none !important; }
.woolf-header .is-menu-open .wp-block-navigation__container:has(> .woolf-mega--open) > li:not(.woolf-mega):not(.woolf-nav-account) { display: none; }
.woolf-header .is-menu-open .woolf-mega > .wp-block-navigation__submenu-container { padding: 16px 0 0 !important; gap: 0 !important; }
.woolf-header .is-menu-open .woolf-mega > .wp-block-navigation__submenu-container .wp-block-navigation-item__content { text-transform: none; }
.woolf-header .is-menu-open :is(.woolf-mega__heading, .woolf-mega__image) { display: none; }

/* ---------- Produktinfo som dagens side (målt 1. okt) ----------
   «1 review» i 12 px, «Size» og «Color» i 12 px halvfet med «Size guide» rett etter «Size» og fargenavnet i sort,
   «Quantity» over antallet, knappen 41 px høy, og avgiftslinja midtstilt i sort med lenke på «Shipping».
   Lenken og «Quantity» settes inn som ekte tekst i functions.php; lenken i [woolf_size_guide] skjules (vinduet brukes). */
.woolf-product-info .wc-block-components-product-rating__reviews_count,
.woolf-product-info .wc-block-components-product-rating__reviews_count a { font-size: 12px !important; color: #000; text-decoration: none; }
.woolf-product-info .woolf-size-guide, .woolf-product-info > p:empty { display: none; } /* tomme <p> rundt vinduet ga 14 px ekstra */
.woolf-product-info > .wp-block-woocommerce-product-rating { margin-top: 3px !important; }
.woolf-product-info > .wp-block-woocommerce-product-price { margin-top: 2px !important; }
.woolf-product-info > .wp-block-woocommerce-add-to-cart-with-options { margin-top: 31px !important; }
.woolf-product-info .wp-block-group:has(> .woolf-attr-label, > .wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute-name) { margin: 0 0 24px !important; }
.woolf-product-info .wc-block-components-quantity-selector { height: 44px; }
.woolf-product-info .wc-block-components-product-rating__stars { font-size: 17px !important; }
.woolf-product-info .wc-block-components-product-rating__container { gap: 6px; }
.woolf-attr-label { display: flex; align-items: baseline; gap: 12px; }
.woolf-product-info .wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute-name { font-size: 12px !important; font-weight: 600 !important; line-height: 1.75; color: #000; }
.woolf-size-guide-link { font-size: 12px; line-height: 1.75; color: rgb(0 0 0 / 0.7); text-decoration: underline; }
.woolf-product-info .woolf-color-name { font-size: 12px !important; font-weight: 400 !important; color: #000 !important; margin-left: 12px; }
.woolf-qty-label { font-size: 12px; font-weight: 600; line-height: 1.75; color: #000; margin: 0 0 8px; }
.woolf-product-info .wp-block-woocommerce-product-button button { height: 41px; min-height: 41px; padding-top: 0 !important; padding-bottom: 0 !important; }
.woolf-tax-note { text-align: center; color: #000 !important; }
.woolf-tax-note a { color: rgb(42 93 223); text-decoration: underline; }
@media (max-width: 781px) { .woolf-product-info h1.wp-block-post-title.has-large-font-size { font-size: 27px !important; } }

/* ---------- Insights og artiklene som dagens side (målt 1. okt) ----------
   Korttitlene med linjehøyde 1.33 og vanlig bokstavavstand (15 px på mobil), kortene 20 px luft på mobil,
   mellomtitlene i artiklene 17,5 px i vekt 500, og «Tags:» og forrige/neste nederst i 12 px med understrek. */
.woolf-blog-card__body .wp-block-post-title { line-height: 1.33 !important; letter-spacing: normal !important; }
@media (max-width: 781px) {
  .woolf-blog-card__body { padding: 20px; }
  .woolf-blog-card__body .wp-block-post-title.wp-block-post-title { font-size: 15px !important; }
}
.single-post .wp-block-post-content :is(h2, h3, h4) { font-size: 17.5px !important; font-weight: 500 !important; line-height: 1.3 !important; letter-spacing: normal !important; }
.woolf-article-meta { margin-top: 28px; }
.woolf-article-meta .wp-block-post-terms, .woolf-article-nav { font-size: 12px !important; line-height: 1.714; }
.woolf-article-meta a { color: inherit; text-decoration: underline; }
.woolf-article-nav { margin-top: 40px !important; }
.woolf-article-nav .post-navigation-link-next { margin-left: auto; }

/* ---------- Funnet i generalprøven 1. okt kveld ----------
   Forsiden: teksten i heroen starter under headeren (69 px + 20). Originalen legger overskriften oppå logoen på mobil
   (feilen vi viste dem 21. sep) og tett under logoen på PC; det er ikke kopiert. Overstyrer sections.css. */
.woolf-s-forside-0.woolf-s-forside-0 { padding-top: 89px !important; }
/* Filterlisten som dagens side (målt 1. okt): avkrysningsboks 20 px med lys kant, tekst 12 px 8 px fra boksen,
   32 px fra rad til rad. */
.woolf-filters .wc-block-product-filter-checkbox-list__item { margin: 0 0 5px !important; } /* + listas egen avstand = 32 px */
.woolf-filters .wc-block-product-filter-checkbox-list__label { font-size: 12px; line-height: 21px; } /* WooCommerce: gap .625em = 7,5 px */
.woolf-filters .wc-block-product-filter-checkbox-list__input-wrapper { font-size: 20px; } /* boksen, haken og den grå flaten er i em */
.woolf-filters .wc-block-product-filter-checkbox-list__input-wrapper::before { display: none; }
.woolf-filters input[type=checkbox].wc-block-product-filter-checkbox-list__input { border-color: #eaeaea !important; }
.woolf-filters input[type=checkbox].wc-block-product-filter-checkbox-list__input:checked { background-color: #000 !important; border-color: #000 !important; }
.woolf-filters .wc-block-product-filter-checkbox-list__mark { color: #fff; }
.woolf-filters .wc-block-product-filter-checkbox-list__text-wrapper, .woolf-filters .wc-block-product-filter-checkbox-list__text { font-size: 12px !important; }
/* Størrelsestabellene: ord deles ikke midt i («Lengt / h» på mobil). Tabellen ruller sidelengs om den ikke får plass. */
:is(.woolf-dialog, .wp-block-post-content) :is(table, td, th) { word-break: normal !important; overflow-wrap: normal !important; }
:is(.woolf-dialog, .wp-block-post-content) table td:first-child { min-width: 6.5em; }
/* Footeren i editoren: nyhetsbrevfeltet og betalingsikonene er kortkoder som WordPress tegnet som store hvite bokser.
   Små og diskré, som i headeren; butikken er uendret. */
.editor-styles-wrapper .woolf-footer .wp-block-shortcode,
.editor-styles-wrapper .woolf-footer .wp-block-shortcode .components-placeholder { min-width: 0; min-height: 0; width: auto; padding: 0; background: none; box-shadow: none; color: inherit; }
.editor-styles-wrapper .woolf-footer .wp-block-shortcode .components-placeholder__label { display: none; }
.editor-styles-wrapper .woolf-footer .wp-block-shortcode .blocks-shortcode__textarea { width: 220px; height: 28px; min-height: 0; padding: 4px 8px !important; font-size: 11px !important; white-space: nowrap; overflow: hidden; }
/* Bilde nummer to tones inn når musa er over produktkortet, som på dagens side (målt 2. okt): ligger oppå, starter
   usynlig og 2,5 % større, og går til full synlighet og vanlig størrelse på 0,6 s. Bare der det finnes en mus. */
.wc-block-components-product-image > a { position: relative; display: block; }
.woolf-card-hover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.025); transition: opacity 0.6s ease, transform 0.6s ease; pointer-events: none; }
@media (hover: hover) { .wc-block-components-product-image:hover .woolf-card-hover { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .woolf-card-hover { transition: none; } }

/* Størrelsesguidene og policyene ble vanlige blokker 6. okt (scripts/html-pages-to-blocks.mjs). Tabellblokken skal se ut
   som tabellene før: full bredde, og i vinduet bare tynne linjer under radene (WordPress' egne rammer slås av der).
   Ankrene i innholdsfortegnelsen havner under headeren, ikke bak den. */
:is(.woolf-dialog, .wp-block-post-content) .wp-block-table { margin: 0 0 1em; }
:is(.woolf-dialog, .wp-block-post-content) .wp-block-table > table { display: table; width: 100%; }
.woolf-dialog .wp-block-table :is(td, th) { border: 0; border-bottom: 1px solid #eee; padding: 0.35rem 0.5rem; }
@media (min-width: 720px) { .woolf-dialog:has(.wp-block-table) { width: 605px; } } /* 669 px med polstring, som før */
.wp-block-post-content [id] { scroll-margin-top: 90px; }

/* ---------- Produktsiden under bildene: målt mot woolfmerino.com 13. okt 2026 (Roni 3/4, 1440 og 390 px) ---------- */
/* Recommended: 20 px fet overskrift, 20 px ned til bildene, 22 px fra bildet til navnet. */
.woolf-related > h2.wp-block-heading { font-size: 20px !important; line-height: 1.33; font-weight: 700; margin: 0 0 20px; }
.woolf-related .wp-block-post-title { margin-top: 22px !important; }
@media (min-width: 782px) { .woolf-related { margin-top: 80px; } }

/* Verdiseksjonen: teksten maks 672 px, 14 px grå; ikonene 50 px over hele bredden, titlene 15 px fet. */
.woolf-product .woolf-values { padding: 79px 40px 112px !important; } /* 119 px fra produktnavnet i Recommended til overskriften, som dagens side */
.woolf-product .woolf-values > h2 { line-height: 1.22; }
.woolf-product .woolf-values > p { max-width: 672px !important; margin-top: 20px !important; font-size: 14px !important; line-height: 1.75 !important; color: rgb(0 0 0 / 0.7); }
.woolf-product .woolf-values > .wp-block-buttons { margin-top: 32px !important; }
.woolf-product .woolf-values > .woolf-icons { max-width: none !important; margin-top: 120px !important; gap: 20px; }
.woolf-product .woolf-icons img { width: 50px !important; height: 50px; }
.woolf-product .woolf-icons .wp-block-image { margin: 0 auto 20px !important; }
.woolf-product .woolf-icons p { font-size: 15px !important; font-weight: 700 !important; line-height: 1.33 !important; margin: 0 !important; color: #000; }

/* Bildeseksjonene: bildet i sitt eget format (720 × 380 på 1440 px), ikke 2:3 som på seksjonssidene. */
.woolf-product .woolf-split .woolf-split-media { aspect-ratio: 720 / 380 !important; }
.woolf-product .woolf-split:not(.woolf-split-reverse) > .wp-block-column:not(:has(.woolf-split-media)) > * { max-width: 480px; }
.woolf-product .woolf-split .wp-block-buttons { margin-top: 32px !important; }

/* Anmeldelser som Judge.me-boksen: ramme #eee, 24 px luft, maks 1200 px. */
.woolf-product .woolf-reviews { padding: 24px 40px !important; }
.woolf-reviews-tabs { margin-block: 0 !important; }
.woolf-reviews-tabs .woocommerce-Tabs-panel { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.woolf-rev { border: 1px solid #eee; padding: 24px; font-size: 16px; line-height: 1.4; color: #000; }
.woolf-rev__title { font-size: 18px !important; font-weight: 400 !important; line-height: 1.4 !important; letter-spacing: normal !important; margin: 0 0 8px !important; }
.woolf-rev__top { display: flex; align-items: flex-start; gap: 24px; }
.woolf-rev-star { display: block; flex: none; }
.woolf-rev__summary-stars, .woolf-rev__rating, .woolf-rev__row-stars { display: flex; gap: 3px; color: #000; }
.woolf-rev__summary-stars { height: 23px; align-items: center; }
.woolf-rev__summary-text { font-size: 12px; line-height: 1.4; }
.woolf-rev__histogram { border-left: 1px solid #eee; border-right: 1px solid #eee; padding: 0 16px; font-size: 12px; line-height: 1.4; }
.woolf-rev__row { display: flex; align-items: center; height: 16px; margin-bottom: 5px; }
.woolf-rev__row-stars { gap: 2px; width: 88px; }
.woolf-rev__bar { display: block; width: 120px; height: 16px; margin: 0 2px 0 4px; box-shadow: inset 0 0 0 1px #eee; }
.woolf-rev__bar > span { display: block; height: 100%; background: #fbcd0a; }
.woolf-rev__pct { margin-left: 4px; min-width: 32px; }
.woolf-rev__freq { margin-left: 6px; }
.woolf-rev__actions { margin-left: auto; }
.woolf-rev__write { background: #fff; color: #000; border: 1px solid #000; border-radius: 0; padding: 5px 10px; font: inherit; font-size: 16px; line-height: 1.4; cursor: pointer; }
.woolf-rev__form { margin-top: 24px; border-top: 1px solid #eee; padding-top: 16px; }
.woolf-rev__form .comment-reply-title { display: block; font-size: 18px; margin-bottom: 1rem; }
.woolf-rev__sort-select { font: inherit; font-size: 12px; height: 26px; border: 1px solid #ddd; border-radius: 0; padding: 0 20px 0 8px; background: #fff; color: #000; }
.woolf-rev__item { border-top: 1px solid #eee; padding-top: 16px; margin-top: 16px; }
.woolf-rev__icon { float: left; position: relative; width: 51px; height: 51px; margin-right: 12px; border-radius: 50%; background: #e9e9e9; color: #333; font-size: 16px; line-height: 51px; text-align: center; }
.woolf-rev__icon.is-verified::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border: 2px solid #fff; border-radius: 50%; box-sizing: border-box; background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 9px no-repeat; }
.woolf-rev__rating { display: inline-flex; vertical-align: -1px; margin-top: 3px; }
.woolf-rev__date { margin-left: 4px; }
.woolf-rev__who { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.woolf-rev__badge { background: #000; color: #fff; font-size: 11px; line-height: 11px; padding: 3px 7px; }
.woolf-rev__author { font-size: 12px; font-weight: 700; }
.woolf-rev__content { clear: both; padding-top: 5px; }
.woolf-rev__item-title { display: block; font-size: 17.6px; line-height: 1.4; font-weight: 700; }
.woolf-rev__body p { margin: 0; }

/* Karusell på mobil (anbefalte produkter og ikonene), én om gangen med pil, som dagens side. Pilene lages i product.js. */
.woolf-slide-btn { display: none; }
@media (max-width: 781px) {
  .woolf-related { position: relative; }
  .woolf-product .woolf-values { position: relative; padding: 60px 20px 48px !important; }
  .woolf-product .woolf-values > h2 { font-size: 20px !important; line-height: 1.33 !important; }
  .woolf-product .woolf-values > p { font-size: 12px !important; line-height: 1.714 !important; margin-top: 7px !important; }
  .woolf-product .woolf-values > .wp-block-buttons { margin-top: 20px !important; }
  .woolf-product .woolf-values > .woolf-icons { margin-top: 60px !important; }
  .woolf-product .woolf-related .wc-block-product-template,
  .woolf-product .woolf-icons { display: flex !important; flex-wrap: nowrap !important; gap: 20px !important; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
  .woolf-product .woolf-related .wc-block-product-template::-webkit-scrollbar,
  .woolf-product .woolf-icons::-webkit-scrollbar { display: none; }
  /* Skjermleserteksten i salgsprisen er position: absolute; uten dette slapp den ut av karusellen og ga sidelengs rulling. */
  .woolf-product .woolf-related .wc-block-product-template { position: relative; }
  .woolf-product .woolf-related .wc-block-product-template > li,
  .woolf-product .woolf-icons > .wp-block-column { flex: 0 0 100% !important; max-width: 100% !important; margin: 0 !important; scroll-snap-align: start; }
  .woolf-slide-btn { display: flex; position: absolute; right: -20px; z-index: 2; width: 46px; height: 46px; align-items: center; justify-content: center; padding: 0; border: 0; background: #fff; color: #000; box-shadow: 0 0 6px rgb(0 0 0 / 0.12); cursor: pointer; transform: translateY(-50%); }
  .woolf-slide-btn--prev { right: auto; left: -20px; }
  .woolf-values > .woolf-slide-btn--next { right: 0; } /* ikonene ligger i seksjonen med 20 px kant, ikke i en indre boks */
  .woolf-values > .woolf-slide-btn--prev { left: 0; }
  .woolf-slide-btn[hidden] { display: none; }

  .woolf-product .woolf-split .wp-block-cover.woolf-split-media { min-height: 52.78vw !important; aspect-ratio: auto !important; }
  .woolf-product .woolf-split .wp-block-buttons { margin-top: 20px !important; }

  .woolf-product .woolf-reviews { padding: 24px 20px !important; }
  .woolf-rev__top { flex-direction: column; gap: 0; }
  .woolf-rev__actions { order: 2; width: 100%; margin: 8px 0 0; }
  .woolf-rev__write { width: 100%; }
  .woolf-rev__histogram { order: 3; border: 0; padding: 0; margin-top: 30px; }
  .woolf-rev__sort { margin-top: 16px; }
}
