/*
--------------------------------------
layout
--------------------------------------
*/
.main-header {
    display               : grid;
    grid-template-columns : var(--container-margin-primary) 0.5fr 1.5fr 1fr var(--container-margin-primary);
    align-items           : center;
    box-shadow            : 0 0 10px rgb(0 0 0 / 19%);
    padding-bottom        : 10px;
    padding-top           : 10px;
}

@media (max-width : 1185px) {
    .main-header .header-actions {
        justify-content : center;
    }

    .header-logo .logo {
        margin  : auto;
        display : block;
    }
}

.header-bg {
    grid-column : 1/-1;
    grid-row    : 1;
    align-self  : stretch;
    background  : white;
    z-index     : 4;
}

.main-header > :not(.header-bg) {
    z-index : 5;
}

.main-header .header-nav {
    z-index : 10;
}

.header-burger,
.header-logo,
.header-actions {
    grid-row : 1;
}

.header-search {
    grid-row : 2;
}

.header-burger {
    grid-column : 2;
}

.header-logo {
    grid-column : 3;
}

.header-actions {
    grid-column : 4;
    align-self  : stretch;
}

.header-search {
    grid-column : 2/-2;
}

.header-nav {
    z-index    : 5;
    background : transparent;
}

@media (min-width : 1024px) and (any-hover : none) {
    body[data-is-desktop="false"] .main-header {
        grid-template-columns : var(--container-margin-primary) auto 1fr 1fr auto var(--container-margin-primary);
    }

    body[data-is-desktop="false"] .main-header > .french-made {
        grid-row    : 1;
        grid-column : 4;
    }

    body[data-is-desktop="false"] .main-header > .header-actions {
        grid-column : 5;
    }
}

@media (min-width : 1200px) {
    body[data-is-desktop="true"] .main-header {
        grid-template-columns : var(--container-margin-primary) auto auto auto 1fr auto var(--container-margin-primary);
    }

    body[data-is-desktop="true"] .main-header > * {
        grid-row : 1;
    }

    body[data-is-desktop="true"] .header-search {
        padding : 15px 0;
    }

    body[data-is-desktop="true"] .header-burger {
        grid-column : 2;
    }

    body[data-is-desktop="true"] .header-logo {
        grid-column : 3;
    }

    body[data-is-desktop="true"] .french-made {
        grid-column : 4;
    }

    body[data-is-desktop="true"] .header-nav {
        grid-column : 5;
    }

    body[data-is-desktop="true"] .header-search {
        grid-column : 5;
    }

    body[data-is-desktop="true"] .header-actions {
        grid-column : 6;
    }

    body[data-is-desktop="true"] .header-burger {
        display : none;
    }

    body[data-is-desktop="true"] .main-header {
        padding-bottom : 0;
        padding-top    : 0;
        position       : -webkit-sticky;
        position       : sticky;
        top            : 0;

        font-size      : var(--font-size-200);
    }

    body[data-is-desktop="true"] .main-header > *:not(.header-nav) {
        padding-top    : 7px;
        padding-bottom : 7px;
    }

    body[data-is-desktop="true"] .header-logo {
        min-width : 100px;
    }

    body[data-is-desktop="true"] .header-search {
        padding : 7px 25px;
    }

    body[data-is-desktop="true"] .main-header .header-nav {
        /*margin-right : 3.3em;*/
        margin-left  : auto;
        margin-right : 2em;
    }

    body[data-is-desktop="true"] .header-nav {
        /*height      : 100%;*/
        display     : flex;
        align-items : center;
        align-self  : stretch;
    }

    body[data-is-desktop="true"] .header-nav .bwa-menu__top__wrapper {
        background : transparent;
        border-top : none;
    }
}

@media (min-width : 1200px) and (max-width : 1600px) {
    body[data-is-desktop="true"] .header-actions .link-icon a {
        flex-direction : column;
    }

    body[data-is-desktop="true"] .header-actions .link-icon .link-icon__text {
        margin-left : 0;
    }
}

/*
--------------------------------------
global
--------------------------------------
*/
.overlay_global {
    left : 0;
}

/*
--------------------------------------
burger
--------------------------------------
*/
.header-burger {
    text-align   : center;
    margin-right : 10px;
}

.header-burger p {
    margin : 0;
}

/*
--------------------------------------
French mage
--------------------------------------
*/
@media (max-width : 1199px) {
    .main-header .french-made {
        margin-top  : 1em;
        grid-column : 1/-1;
        border      : none;
    }
}

/*
--------------------------------------
Search
--------------------------------------
*/
.search-widget {
    width : 100%;
}

.search-widget form {
    position    : relative;
    display     : flex;
    align-items : center;
}

.search-widget input[type=text] {
    border-radius : 30px;
    box-shadow    : 0 0 15px rgba(0, 0, 0, .1);
    width         : 100%;
    padding       : 10px;
    padding-left  : 2em;
    color         : var(--color-grey-font-default);
    border        : 1px solid rgba(0, 0, 0, .25);
    transition    : all .3s ease-out;
}

.search-widget form input[type=text]:focus {
    border-color : var(--color-primary);
    outline      : none;
}

.search-widget form button[type=submit] {
    position        : absolute;
    right           : 0;
    height          : 100%;
    display         : flex;
    justify-content : center;
    align-items     : center;
    padding         : 0 15px;
    text-align      : center;
    color           : #fff;
    background      : var(--color-primary);
    border          : 1px solid var(--color-primary);
    border-radius   : 0 30px 30px 0;
}

.search-widget form input[type=text]:focus + button .search {
    color : white;
}

@media (min-width : 1200px) {
    .search-widget form input[type=text] {
        min-height : 52px;
    }
}
