/**
 * Black Friday-check v3 - /black-friday/: base, hero, sticky navigation, the price meter and the buttons.
 * Mobile first. Colours come from theme-vars.css only (light :root, dark html.dark): no literal colours here.
 * Layout changes at 601, 901, 1001, 1101 and 1361px; type and spacing are fluid.
 * The other parts: zoek.css (search results) and lijsten.css (deals, groups, explanation, FAQ).
 */

.bf-page {
    background: var(--grond);
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.55;
    overflow-x: clip;
}

.bf-page *,
.bf-page *::before,
.bf-page *::after {
    box-sizing: border-box;
}

.bf-page [hidden] {
    display: none !important;
}

:where(.bf-page) a {
    color: var(--brand);
}

:where(.bf-page) a:hover {
    color: var(--brand-sterk);
}

.bf-page h1,
.bf-page h2,
.bf-page h3 {
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.bf-page :focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

.bf-page svg text {
    font-family: inherit;
}

.bf-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
}

.bf-num {
    font-variant-numeric: tabular-nums;
}

.bf-vh {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* The colour of a stand of the price meter: one custom property that the sentence, the dot, the face and the graph read. */
.bf-o--go,
.bf-m--go { --bf-k: var(--signal-go); }
.bf-o--go-licht,
.bf-m--go-licht { --bf-k: color-mix(in srgb, var(--signal-go) 62%, var(--text-zwak)); }
.bf-o--brand,
.bf-m--brand { --bf-k: var(--brand); }
.bf-o--caution,
.bf-m--caution { --bf-k: var(--signal-caution); }
.bf-o--block,
.bf-m--block { --bf-k: var(--signal-block); }
.bf-o--zwak,
.bf-m--zwak { --bf-k: var(--text-zwak); }
.bf-o--streep { --bf-k: var(--text-primary); }

.bf-go {
    color: var(--veld-signal-go) !important;
}

/* ---------- Buttons ---------- */

.bf-knop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

:where(.bf-page) .bf-knop--deal,
:where(.bf-page) .bf-knop--zoek {
    background: var(--brand);
    color: var(--on-brand);
}

:where(.bf-page) .bf-knop--deal:hover,
:where(.bf-page) .bf-knop--zoek:hover {
    background: var(--brand-sterk);
    color: var(--on-brand);
}

.bf-knop--deal {
    padding: 0 14px;
    font-size: 0.875rem;
}

.bf-knop--rand {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0 14px;
    font-size: 0.875rem;
}

:where(.bf-page) .bf-knop--rand {
    color: var(--text-primary);
}

.bf-knop--rand:hover {
    border-color: var(--brand);
}

:where(.bf-page) .bf-knop--licht {
    background: var(--veld-tekst);
    color: var(--veld);
    padding: 0 22px;
}

/* ---------- Hero ---------- */

.bf-hero {
    background: var(--veld);
    color: var(--veld-tekst);
    position: relative;
    overflow: hidden;
}

.bf-hero__in {
    z-index: 1;
    padding-top: 18px;
}

.bf-slinger {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 150px;
    pointer-events: none;
}

.bf-kaartje {
    position: absolute;
    width: 96px;
    transform-origin: 50% 0;
}

.bf-k1 { left: 2%; top: 0; transform: rotate(6deg); }
.bf-k2 { left: calc(2% + 104px); top: -14px; transform: rotate(-5deg); }
.bf-k3 { right: calc(2% + 104px); top: -14px; transform: rotate(5deg); }
.bf-k4 { right: 2%; top: 0; transform: rotate(-7deg); }

.bf-kopregel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    margin: 0;
}

.bf-kopregel span:last-child {
    font-weight: 600;
    font-size: 0.9375rem;
}

.bf-label {
    background: var(--veld-tekst);
    color: var(--veld);
    border-radius: 6px;
    padding: 4px 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
    font-size: 0.8125rem;
    text-transform: uppercase;
}

.bf-hero__grid {
    margin-top: 14px;
}

