/* умный поиск */
.nav__history{
    display: none;
}
.nav__searchBody{
    display: none;
}
.nav__searchBody{
    max-height: calc(100vh - 170px);
    position: absolute;
    width: 84vw;
    max-width: 1196px;
    height: max-content;
    left: -26%;
    top: 57px;
    -ms-grid-columns: 1fr 2.5fr;
    grid-template-columns: 1fr 2.5fr;
}
.searchbody-search{
    max-height: inherit;
    overflow: hidden;
    overflow-y: auto;
    width: 325px;
    min-width: auto;
}
.searchbody-popular.category-row{
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    gap: 0;
    height: 100%;
}
.searchbody-popular{
    border-left: 1px solid rgba(0,0,0, .1);
    overflow: hidden;
    overflow-y: auto;
    max-height: inherit;
    margin-top: 0;
    gap: 8px;
}
.searchbody-popular .items__item{
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    border-radius: 0;
    -webkit-box-shadow: none;
            box-shadow: none;
}
.nav__searchBody .nav__history{
    position: initial;
    display: block;
    -webkit-box-shadow: none;
            box-shadow: none;
    border-bottom: 1px solid rgba(0,0,0, .2);
    border-radius: 0;
    padding: 0 6px;
    width: 100%;
    /* max-height: 50%;
    overflow: hidden;
    overflow-y: auto; */
}
.nav-history-header{
    padding: 0 16px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    height: 44px;
}
.nav__historyTitle{
    margin-bottom: 0;
}
.nav-history-item{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 0 16px;
    height: 44px;
    border-radius: 8px;
    background: #fff;
}
.nav-history-item:hover{
    background: var(--50, #F7F7F9);
}
.nav-history-item svg{
    cursor: pointer;
}
.nav-history-list{
    /* padding-bottom: 10px; */
}
.nav__historyTitle{
    color: var(--500-black, #333);
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}
/* subhead */
.subhead{
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}
.nav__historyTitle.search-category-item{
    padding: 0 16px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    height: 44px;
    margin-top: 10px !important;
}
.nav-history-header__clear{
    font-size: 14px;
    cursor: pointer;
}
.category-search .nav-history-list{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}
.category-search .nav-history-list .nav__categoryItem{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 8px 16px;
    border-radius: 8px;
    gap: 12px;
}
.category-search .nav-history-list .nav__categoryItem:hover{
    color: #F7F7F9;
}
.category-items-box__title{
    font-size: 12px;
}
.category-search .nav-history-list .nav__categoryItem img{
    width: 40px;
    min-width: 40px;
    height: 40px;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}
.category-search .nav-history-list .nav__categoryItem .category-items-box{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 12px
}
.category-items-box__url{
    color: #9B9B9C;
    font-size: 12px;
}
.searchbody-popular .items__imageBox{
    width: 100px;
    height: 100px;
}
.search-tovar-all{
    border-radius: 8px;
    padding: 14px;
    border: 1px solid var(--Akzendent, #8C0D18);
    width: 209px;
    background: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    font-size: 14px;
    font-weight: 600;
    margin-left: 16px;
    margin-top: 20px;
    margin-bottom: 20px;
}
.searchbody-popular .category-item-middle--left .box{
    margin-top: 22px;
}
.search-tovar-all:hover{
    color: #8C0D18;
}
.nav__searchBody .category-item-middle--left{
    gap: 0;
}
.nav__searchBody .items__itemTitle span{
    height: 75px;
    display: block;
    font-size: 12px;
} 
.nav__searchBody .category-item-middle--right .dostup-title{
    font-size: 12px;
    margin-top: 3px;
}
.searchbody-popular .category-item-middle--left .box{
    margin-top: 5px;
}
@media (max-width: 1200px){
    .nav__searchBody{
        width: 193%;
        left: -29%;
    }
}

@media(max-width: 768px){
    .close-search-modal{
        display: none;
    }
    .nav__searchBody{
        position: fixed;
        top: 0px;
        left: 0px;
        width: 100%;
        max-width: 100%;
        z-index: 5;
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        -ms-grid-rows: -webkit-min-content;
        -ms-grid-rows: min-content;
        grid-template-rows: -webkit-min-content;
        grid-template-rows: min-content;
        height: 100%;
        max-height: 100%;
        overflow: initial;
        padding: 0px;
        -webkit-box-sizing: border-box;
                box-sizing: border-box;
        border-radius: 0px;
        background: var(--50, #F7F7F9);
    }
    .nav__searchBody > *:nth-child(1){
        -ms-grid-row: 1;
        -ms-grid-column: 1;
    }
    .searchbody-search{
        overflow: initial;
        max-height: initial;
        padding: 0;
        width: 100%;
    }
    .searchbody-container{
        height: calc(100% - 100px);
        -webkit-box-sizing: border-box;
                box-sizing: border-box;
        overflow: hidden auto;
        padding: 0 24px;
    }
    .nav__searchBody .nav__history{
        border-radius: 8px 8px 0 0;
    }
    .nav__searchBody .nav__history.popular-search{
        border-radius: none;
    }
    .searchbody-popular{
        overflow: initial;
        max-height: initial;
        background: #fff;
        border-radius: 0 0 8px 8px;
        padding-bottom: 20px;
        margin: 0;
        margin-bottom: 20px;
        -webkit-box-sizing: border-box;
                box-sizing: border-box;
    }
    .searchbody-inputbox{
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        gap: 16px;
        margin-top: 18px;
    }
    .searchbody-inputbox p{
        font-size: 20px;
        font-style: normal;
        font-weight: 700;
        line-height: 150%;
    }
    .searchbody-inputbox--inner{
        position: relative;
    }
    #inner-search,
    #inner-search-search{
        background: #fff;
        height: 44px;
        -webkit-box-sizing: border-box;
                box-sizing: border-box;
        margin-bottom: 8px;
        border: 1px solid #8C0D18;
        border-radius: 8px;
        padding-left: 44px;
        width: 100%;
    }
    .searchbody-searchbtn{
        position: absolute;
        left: 14px;
        top: 10px;
        cursor: pointer;
    }
    .searchbody-header{
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        padding: 20px 24px;
        -webkit-box-pack: justify;
            -ms-flex-pack: justify;
                justify-content: space-between;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        background: #fff;
        border-bottom: 1px solid var(--200-stroke-bg, #BFC0C1);
        height: 76px;
        -webkit-box-sizing: border-box;
                box-sizing: border-box;
    }
    .searchbody-header--back{
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        gap: 10px;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        font-size: 16px;
        font-style: normal;
        font-weight: 600;
    }
    .searchboy-find{
        position: absolute;
        bottom: 0;
        background: #fff;
        left: 0;
        width: 100%;
        padding: 32px 24px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
        height: 100px;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        -webkit-box-sizing: border-box;
                box-sizing: border-box;
        border-top: 1px solid var(--100, #E2E3E4);
    }
    .searchboy-find .button{
        width: 100%;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        height: 44px;
        border-radius: 8px;
    }
    .hide-block{
        display: none !important;
    }
    .searchbody-inputbox input[type="search"]::-webkit-search-cancel-button {
        -webkit-appearance: none;
        appearance: none;
        height: 10px;
        width: 10px;
        background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE2LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgd2lkdGg9IjEyMy4wNXB4IiBoZWlnaHQ9IjEyMy4wNXB4IiB2aWV3Qm94PSIwIDAgMTIzLjA1IDEyMy4wNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTIzLjA1IDEyMy4wNTsiDQoJIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPGc+DQoJPHBhdGggZD0iTTEyMS4zMjUsMTAuOTI1bC04LjUtOC4zOTljLTIuMy0yLjMtNi4xLTIuMy04LjUsMGwtNDIuNCw0Mi4zOTlMMTguNzI2LDEuNzI2Yy0yLjMwMS0yLjMwMS02LjEwMS0yLjMwMS04LjUsMGwtOC41LDguNQ0KCQljLTIuMzAxLDIuMy0yLjMwMSw2LjEsMCw4LjVsNDMuMSw0My4xbC00Mi4zLDQyLjVjLTIuMywyLjMtMi4zLDYuMSwwLDguNWw4LjUsOC41YzIuMywyLjMsNi4xLDIuMyw4LjUsMGw0Mi4zOTktNDIuNGw0Mi40LDQyLjQNCgkJYzIuMywyLjMsNi4xLDIuMyw4LjUsMGw4LjUtOC41YzIuMy0yLjMsMi4zLTYuMSwwLTguNWwtNDIuNS00Mi40bDQyLjQtNDIuMzk5QzEyMy42MjUsMTcuMTI1LDEyMy42MjUsMTMuMzI1LDEyMS4zMjUsMTAuOTI1eiIvPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPC9zdmc+DQo=);
        background-size: 10px 10px;
        opacity: .15;
        margin-right: 10px;
        right: 10px;
    }
    #inner-search,
    #inner-search-search{
        padding-right: 18px;
    }
    .searchbody-container .category-row__pictures .owl-dots{
        top: 106px;
    }
}