.search-result-wrapper.inline-search {
    background: #FFF;
    padding: 25px;
    border-radius: 10px;
    max-width: 1320px;
    position: absolute;
    top: 330px;
    left: 0;
    margin: 0 auto;
    right: 0; 
    z-index: 1050;
    box-shadow: 4px 10px 50px 8px rgba(0,0,0,0.1);
    box-sizing: border-box;
    display: none;
    overscroll-behavior: contain;
}

.admin-bar .search-result-wrapper.inline-search {
    top: 364px;
}

.search-result-wrapper.full-search {
    background: #FFF;
    padding: 25px;
    border-radius: 10px;
    max-width: 1920px;
    position: fixed;
    top: 245px;
    left: 0;
    margin: 0 auto;
    right: 0; 
    z-index: 1050;
    box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset, rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
    box-sizing: border-box;
    height: calc(100dvh - 255px);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: none;
}

.show-search {
    display: block !important;
}

.search-result-wrapper.full-search .search-input-wrapper .btn-link {
    top: -8px;
}

.search-result-wrapper h5 {
    font-size: 15px;
    margin: 0 15px 0 0;
    font-weight: 600;
    color: #737373;
}

.latest-search {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
    z-index: 9;
    background: #FFF;
    display: none;
}

.search-header {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.search-input-wrapper {
    position: relative;
    width: calc(100% - 235px);
}

.search-input-wrapper .form-control {
    width: 100%;
    padding: 10px 10px 10px 50px;
    font-size: 16px;
    font-weight: 400;
    border-radius: 0;
    border: none;
    border-bottom: solid 2px #9F1127;
    box-shadow: none;
}

.search-input-wrapper i {
    position: absolute;
    left: 0px;
    top: 2px;
    font-size: 25px;
    opacity: 0.8;
}

.search-input-wrapper .btn-link {
    font-size: 15px;
    font-weight: 600;
    background: #9F1127;
    color: #FFF;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    height: 50px;
    min-width: 121px;
    transition: all .3s ease;
    margin-left: 10px;
    position: absolute;
    top: 2px;
    right: 2px;
}

.tag {
    display: flex;
    align-items: center;
    padding: 6px 15px;
    font-size: 14px;
    font-weight: 500;
    color: #9F1127;
    border-radius: 50px;
    background: rgba(159, 17, 39, .1);
}

.full-search .btn-close {
    width: 20px;
    height: 20px;
    border: none;
    margin-left: 8px;
    opacity: .6;
    z-index: 1;
    font-size: 25px;
    background: none;
    display: flex;
    align-items: center;
    border-radius: 8px;
}

.full-search .btn-close:hover {
    background: rgba(0,0,0,0.06);
}

.full-search .btn-close:active {
    background: none;
}

#close-search-results {
    position: absolute;
    top: 15px;
    right: 25px;
    z-index: 99;
}

.already-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-autocomplete-wrapper {
    display: flex;
}

.search-suggestions {
    flex: 0 0 190px;
}

.search-recommendation {
    flex: 0 0 calc(100% - 190px);
}

.search-suggestions ul {
    padding: 0;
}

.search-suggestions ul li {
    display: block;
    padding: 10px 0;
}

.search-suggestions ul li > a {
    color: #000;
    font-size: 15px;
    display: block;
    text-decoration: none;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 190px;
}

.search-suggestions ul li > a:hover {
    color: #9F1127;
}

.search-suggestions h5, .search-recommendation h5 {
    margin-bottom: 30px;
}

.recommendation-result {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    grid-template-rows: 1fr;
    grid-auto-flow: dense;
    grid-gap: 10px;
    gap: 10px;
    overflow-y: auto;
}

