/*******************************************************

    ██╗  ██╗███████╗ █████╗ ██████╗ ███████╗██████╗
    ██║  ██║██╔════╝██╔══██╗██╔══██╗██╔════╝██╔══██╗
    ███████║█████╗  ███████║██║  ██║█████╗  ██████╔╝
    ██╔══██║██╔══╝  ██╔══██║██║  ██║██╔══╝  ██╔══██╗
    ██║  ██║███████╗██║  ██║██████╔╝███████╗██║  ██║
    ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝╚═════╝ ╚══════╝╚═╝  ╚═╝

 *******************************************************/



    /*
        Figma reference — B2C, 1920px artboards.

            header height ........ 118px
            padding .............. 20px top / 20px left / 20px bottom / 90px right
            logo ................. 65 x 78, flush left
            logo -> nav gap ...... 90px
            menu item gap ........ 70px
            language -> icons .... 50px
            icon gap ............. 30px

        IMPORTANT — Responsiville breakpoint classes are CUMULATIVE, not
        exclusive. The inline script in head.php adds every breakpoint name
        below the current width, so at 1920px the html element carries
        `small mobile tablet laptop desktop large xlarge` all at once.

        They therefore read as min-width: `.tablet` means "600 and up",
        `.desktop` means "1280 and up". This file is written mobile-first:
        base rules are the phone layout and each breakpoint overrides upward.
        Writing `.laptop { display: none }` to mean "only on laptop" would
        hide the element on every larger screen too.

        The header deliberately does NOT use the .panel / .row grid. The
        design's padding is asymmetric (20 left, 90 right) while
        .panel-width-full forces `padding: 0 !important`, and the column grid
        would add gutters that push the logo off its 20px left edge.
    */

    /*
        The header's height is declared on the breakpoint class rather than on
        .main-header, because it is a fact about the page and not only about
        the header: anything that has to begin below the header needs to read
        it. .main-header still gets it by inheritance.
    */

    .small {
        --nvm-header-height: 76px;
    }

    .main-header {
        --nvm-header-padding-left : 20px;
        --nvm-header-padding-right: 20px;
        --nvm-header-logo-gap     : 20px;

        position: relative;
        z-index: 100;
        width: 100%;
        background: var(--nvm-color-white);
        color: var(--nvm-color-ink);
        transition-property: padding, background, color;
        transition-delay: 0s;
        transition-timing-function: ease-in-out;
        transition-duration: 0.3s;
    }

        .main-header-inner {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            min-height: var(--nvm-header-height);
            padding: 20px var(--nvm-header-padding-right) 20px var(--nvm-header-padding-left);
        }

        .main-header-start,
        .main-header-end {
            display: flex;
            flex-direction: row;
            align-items: center;
        }

        .main-header-start {
            gap: var(--nvm-header-logo-gap);
        }

        .main-header-end {
            gap: 20px;
        }



    /* Front page variant: transparent, overlaying the hero, white contents. */

    /*
        Figma applies a BACKGROUND_BLUR of radius 10 to the header on top of
        the 5% black fill — the frosted-glass effect over the hero. The
        prefixed property is still required for Safari.
    */

    /*
        The white mark needs something behind it, and a flat bar is not it.

        The 5% fill came off the artboard, and the artboard draws one hero.
        The page has several and a video among them, so the mark meets
        whatever the slide happens to be — against the pale bedroom it all
        but disappeared, which is what the shop reported. Raising the flat
        fill answers that slide and costs every other one: 25% of black laid
        evenly over a dark hero is a grey band ruled across the photograph,
        and the bar stops being transparent at all.

        A gradient pays where it is needed. It is at its strongest in the
        first pixels, where the mark and the menu sit, and has given most of
        itself up by the bottom edge, so what remains there is too little to
        read as the underside of a band. Measured over a pale slide, the bar
        comes down 42 points of brightness at the top and 10 at the foot.

        This was first written as a pseudo-element, so that the fade could
        carry on past the bar and end on nothing at all. It did not paint:
        backdrop-filter makes a stacking context of the header, and a child
        at z-index -1 inside it never reached the screen — measured at 3.5
        points against 42 for the same gradient as a background. The simpler
        thing is also the one that works.

        No change to the logo file. A stroke around a wordmark this fine
        thickens it at the size it is actually drawn, and the shop would be
        maintaining two marks to solve what the background solves once.
    */

    .home .main-header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        background: linear-gradient( to bottom,
            rgba( var(--nvm-black), 0.45 ) 0%,
            rgba( var(--nvm-black), 0.22 ) 60%,
            rgba( var(--nvm-black), 0.08 ) 100% );
        color: var(--nvm-color-white);
        -webkit-backdrop-filter: blur(10px);
                backdrop-filter: blur(10px);
    }

    /*
        The sticky variant that used to live here is gone along with the
        Responsiville stickymenu on the header element. It was never in the
        design, and its `box-shadow: 0 1px 6px rgba(0,0,0,0.08)` was the grey
        line appearing under the bar.
    */



