/* Navigation and search in the shop header. */
#header .header-top {
    padding: .75rem 0;
    border-bottom: 1px solid #e2ebe5;
}

#header #search_widget {
    --search-base: 16.5rem;
    width: var(--search-base);
    max-width: 100%;
    min-width: 0;
    margin: 0;
    overflow: visible;
}

#header #search_widget form input[name="s"] {
    box-sizing: border-box;
    height: 44px;
    padding: 0 42px;
    border: 1px solid #cadbd0;
    border-radius: 10px;
    background: #f6faf7;
    color: #193327;
}

#header #search_widget form input[name="s"]:focus {
    border-color: #287749;
    outline: 2px solid #287749;
    outline-offset: 1px;
}

#header #search_widget form i {
    top: 50%;
    padding: 0;
    transform: translateY(-50%);
}

#header #search_widget form .search { left: 13px; }
#header #search_widget form .clear { right: 12px; }

@media (min-width: 768px) {
    #header .header-top > .container > .row:first-child {
        display: grid;
        grid-template-columns: clamp(75px, 10vw, 150px) minmax(0, 1fr) clamp(120px, 19vw, 264px);
        align-items: center;
        gap: .5rem clamp(.35rem, 1vw, 1rem);
        margin: 0;
    }

    #header .header-top .header-top-right { display: contents; }

    #header .header-top #_desktop_logo {
        grid-area: 1 / 1;
        max-width: 170px;
        width: 100%;
        padding: 0;
    }

    #header #search_widget {
        grid-area: 1 / 3;
        justify-self: end;
    }

    #header #_desktop_top_menu {
        grid-area: 1 / 2;
        float: none;
        margin: 0;
        padding: .3rem;
        background: #eaf3ed;
        border-radius: 12px;
    }

    #header #_desktop_top_menu #top-menu {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: clamp(0px, .3vw, 4px);
        margin: 0;
    }

    #header #_desktop_top_menu #top-menu > li { margin: 0; }

    #header #_desktop_top_menu #top-menu > li > a {
        display: block;
        padding: .6rem clamp(.25rem, .65vw, .85rem);
        font-size: clamp(.75rem, 1.3vw, .95rem);
        white-space: nowrap;
        border-radius: 8px;
        color: #193327;
        font-weight: 600;
        line-height: 1.25;
        text-transform: none;
    }

    #header #_desktop_top_menu #top-menu > li > a:hover,
    #header #_desktop_top_menu #top-menu > li > a:focus-visible,
    #header #_desktop_top_menu #top-menu > li.current > a {
        color: #164a2f;
        background: #fff;
    }

    #header #_desktop_top_menu #top-menu > li > .sub-menu {
        box-shadow: 0 10px 24px rgb(25 51 39 / 15%);
    }

    #header #_desktop_top_menu .sub-menu a { border-radius: 6px; }
    #header #_desktop_top_menu .sub-menu a:hover,
    #header #_desktop_top_menu .sub-menu a:focus-visible { background: #eaf3ed; }
}

@media (max-width: 767px) {
    #header #search_widget {
        --search-base: min(16.5rem, 76%);
        margin-inline: auto;
    }

    #header #mobile_top_menu_wrapper {
        margin-top: .75rem;
        background: #f6faf7;
        border-radius: 12px;
    }

    #header #mobile_top_menu_wrapper #top-menu > li > a {
        color: #193327;
        font-weight: 600;
        text-transform: none;
    }

    #header #mobile_top_menu_wrapper #top-menu > li.current > a {
        background: #e0efe5;
    }
}

@media (min-width: 768px) {
    #header .header-top > .container > .row:first-child::before,
    #header .header-top > .container > .row:first-child::after {
        content: none;
    }
}

@media (min-width: 768px) {
    #header #_desktop_top_menu #top-menu > li:nth-last-child(-n+2) > .sub-menu {
        right: 0;
        left: auto !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #header .header-top > .container { width: calc(100% - 24px); }
    #header .header-top > .container > .row:first-child {
        grid-template-columns: 76px minmax(0, 1fr) 140px;
    }
}

/* Search shares the breadcrumb row below the main menu. */
@media(min-width:768px){
 #header .header-top>.container>.row:first-child{grid-template-columns:clamp(75px,10vw,150px) minmax(0,1fr)}
 #header #_desktop_top_menu{width:100%}
 #wrapper>.container>.sc-breadcrumb-row{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 22px;min-height:44px}
 .sc-breadcrumb-row>nav.breadcrumb{flex:1;min-width:0;margin:0;padding:0;line-height:1.6}
 .sc-breadcrumb-row>nav.breadcrumb ol{margin:0}
 .sc-breadcrumb-row #search_widget{flex:0 0 264px;float:none;width:264px;min-width:0;max-width:40%;margin:0;overflow:visible}
 .sc-breadcrumb-row #search_widget form{width:100%}
 .sc-breadcrumb-row #search_widget form input[name="s"]{box-sizing:border-box;width:100%;height:42px;padding:0 42px;border:1px solid #cadbd0;border-radius:10px;background:#f6faf7;color:#193327}
 .sc-breadcrumb-row #search_widget form input[name="s"]:focus{border-color:#287749;outline:2px solid #287749;outline-offset:1px}
 .sc-breadcrumb-row #search_widget form i{top:50%;padding:0;transform:translateY(-50%)}
 .sc-breadcrumb-row #search_widget form .search{left:13px}
 .sc-breadcrumb-row #search_widget form .clear{right:12px}
}
@media(min-width:768px) and (max-width:991px){
 #header .header-top>.container>.row:first-child{grid-template-columns:76px minmax(0,1fr)}
 #header #_desktop_top_menu #top-menu{flex-wrap:wrap}
 .sc-breadcrumb-row #search_widget{flex-basis:220px;width:220px}
}
@media(max-width:767px){.sc-breadcrumb-row{margin-bottom:16px}.sc-breadcrumb-row .breadcrumb{margin-bottom:0}}
