.header.content .lof-autosearch {
    float: left;
}

.lof-autosearch {
    & .search-results {
        --min-col-width: 150px;
        --max-col-width: 300px;

        position: relative;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(max(var(--min-col-width), var(--max-col-width)), 1fr));
        gap: 2em;
    }

    & .search {
        position: relative;
        width: 400px;
        float: left;
    }

    & .button-search {
        color: #7bbd42;
        background-color: transparent;
        border: none;
        font-size: 14px;
        position: absolute;
        top: 1px;
        right: 1px;
        box-shadow: none;
    }

    & .input-search {
        font-size: 12px;
        border-left: 1px solid #dcdcdc;
        border-top: none;
        border-right: none;
        border-bottom: none;
        height: 36px;
        background-color: #FFFFFF;
        font-style: italic;
    }

    & .input-search:hover, .input-search:focus {
        outline: none;
    }

    & .input-group {
        overflow: visible;
        border: 1px solid #bb6412;
        width: 100%;
    }

    & .input-group .box {
        margin: 0;
        overflow: visible;
    }

    & .category-filter {
        position: relative;
        float: left;
    }

    & .category-filter select {
        height: 36px;
        font-size: 13px;
        color: #8c8c8c;
        width: 165px;
        padding: 8px;
        background-color: #f9f9f9;
        appearance: none;
        -moz-appearance: none;
        -ms-appearance: none;
        -o-appearance: none;
        -webkit-appearance: none;
        border: none;
        cursor: pointer;
    }

    & .category-filter span {
        background-color: #f9f9f9;
        height: 36px;
        line-height: 36px;
        padding: 0 10px;
        pointer-events: none;
        position: absolute;
        right: 0;
        top: 0;
        width: 30px;
    }

    & .category-filter .fa-caret-down {
        position: absolute;
        color: #bb6412;
        cursor: pointer;
    }

    & .ui-autocomplete {
        border-radius: 0;
        -moz-border-radius: 0;
        background: #FFF;
        padding: 80px 50px 20px 50px;
        border: 1px solid #f2f2f2;
        position: fixed;
        list-style: none;
        top: 260px !important;
        right: 0;
        left: 0 !important;
        width: 100% !important;
        overflow: auto;
        max-height: calc(100% - 275px);

        li {
            width: 100%
        }
    }

    & .ui-autocomplete-loading {
        background: #fff url(image/ajax-loader.gif) no-repeat 95%;
    }

    & #search_tags {
        margin-top: 15px;
        clear: both;
        float: left;
    }

    & #search_tags a {
        background: none repeat scroll 0 0 rgba(0, 0, 0, 0.5);
        border-radius: 2px;
        color: #fff;
        display: inline-block;
        font-size: 10px;
        margin: 0 10px 10px 0;
        padding: 5px;
        text-transform: uppercase;
    }

    & #search_tags a:hover {
        color: #cd3e40;
    }

    & .search_tags .title {
        color: #666;
        font-size: 10px;
        font-weight: 700;
        line-height: 15px;
        text-align: left;
        text-transform: uppercase;
        margin-right: 30px;
    }

    & .search_tags .content {
        text-align: left;
        clear: both;
    }

    & .ui-menu-item {
        float: left;
        width: 100%;
        margin-bottom: 0;
    }

    & .ui-helper-hidden-accessible {
        display: none
    }

    & .product {
        --padding: 2.5em;

        position: relative;

        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 1em;
        flex: 1;

        padding: var(--padding);

        background-color: #fff;

        box-shadow: var(--tile-box-shadow) !important;

        & .info {
            flex-grow: 1;
        }

        & .product-item-photo img {
            height: 100%;
            width: 100%;
            max-height: 200px;
            object-fit: contain;
        }
    }

    & .smore {
        align-self: end;
        color: #eb671f !important;
    }

    & .ui-autocomplete li:last-child {
        margin-bottom: 0;
        float: left;
    }

    & .ui-autocomplete li:first-child {
        padding-top: 0;
    }

    & .info .name span {
        text-decoration: underline;
    }

    & .suggested-keywords a {
        text-decoration: underline;
    }

    & #search-tags {
        margin-top: 3px;
        float: left;
        width: 100%;
        text-align: center;
    }

    & #search-tags .title {
        margin-right: 5px;
        display: inline-block;
    }

    & #search-tags .content {
        display: inline-block;
    }
}