.recommendation-result > a {
    width: 100%;
    height: 100%;
    display: flex;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.recommendation-result > a > img {
    width: 100%;
    height: auto;
    -o-object-fit: cover;
    object-fit: cover;
}

.search-scroll-container {
    max-height: 445px;
    overflow-y: auto;
}

.full-search .search-scroll-container {
    height: auto;
    max-height: unset;
}

.carousel-slider {
    display: flex;
    gap: 10px;
}

.category-suggestions {
    background: #F7F7F9;
    padding: 15px;
    margin: 30px 0;
    border-radius: 10px;
    min-height: 250px;
}

.category-suggestions h5 {
    color: #000;
    margin-bottom: 20px;
}

.category-suggestions h5 span {
    font-size: 14px;
    font-weight: 400;
    display: inline-block;
    margin-left: 20px;
    opacity: .6;
}

.category-carousel .item > a {
    width: 100%;
    height: 100%;
    display: flex;
    position: relative;
    overflow: hidden;
    flex-direction: column;
    border-radius: 6px;
    text-decoration: none;
}

.category-carousel .item > a > img {
    width: 100%;
    height: 140px;
    display: flex;
    border-radius: 6px;
    object-fit: cover;
}

.category-carousel .item > a > h4 {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    padding-bottom: 3px;
    margin-top: 10px;
}

.category-suggestions .carousel-btn {
    position: relative;
    top: 45px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    background: #FFF;
    text-align: center;
    box-shadow: 0px 5px 10px -5px rgba(0,0,0,0.1);
    cursor: pointer;
}

.carousel-slider .owl-carousel {
    width: calc(100% - 100px);
}

.search-result-wrapper.inline-search .search-header, .search-result-wrapper.inline-search .category-suggestions {
    display: none;
}

.owl-dots {
    display: none;
}

.hide-body-scroll {
    overflow: hidden !important;
}

/*------- Responsive --------*/

@media (max-width: 1929.98px) {
    
}

@media (min-width: 1367px) and (max-width: 1921px) {
    
}

@media (min-width: 999px) and (max-width: 1366.99px) {
    .search-result-wrapper.full-search {
        border-radius: 0;
    }
}

@media (min-width: 768px) and (max-width: 998.99px) {
    .carousel-btn {
        display: none;
    }

    .carousel-slider .owl-carousel {
        width: 100%;
    }

    .already-search-tags {
        white-space: nowrap;
        flex-wrap: nowrap;
        overflow-x: scroll;
        -ms-overflow-style: none;
        width: 100%;
        padding-bottom: 5px;
    }

    .search-result-wrapper.inline-search {
        padding: 55px 25px;
    }
    
    .recommendation-result {
        grid-template-columns: repeat(auto-fit, minmax(155px, 1fr))
    }

    .search-suggestions h5, .search-recommendation h5 {
        margin-bottom: 20px;
    }

    .search-scroll-container {
        max-height: unset;
    }

    .search-result-wrapper.full-search {
        height: calc(100dvh - 175px);
        top: 175px;
        padding: 15px;
        border-radius: 0;
    }

    #close-search-results {
        top: 8px;
        right: 15px;
    }

    .category-suggestions {
        min-height: auto;
    }
}

@media (max-width:767.98px) {
    .carousel-btn {
        display: none;
    }

    .carousel-slider .owl-carousel {
        width: 100%;
    }

    .latest-search {
        flex-direction: column;
        align-items: flex-start;
    }

    .already-search-tags {
        white-space: nowrap;
        flex-wrap: nowrap;
        overflow-x: scroll;
        -ms-overflow-style: none;
        width: 100%;
        padding-bottom: 5px;
    }

    .search-result-wrapper.inline-search {
        border-radius: 0;
        padding: 12px 25px;
        top: 307px;
    }

    .search-result-wrapper.full-search {
        border-radius: 0;
        height: calc(100dvh - 185px);
        top: 185px;
        padding: 10px;
        box-shadow: none;
    }

    #close-search-results {
        right: 10px;
    }

    .category-suggestions {
        margin: -2px 0;
        min-height: auto;
    }
    
    .search-recommendation,
    .search-suggestions {
        margin-top: 20px;
    }

    .search-autocomplete-wrapper {
        display: block;
    }

    .search-suggestions ul li {
        display: inline-block;
        padding: 5px 15px;
        background: rgba(159, 17, 39, .1);
        border-radius: 20px;
        margin-bottom: 5px;
    }

    .search-suggestions ul li a {
        color: #9F1127;
        font-size: 12px;
    }

    .search-suggestions h5, .search-recommendation h5 {
        margin-bottom: 20px;
    }

    .search-scroll-container {
        max-height: unset;
    }

    .img-search {
        width: 100%;
    }

    .img-search .btn-up {
        margin: 15px 0 15px;
        min-width: 100%;
    }

    .search-header {
        flex-direction: column-reverse;
    }

    .search-header .search-input-wrapper {
        width: calc(100% - 0px);
    }

    .search-wrapper {
        flex-direction: column-reverse;
    }

    .search-wrapper .img-search .btn-up {
        margin: 10px 0; 
        min-width: 100%;
    }

    .global-search-wrapper {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
    }

    .search-wrapper .input-search {
        width: 100%;
    }

    .search-wrapper .form-control {
        min-width: 100%;
    }
}

@media (max-width:575.98px) {
    .search-result-wrapper.inline-search {
        padding: 12px 25px;
        top: 305px;
    }
}

@media (max-width:429.99px) {
    .search-result-wrapper.inline-search {
        padding: 12px 25px;
        top: 285px;
    }
}

@media (max-width:380.99px) {
    .search-result-wrapper.inline-search {
        padding: 12px 25px;
        top: 285px;
    }

    .recommendation-result {
        grid-template-columns: repeat(auto-fit, minmax(155px, 1fr))
    }
}

@media (max-width:334.98px) {
    
}