/******************************

    ██╗      ██████╗  ██████╗  ██████╗
    ██║     ██╔═══██╗██╔════╝ ██╔═══██╗
    ██║     ██║   ██║██║  ███╗██║   ██║
    ██║     ██║   ██║██║   ██║██║   ██║
    ███████╗╚██████╔╝╚██████╔╝╚██████╔╝
    ╚══════╝ ╚═════╝  ╚═════╝  ╚═════╝

 ******************************/



    .main-header-logo {
        flex: 0 0 auto;
        line-height: 0;
    }

        .main-header-logo h1,
        .main-header-logo a {
            display: block;
            line-height: 0;
            font-size: 0;
            padding: 0 !important;
            margin: 0 !important;
        }

        .main-header-logo a:hover {
            background: none;
        }

            /* Same reason as the megamenu photo: the framework's
               `height: auto !important` would otherwise decide the logo's
               height for us. Stating it explicitly keeps the 65:78 ratio
               exact at every breakpoint. */

            .main-header-logo img {
                display: block;
                width: 42px;
                height: 50px !important;
            }

            /*
                Two colour variants of the same mark. Swapping whole files
                keeps a real alt text on the visible image and avoids
                mask-image, whose failure mode is an invisible logo rather
                than a miscoloured one.

                Each rule names the img, and it has to.

                `.main-header-logo img` above sets display: block, and one
                class plus one element beats one class on its own — so a bare
                `.main-header-logo-white { display: none }` lost, and both
                marks were drawn on every page but the home page. White on a
                white bar hid the mistake: the second logo was invisible while
                still taking its place.

                The home page escaped only by accident — `.home` gave the
                ink rule a second class and enough weight to win.
            */

            .main-header-logo img.main-header-logo-white {
                display: none;
            }

            .home .main-header-logo img.main-header-logo-ink {
                display: none;
            }

            .home .main-header-logo img.main-header-logo-white {
                display: block;
            }