& .ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus {
    background: none;
    border: none;
    font-weight: inherit;
}

& .lof-search {
    float: left;
    width: 100%;
}

& .lof-autosearch {
    position: relative;
    font-size: 16px;
}

& .search-input-container {
    display: none;
    position: fixed;
    top: 114px;
    left: 0;
    right: 0;
    height: 115px !important;

    & .custom-search-icon {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: #f8f7f8;
        width: 50px;
        height: 50px;
        left: 165px;
    }

    & .custom-close-icon {
        position: absolute;
        background-color: #f8f7f8;
        width: 50px;
        height: 50px;
        right: 150px;
        font-size: 70px;
        cursor: pointer;
        font-weight: 300;
    }
}

.search-overlay {
    position: fixed;
    top: 229px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lof-autosearch .ui-autocomplete-input {
    width: 100% !important;
    height: 100% !important;
    font-size: 30px !important;
    border-radius: 0 !important;
    border: none !important;
    padding-left: 230px;
    background-color: #f8f7f8;
    font-family: montserrat, sans-serif;
}

.lof-autosearch .ui-autocomplete-input::placeholder {
    color: black;
    font-weight: bold;
}

.ui-helper-hidden-accessible {
    display: none;
}

@media (max-width: 1660px) {
    .search-input-container {
        .custom-search-icon {
            left: 65px;
        }

        .custom-close-icon {
            right: 50px;
        }
    }

    .lof-autosearch .ui-autocomplete-input {
        padding-left: 130px;
    }
}

@media (max-width: 768px) {
    .search-input-container {
        .custom-search-icon {
            left: 5px;
        }

        .custom-close-icon {
            right: 5px;
            top: 5px;
            font-size: 35px;
        }
    }

    .lof-autosearch .ui-autocomplete-input {
        padding-left: 70px;
    }

    .lof-autosearch .ui-autocomplete {
        top: 295px !important;
    }
}

@media (max-width: 600px) {
    .search-input-container {
        top: 63px;
        height: 63px !important;
    }

    .search-overlay {
        top: 127px;
    }

    .lof-autosearch .ui-autocomplete {
        top: 200px !important;
        padding-top: 15px;
    }

    .lof-autosearch {
        & .search-results {
            --min-col-width: 150px;
            --max-col-width: 250px;
            gap: 1em;
        }

        & .product {
            flex-direction: row;
            --padding: 10px;
            gap: 1em;
        }
    }
}

@media only screen and (max-width: 1023px) {
    .lof-autosearch .category-filter {
        width: 25%;
    }

    .lof-autosearch .category-filter select {
        width: 100%
    }

    .header.content .lof-search {
        width: 75%
    }
}

@media only screen and (max-width: 767px) {
    .lof-autosearch .category-filter {
        width: 25%;
    }

    .lof-autosearch .category-filter select {
        width: 100%
    }

    .header.content .lof-search {
        width: 75%
    }

    .header.content .lof-autosearch {
        margin-left: 0;
    }
}

@media only screen and (max-width: 479px) {
    .lof-autosearch .category-filter select, .lof-autosearch .category-filter {
        width: 100%
    }

    .header.content .lof-search {
        width: 100%
    }

    .lof-autosearch .button-search {
        bottom: 2px;
        top: auto;
    }

    .lof-autosearch .category-filter span {
        text-align: center;
    }
}

.search-tab-container {
    display: none;
    position: fixed;
    top: 229px;
    width: 100%;
    font-size: 30px;
    left: 0;
    z-index: 1;
    padding-left: 40px;
    padding-top: 20px;
    padding-bottom: 20px;
    background: white;
}

.search-tab {
    margin-left: 10px;
    margin-right: 10px;
    cursor: pointer;

}

.selected-search-tab {
    border-bottom: #e56919 1px solid;
}

@media (max-width: 600px) {
    .search-tab-container {
        top: 126px;
    }
}
