.main-header{
    background-color: var(--color-menuBg);
    color: var(--color-menuText);
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
    position: sticky;
    top:0;
    z-index: 100;

    align-items: start;
}

.main-menu{
    grid-column: 2/-2;
    position: relative;
    background-color: var(--color-menuBg);
    /* color: var(--color-menuText); */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.main-menu h1{
    font-weight: 900;
}
.main-menu h1 a{
    display: block;
}

.main-menu h1 img{
    display: block;
    max-height: 80px;
}

.top-tools {

    display: inline-flex;
    gap: .75rem;
    align-items: center;

    & button{
        border: 0;
        width: 1.5em;
        height: 1.5em;
        cursor: pointer;
        background-color: transparent;
        
        &.menu-toggle::after{
            content: '';
            display: block;
            width: 1.3em;
            height: 1.2em;
            background-color: var(--color-menuText);
            clip-path: shape(from 0% 0%,vline by 14.56%,hline by 100%,vline to 42.73%,hline to 0%,vline by 14.56%,hline by 100%,vline to 85.44%,hline to 0%,vline by 14.56%,curve by 79.45% 0% with 0% 0%/78.37% 0%,curve by 20.55% 0% with 1.08% 0%/20.55% 0%,vline to 0%,hline to 0%,close);
            pointer-events: none;
        }
        
        &.search-toggle::after{
            content: '';
            display: block;
            width: 1.5em;
            height: 1.5em;
            background-color: var(--color-menuText);
            clip-path: shape(from 100% 91.53%, line to 73.79% 65.31%, curve by 8.12% -24.36% with 5.08% -6.81% / 8.12% -15.23%, curve by -40.95% -40.95% with 0% -22.57% / -18.37% -40.95%, smooth to 0% 40.95% with 0% 18.37%, smooth by 40.94% 40.95% with 18.37% 40.95%, curve by 24.37% -8.12% with 9.13% 0% / 17.55% -3.04%, line by 26.22% 26.22%, line to 100% 91.53%, close, move to 11.97% 40.95%, curve by 28.98% -28.98% with 0% -15.98% / 12.99% -28.98%, smooth by 28.98% 28.98% with 28.98% 13%, curve by -28.98% 28.98% with 0% 15.98% / -13% 28.98%, smooth to 11.97% 40.95% with 11.97% 56.93%, close);
            pointer-events: none;
        }
    }
}

body.expanded-menu .top-tools button.menu-toggle::after{
	clip-path: shape(from 99.99% 10.79%,line by -10.79% -10.79%,curve by -39.21% 39.21% with -4.52% 4.45%/-39.21% 39.21%,line to 10.79% 0%,line by -10.79% 10.79%,line by 39.21% 39.21%,line to 0% 89.21%,line by 10.79% 10.79%,line by 39.21% -39.21%,line by 39.21% 39.21%,line by 10.79% -10.79%,line to 60.79% 50%,line to 99.99% 10.79%,close);
}


/* MENU */

nav.top-menu {
    display: none;
}

nav.top-menu ul {
    display: flex;
}

nav.top-menu li{
    /* display: flex; */
    align-items: center;
}

nav.top-menu li .menu-caret::after{
    content: '';
    display: block;
    width: .7em;
    aspect-ratio: 1.645;
    background-color: var(--color-gray-300);
    clip-path: shape(from 89.22% 0%,curve by -32.67% 53.74% with 0% 0%/-35.3% 58.07%,curve by -6.54% 10.77% with 2.63% -4.33%/-6.54% 10.77%,line to 10.8% 0%,line by -10.8% 17.76%,line by 49.99% 82.24%,line by 0.01% -0.02%,line by 0% 0%,line by 49.99% -82.24%,line to 89.22% 0%,close);
}

nav.top-menu li:hover .menu-caret::after {
	clip-path: shape(from 10.79% 100%,curve by 32.66% -53.74% with 0% 0%/35.29% -58.07%,curve by 6.54% -10.77% with -2.63% 4.33%/6.54% -10.77%,line by 39.21% 64.51%,line by 10.79% -17.76%,line to 50% 0%,line by -0.01% 0.02%,line by 0% 0%,line to 0% 82.26%,line to 10.79% 100%,close);
}

nav.top-menu ul li:hover > ul{
    background-color: var(--color-white);
}

nav.top-menu ul li:hover ul > li{
    background-color: var(--color-white);
}

nav.top-menu .nav.navbar-nav ul li:hover {
    background-color: var(--color-gray-200);
}

nav.top-menu a{
    display: inline-block;
    padding: .5em 1em;
    width: max-content;
    line-height: 1;
    max-width: min(20ch, 80vw);
    color: var(--color-menuText);
}

nav.top-menu a:hover{
    color: var(--color-menuTextHover);
}

nav.top-menu > ul > li > a {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .5em;
}

nav.top-menu ul ul {
    display: none;
}

@media (width > 1024px) {
    /* Show horizontal menu on desktop */
    nav.top-menu {
        display: flex;
    }

    .main-nav{
        display: none;
    }


    /* Hide hamburger toggle on desktop */
    .menu-toggle {
        display: none;
    }

    nav.top-menu ul li:hover > ul {
        position: absolute;
        display: block;
    }


}


    body.expanded-search .main-header{
        background: var(--color-white);
        height: 100vh;
    }

    .top-search{
        height: 1.2em;
        width: 1.2em;
    }
    .top-search-modal{
        display: none;
        justify-content: center;
        align-items: center;
        inset: 0 0 0 0;
        height: 100vh;
        position: absolute;
        z-index: -1;
    }
    .top-search-modal #top-search-input{
        outline: 0;
        border-color: var(--color-gray-900);
        border-style: solid;
        border-width: 0 0 1px 0;
        font-size: 1.25em;
        padding: .2em .2em;
        font-weight: 600;
    }

    .top-search-modal {

        form{

            display: flex;
            gap: .5em;
            align-items: end;

            button {

                width: 1.75em;
                height: 1.75em;

                &::before{
                    content: '';
                    display: block;
                    width: 1.75em;
                    height: 1.75em;
                    background-color: var(--color-gray-900);
                    clip-path: shape(from 100% 91.53%, line to 73.79% 65.31%, curve by 8.12% -24.36% with 5.08% -6.81% / 8.12% -15.23%, curve by -40.95% -40.95% with 0% -22.57% / -18.37% -40.95%, smooth to 0% 40.95% with 0% 18.37%, smooth by 40.94% 40.95% with 18.37% 40.95%, curve by 24.37% -8.12% with 9.13% 0% / 17.55% -3.04%, line by 26.22% 26.22%, line to 100% 91.53%, close, move to 11.97% 40.95%, curve by 28.98% -28.98% with 0% -15.98% / 12.99% -28.98%, smooth by 28.98% 28.98% with 28.98% 13%, curve by -28.98% 28.98% with 0% 15.98% / -13% 28.98%, smooth to 11.97% 40.95% with 11.97% 56.93%, close);
                    pointer-events: none;
                }
                span{
                    display: none;
                }
            }
        }
    }

    body.expanded-search .top-search-modal{
        display: flex;
    }

