/*ПОПАП ПОИСКА - начало*/

body.lock{
    height: 100vh !important;
    overflow-y: hidden !important;
}

input[type="search"]::-webkit-search-cancel-button{
    display: none;
}

.smart-search-popup a{
    text-decoration: none !important;
}

/*.smart-search-popup .d-flex{
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.smart-search-popup .d-flex-center{
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}*/

.smart-search-popup .dev-hide{
    display: none;
}

.smart-search-popup input::-webkit-input-placeholder{
    color: #B3B3B3;
    font-weight: normal;
    font-size: inherit;
    line-height: inherit;
}

.smart-search-popup input::-moz-placeholder{
    color: #B3B3B3;
    font-weight: normal;
    font-size: inherit;
    line-height: inherit;
}

.smart-search-popup input:-moz-placeholder{
    color: #B3B3B3;
    font-weight: normal;
    font-size: inherit;
    line-height: inherit;
}

.smart-search-popup input:-ms-input-placeholder {
    color: #B3B3B3;
    font-weight: normal;
    font-size: inherit;
    line-height: inherit;
}

.smart-search-popup{
    width: 100%;
    overflow: hidden;
    max-height: 100vh;
    height: auto;
    max-width: 980px;
    left: Calc((100% - 980px)/2);
    z-index: 999999999;
    top: -100%;
    position: fixed;
    border-radius: 0 0 10px 10px;
    background: #fff;
    padding: 30px 0;
    box-shadow: 0 0 10px 0 #000000B2;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    -webkit-transform: translateY(-100%);
    -moz-transform: translateY(-100%);
    -ms-transform: translateY(-100%);
    -o-transform: translateY(-100%);
    transform: translateY(-100%);
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.smart-search-popup::-webkit-scrollbar{
    width: 0;
    height: 0;
    display: none;
}

.smart-search-popup.active{
    top: 0;
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
}

.smart-search-popup.height-full{
    height: Calc(100% - 60px);
}

.smart-search-popup-wrap{
    width: Calc(100% - 30px);
    height: 100%;
    max-width: 980px;
    margin: 0 auto;
    overflow-y: scroll;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.smart-search-popup-wrap::-webkit-scrollbar{
    width: 0;
    height: 0;
    display: none;
}

.smart-search-popup-header{
    position: fixed;
    width: Calc(100% - 30px);
    background: #fff;
    z-index: 1000;
    gap: 20px;
    justify-content: flex-start !important;
}

.smart-search-popup-row{
    width: Calc(100% - 150px);
}

.smart-search-popup .close-btn{
    width: 130px;
    height: 40px;
    position: relative;
    border-radius: 10px;
    top: unset;
    right: unset;
    background: linear-gradient(180deg, #F28B01 0%, #E15601 100%);
    cursor: pointer;
}

.smart-search-popup .close-btn i:before{
    font-size: 25px;
}

.smart-search-popup i.smart-search-icon,
.smart-search-popup i.smart-search-cross-icon{
    position: absolute;
}

.smart-search-popup i.smart-search-icon{
    width: 16px;
    height: 16px;
    top: 10px;
    left: 12px;
    background-image: url('/local/templates/rostok-inner/images/smart-search/search-icon.svg');
    background-repeat: no-repeat;
}

.smart-search-popup i.smart-search-cross-icon{
    width: 14px;
    height: 14px;
    top: 12px;
    right: 12px;
    cursor: pointer;
    background-image: url('/local/templates/rostok-inner/images/smart-search/cross-icon.svg');
    background-repeat: no-repeat;
}

.smart-search-content{
    display: none;
}

.smart-search-content.active{
    display: block;
}

.smart-search-form{
    width: 100%;
    height: 40px;
    background: linear-gradient(180deg, #9CCC2F 0%, #067526 100%);
    border-radius: 10px;
    position: relative;
}

.smart-search-form input{
    width: 100%;
    height: 100%;
    display: block;
    padding: 8px 37px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
    color: #583723;
}

.smart-search-form-wrap{
    width: Calc(100% - 4px);
    height: Calc(100% - 4px);
    background: #fff;
    position: absolute;
    top: 2px;
    left: 2px;
    border-radius: 8px;
    justify-content: flex-start !important;
}

.smart-search-form-input{
    width: Calc(100% - 120px);
    height: 100%;
    position: relative;
}

.smart-search-form button{
    width: 120px;
    height: 100%;
    border: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    color: #fff;
    border-radius: 0 6px 6px 0;
    background: linear-gradient(180deg, #9CCC2F 0%, #067526 100%);
}

.smart-search-content{
    width: 100%;
    margin-top: 40px;
    padding-top: 30px;
}

.smart-search-body{
    gap: 30px;
}

.smart-search-categories{
    width: 226px;
}

.smart-search-products{
    width: Calc(100% - 256px);
}

.smart-search-popup .product-item{
    margin: 0;
}

/*.smart-search-popup .product-item:nth-child(n + 4){
    display: none;
}*/

.smart-search-categories-wrap,
.smart-search-category{
    margin-bottom: 20px;
}

.smart-search-category.search{
    display: none;
}

.smart-search-category.search.active{
    display: block;
}

.smart-search-categories-wrap:last-child,
.smart-search-category:last-child{
    margin-bottom: 0;
}

.smart-search-category-row{
    width: 100%;
    justify-content: space-between !important;
}

.smart-search-subtitle{
    width: auto;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
    color: #583723;
}

.smart-search-category:not(.repeat, .popular) .smart-search-subtitle{
    max-width: Calc(100% - 85px);
}

.smart-search-clean-btn{
    width: auto;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    text-align: right;
    color: #9A9A9A;
    cursor: pointer;
}

.smart-search-clean-btn i{
    width: 13px;
    height: 16px;
    background-image: url('/local/templates/rostok-inner/images/smart-search/del-icon.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.smart-search-clean-btn span{
    border-bottom: 1px solid #9A9A9A;
    margin-left: 5px;
}

.smart-search-category-item{
    width: 100%;
    justify-content: flex-start !important;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    color: #583723;
}

.smart-search-category-item:last-child{
    margin-bottom: 0;
}

.smart-search-category-item i{
    width: 16px;
    height: 16px;
    margin-right: 10px;
    background-image: url('/local/templates/rostok-inner/images/smart-search/search-product.svg');
    background-repeat: no-repeat;
}

.popular .smart-search-category-item i{
    background-image: none;
    position: relative;
}

.popular .smart-search-category-item i:before{
    content: '';
    width: 7px;
    height: 7px;
    background: linear-gradient(180deg, #9CCC2F 0%, #067526 100%);
    border-radius: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.repeat .smart-search-category-item i{
    display: none;
}

.repeat.active .smart-search-category-item i{
    display: flex;
    background-image: url('/local/templates/rostok-inner/images/smart-search/search-icon.svg');
}

.smart-search-category-item > span{
    width: auto;
    max-width: Calc(100% - 26px) !important;
    cursor: pointer;
    line-height: 17px;
}

.smart-search-category-item span > span{
    font-weight: 700;
}

.smart-search-products-all{
    display: none;
}

.smart-search-products-all.active{
    display: block;
}

.smart-search-products-all a{
    width: auto;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.055em;
    color: #fff;
}

.smart-search-title{
    width: 100%;
    font-size: 26px;
    font-weight: 700;
    line-height: 26px;
    color: #583723;
    margin-bottom: 25px;
}

.smart-search-title span{
    color: transparent;
    background: linear-gradient(180deg, #9CCC2F 0%, #067526 100%);
    background-clip: text;
    -webkit-background-clip: text;
}

.smart-search-sections{
    margin-bottom: 20px;
}

.smart-search-sections-row{
    flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    -webkit-flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 20px;
    padding-bottom: 10px;
    /*scrollbar-width: thin;
    scrollbar-color: #9C9C9C #D9D9D9;*/
}

/*.smart-search-sections-row::-webkit-scrollbar{
    width: 8px;
    height: 8px;
}*/

.smart-search-sections-row::-webkit-scrollbar,
.smart-search-sort-sections-wrap::-webkit-scrollbar{
    width: 4px;
    height: 4px;
}

/*.smart-search-sections-row::-webkit-scrollbar-thumb{
    background: #9C9C9C;
    border-radius: unset;
}*/

.smart-search-sections-row::-webkit-scrollbar-thumb,
.smart-search-sort-sections-wrap::-webkit-scrollbar-thumb{
    background: linear-gradient(180deg, #9CCC2F 0%, #067526 100%);
    border-radius: 4px;
}

/*.smart-search-sections-row::-webkit-scrollbar-track{
    background-color: #D9D9D9;
    border: none;
    border-radius: 0;
}*/

.smart-search-sections-row::-webkit-scrollbar-track,
.smart-search-sort-sections-wrap::-webkit-scrollbar-track{
    background-color: #D9D9D9;
    border: none;
    border-radius: 4px;
}

.smart-search-section{
    width: auto;
    min-width: 190px;
}
.smart-search-section a{
    gap: 10px;
    border: 2px solid transparent;
    padding-right: 10px;
}
.smart-search-section a.active{
    border: 2px solid #98ca41;
    border-radius: 12px;
}
.smart-search-section-img{
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
}

.smart-search-section-img img{
    width: 100%;
    height: auto;
}

.smart-search-section-details{
    width: Calc(100% - 60px);
}

.smart-search-section-name{
    width: 100%;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    color: #583723;
    margin-bottom: 6px;
}

.smart-search-section-count{
    width: 100%;
    font-size: 14px;
    font-weight: 400;
    line-height: 12px;
    color: #9A9A9A;
}

.smart-search-null{
    width: 100%;
    margin: 0 0 30px;
}
.smart-search-null.fast{
    margin: 0;
}
.smart-search-null .main{
    font-weight: 700;
}

.smart-search-null-wrap{
    width: fit-content;
    width: -moz-fit-content;
    display: block;
    position: relative;
    margin: 0 auto;
    background: #FEF7DA;
    padding: 10px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    line-height: 20px;
    color: #583723;
}

.smart-search-null-wrap span:not(.main):before{
    content: '';
    width: 16px;
    height: 16px;
    background-image: url('/local/templates/rostok-inner/images/smart-search/search-icon-gray.svg');
    background-repeat: no-repeat;
    position: absolute;
    top: 2px;
    left: 0;
}

.smart-search-null-wrap span:not(.main){
    padding-left: 24px;
    position: relative;
}

.smart-search-result{
    gap: 30px;
}

.smart-search-result .filter-wrapper{
    width: 225px;
    float: none;
}

.smart-search-result .nav_left > ul li{
    margin-bottom: 0;
}

.smart-search-result .nav_left > ul li:nth-child(n + 6),
.smart-search-result .nav_left > ul > li:nth-child(n + 5) > a::after{
    display: none;
}

.smart-search-result .nav_left.active > ul li:nth-child(n + 6),
.smart-search-result .nav_left.active  > ul > li:nth-child(n + 5) > a::after{
    display: block;
}

.smart-search-result .nav_left > ul li a{
    height: 40px;
    padding: 0;
    font-size: 16px;
    text-transform: unset;
}

.smart-search-result .nav_left > ul > li > a::before{
    top: 0;
    bottom: 0;
}

.smart-search-result .nav_left > ul > li > a .left-menu-img{
    width: 20px;
    height: 20px;
    padding: 0;
    margin-right: 10px;
}

.smart-search-show-all{
    width: auto;
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    color: #8B8B8B;
    cursor: pointer;
    margin-top: 8px;
    justify-content: flex-start !important;
}

.smart-search-popup .filter-popup{
    width: 100%;
    margin-top: 20px;
    border-top: unset;
    padding: 0;
}

.smart-search-show-all span{
    width: auto;
    max-width: Calc(100% - 23px);
    margin-right: 10px;
}

.smart-search-show-all i{
    width: 13px;
    height: 7px;
    background-image: url('/local/templates/rostok-inner/images/smart-search/arrow-filter.svg');
    background-repeat: no-repeat;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.nav_left.active .smart-search-show-all i{
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    transform: rotate(180deg);
}

.smart-search-result-content{
    width: Calc(100% - 255px);
}

.smart-search-sort.d-flex-center{
    display: none;
    width: 100%;
    margin-bottom: 30px;
    justify-content: space-between !important;
}

.smart-search-sort.active.d-flex-center{
    display: block;
}

.smart-search-sort-products{
    width: 240px;
    height: 35px;
    position: relative;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(180deg, #9CCC2F 0%, #067526 100%);
}

.smart-search-result-filter-btn{
    width: 94px;
    display: none;
}

.smart-search-result-filter-btn span{
    width: Calc(100% - 30px);
    font-size: 16px;
    font-weight: 700;
    line-height: 16px;
    text-align: right;
    color: #583723;
}

.smart-search-result-filter-btn i{
    width: 20px;
    height: 20px;
    margin-left: 10px;
    background-image: url('/local/templates/rostok-inner/images/smart-search/filter-icon.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.smart-search-sort-sections{
    width: 100%; /*Calc(100% - 256px)*/
    justify-content: flex-start !important;
}

.smart-search-sort-list{
    width: auto;
    min-width: 240px;
    display: none;
    position: absolute;
    z-index: 10;
    right: 0;
    top: Calc(100% - 7px);
    box-shadow: none;
    background: linear-gradient(180deg, #9CCC2F 0%, #067526 100%);
    border-radius: 0 0 10px 10px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.smart-search-sort-list ul{
    width: Calc(100% - 4px);
    height: Calc(100% - 2px);
    padding: 17px 10px 10px 10px;
    background: #fff;
    position: relative;
    left: 2px;
    bottom: 2px;
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.smart-search-sort-list ul li{
    list-style: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
    color: #583723;
    margin-bottom: 8px;
}

.smart-search-sort-list ul li:last-child{
    margin-bottom: 0;
}

.smart-search-sort-products.active .smart-search-sort-list{
    display: block;
}

.smart-search-sort-row{
    width: Calc(100% - 4px);
    height: Calc(100% - 4px);
    position: relative;
    top: 2px;
    left: 2px;
    background: #fff;
    border-radius: 8px;
    justify-content: flex-start !important;
    padding: 0 10px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.smart-search-sort-row i{
    width: 20px;
    height: 18px;
    background-image: url('/local/templates/rostok-inner/images/smart-search/sort.svg');
    background-repeat: no-repeat;
    position: absolute;
    right: 10px;
    top: 6.5px;
}

.smart-search-sort-row span{
    width: Calc(100% - 30px);
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
    color: #583723;
}

.smart-search-sort .smart-search-subtitle{
    width: 70px;
    margin-bottom: 8px;
}

.smart-search-sort-sections-wrap{
    width: Calc(100% - 80px);
    justify-content: flex-start !important;
    margin-left: 10px;
    flex-wrap: nowrap !important;
    -ms-flex-wrap: nowrap !important;
    -webkit-flex-wrap: nowrap !important;
    overflow-x: scroll;
    overflow-y: hidden;
    padding-bottom: 8px;
    gap: 10px;
}

.smart-search-sort-section{
    width: auto;
    height: 30px;
    background: linear-gradient(180deg, #9CCC2F 0%, #067526 100%);
    border-radius: 30px;
    white-space: nowrap;
    cursor: pointer;
}

.smart-search-sort-section div{
    width: Calc(100% - 2px);
    height: Calc(100% - 2px);
    font-size: 14px;
    font-weight: 400;
    line-height: 27px;
    color: #583723;
    padding: 0 10px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    border-radius: 28px;
    background: #fff;
    position: relative;
    top: 1px;
    left: 1px;
}

.smart-search-sort-section div > span{
    font-weight: 700;
}

.smart-search-result-content .product-list{
    margin: 15px 0 8px;
    padding: 0 8px;
}

.smart-search-popup-logo{
    width: 53px;
    height: 30px;
    display: none;
}

.smart-search-popup-logo a{
    width: 100%;
    height: 100%;
    display: block;
}

.smart-search-popup .filter-length-bar-input{
    background: #ffffff;
}

.smart-search-popup .show-more-btn{
    max-width: 250px !important;
    margin: 30px auto 0;
}

.smart-search-products-all.show-more-btn{
    margin: 30px auto 0;
}

.smart-search-products-wrap.product-list-row .product-item:nth-child(4){
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.smart-search-products-wrap.product-list-row .product-item:nth-child(n + 5){
    display: none;
}

.smart-search-result-content .product-item-img{
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
}

.smart-search-result-content .product-item-img-container{
    height: 100%;
}

@media (max-width: 1090px){

    .smart-search-popup{
        max-width: 100%;
        left: 0;
    }

    .smart-search-popup,
    .smart-search-popup-wrap{
        max-width: unset;
    }

    .smart-search-result-content .product-item{
        max-width: unset;
    }

    .smart-search-result-content .product-item-img-container{
        max-width: 100%;
    }

    .smart-search-popup.height-full{
        border-radius: 0;
    }
}

@media (max-width: 960px)
{

    .smart-search-popup{
        height: Calc(100% - 120px);
    }

    .smart-search-popup-wrap{
        height: Calc(100% - 65px);
    }

    .smart-search-popup.height-full{
        height: Calc(100vh - 60px);
    }

    .smart-search-popup.height-full .smart-search-popup-wrap{
        height: 100%;
    }

    .smart-search-categories,
    .smart-search-products{
        width: 100%;
    }

    .smart-search-categories{
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 48px;
    }

    .smart-search-categories-wrap{
        width: Calc(50% - 24px);
        margin-bottom: 0;
    }

    .smart-search-result-products .product-item{
        width: Calc((100% - 60px) / 4);
    }

    /*.smart-search-popup .product-item:nth-child(n + 4){
        display: block;
    }

    .smart-search-popup .product-item:nth-child(n + 5){
        display: none;
    }

    .smart-search-popup .product-item-img,
    .smart-search-popup .product-item-img-container{
        height: auto;
        max-height: 228px;
        aspect-ratio: 1 / 1;
    }*/

    .smart-search-result-content .product-item-img{
        margin-bottom: 26px;
    }

    .smart-search-result-content .sticker-sale span,
    .smart-search-result-content .sticker-tip{
        height: 30px;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }

    .smart-search-result-content .rating-count{
        font-size: 12px;
        line-height: 17px;
    }

    .smart-search-result-content .rating-star{
        width: 15px;
        height: 15px;
    }

    .smart-search-result-content .rating-star:before{
        font-size: 15px;
    }

    .smart-search-result-content .add-compare-btn,
    .smart-search-result-content .add-fav-btn{
        width: 16px;
        height: 16px;
    }

    .smart-search-result-content .add-compare-btn:before,
    .smart-search-result-content .add-fav-btn:before,
    .smart-search-result-content .add-compare-btn:after,
    .smart-search-result-content .add-fav-btn:after{
        font-size: 16px;
    }

    .smart-search-result-content .product-item-prices{
        margin: 10px 0;
    }

    .smart-search-result-content .product-item-price{
        font-size: 20px;
    }

    .smart-search-result-content .product-item-price.old{
        font-size: 14px;
        line-height: 16px;
    }

    .smart-search-result{
        gap: 0;
    }

    .smart-search-result .filter-wrapper{
        width: auto;
    }

    .smart-search-sections,
    .smart-search-null-wrap:before,
    .smart-search-result-filter .smart-search-subtitle{
        display: none;
    }

    .smart-search-result-content{
        width: 100%;
    }

    .smart-search-popup .show-more-btn{
        height: 35px;
    }

    /*.smart-search-popup .product-item:nth-child(n + 5){
        display: block;
    }*/

    .smart-search-sort.d-flex-center{
        gap: 30px;
        margin-bottom: 30px;
        display: flex;
    }

    .smart-search-sort-sections{
        width: Calc(100% + 15px);
        max-width: Calc(100% + 15px) !important;
        margin: 0 -15px 15px 0;
    }

    .smart-search-sort .smart-search-subtitle{
        display: none;
    }

    .smart-search-sort-sections-wrap{
        width: 100%;
        margin: 0;
        padding: 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .smart-search-sort-sections-wrap::-webkit-scrollbar{
        width: 0;
        height: 0;
        display: none;
    }

    .smart-search-result-filter-btn{
        display: block;
    }

    .smart-search-sort-products{
        max-width: Calc(100% - 124px) !important;
        width: auto;
        height: auto;
        background: none;
    }

    .smart-search-sort-row{
        width: 100%;
        height: 100%;
        padding: 0;
        flex-direction: row-reverse;
        top: unset;
        left: unset;
    }

    .smart-search-sort-row span{
        font-weight: 700;
        padding-left: 10px;
    }

    .smart-search-sort-row i{
        top: unset;
        right: unset;
        position: relative;
    }

    .smart-search-popup .filter-popup{
        margin-top: 0;
    }

    .smart-search-products-all.show-more-btn{
        position: fixed;
        bottom: 30px;
        z-index: 1000;
        margin-top: 0;
        padding-top: 30px;
        width: Calc(100% - 30px);
        max-width: 100% !important;
        background: #fff;
    }

    .smart-search-products-all.show-more-btn a{
        max-width: 250px;
        margin: 0 auto;
    }
}

@media (max-width: 860px){

    .smart-search-result-products .product-item{
        width: Calc((100% - 40px) / 3);
    }
}

@media (max-width: 768px){

    .smart-search-popup-header{
        gap: 10px;
    }

    .smart-search-popup-row{
        width: Calc(100% - 140px);
    }

    .smart-search-popup .close-btn{
        width: 130px;
    }

}

/*@media (max-width: 767px){

    .smart-search-popup .product-item{
        width: Calc((100% - 20px) / 3);
    }
}*/

@media (max-width: 648px){

    .smart-search-result-products .product-item{
        width: Calc((100% - 20px) / 2);
    }
}

@media (max-width: 568px){

    /*.smart-search-popup .product-list{
        gap: 20px;
    }

    .smart-search-popup .product-item{
        width: Calc((100% - 20px) / 2);
    }*/

    .smart-search-popup{
        padding-top: 0;
        height: Calc(100vh - 30px);
        border-radius: 0;
    }

    .smart-search-popup-header{
        padding: 40px 0 6px;
        background: linear-gradient(180deg, #9CCC2F 0%, #067526 100%);
    }

    .smart-search-popup-header:before,
    .smart-search-popup-header:after{
        content: '';
        width: 100%;
        height: 100%;
        display: block;
        position: absolute;
        top: 0;
        z-index: 1;
        background: linear-gradient(180deg, #9CCC2F 0%, #067526 100%);
    }

    .smart-search-popup-header:before{
        left: 0;
        margin-left: -100%;
    }

    .smart-search-popup-header:after{
        right: 0;
        margin-right: -100%;
    }

    .smart-search-content{
        margin-top: 78px;
    }

    .smart-search-popup-logo{
        display: block;
    }

    .smart-search-popup .close-btn{
        width: 25px;
        height: 25px;
        background: linear-gradient(180deg, #F28B01 0%, #E15601 100%);
        border-radius: 100%;
    }

    .smart-search-popup .close-btn i:before{
        font-size: 14px;
        line-height: 1;
    }

    /*.smart-search-popup .close-btn span{
        font-size: 0;
        background: #258728;
        border-radius: 100%;
    }

    .smart-search-popup .close-btn span:before{
        content: '';
        width: 14px;
        height: 14px;
        display: block;
        background-image: url('/local/templates/rostok-inner/images/smart-search/cross-icon-mob.svg');
        background-repeat: no-repeat;
        background-size: 14px 14px;
        position: absolute;
        top: 3px;
        left: 3.5px;
    }*/

    .smart-search-popup-row{
        width: Calc(100% - 98px);
    }

    .smart-search-form{
        height: 32px;
        background: #fff;
    }

    .smart-search-form-wrap{
        width: 100%;
        height: 100%;
        position: unset;
        background: none;
        border-radius: unset;
    }

    .smart-search-form-input i{
        display: none !important;
    }

    .smart-search-form-input{
        width: Calc(100% - 29px);
    }

    .smart-search-form input{
        font-size: 14px;
        line-height: 1;
        padding: 8px 10px;
    }

    .smart-search-form button{
        width: 19px;
        height: 19px;
        border-radius: 0;
        font-size: 0;
        background-color: unset;
        background-image: url('/local/templates/rostok-inner/images/smart-search/search-icon.svg');
        background-repeat: no-repeat;
        background-size: 19px 19px;
    }

    .smart-search-categories{
        gap: 16px;
        flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        -webkit-flex-wrap: wrap;
    }

    .smart-search-categories-wrap{
        width: 100%;
    }

    .smart-search-categories-wrap:first-child{
        display: flex;
        align-items: flex-start;
        justify-content: flex-end;
        flex-direction: row-reverse;
        flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        -webkit-flex-wrap: wrap;
        gap: 16px 10px;
    }

    .smart-search-categories-wrap:first-child > div{
        width: auto;
        min-width: Calc(50% - 5px);
        margin-bottom: 0;
    }

    .smart-search-categories-wrap:first-child > div:not(.repeat){
        position: relative;
        padding-bottom: 24px;
    }

    .smart-search-clean-btn{
        position: absolute;
        margin: 0;
        bottom: 0;
        left: 0;
        z-index: 1;
    }

    .smart-search-result-content .product-item-img,
    .smart-search-result-content .product-item-img-container{
        max-height: 259px;
    }

    .smart-search-null{
        margin: 30px 0 20px;
    }

    .smart-search-null-wrap{
        font-size: 14px;
        line-height: 1;
    }

    .smart-search-null-wrap span:not(.main){
        padding: 0;
    }

    .smart-search-null-wrap span:not(.main):before{
        display: none;
    }

    .smart-search-popup .show-more-btn:not(.smart-search-products-all){
        height: 30px;
        max-width: 175px !important;
        margin: 20px auto 0 0;
    }

    .smart-search-popup .show-more-btn a span{
        font-size: 16px;
        line-height: 1;
    }

    .smart-search-sort{
        margin-bottom: 20px;
    }

    .smart-search-popup.height-full{
        height: Calc(100vh - 30px);
    }

    .smart-search-category:not(.history) .smart-search-category-item:nth-child(n + 4){
        display: none;
    }

}

@media (max-width: 480px){

    /*.smart-search-popup .product-item{
        width: Calc((100% - 10px) / 2);
    }*/

    .smart-search-result-content .sticker-sale span{
        height: 24px;
        font-size: 14px;
    }

    .smart-search-result-content .sticker-tip{
        height: 20px;
        font-size: 12px;
        line-height: 16px;
        border-radius: 5px;
    }

    .smart-search-result-content .add-to-cart-btn,
    .smart-search-result-content .add-count-block-wrap,
    .smart-search-result-content .inform-btn{
        height: 25px;
    }

    .smart-search-result-content .add-to-cart-btn span{
        font-size: 14px;
        line-height: 1;
    }

    .smart-search-result-content .product-item-name a{
        font-size: 12px;
        line-height: 15px;
        max-height: 45px;
    }

    .smart-search-popup .add-count-block input{
        font-size: 16px;
        line-height: 1;
    }

    .smart-search-popup .add-count-btn:before{
        width: 13px;
        height: 2px;
    }

    .smart-search-popup .add-count-btn.plus:after{
        width: 2px;
        height: 13px;
    }

    .smart-search-popup .rating-stars{
        gap: 1px;
    }

    .smart-search-popup .rating-star{
        width: 10px;
        height: 10px;
    }

    .smart-search-popup .rating-star:before{
        font-size: 10px;
    }

    .smart-search-popup .add-compare-btn,
    .smart-search-popup .add-fav-btn{
        width: 12px;
        height: 12px;
    }

    .smart-search-popup .add-compare-btn:before,
    .smart-search-popup .add-fav-btn:before,
    .smart-search-popup .add-compare-btn:after,
    .smart-search-popup .add-fav-btn:after{
        font-size: 12px;
    }

    .smart-search-popup .product-item-name{
        margin-bottom: 6px;
    }

    .smart-search-result-content .product-item-row{
        margin: 8px 0 5px;
    }

    .smart-search-result-content .product-item-prices{
        margin: 5px 0;
    }

    .smart-search-result-content .rating-count{
        line-height: 1;
    }

    .smart-search-popup .product-item-price{
        font-size: 14px;
    }

    .smart-search-result-content .product-item-price.old{
        font-size: 12px;
        line-height: 14px;
    }

    .smart-search-result-content .product-item-img,
    .smart-search-result-content .product-item-img-container{
        max-height: 220px;
    }

    .smart-search-result-content .sticker-icon{
        width: 65px;
        height: 65px;
    }

    /*.smart-search-products-all a{
        font-size: 16px;
    }*/

    .smart-search-sort-sections-wrap{
        gap: 5px;
    }

    .smart-search-sort-section{
        height: 25px;
    }

    .smart-search-sort-section div{
        line-height: 22px;
    }

    .smart-search-sort-section a{
        font-size: 12px;
        line-height: 1;
    }

    .smart-search-sort{
        gap: 16px;
        margin-bottom: 20px;
    }

    .smart-search-sort-products{
        max-width: Calc(100% - 110px) !important;
    }
}

@media (max-width: 375px){

    .smart-search-popup .add-count-btn{
        width: 40px;
    }

    .smart-search-popup .add-count-block input{
        width: Calc(100% - 80px);
    }

    .smart-search-subtitle{
        margin-bottom: 5px;
    }

    .smart-search-category-item{
        margin-bottom: 5px;
        font-size: 14px;
    }

    .smart-search-category-item i{
        width: 10px;
        height: 10px;
        background-size: 10px 10px;
        margin-right: 6px;
    }

    .smart-search-category-item span{
        max-width: Calc(100% - 16px) !important;
        line-height: 1;
    }

    .smart-search-clean-btn{
        font-size: 12px;
        line-height: 11px;
    }

    .smart-search-clean-btn i{
        width: 10px;
        height: 10px;
    }

    .smart-search-popup .product-list{
        margin-top: 15px;
    }

    .smart-search-sort-row span,
    .smart-search-result-filter-btn span{
        width: Calc(100% - 23px);
        font-size: 14px;
        line-height: 1;
    }

    .smart-search-sort-row span{
        padding-left: 8px;
    }

    .smart-search-sort-row i,
    .smart-search-result-filter-btn i{
        width: 15px;
        height: 15px;
        background-size: cover;
    }

    .smart-search-result-filter-btn i{
        margin-left: 8px;
    }

    .smart-search-result-content .product-list{
        gap: 10px;
    }

    .smart-search-result-products .product-item{
        width: Calc((100% - 10px) / 2);
    }
}

/*ПОПАП ПОИСКА - конец*/