.bf-hero h1 {
    color: var(--veld-tekst);
    font-size: clamp(1.875rem, 1.5rem + 1.95vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin-top: 12px;
}

.bf-lead {
    color: var(--veld-zwak);
    font-size: clamp(1rem, 0.92rem + 0.4vw, 1.1875rem);
    max-width: 640px;
    margin: 12px 0 0;
}

.bf-zoek {
    margin-top: 28px;
    max-width: 760px;
}

.bf-zoek__label {
    display: block;
    font-weight: 700;
    font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
    margin-bottom: 10px;
}

.bf-zoek__balk {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bf-zoek__veld {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px 0 14px;
    min-height: 56px;
    color: var(--text-zwak);
    background: var(--oppervlak);
    border-radius: 12px;
}

.bf-zoek__veld input {
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 1.125rem;
    color: var(--text-primary);
    width: 100%;
    min-width: 0;
    min-height: 44px;
}

.bf-zoek__veld input::placeholder {
    color: var(--text-zwak);
    opacity: 1;
}

.bf-zoek__veld:focus-within {
    outline: 3px solid var(--veld-tekst);
    outline-offset: 2px;
}

.bf-zoek__veld input:focus-visible {
    outline: 0;
}

:where(.bf-page) .bf-hero .bf-knop--zoek {
    background: var(--veld-tekst);
    color: var(--veld);
    width: 100%;
    min-height: 52px;
    font-size: 1.0625rem;
    padding: 0 28px;
}

:where(.bf-page) .bf-hero .bf-knop--zoek:hover {
    background: var(--veld-zwak);
    color: var(--veld);
}

.bf-hero :focus-visible {
    outline-color: var(--veld-tekst);
}

.bf-hint {
    margin: 10px 0 0;
    font-size: 0.875rem;
    color: var(--veld-zwak);
}

.bf-hint b {
    color: var(--veld-tekst);
    font-weight: 700;
}

/* Mate */

.bf-mobmate {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-top: 14px;
}

.bf-mate {
    display: block;
    width: 100%;
    height: auto;
}

.bf-mate--klein {
    width: 104px;
    flex: none;
}

.bf-scene {
    display: none;
}

.bf-wolk {
    position: relative;
    background: var(--oppervlak);
    color: var(--text-primary);
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 0.9375rem;
    line-height: 1.45;
    margin: 0 0 12px;
    box-shadow: 0 6px 18px rgba(var(--shadow-rgb), 0.18);
}

.bf-wolk::after {
    content: "";
    position: absolute;
    left: 110px;
    bottom: -8px;
    width: 16px;
    height: 16px;
    background: var(--oppervlak);
    transform: rotate(45deg);
    border-radius: 3px;
}

.bf-wolk b {
    color: var(--signal-go);
}

.bf-wolk--klein {
    margin: 0 0 8px;
    font-size: 0.875rem;
}

.bf-wolk--klein::after {
    left: -6px;
    bottom: 22px;
}

/* The three counts */

.bf-cijfers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0 0;
    padding: 20px 0 24px;
    border-top: 1px solid var(--veld-lijn);
}

.bf-cijfers > div {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
}

.bf-cijfers dd {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--veld-tekst);
    line-height: 1.1;
}

.bf-cijfers dt {
    font-size: 0.75rem;
    line-height: 1.3;
    color: var(--veld-zwak);
}

/* ---------- Sticky table of contents ---------- */

.bf-nav {
    position: sticky;
    top: calc(var(--header-h, 56px) + var(--admin-bar-h, 0px));
    z-index: var(--z-sticky, 200);
    background: var(--grond);
    border-bottom: 1px solid var(--border);
}

.bf-nav__in {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-top: 8px;
    padding-bottom: 8px;
}

.bf-nav__in::-webkit-scrollbar {
    display: none;
}

:where(.bf-page) .bf-nav a {
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9375rem;
}

:where(.bf-page) .bf-nav a:hover {
    background: color-mix(in srgb, var(--brand) 8%, transparent);
    color: var(--text-primary);
}

:where(.bf-page) .bf-nav a[aria-current="true"] {
    background: var(--text-primary);
    color: var(--oppervlak);
}