/**********************************************

    ██╗ ██████╗ ██████╗ ███╗   ██╗███████╗
    ██║██╔════╝██╔═══██╗████╗  ██║██╔════╝
    ██║██║     ██║   ██║██╔██╗ ██║███████╗
    ██║██║     ██║   ██║██║╚██╗██║╚════██║
    ██║╚██████╗╚██████╔╝██║ ╚████║███████║
    ╚═╝ ╚═════╝ ╚═════╝ ╚═╝  ╚═══╝╚══════╝

 **********************************************/



    .main-header-icons {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 20px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

        .main-header-icon {
            display: flex;
            margin: 0;
            padding: 0;
        }

            /*
                The .main-header prefix is not decoration. theme.typography.css
                loads after this file and carries `.responsiville a { color:
                var(--nvm-color-text-link) }`, which has the same specificity
                as a bare `.main-header-icon a` and would therefore win, forcing
                the icons to ink even inside the white front-page header.
            */

            .main-header .main-header-icon a {
                display: flex;
                align-items: center;
                justify-content: center;
                color: inherit;
                padding: 0;
                background: none;
                transition: opacity 0.2s ease-in-out;
            }

            .main-header .main-header-icon a:hover {
                background: none;
                opacity: 0.6;
            }

                .main-header-icon svg {
                    display: block;
                }

                /*
                    responsiville.moressette.css carries a global
                    `svg path { fill: currentColor }`. A CSS declaration always
                    beats a presentation attribute, so the `fill="none"` on the
                    root <svg> does not protect these paths and the outlined
                    icons render solid. They have to be reset explicitly.

                    In the design only the search glass is a filled path; user,
                    wishlist and cart are 2px strokes.
                */

                .main-header .main-header-icon svg path {
                    fill: none;
                }

                .main-header .main-header-icon-search svg path {
                    fill: currentColor;
                }

                /* Visible label for assistive technology only. */

                .main-header-icon .screen-reader-text {
                    position: absolute;
                    width: 1px;
                    height: 1px;
                    padding: 0;
                    margin: -1px;
                    overflow: hidden;
                    clip: rect(0, 0, 0, 0);
                    white-space: nowrap;
                    border: 0;
                }



/**************************************************************

    ██████╗ ███████╗███████╗██████╗  ██████╗ ███╗   ██╗███████╗██╗██╗   ██╗███████╗
    ██╔══██╗██╔════╝██╔════╝██╔══██╗██╔═══██╗████╗  ██║██╔════╝██║██║   ██║██╔════╝
    ██████╔╝█████╗  ███████╗██████╔╝██║   ██║██╔██╗ ██║███████╗██║██║   ██║█████╗
    ██╔══██╗██╔══╝  ╚════██║██╔═══╝ ██║   ██║██║╚██╗██║╚════██║██║╚██╗ ██╔╝██╔══╝
    ██║  ██║███████╗███████║██║     ╚██████╔╝██║ ╚████║███████║██║ ╚████╔╝ ███████╗
    ╚═╝  ╚═╝╚══════╝╚══════╝╚═╝      ╚═════╝ ╚═╝  ╚═══╝╚══════╝╚═╝  ╚═══╝  ╚══════╝

 **************************************************************/



    /*
        There are no tablet or mobile artboards in the Figma file, so anything
        below `desktop` is a reasoned reflow rather than a drawn design:

            base (< 600) ........... drawer navigation, 76px bar
            tablet (600+) .......... drawer navigation, 90px bar
            desktop (1280+) ........ inline navigation, compressed gaps
            large (1440+) .......... exact design values

        The 1280 threshold is arithmetic, not taste: logo (65) + gap (90) +
        menu (867) + language and icons (251) = 1273px of content, and at a
        1280px viewport only 1170px remains once the 20/90 padding is removed.
        The exact design values only fit from roughly 1330px upward, so they
        are applied at `large`.
    */

    /* Base — the inline navigation and language switcher live in the drawer. */

    .main-header-navigation,
    .main-header-language {
        display: none;
    }

    .main-header-mobile-menu-button {
        display: flex;
        align-items: center;
    }



    /* Tablet and up: a slightly taller bar and a larger logo. */

    .tablet {
        --nvm-header-height: 90px;
    }

        .tablet .main-header-logo img {
            width: 50px;
            height: 60px !important;
        }




    /* Desktop and up: the inline navigation replaces the drawer. */

    .desktop {
        --nvm-header-height: 118px;
    }

    .desktop .main-header {
        --nvm-header-padding-right: 50px;
        --nvm-header-logo-gap     : 50px;
    }

        .desktop .main-header-navigation,
        .desktop .main-header-language {
            display: flex;
        }

        .desktop .main-header-mobile-menu-button {
            display: none;
        }

        .desktop .main-header-end {
            gap: 50px;
        }

        .desktop .main-header-icons {
            gap: 30px;
        }

        .desktop .main-header-logo img {
            width: 65px;
            height: 78px !important;
        }



    /* Large and up: the exact values drawn in the 1920px artboards. */

    .large .main-header {
        --nvm-header-padding-right: 90px;
        --nvm-header-logo-gap     : 90px;
    }
