
/*search*/
.top-search{
    position: relative;
    width: 285px;
    padding: 0;
    /*    max-width: 275px;*/
    background: #e6e6e6;
    border-radius: 4px;
    margin-top: 1px;
}

.top-search .form-control{
    border:none
}
.top-search .input{
    width: 100%;
    position: relative;
}
.top-search input,
.top-search button{
    padding: 0;
    height: 39px;
    color:#9f9f9f;
    border: 0;
}
.top-search .icon{
    font-size:20px;
    top: 1px;
    position: relative;
}

.top-search .icon,
.top-search input{
    color:#505050;
}


.top-search input{
    float:left;
    width: 100%;
    border-radius: 0;
    padding-right: 50px;
    padding-left: 15px;
    background: transparent;

    font-size: 15px;
}
.top-search button{
    width: 45px;
    position: absolute;
    top:0;
    right: 0;
    background: transparent;
}
.top-search button:hover{
    background: transparent;
    color: #e94b35;
}
.top-search button:active,
.top-search button:focus{
    background-color: transparent;
    border-color: transparent;
    -webkit-box-shadow: none;
    box-shadow: none;
}



/*autocomplete*/
.auto-complete-result {
    background: #fff;
    width: 100%;
    left:-1px;
    position: absolute;
    z-index: 1000;
    top:50px;
    right:0px;
    display: none;
    overflow: hidden;
    border:1px solid #ccc;
    border-radius: 4px;
}
.auto-complete-result ul,
.auto-complete-result ul li{
    margin: 0;
    padding: 0;
}
.auto-complete-result li.header{
    display: none;
}
.auto-complete-result li li{
    padding: 10px 0;
    border-bottom: 1px solid #ebebeb
}
.auto-complete-result li,
.auto-complete-result a{
    width: 100%;
    overflow: hidden;
    display:block;
}
.auto-complete-result .image img{
    max-width:100%;
    max-height:70px;
}
.auto-complete-result .image.no-image img{
    opacity: 0.5
}
.auto-complete-result .image,
.auto-complete-result .name{
    float:left;
}
.auto-complete-result .image{
    width:30%;
    text-align: center
}
.auto-complete-result .name{
    width:70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 7px;
}
.auto-complete-result .type{
    margin-top:7px;
    color:#787878;
}
.auto-complete-result .ac-result{
    margin-bottom:0;
}
.auto-complete-result .see-all,
.auto-complete-result .see-all.active,
.auto-complete-result .see-all:hover{
    background: #428bca;
    text-align: center;
}
.auto-complete-result .see-all a{
    color:#fff;
    font-weight: bold;
}

.auto-complete-result #ac-result-products-container{
    float:left;
    width:300px;
}
.auto-complete-result #ac-result-products-container.r-border{
    border-right: 1px solid #ccc;
}
.auto-complete-result #ac-result-others-container{
    float:left;
    /*display: inline-block;*/
    width:250px;
}
.auto-complete-result #ac-result-others-container ul,
.auto-complete-result #ac-result-others-container li{
    width: 100%;
}

.auto-complete-result li.header{
    font-weight: bold;
    margin-bottom:10px;
    line-height: 1;
}
.auto-complete-result li.header,
.auto-complete-result #ac-result-others li{
    padding: 3px 10px;
    min-height: 5px;
}

.auto-complete-result .pType{
    font-size:13px;
    color:#616161
}
.auto-complete-result .image{
    text-align: center;
}
.auto-complete-result .image img{
    max-width: 85%;
    display: inline
}
#ac-result-products-container li{
    border-bottom:1px solid #e5e5e5
}
.auto-complete-result li.ac-rec:hover,
.auto-complete-result li.active{
    background: #f4f4f4;
}

@media(max-width:767px){
    .search-container{
        position:  absolute;
        right: 20px;
        top: 97px;
        z-index: 400;
        width: calc(100% - 90px);
    }
    .top-search{
        width: 100%;
    }
}