/* ---------- The price meter: a sentence, a bar with a dot and the line of the usual price ---------- */

.bf-oordeel {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--bf-k, var(--text-zwak));
}

.bf-meterwrap {
    display: block;
    padding-top: 30px;
}

.bf-meter {
    position: relative;
    display: block;
}

/* Three zones with a small gap: low (green), normal (grey), high (red). The widths come from the product's own numbers. */
.bf-meter__balk {
    display: grid;
    grid-template-columns: var(--bf-z1, 10%) var(--bf-z2, 60%) var(--bf-z3, 30%);
    gap: 2px;
    height: 10px;
    border-radius: 99px;
    overflow: hidden;
}

.bf-meter__z { display: block; height: 100%; }
.bf-meter__z1 { background: var(--signal-go); }
.bf-meter__z2 { background: color-mix(in srgb, var(--text-zwak) 45%, transparent); }
.bf-meter__z3 { background: var(--signal-block); }

/* The label of the price now: an anchor point inside the bar (clamped 5px from either end), the label is shifted by its own share
   of its width (--bf-pn 0..1), so at 0% it starts at the bar's left edge and at 100% it ends at the right edge: never outside the bar. */
.bf-meter__punt {
    position: absolute;
    top: -1px;
    left: clamp(5px, var(--bf-p, 0%), calc(100% - 5px));
    width: 0;
    height: 0;
}

.bf-meter__pil {
    position: absolute;
    bottom: 7px;
    left: 0;
    transform: translateX(calc(var(--bf-pn, 0) * -100%));
    background: var(--text-primary);
    color: var(--oppervlak);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.2;
    border-radius: 6px;
    padding: 2px 7px;
    white-space: nowrap;
}

.bf-meter__pijl {
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--text-primary);
}

.bf-meter__as {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2px 8px;
    font-size: 0.75rem;
    color: var(--text-zwak);
    margin-top: 6px;
}

.bf-meter__as > span {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 601px) {
    .bf-wrap { padding: 0 32px; }
    .bf-hero__in { padding-top: 28px; }
    .bf-hero h1 { margin-top: 14px; }
    .bf-lead { margin-top: 18px; }
    .bf-mobmate { display: none; }

    .bf-hero__grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 220px;
        gap: 40px;
        align-items: center;
    }

    .bf-scene { display: block; }

    .bf-zoek__balk {
        flex-direction: row;
        gap: 8px;
        background: var(--oppervlak);
        border-radius: 14px;
        padding: 6px;
        box-shadow: 0 8px 24px rgba(var(--shadow-rgb), 0.18);
    }

    .bf-zoek__veld {
        flex: 1;
        border-radius: 0;
        background: transparent;
    }

    :where(.bf-page) .bf-hero .bf-knop--zoek {
        width: auto;
        background: var(--brand);
        color: var(--on-brand);
        min-height: 56px;
        font-size: 1.0625rem;
    }

    :where(.bf-page) .bf-hero .bf-knop--zoek:hover {
        background: var(--brand-sterk);
        color: var(--on-brand);
    }

    .bf-zoek__veld:focus-within {
        outline: 0;
    }

    .bf-zoek__balk:focus-within {
        outline: 3px solid var(--veld-tekst);
        outline-offset: 2px;
    }

    .bf-cijfers {
        display: flex;
        flex-wrap: wrap;
        gap: 48px;
        margin-top: 30px;
    }

    .bf-cijfers dd { font-size: 1.875rem; }
    .bf-cijfers dt { font-size: 0.875rem; line-height: 1.55; }
}

@media (min-width: 901px) {
    .bf-hero__grid {
        grid-template-columns: minmax(0, 1fr) 340px;
        align-items: end;
    }
}

@media (min-width: 1361px) {
    .bf-slinger { display: block; }
    /* The inner two tags would hang over the text column until the page is wide enough to leave room for them. */
    .bf-k2, .bf-k3 { display: none; }
}

@media (min-width: 1600px) {
    .bf-k2, .bf-k3 { display: block; }
}