@media (width <= 1350px) {


    body.expanded-menu .main-header{
        background: var(--color-white);
        height: 100vh;
    }
    body.expanded-menu .main-menu{
        display: grid;
        grid-template-columns: auto 1fr;
        justify-content: space-between;
    }
    body.expanded-menu .top-menu{
        display: flex !important;
        order: 3;
        grid-column: 1 / -1;
        margin-top: 3em;
        /* margin-left: -1em; */

        & > ul{
            display: flex;
            flex-direction: column;
            gap: 2em;
            position: relative;
            font-size: 1.25em;

            & > li > a {
            } 

            ul{
                display: flex;
                flex-direction: column;
                gap: .25em;
                font-size: .8em;
                margin-top: .5em;
            }
        }
        a{
            padding: 0;
            line-height: 1;
            & .menu-caret{
                display: none;
            }
        }
    }

    body.expanded-menu .top-tools{
        margin-left: auto;
    }



}

/* SEARCH */

                .theme-black .btn-search{
                    color: var(--color-white);
                    background: var(--color-black);
                }

                .btn-search{
                    color: var(--color-black);
                    background: var(--color-white);
                }

                .search-filters .btn{
                    background-color: var(--color-white);
                    color: var(--color-black);
                }

                .search-filters .btn:hover{
                    color: var(--color-white);
                }

                .search-filters .btn:has(input:checked){
                    color: var(--color-white);
                }


                .search-area{
                    position:absolute;
                    height: 100vh;
                    width:100%;
                    top:0;
                    bottom:0;
                    z-index:1;
                    display:flex;
                    background-color: var(--color-black);
                    align-items: center;
                    justify-content: center;

                    display: none;
                }

                .search-area{
                    background-color: var(--color-white);
                }


                /* search-form */

                #search-form{
                    width: 100%;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                }

                .search-main{
                    width: min(800px,85%);
                    display: flex;
                    justify-content: center;
                }

                .input-search{
                    border-radius: 5px;
                    height:35px;
                    width:100%;
                    border: none;
                    text-indent: 10px;
                    margin-right:10px;
                }

                .input-search{
                    border: 1px solid #ccc;
                }

                .input-search:focus{
                    outline:none;
                }

                .btn-search{
                    height: 35px;
                    border-radius: 5px;
                    border:none;
                    padding: 0 1.25em ;
                    cursor:pointer;
                    border: var(--color-theme) 1px solid;
                }

                .btn-search:hover{
                    background-color: var(--color-theme);
                    color: var(--color-white);
                }

                /* search options */

                .search-filters input{
                    display: none;
                }

                .search-filters{
                    margin-top:50px;
                    width: min(800px, 85%);
                    display: flex;
                    flex-wrap: wrap;
                    font-size:14px;
                    gap: 5px;
                }

                .search-filters .btn{
                    border-radius: 25px;
                    padding: .2em 1.4em;
                    border:  var(--color-theme) solid 1px;
                    cursor:pointer;
                }

                .search-filters .btn:hover{
                    background-color:  var(--color-theme);
                }
                .search-filters .btn:has(input:checked){
                    border-radius: 25px;
                    padding: .2em 1.4em;
                    background-color: var(--color-theme);
                }

                @media (min-width:900px){
                    .search-filters {
                        font-size: inherit;
                    }
                }

                /*submenu mobile*/

                .main-nav #menu_1.nav.navbar-nav {
                    position:relative !important;
                    transform:translatex(0);
                }

                .main-nav #menu_1.nav.navbar-nav ul {
                    width:100%;
                    padding:0;
                    margin:0;
                    list-style:none;
                    position:absolute;
                    top:0;
                    transition: transform 0.3s ease;

                }

                .has-submenu::after{
                    display: inline-block;
                    border-width: 0.12em 0.12em 0 0;
                    height: 0.45em;
                    right: 20px;
                    width: 0.45em;
                    float: right;
                    /* position: absolute; */
                    top: 8px;
                    border-style: solid;
                    border-color: var(--color-black);
                    content: '';
                    transform: rotate(45deg);
                    margin-right: 8px;
                    margin-top:7px;
                }


                .main-nav #menu_1.nav.navbar-nav ul{
                    transform:translatex(115%);
                }

                .main-nav #menu_1.nav.navbar-nav {
                    transition: transform 0.3s ease;
                }

                .main-nav #menu_1.nav.navbar-nav li a {
                    display:block;
                    position:relative;
                }

                .main-nav #menu_1.nav.navbar-nav li a:hover {
                    display:block;
                    position:relative;
                    z-index:100;
                }

                .main-nav #menu_1.nav.navbar-nav li:hover::after {
                    margin-right: 0;
                }
                .main-nav #menu_1.nav.navbar-nav li:hover {
                    cursor:pointer;
                }

                /* breadcrumbs */

                .breadcrumbs{
                    height: 1.5em;
                    display: flex;
                    font-size: 0.8em;
                    align-items: center;
                    margin-bottom:1em;
                    display: grid;
                    grid-template-columns: subgrid;
                    grid-column: -1 / 1;
                }

                .breadcrumbs .breadcrumb{
                    display: flex;
                }


                .breadcrumb-item {
                    display: inline-block;
                    cursor: pointer;
                    position: relative;
                    margin-right: 1em;
                }

                .breadcrumb-item:last-child {
                    margin-right: 0;
                }

                .breadcrumb-item::after {
                    content: '';
                    display: inline-block;
                    border-width: 0.12em 0.12em 0 0;
                    height: 0.55em;
                    width: 0.55em;
                    position: relative;
                    top: 0;
                    border-style: solid;
                    transform: rotate(45deg);
                    margin-left: .5em;
                    margin-right: -.5em;
                }

                .breadcrumb-item:last-child::after {
                    display: none;
                }

                /*lang menu*/

                .align-center .bottom-bar{
                    justify-content: center;
                }

                .bottom-bar{
                    width:100%;
                    height: 2em;
                    position: fixed;
                    display: grid;
                    grid-template-columns: repeat(12, 1fr);
                    align-items: center;
                    bottom:0;
                    z-index:20;
                    gap:10px;
                    font-size: 0.8em;
                    left: 0;
                }

                .bottom-bar .wide-container{
                    display: flex;
                    align-items: center;
                    gap:10px;
                }
