/* BoligAV filter v3 – sidepanel med undergrupper + filterbjælke over produkterne på kategorisider, til alle skærme.
   Lægges oven på DanDomains egen venstrekolonne (#ProductMenuLeft + #ProductFilter-Container), som
   bliver i DOM'en og stadig er kilden til links, filtre og antal. Fortryd = fjern de to linjer i skabelonen.
   Samme tokens som headeren (boligav-header-v1) og produktsiden (boligav-produktside-v1). */

/* ---------- Tokens ---------- */
.bvf, .bvf-bar, .bvf-sheet, .bvf-fab, .bvf-chips, .bvf-scrim {
  --gold: #f7c902; --gold-dk: #d4a800; --gold-tx: #7d6300; --gold-bg: #fcf8ea; --gold-ic: #b8960a;
  --ink: #0f0f0e; --ink2: #171716; --fg: #1a1a1a; --tx: #3b3a36; --muted: #66655f;
  --line: rgba(26,26,20,.075); --line2: rgba(26,26,20,.14); --flade: #f4f3ef;
  --hair: rgba(247,201,2,.3);
  --dark: radial-gradient(120% 160% at 0% 0%, #2a2a27, #171716 48%, #0f0f0e);
  --shadow: 0 1px 2px rgba(26,26,20,.04), 0 10px 28px -14px rgba(26,26,20,.16);
  --font: 'Lato', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--font); color: var(--tx); box-sizing: border-box; line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
.bvf *, .bvf-bar *, .bvf-sheet *, .bvf-fab *, .bvf-chips * { box-sizing: border-box; }
.bvf svg, .bvf-bar svg, .bvf-sheet svg, .bvf-fab svg, .bvf-chips svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bvf button, .bvf-bar button, .bvf-sheet button, .bvf-fab, .bvf-chips a { font-family: var(--font); -webkit-tap-highlight-color: transparent; }
.bvf a, .bvf a:hover, .bvf-bar a, .bvf-bar a:hover, .bvf-sheet a, .bvf-sheet a:hover, .bvf-chips a, .bvf-chips a:hover { text-decoration: none !important; }
.bvf :focus-visible, .bvf-bar :focus-visible, .bvf-sheet :focus-visible, .bvf-fab:focus-visible, .bvf-chips :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Skabelonens egen venstrekolonne skjules (bliver i DOM'en) ---------- */
/* Skabelonen sætter overflow på body, hvilket slår position:sticky fra – vi flytter det op på html */
html:has(body.bvf-ready) { overflow-x: hidden; }
body.bvf-ready { overflow: visible !important; }
body.bvf-ready #ProductMenuLeft, body.bvf-ready #ProductFilter-Container, body.bvf-ready .toggle-filter { display: none !important; }

/* Skabelonens brødkrumme ("HØJTTALER › Usynlig højttaler") skjules – heroen og sidepanelet viser allerede, hvor man er */
body.bvf-ready .ProductListTop .BreadCrumb, body.bvf-ready .SubCats_BreadCrumb, body.bvf-ready .BreadCrumb_ProductList { display: none !important; }

/* Mindre luft under topmenuen: skabelonen lægger 24 px margin på .CategoryDescription (to gange på undergruppe- og
   mærkesider). Heroen starter nu 20 px under menuen; panelet retter sig ind efter den. */
body.bvf-ready #Content_Productlist .CategoryDescription { margin-top: 0 !important; }
body.bvf-ready #Content_Productlist { padding-top: 8px; }

/* ---------- Layout på pc: panel til venstre, der følger med ---------- */
@media (min-width: 992px) {
  body.bvf-ready main > .container.bvf-grid { overflow-anchor: none; display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: 28px; align-items: start; }
  body.bvf-ready main > .container.bvf-grid > #Content_Productlist { float: none !important; width: auto !important; min-width: 0; grid-column: 2; grid-row: 1; }
  body.bvf-ready main > .container.bvf-grid > .bvf { grid-column: 1; grid-row: 1; }
  .bvf { position: sticky; top: 68px; margin-top: 12px; align-self: start; }
  .bvf.bvf-anim { transition: top .25s cubic-bezier(.2,.7,.2,1); }
  .bvf-bar { transition: top .25s cubic-bezier(.2,.7,.2,1); }
}
@media (max-width: 991.98px) {
  .bvf { display: none; } /* på mobil/tablet bruges filter-arket og chip-rækken */
}

/* ---------- Panelet ---------- */
.bvf-head { position: relative; overflow: hidden; border-radius: 16px; background: var(--dark); color: #fff; padding: 16px 16px 14px; box-shadow: inset 0 -1px 0 var(--hair), var(--shadow); }
.bvf-head::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; border: 1px solid rgba(247,201,2,.18); pointer-events: none; }
.bvf-head::before { content: ""; position: absolute; right: -10px; top: -10px; width: 80px; height: 80px; border-radius: 50%; border: 1px solid rgba(247,201,2,.28); pointer-events: none; }
.bvf-eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 6px; }
.bvf-eyebrow::before { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--gold); vertical-align: middle; margin-right: 8px; }
.bvf-title { display: block; font-size: 22px; font-weight: 900; letter-spacing: -.01em; line-height: 1.1; color: #fff; text-transform: uppercase; overflow-wrap: anywhere; }
.bvf-title.bvf-long { font-size: 17px; letter-spacing: 0; }
.bvf-title.bvf-xlong { font-size: 15px; letter-spacing: 0; }
.bvf-title em { font-style: normal; color: var(--gold); }
.bvf-count { display: block; margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.bvf-count b { color: #fff; font-weight: 700; }
.bvf-jump { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer; background: linear-gradient(180deg, #fbd535, #f5c700); color: var(--fg); font-size: 13px; font-weight: 700; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 16px -8px rgba(247,201,2,.8); transition: transform .15s ease; }
.bvf-jump:hover { transform: translateY(-1px); }
.bvf-jump svg { transition: transform .2s ease; }
.bvf-jump:hover svg { transform: translateY(2px); }

.bvf-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); margin-top: 12px; padding: 14px 14px 12px; }
.bvf-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.bvf-sec-t { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.bvf-sec-t i { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; background: var(--gold-bg); color: var(--gold-ic); }
.bvf-sec-t i svg { width: 13px; height: 13px; }
.bvf-reset { background: none; border: 0; padding: 0; font-size: 12px; font-weight: 700; color: var(--gold-tx); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .15s; }
.bvf-sec.bvf-has .bvf-reset { opacity: 1; pointer-events: auto; }
.bvf-reset:hover { text-decoration: underline; }

/* Undergrupper */
.bvf-nav { list-style: none; margin: 0; padding: 0; }
.bvf-nav li { margin: 0; padding: 0; }
.bvf-nav a { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; padding: 5px 8px 5px 12px; border-radius: 9px; color: var(--fg) !important; font-size: 14px; font-weight: 400; transition: background .12s, color .12s; }
.bvf-nav a:hover { background: var(--flade); color: var(--fg) !important; }
.bvf-nav a svg { width: 14px; height: 14px; color: rgba(26,26,20,.35); transition: transform .15s, color .15s; }
.bvf-nav a:hover svg { transform: translateX(2px); color: var(--gold-tx); }
.bvf-nav a.bvf-on { background: var(--gold-bg); font-weight: 700; }
.bvf-nav a.bvf-on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.bvf-nav a.bvf-on svg { color: var(--gold-tx); }
.bvf-nav a.bvf-root { font-weight: 900; text-transform: uppercase; letter-spacing: .02em; font-size: 12px; color: var(--muted) !important; min-height: 32px; }
.bvf-nav a.bvf-root:hover { color: var(--fg) !important; }
.bvf-nav a.bvf-root svg { transform: rotate(180deg); }
.bvf-nav a.bvf-root:hover svg { transform: rotate(180deg) translateX(2px); }

/* Chips (fælles for panel og ark) */
.bvf-chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.bvf-chip { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 10px 0 12px; border: 1px solid var(--line2); border-radius: 999px; background: #fff; color: var(--fg); font-size: 13px; font-weight: 400; cursor: pointer; transition: background .12s, border-color .12s, color .12s, transform .12s; user-select: none; }
.bvf-chip:hover { border-color: rgba(26,26,20,.35); background: #fafaf7; }
.bvf-chip:active { transform: scale(.97); }
.bvf-chip small { font-size: 11px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 9px; background: var(--flade); padding: 0 5px; }
.bvf-chip.bvf-on { background: var(--fg); border-color: var(--fg); color: #fff; font-weight: 700; box-shadow: inset 0 -1px 0 rgba(247,201,2,.6); }
.bvf-chip.bvf-on small { background: rgba(255,255,255,.14); color: #fff; }
.bvf-chip.bvf-on::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); order: -1; margin-right: 1px; }
.bvf-chip.bvf-off { opacity: .4; pointer-events: none; }
.bvf-chip .bvf-sw { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(26,26,20,.18); box-shadow: inset 0 0 0 2px #fff; order: -1; }
.bvf-chip.bvf-on .bvf-sw { box-shadow: inset 0 0 0 2px var(--fg); border-color: rgba(255,255,255,.4); }
.bvf-chip.bvf-on .bvf-sw ~ * {}
.bvf-chip.bvf-on.bvf-haswatch::after { display: none; }
.bvf-chip.bvf-size { min-width: 52px; justify-content: center; padding: 0 10px; font-variant-numeric: tabular-nums; }
.bvf-chip.bvf-size small { display: none; }
.bvf-chip.bvf-brand { font-weight: 700; letter-spacing: .02em; }
.bvf-sec.bvf-size .bvf-chipset { gap: 6px; }

/* Rækker, vi ikke kender (pris, varianter): DanDomains egne elementer flyttes ind, pænt */
.bvf-raw .product-filter-header-container { display: none; }
.bvf-raw .product-filter-body-container { visibility: visible; opacity: 1; height: auto; padding: 0 !important; background: none; }
.bvf-raw input[type=text], .bvf-raw select { font-family: var(--font); font-size: 13px; height: 36px; border: 1px solid var(--line2); border-radius: 9px; padding: 0 10px; background: #fff; }

/* Travlt */
.bvf.bvf-busy .bvf-card, .bvf-sheet.bvf-busy .bvf-sheet-body { opacity: .55; pointer-events: none; transition: opacity .15s; }
.bvf-busy .bvf-chipset { position: relative; }

/* ---------- Filterbjælke over produktlisten (mørkt bånd, så det træder frem) ---------- */
.bvf-bar { position: sticky; top: var(--bvh-h, 124px); z-index: 50; margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: var(--dark); color: #fff; box-shadow: inset 0 -1px 0 var(--hair), var(--shadow); }
.bvf-bar.bvf-none { display: none; }
.bvf-hidetile { display: none !important; }
.bvf-row1, .bvf-row2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bvf-row2 { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.08); }
.bvf-bar .bvf-bar-l { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-right: 6px; }
.bvf-bar .bvf-bar-l svg { color: var(--gold); }
.bvf-bar .bvf-bar-n { display: none; margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.bvf-bar .bvf-bar-n b { color: #fff; }
/* dropdown-chips */
.bvf-dd { position: relative; }
.bvf-ddb { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 8px 0 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; cursor: pointer; transition: background .12s, border-color .12s; }
.bvf-ddb:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.18); }
.bvf-ddb svg { width: 14px; height: 14px; color: rgba(255,255,255,.6); transition: transform .18s; }
.bvf-ddb i { display: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: var(--fg); font-size: 11px; font-style: normal; font-weight: 900; line-height: 18px; text-align: center; }
.bvf-dd-has .bvf-ddb { border-color: var(--gold); background: linear-gradient(180deg, #fbd535, #f5c700); color: var(--fg); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.bvf-dd-has .bvf-ddb svg { color: var(--fg); }
.bvf-dd-has .bvf-ddb i { background: var(--fg); color: var(--gold); }
.bvf-dd-has .bvf-ddb i { display: inline-block; }
.bvf-dd-open .bvf-ddb { border-color: var(--gold); background: #fff; color: var(--fg); }
.bvf-dd-open .bvf-ddb svg { color: var(--fg); }
.bvf-dd-open .bvf-ddb svg { transform: rotate(180deg); }
.bvf-pop { display: none; position: absolute; left: 0; top: calc(100% + 8px); z-index: 60; min-width: 260px; max-width: min(520px, calc(100vw - 32px)); padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 2px 4px rgba(26,26,20,.05), 0 18px 40px -16px rgba(26,26,20,.28); }
.bvf-dd-open .bvf-pop { display: block; animation: bvf-pop .16s ease; }
.bvf-dd:nth-last-child(-n+3) .bvf-pop { left: auto; right: 0; }
@keyframes bvf-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.bvf-pop .bvf-chipset { max-height: 320px; overflow-y: auto; padding: 2px; }
.bvf-pop-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.bvf-pop-f .bvf-reset { opacity: 1; pointer-events: auto; }
.bvf-pop-f .bvf-reset:disabled { opacity: .35; pointer-events: none; }
.bvf-pop-ok { height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--fg); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: inset 0 -1px 0 rgba(247,201,2,.6); }
/* valgte filtre */
.bvf-bar .bvf-act { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 8px 0 12px; border-radius: 999px; background: var(--gold-bg); border: 1px solid rgba(247,201,2,.55); color: var(--fg); font-size: 12px; font-weight: 700; cursor: pointer; transition: background .12s; }
.bvf-bar .bvf-act:hover { background: #fbf1c5; }
.bvf-bar .bvf-act span { font-weight: 400; color: var(--gold-tx); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.bvf-bar .bvf-act svg { width: 13px; height: 13px; color: var(--gold-tx); }
.bvf-bar .bvf-clear { background: none; border: 0; padding: 0 4px; font-size: 12px; font-weight: 700; color: var(--gold); cursor: pointer; }
.bvf-bar .bvf-clear:hover { text-decoration: underline; }
.bvf-bar .bvf-open { display: none; }
.bvf-dd.bvf-dd-hid { display: none; }
.bvf-bar .bvf-more { display: none; }
@media (min-width: 992px) {
  .bvf-bar .bvf-more.bvf-show { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 10px 0 12px; border: 1px dashed rgba(247,201,2,.5); border-radius: 999px; background: transparent; color: var(--gold); font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
  .bvf-bar .bvf-more.bvf-show:hover { border-style: solid; border-color: var(--gold-dk); }
  .bvf-bar .bvf-more svg { width: 14px; height: 14px; }
  .bvf-bar .bvf-more i { display: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: var(--fg); font-size: 11px; font-style: normal; font-weight: 900; line-height: 18px; text-align: center; }
  .bvf-bar .bvf-more i:not(:empty) { display: inline-block; }
  /* arket kan også åbnes på pc (fra "Flere filtre") – som sidepanel fra højre */
  .bvf-sheet, .bvf-scrim { display: flex; }
  .bvf-sheet { left: auto; right: 0; width: 440px; max-height: 100dvh; top: 0; border-radius: 0; transform: translateX(105%); }
  body.bvf-open .bvf-sheet { transform: none; }
  .bvf-sheet-h { border-radius: 0; }
  .bvf-sheet-h::before { display: none; }
}
@media (max-width: 991.98px) {
  .bvf-bar { position: static; padding: 0 0 12px; background: none; color: inherit; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); }
  .bvf-row2 { border-top: 0; padding-top: 0; }
  .bvf-bar .bvf-clear { color: var(--gold-tx); }
  .bvf-bar .bvf-bar-l, .bvf-bar .bvf-dd { display: none; }
  .bvf-bar .bvf-open { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 14px; border: 0; border-radius: 999px; background: var(--dark); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: inset 0 -1px 0 rgba(247,201,2,.45); }
  .bvf-bar .bvf-open i { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: var(--fg); font-size: 11px; font-style: normal; font-weight: 900; }
  .bvf-bar .bvf-open i:empty { display: none; }
}

/* ---------- Chip-række med undergrupper (mobil/tablet) ---------- */
.bvf-chips { display: none; }
@media (max-width: 991.98px) {
  .bvf-chips { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 10px 2px 12px; margin: 0 0 2px; scroll-snap-type: x proximity; }
  .bvf-chips::-webkit-scrollbar { display: none; }
  .bvf-chips a { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: #fff; color: var(--fg) !important; font-size: 13px; font-weight: 700; white-space: nowrap; }
  .bvf-chips a.bvf-root { background: var(--gold-bg); border-color: rgba(247,201,2,.55); color: var(--gold-tx) !important; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
  .bvf-chips a.bvf-on { background: var(--fg); border-color: var(--fg); color: #fff !important; box-shadow: inset 0 -1px 0 rgba(247,201,2,.6); }
}

/* vælger ved mange undergrupper (mobil/tablet) */
@media (max-width: 991.98px) {
  .bvf-chips.bvf-chips-sel { display: block; overflow: visible; padding: 10px 16px 12px; }
  .bvf-sel { position: relative; width: 100%; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px 0 16px; border: 0; font-family: inherit; text-align: left; cursor: pointer; border-radius: 999px; background: var(--dark); color: #fff; box-shadow: inset 0 -1px 0 var(--hair), var(--shadow); }
  .bvf-sel-k { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
  .bvf-sel-k::after { content: ""; display: inline-block; width: 1px; height: 14px; background: rgba(255,255,255,.2); margin-left: 10px; vertical-align: middle; }
  .bvf-sel-v { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bvf-sel svg { width: 18px; height: 18px; color: var(--gold); }
}

/* ---------- Flydende filterknap (mobil/tablet) ---------- */
.bvf-fab { display: none; }
@media (max-width: 991.98px) {
  .bvf-fab { position: fixed; right: 14px; bottom: 16px; z-index: 9880; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 16px; border: 0; border-radius: 999px; background: var(--dark); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: inset 0 -1px 0 rgba(247,201,2,.5), 0 10px 24px -8px rgba(15,15,14,.5); transform: translateY(0); transition: transform .25s cubic-bezier(.2,.7,.2,1), opacity .2s; }
  .bvf-fab i { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: var(--fg); font-size: 11px; font-style: normal; font-weight: 900; }
  .bvf-fab i:empty { display: none; }
  .bvf-fab.bvf-hid { transform: translateY(calc(100% + 100px)); opacity: 0; pointer-events: none; }
}
@media (max-width: 767.98px) {
  .bvf-fab { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } /* over bundbjælken fra headeren */
}

/* ---------- Filter-arket (mobil/tablet) ---------- */
.bvf-scrim { display: block; position: fixed; inset: 0; z-index: 9920; background: rgba(15,15,14,.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.bvf-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9930; display: flex; flex-direction: column; max-height: min(88vh, 100dvh - 40px); background: var(--flade); border-radius: 20px 20px 0 0; box-shadow: 0 -24px 48px rgba(15,15,14,.35); transform: translateY(105%); transition: transform .3s cubic-bezier(.2,.7,.2,1); visibility: hidden; }
body.bvf-open .bvf-scrim { opacity: 1; visibility: visible; }
body.bvf-open .bvf-sheet:not(.bvf-pick) { transform: none; visibility: visible; }
body:has(.bvf-pick.bvf-pick-on) .bvf-sheet:not(.bvf-pick) { transform: translateY(105%); visibility: hidden; }
.bvf-sheet.bvf-pick.bvf-pick-on { transform: none !important; visibility: visible !important; }
html:has(body.bvf-open), html:has(body.bvf-lb-lock) { overflow: hidden; } /* låser siden, mens ark/galleri er åbent */
body.bvf-open .bavb-ov { visibility: hidden !important; }
@media (min-width: 768px) { .bvf-sheet { left: auto; right: 0; width: 420px; max-height: 100dvh; top: 0; border-radius: 0; transform: translateX(105%); } body.bvf-open .bvf-sheet { transform: none; } }
.bvf-sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 14px; background: var(--dark); color: #fff; border-radius: 20px 20px 0 0; box-shadow: inset 0 -1px 0 var(--hair); flex: none; }
@media (min-width: 768px) { .bvf-sheet-h { border-radius: 0; } }
.bvf-sheet-h::before { content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: rgba(255,255,255,.25); }
@media (min-width: 768px) { .bvf-sheet-h::before { display: none; } }
.bvf-sheet-h { position: relative; }
.bvf-sheet-t { display: block; font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: .01em; }
.bvf-sheet-t em { font-style: normal; color: var(--gold); }
.bvf-sheet-s { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 3px; }
.bvf-sheet-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.bvf-sheet-x svg { width: 18px; height: 18px; }
.bvf-sheet-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 4px 14px 16px; }
.bvf-sheet-body .bvf-card { margin-top: 12px; }
.bvf-sheet-body .bvf-chip { min-height: 40px; font-size: 14px; }
.bvf-sheet-f { flex: none; display: flex; gap: 10px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); }
.bvf-sheet-f .bvf-clear2 { height: 48px; padding: 0 18px; border: 1px solid var(--line2); border-radius: 999px; background: #fff; color: var(--fg); font-size: 14px; font-weight: 700; cursor: pointer; }
.bvf-sheet-f .bvf-show { flex: 1; height: 48px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #fbd535, #f5c700); color: var(--fg); font-size: 15px; font-weight: 900; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.5); font-variant-numeric: tabular-nums; }
.bvf-sheet-f .bvf-show:active { transform: scale(.98); }

/* ---------- Sammenhæng med produktsiden: køb-bjælken ligger over bundbjælken ---------- */
@media (max-width: 767.98px) {
  body.bvh-ready .bvpp-stickybuy { bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important; padding-right: 16px !important; z-index: 1090 !important; box-shadow: 0 -8px 24px -16px rgba(24,22,16,.35) !important; }
}

@media (prefers-reduced-motion: reduce) {
  .bvf-sheet, .bvf-scrim, .bvf-fab, .bvf-jump, .bvf-chip { transition: none !important; }
}

/* ---------- iubenda: flydende privatlivs-knap væk fra bundbjælken på mobil, tekstlink i footeren i stedet ---------- */
@media (max-width: 767.98px) { html body button.iubenda-tp-btn.iubenda-cs-preferences-link[data-tp-float][data-tp-icon], html body .iubenda-tp-btn[data-tp-float] { display: none !important; visibility: hidden !important; } }
.bvf-privacy { text-align: center; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); font-family: 'Lato', system-ui, sans-serif; font-size: 12px; }
.bvf-privacy a { color: rgba(255,255,255,.55) !important; text-decoration: underline !important; text-underline-offset: 3px; }
.bvf-privacy a:hover { color: #f7c902 !important; }

/* ---------- Mobil: "Filter" i bundbjælken, ingen flydende knap ---------- */
@media (max-width: 767.98px) {
  body.bvf-ready .bvm-bar.bvf-5 { grid-template-columns: repeat(5, 1fr); }
  .bvm-bar .bvf-barbtn i { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #f7c902; color: #1a1a1a; font-size: 10px; font-style: normal; font-weight: 900; line-height: 16px; text-align: center; }
  .bvm-bar .bvf-barbtn i:empty { display: none; }
  body.bvf-ready .bvf-fab { display: none !important; }
  html { overscroll-behavior-y: none; }
}

/* ---------- Produktsiden på mobil: køb-bjælke og bundbjælke som ét panel ---------- */
@media (max-width: 767.98px) {
  body.bvh-ready .bvpp-stickybuy { bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important; padding: 8px 16px 8px !important; background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-top: 1px solid rgba(26,26,20,.08) !important; box-shadow: 0 -6px 16px rgba(26,26,20,.06) !important; z-index: 9885 !important; }
  body.bvh-ready .bvpp-stickybuy button { height: 44px; padding: 0 26px; border-radius: 999px; background: linear-gradient(180deg, #fbd535, #f5c700); color: #1a1a1a; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 16px -8px rgba(247,201,2,.8); font-weight: 900; }
  body:has(.bvpp-stickybuy.on) .bvm-bar { border-top-color: rgba(26,26,20,.06); box-shadow: none; }
}

/* ---------- Galleri i fuld skærm (touch) ---------- */
.bvf-lb { position: fixed; inset: 0; z-index: 9960; background: #0f0f0e; color: #fff; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; font-family: 'Lato', system-ui, sans-serif; }
.bvf-lb.bvf-lb-on { opacity: 1; visibility: visible; }
body.bvf-lb-lock { overflow: hidden; }
.bvf-lb-h { flex: none; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px 18px; }
.bvf-lb-c { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.bvf-lb-x { width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.bvf-lb-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.bvf-lb-track { flex: 1 1 auto; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; touch-action: pan-x; }
.bvf-lb-track::-webkit-scrollbar { display: none; }
.bvf-lb-track.bvf-lb-zoom { overflow: hidden; touch-action: none; }
.bvf-lb-slide { flex: 0 0 100%; width: 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: 8px; overflow: hidden; }
.bvf-lb-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; background: #fff; transform-origin: center; transition: transform .08s linear; will-change: transform; user-select: none; -webkit-user-select: none; }
.bvf-lb-hint { flex: none; text-align: center; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 992px) { .bvf-lb { display: none !important; } }

/* ---------- Vælger-ark (mærker m.fl.) ---------- */
.bvf-pick .bvf-az { flex: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px 4px; }
.bvf-pick .bvf-az button { min-width: 34px; height: 32px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 999px; background: #fff; color: var(--fg); font-size: 12px; font-weight: 700; cursor: pointer; }
.bvf-pick .bvf-az button[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: #fff; box-shadow: inset 0 -1px 0 rgba(247,201,2,.6); }
.bvf-pick .bvf-sheet-body { padding: 10px 14px calc(16px + env(safe-area-inset-bottom, 0px)); }
.bvf-pick-all { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 16px; margin-bottom: 10px; border-radius: 12px; background: var(--gold-bg); border: 1px solid rgba(247,201,2,.55); color: var(--gold-tx) !important; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.bvf-pick-all svg { width: 14px; height: 14px; }
.bvf-pick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.bvf-pick-grid a { display: flex; align-items: center; min-height: 46px; padding: 0 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--fg) !important; font-size: 14px; font-weight: 700; }
.bvf-pick-grid a.bvf-on { background: var(--fg); border-color: var(--fg); color: #fff !important; box-shadow: inset 0 -1px 0 rgba(247,201,2,.6); }
.bvf-pick-grid a:active { transform: scale(.98); }
@media (min-width: 992px) { .bvf-pick { display: none !important; } }
