/* Butikkforsiden på /butikk/ (19.10.2026, skisse B + julevarianten). Se butikk-forside.php. */
.hii-bf{ width:100vw; margin-left:calc(50% - 50vw); margin-bottom:24px; }
.hii-bf > section, .hii-bf > nav, .hii-bf > .hii-bf-trygg{ max-width:1280px; margin-left:auto; margin-right:auto; }
.hii-bf-ov{ display:block; font:600 12px/1.3 "freight-sans-pro",Arial,sans-serif; letter-spacing:.18em; text-transform:uppercase; }
.hii-bf-knapper{ display:flex; gap:12px; flex-wrap:wrap; }
.hii-bf-knapp, .hii-bf a.hii-bf-knapp{
  display:inline-block; font:600 13px "freight-sans-pro",Arial,sans-serif; letter-spacing:.1em; text-transform:uppercase;
  padding:14px 22px; border-radius:4px; background:#c81919; color:#fff !important; text-decoration:none; border:1.5px solid #c81919;
}
.hii-bf a.hii-bf-knapp:hover{ background:#a51414; border-color:#a51414; }
.hii-bf a.hii-bf-knapp--lys{ background:transparent; border-color:#fff; }
.hii-bf a.hii-bf-knapp--lys:hover{ background:rgba(255,255,255,.12); border-color:#fff; }
.hii-bf-lenke, .hii-bf a.hii-bf-lenke{ font:600 12px "freight-sans-pro",Arial,sans-serif; letter-spacing:.1em; text-transform:uppercase; color:#283c8c; border-bottom:1.5px solid #283c8c; text-decoration:none; white-space:nowrap; }
.hii-bf h2{ font-family:"gin",sans-serif; font-weight:900; color:#283c8c; font-size:clamp(1.6rem,2.6vw,2rem); margin:0; letter-spacing:.01em; }
.hii-bf-sh{ display:flex; justify-content:space-between; align-items:flex-end; gap:16px; margin:0 0 18px; }
.hii-bf-sh p{ font:18px/1.35 "Cormorant Garamond",Georgia,serif; color:#6b7a82; margin:2px 0 0; }

/* Jule-toppen: tekst + to miljøbilder */
.hii-bf > .hii-bf-jhero{ max-width:none; display:grid; grid-template-columns:1fr 1.4fr; min-height:600px; background:#2f4547; color:#fff; }
.hii-bf-jhero__t{ padding:56px clamp(24px,4vw,64px); display:flex; flex-direction:column; justify-content:center; align-items:flex-start; }
.hii-bf-jhero h1{ font-family:"gin",sans-serif; font-weight:900; color:#fff; font-size:clamp(2.4rem,4.4vw,4rem); line-height:1; margin:14px 0 18px; }
.hii-bf-jhero p{ font:22px/1.45 "Cormorant Garamond",Georgia,serif; margin:0 0 28px; max-width:440px; color:#fff; }
.hii-bf-jhero__b{ position:relative; overflow:hidden; }
.hii-bf-jhero__b img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hii-bf-nedtelling{ display:inline-block; background:#c81919; color:#fff; font:600 12px "freight-sans-pro",Arial,sans-serif; letter-spacing:.12em; text-transform:uppercase; padding:7px 12px; border-radius:3px; margin-bottom:6px; }

/* Vanlig topp (utenom julen) */
.hii-bf > .hii-bf-hero{ max-width:none; position:relative; height:clamp(380px,48vw,620px); display:flex; align-items:center; justify-content:center; text-align:center; color:#fff; overflow:hidden; }
.hii-bf-hero > img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 35%; }
.hii-bf-hero::after{ content:""; position:absolute; inset:0; background:linear-gradient(rgba(10,20,50,.15),rgba(10,20,50,.55)); }
.hii-bf-hero__t{ position:relative; z-index:1; }
.hii-bf-hero h1{ font-family:"gin",sans-serif; font-weight:900; color:#fff; font-size:clamp(2.6rem,6vw,4.8rem); line-height:1; margin:12px 0 22px; }

.hii-bf-trygg{ display:flex; justify-content:center; flex-wrap:wrap; gap:12px 56px; padding:16px 20px; font:17px "Cormorant Garamond",Georgia,serif; color:#283c8c; }

/* Møt julemusene */
.hii-bf-mot{ padding:48px 24px 0; }
.hii-bf-mot__rute{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.hii-bf-mkort{ background:#fff; display:flex; flex-direction:column; }
.hii-bf-mkort__b{ display:block; aspect-ratio:4/5; overflow:hidden; }
.hii-bf-mkort__b img{ width:100%; height:100%; object-fit:cover; object-position:center 30%; display:block; transition:transform .5s ease; }
.hii-bf-mkort:hover .hii-bf-mkort__b img{ transform:scale(1.04); }
.hii-bf-mkort__t{ padding:22px 24px 24px; display:flex; flex-direction:column; gap:10px; flex:1; }
.hii-bf-mkort h3{ font-family:"gin",sans-serif; font-weight:900; color:#283c8c; font-size:1.55rem; margin:0; }
.hii-bf-mkort p{ font:18px/1.4 "Cormorant Garamond",Georgia,serif; margin:0; color:#1c2b33; }
.hii-bf-mkort__fot{ display:flex; justify-content:space-between; align-items:center; margin-top:auto; padding-top:8px; }
.hii-bf-pris{ font:600 15px "freight-sans-pro",Arial,sans-serif; color:#1c2b33; }

/* Samle hele familien (hengebildet) */
.hii-bf > .hii-bf-familie{ max-width:none; position:relative; margin-top:56px; background:#f5f0d7; min-height:440px; display:flex; align-items:center; overflow:hidden; }
.hii-bf-familie__b img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:right top; }
.hii-bf-familie__t{ position:relative; z-index:1; padding:40px clamp(24px,5vw,72px); max-width:560px; }
.hii-bf-familie h2{ font-size:clamp(2rem,3.4vw,2.8rem); margin:10px 0 14px; }
.hii-bf-familie p{ font:20px/1.45 "Cormorant Garamond",Georgia,serif; margin:0 0 22px; color:#1c2b33; }
.hii-bf-familie .hii-bf-ov{ color:#283c8c; }

/* Karuseller med Woos egne produktkort */
.hii-bf-karusell{ padding:52px 24px 0; }
.hii-bf-rad-ramme{ position:relative; }
.woocommerce .hii-bf ul.products.hii-bf-rad{
  display:flex !important; gap:10px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; margin:0; padding:0;
}
.hii-bf ul.products.hii-bf-rad::-webkit-scrollbar{ display:none; }
.woocommerce .hii-bf ul.products.hii-bf-rad li.product{ flex:0 0 calc((100% - 40px) / 4.4); scroll-snap-align:start; }
.hii-bf-pil{
  position:absolute; top:36%; z-index:2; width:44px; height:44px; border-radius:50%; border:0; background:#fff; color:#283c8c;
  box-shadow:0 2px 8px rgba(0,0,0,.18); font:24px/44px Arial,sans-serif; padding:0; cursor:pointer;
}
.hii-bf-pil--v{ left:-18px; } .hii-bf-pil--h{ right:-18px; }
.hii-bf-pil[disabled]{ opacity:0; pointer-events:none; }
/* 23.10 (Andreas: «#c36 skal aldri brukes»): Hello Elementor gir ALLE knapper rosa #c36 ved hover/fokus. Pilene får merkevarens navy. */
.hii-bf-pil:hover, .hii-bf-pil:focus, .hii-bf-pil:active{ background:#283c8c; color:#fff; border:0; }
.hii-bf-pil:focus-visible{ outline:2px solid #283c8c; outline-offset:2px; }

/* Tre kampanjefliser */
.hii-bf-tre{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; padding:52px 24px 0; }
.hii-bf a.hii-bf-flis{ position:relative; aspect-ratio:3/4; overflow:hidden; display:flex; color:#fff; text-decoration:none; }
.hii-bf-flis img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.hii-bf-flis:hover img{ transform:scale(1.04); }
.hii-bf-flis::after{ content:""; position:absolute; inset:0; background:linear-gradient(transparent 45%,rgba(10,20,50,.72)); }
.hii-bf-flis__t{ position:relative; z-index:1; margin-top:auto; width:100%; display:flex; flex-direction:column; align-items:center; text-align:center; padding:0 20px 32px; gap:6px; }
.hii-bf-flis__h{ font-family:"gin",sans-serif; font-weight:900; font-size:clamp(2rem,3.4vw,2.6rem); line-height:1; margin-bottom:10px; }

/* Merkeraden */
.hii-bf-merker{ display:flex; flex-wrap:wrap; justify-content:center; gap:14px 44px; padding:34px 24px; margin-top:52px !important; border-top:1px solid #e3dfd6; border-bottom:1px solid #e3dfd6; }
.hii-bf-merker a{ font-family:"gin",sans-serif; font-weight:900; font-size:19px; letter-spacing:.06em; text-transform:uppercase; color:#9aa0b4; text-decoration:none; }
.hii-bf-merker a:hover{ color:#283c8c; }

.hii-bf-alle{ font-family:"gin",sans-serif; font-weight:900; color:#283c8c; font-size:clamp(1.6rem,2.6vw,2rem); margin:10px 0 18px; scroll-margin-top:110px; }

@media (max-width:900px){
  .hii-bf > .hii-bf-jhero{ grid-template-columns:1fr; }
  .hii-bf-jhero__t{ grid-column:1 / -1; padding:40px 24px; }
  .hii-bf-jhero__b{ min-height:320px; }
  .hii-bf-mot__rute{ grid-template-columns:1fr; }
  .hii-bf-mkort{ display:grid; grid-template-columns:40% 1fr; }
  .hii-bf-mkort__b{ aspect-ratio:auto; min-height:220px; }
  .woocommerce .hii-bf ul.products.hii-bf-rad li.product{ flex-basis:calc((100% - 10px) / 2.3); }
  .hii-bf-tre{ grid-template-columns:1fr; } .hii-bf a.hii-bf-flis{ aspect-ratio:4/3; }
  .hii-bf-familie__b img{ opacity:.35; }
  .hii-bf-pil{ display:none; }
  .hii-bf-sh{ flex-direction:column; align-items:flex-start; gap:6px; }
}
@media (max-width:560px){
  .hii-bf-mkort{ display:flex; } .hii-bf-mkort__b{ aspect-ratio:4/3; min-height:0; }
  .hii-bf-jhero p{ font-size:19px; }
}

/* Julemusene som historiebok (?samling=julemus) — som PDF-en «The Christmas mice on Hermes II» */
.hii-jb-topp{ text-align:center; padding:56px 20px 8px; max-width:980px; margin:0 auto; }
.hii-jb-kristtorn{ width:64px; height:28px; display:block; margin:0 auto 10px; }
.hii-jb-topp h1{ font-family:"Fraunces",Georgia,serif; font-weight:600; color:#23463b; font-size:clamp(2.2rem,5vw,3.6rem); line-height:1.08; margin:0; letter-spacing:-.01em; }
.hii-jb-topp p{ font:20px/1.45 "Cormorant Garamond",Georgia,serif; color:#4b5a5f; margin:14px 0 0; }
.hii-jb{ max-width:980px; margin:24px auto 64px; background:#fff; border:1px solid #e6e2da; padding:24px clamp(18px,5vw,64px); }
.hii-jb-mus{ display:grid; grid-template-columns:200px 1fr; gap:36px; align-items:center; padding:36px 0; border-bottom:1px solid #f0ece4; }
.hii-jb-mus:last-child{ border-bottom:0; }
.hii-jb-mus--snu{ grid-template-columns:1fr 200px; }
.hii-jb-mus--snu .hii-jb-mus__b{ order:2; }
.hii-jb-mus__b{ display:block; }
.hii-jb-mus__b img{ width:100%; height:auto; max-height:300px; object-fit:contain; mix-blend-mode:multiply; display:block; margin:0 auto; }
.hii-jb-mus h2{ font-family:"Fraunces",Georgia,serif; font-weight:600; font-size:clamp(1.4rem,2.6vw,1.8rem); line-height:1.15; margin:0 0 10px; }
.hii-jb-mus h2 a{ text-decoration:none; }
.hii-jb-navn{ color:#23463b; } .hii-jb-tittel{ color:#9b2c2c; }
.hii-jb-historie p{ font:17px/1.6 "freight-sans-pro",Arial,sans-serif; color:#3b4448; margin:0 0 10px; }
.hii-jb-kjop{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; margin-top:12px; }
.hii-jb-pris{ font:600 16px "freight-sans-pro",Arial,sans-serif; color:#1c2b33; }
.hii-jb-kjop .button{ background:#9b2c2c !important; color:#fff !important; border-radius:4px; font:600 12px "freight-sans-pro",Arial,sans-serif !important; letter-spacing:.1em; text-transform:uppercase; padding:11px 18px !important; }
.hii-jb-kjop .button:hover{ background:#7f2222 !important; }
.hii-jb-kjop .added_to_cart{ font:600 12px "freight-sans-pro",Arial,sans-serif; letter-spacing:.08em; text-transform:uppercase; color:#23463b; }
@media (max-width:700px){
  .hii-jb-mus, .hii-jb-mus--snu{ grid-template-columns:110px 1fr; gap:18px; align-items:start; }
  .hii-jb-mus--snu .hii-jb-mus__b{ order:0; }
}

/* Forhåndsbestilling */
.hii-forhand{ display:inline-block; font:600 13px "freight-sans-pro",Arial,sans-serif; letter-spacing:.04em; color:#9b2c2c; background:#f8ecec; border-radius:3px; padding:6px 10px; margin:6px 0 12px; }

/* Merkeraden med logoer (19.10, Andreas: «bruk merkenes egen logo»). Noen logoer har hvit bunn → multiply. */
.hii-bf-merker{ align-items:center; gap:20px 40px !important; }
.hii-bf-merker a{ display:flex; align-items:center; }
.hii-bf-merker img.hii-bf-logo{ height:32px; width:auto; max-width:130px; object-fit:contain; mix-blend-mode:multiply; opacity:.75; transition:opacity .2s; }
.hii-bf-merker a:hover img.hii-bf-logo{ opacity:1; }
.hii-bf-merker a[title="Norlender"] img.hii-bf-logo{ height:50px; }
.hii-bf-merker a[title="Bråtens"] img.hii-bf-logo, .hii-bf-merker a[title="Gry & Sif"] img.hii-bf-logo{ height:40px; }
.hii-bf-merker a[title="Lakor"] img.hii-bf-logo, .hii-bf-merker a[title="Lovi"] img.hii-bf-logo{ height:24px; }
.hii-bf-merker a[title="Skandinavisk"] img.hii-bf-logo, .hii-bf-merker a[title="Stone Soap"] img.hii-bf-logo{ height:20px; max-width:160px; }
@media (max-width:600px){ .hii-bf-merker{ gap:16px 26px !important; } .hii-bf-merker img.hii-bf-logo{ max-width:100px; } }

/* Kategorimenyen (20.10, som vakrevene.no) */
.hii-kat{ background:#fff; border-top:1px solid #e3dfd6; border-bottom:1px solid #e3dfd6; position:relative; z-index:20; }
.hii-bf > nav.hii-kat{ max-width:none; }
.hii-kat-topp{ width:100vw; margin-left:calc(50% - 50vw); margin-bottom:0; }
.hii-kat ul{ list-style:none; margin:0 auto; padding:0 24px; display:flex; justify-content:center; flex-wrap:nowrap; gap:0 clamp(22px,2.2vw,40px); }
.hii-kat li{ margin:0; padding:0; position:relative; }
.hii-kat a, .hii-kat button{ display:inline-flex; align-items:center; gap:7px; padding:17px 0 15px; font:500 14px/1 "freight-sans-pro",Arial,sans-serif; letter-spacing:.08em;
  text-transform:uppercase; color:#1d2340; text-decoration:none; background:none; border:0; border-bottom:2px solid transparent; border-radius:0; cursor:pointer; white-space:nowrap; }
.hii-kat a:hover, .hii-kat button:hover, .hii-kat button:focus{ color:#283c8c; background:none; border-bottom-color:#283c8c; }
.hii-kat a.er-aktiv, .hii-kat button.er-aktiv{ color:#c81919; border-bottom-color:#c81919; }
.hii-kat button svg{ transition:transform .15s; }
.hii-kat__panel{ display:none; position:absolute; top:100%; left:50%; transform:translateX(-50%); min-width:220px; background:#fff; border:1px solid #e3dfd6; box-shadow:0 10px 24px rgba(16,26,60,.10); padding:10px 0; }
.hii-kat__panel a{ display:block; padding:9px 22px; border:0; font-size:13px; }
.hii-kat__panel a:hover{ background:#f5f0d7; border:0; }
.hii-kat__dd:hover .hii-kat__panel, .hii-kat.dd-apen .hii-kat__panel--merker{ display:block; }   /* 19.11: dd-apen gjelder bare merkelista (kategoriene har egne rullegardiner) */
.hii-kat__dd:hover button svg, .hii-kat.dd-apen .hii-kat__dd--merker button svg{ transform:rotate(90deg); }
@media (max-width:1360px){   /* for smalt til én rad: rull sidelengs (målt 20.10: 11 punkter = 1 045 px + mellomrom) */
  .hii-kat ul{ justify-content:flex-start; flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; gap:0 26px; padding:0 16px; }
  .hii-kat ul::-webkit-scrollbar{ display:none; }
  .hii-kat a, .hii-kat button{ font-size:13px; padding:15px 0 13px; }
  .hii-kat__dd:hover .hii-kat__panel{ display:none; }
  .hii-kat.dd-apen .hii-kat__panel--merker{ display:block; position:fixed; left:16px; right:16px; transform:none; min-width:0; max-height:60vh; overflow-y:auto; }
}

/* ── 19.11: søk i menylinja: forstørrelsesglass i raden, feltet i et panel under menyen ── */
.hii-kat__sokknapp button{ padding:17px 4px 15px !important; color:#1d2340 !important; background:none !important; border:0 !important; border-bottom:2px solid transparent !important; border-radius:0 !important; }
.hii-kat__sokknapp button:hover, .hii-kat__sokknapp button:focus, .hii-kat.sok-apen .hii-kat__sokknapp button{ color:#283c8c !important; border-bottom-color:#283c8c !important; background:none !important; }
.hii-kat__sokpanel{ display:none; position:absolute; top:100%; right:max(24px, calc(50% - 600px)); width:min(440px, calc(100vw - 32px)); background:#fff; border:1px solid #e3dfd6;
  box-shadow:0 10px 24px rgba(16,26,60,.10); padding:12px; z-index:30; }
.hii-kat.sok-apen .hii-kat__sokpanel{ display:block; }
.hii-kat__sok{ display:flex; align-items:center; height:42px; padding:0 4px 0 16px; border:1.5px solid #283c8c; border-radius:22px; background:#fff; }
.hii-kat__sok input[type=search]{ flex:1 1 auto; min-width:0; border:0 !important; outline:0; background:transparent !important; box-shadow:none !important; height:38px; padding:0 !important; margin:0;
  font:400 15px/1 "freight-sans-pro",Arial,sans-serif; color:#283c8c; }
.hii-kat__sok input[type=search]::placeholder{ color:#283c8c; opacity:.6; }
.hii-kat__sok button{ display:inline-flex !important; align-items:center; justify-content:center; padding:8px !important; margin:0; border:0 !important; border-radius:50% !important;
  background:none !important; color:#283c8c !important; min-height:0; line-height:0; cursor:pointer; }
.hii-kat__sok button:hover, .hii-kat__sok button:focus{ background:#f5f0d7 !important; color:#283c8c !important; }
@media (max-width:1360px){
  .hii-kat__sokknapp button{ padding:15px 4px 13px !important; }
  /* Alltid synlig ytterst til høyre mens raden rulles (ellers måtte man rulle til slutten for å finne søket) */
  .hii-kat li.hii-kat__sokknapp{ position:sticky; right:-16px; margin-left:auto; padding:0 16px 0 12px; background:#fff; box-shadow:-10px 0 10px -8px rgba(16,26,60,.25); }
  .hii-kat__sokpanel{ left:16px; right:16px; width:auto; }
}

/* ── 19.11: underkategoriene som knapper på kategorisidene ──────────────── */
.hii-underkat{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 24px; }
.hii-underkat a{ display:inline-flex; align-items:center; gap:6px; padding:8px 15px; border:1.5px solid #283c8c; border-radius:20px; background:#fff;
  color:#283c8c !important; font:500 13px/1 "freight-sans-pro",Arial,sans-serif; letter-spacing:.03em; text-decoration:none; }
.hii-underkat a span{ font-size:11px; opacity:.65; }
.hii-underkat a:hover, .hii-underkat a:focus{ background:#f5f0d7; color:#283c8c !important; }
.hii-underkat a.er-aktiv{ background:#283c8c; color:#fff !important; }
.hii-underkat a.er-aktiv span{ opacity:.8; }

/* 19.11: uendelig rulling (rulling.js) — spinner mens neste side hentes, «Vis flere» hvis hentingen feilet. */
.hii-rull{display:flex;justify-content:center;align-items:center;min-height:64px;margin:8px 0 32px}
.hii-rull__spinn{width:26px;height:26px;border:3px solid rgba(40,60,140,.18);border-top-color:#283c8c;border-radius:50%;opacity:0;transition:opacity .2s}
.hii-rull.laster .hii-rull__spinn{opacity:1;animation:hii-rull-snurr .8s linear infinite}
@keyframes hii-rull-snurr{to{transform:rotate(360deg)}}
.hii-rull__knapp{font:600 13px "freight-sans-pro",Arial,sans-serif !important;letter-spacing:.08em;text-transform:uppercase;background:#283c8c !important;color:#fff !important;border:0 !important;border-radius:4px !important;padding:12px 22px !important;cursor:pointer}
.hii-rull__knapp:hover,.hii-rull__knapp:focus{background:#c81919 !important;color:#fff !important}
@media (prefers-reduced-motion:reduce){.hii-rull.laster .hii-rull__spinn{animation-duration:2.4s}}

/* 19.11: «Om merket»-boks på produktsiden (merker.php) og teksten under varelista på merkesidene. */
.hii-merkeboks{display:flex;gap:18px;align-items:flex-start;margin:28px 0 8px;padding:18px 20px;background:#f5f0d7;border-radius:6px}
.hii-merkeboks__logo{flex:0 0 96px}
.hii-merkeboks__logo img{display:block;width:96px;height:auto;mix-blend-mode:multiply}
.hii-merkeboks__tekst h3{margin:0 0 6px;font:600 13px/1.3 "freight-sans-pro",Arial,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#283c8c}
.hii-merkeboks__tekst p{margin:0 0 8px;font:17px/1.5 "Cormorant Garamond",Georgia,serif;color:#1d2340}
.hii-merkeboks__lenke{font:600 14px "freight-sans-pro",Arial,sans-serif;color:#283c8c !important;text-decoration:underline}
.hii-merkeboks__lenke:hover,.hii-merkeboks__lenke:focus{color:#c81919 !important}
@media (max-width:600px){.hii-merkeboks{flex-direction:column}.hii-merkeboks__logo{flex-basis:auto}}
.hii-merketekst{max-width:760px;margin:36px auto 10px;padding:0 16px}
.hii-merketekst h2{font:600 15px/1.3 "freight-sans-pro",Arial,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#283c8c;margin:0 0 10px}
.hii-merketekst p{font:18px/1.6 "Cormorant Garamond",Georgia,serif;color:#1d2340;margin:0 0 12px}

/* 19.11: «Gaver» kom inn i kategoriraden → på 1280 px ble raden 46 px for bred og søkeknappen la seg over «Merker». Tettere mellom 900 og 1500 px. */
@media (min-width:900px) and (max-width:1500px){
  .hii-kat ul{ gap:0 clamp(14px,1.35vw,22px); padding:0 16px; }
  .hii-kat a, .hii-kat button{ font-size:13px; letter-spacing:.06em; }
}
