#search-modal {
    display: none;
    position: fixed;
    top: 0;
    background: #FFF;
    width: 100%;
    min-height: 100%;
    z-index: 9999 ;
    overflow-y: scroll;
    height: 100vh;
    z-index: 999999;
}
.no-scroll {
    overflow: hidden;
}
#search-modal .top-wrapper .top-right {
    justify-self: end;
    align-self: center;
    text-align: right;
}
#search-modal .top-wrapper .top-middle {
    justify-self: center;
    align-self: center;
    text-align: center;
    display: flex;
    background: #FFF;
    max-width: 400px;
    width: 100%;
    border: 1px solid #f3f3f3;
}
#search-modal .top-wrapper .top-middle .input-icon {
    align-items: center;
    display: flex;
    width: 44px;
    height: 44px;
    justify-content: center;
}
#search-modal .container.top {
    background: rgba(247, 247, 247, 1);
    padding: 1.7rem 6rem;
    max-width: 100%;
}
.search-options-products .top {
    text-align: center;
}
.search-options-products .top p {
    margin-top: 0;
    margin-bottom: 15px;
}
.search-results {
    margin: 80px 40px;
}
.search-results .item {
    opacity: 1;
}
.search-results .results-category h3 {
    margin: 0 0 20px 0;
    font-size: 32px;
}
.results-wrapper .total-count.product,
.results-wrapper h3.product {
    display: none !important;
}
.search-results .results-category .product-categories {
    list-style: none;
    margin: 0 20px 0 0;
    padding: 0;
}
.search-results .results-category .product-categories li {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    border: 1px solid #f3f3f3;
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    cursor: pointer;
}
.search-results .results-category .product-categories li a {
    padding: 14px 44px 14px 14px;
    position: relative;
}

.search-results .results-category .product-categories li a svg {
    width: 18px;
    height: 18px;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

#search-modal .loading {
    opacity: .6;
}

.results-wrapper .load-more-container button{
    border: 2px solid #e7e4e4;
    background: transparent;
    transition: 0.3s;
    font-weight: normal;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 40px;
    text-align: center;
    cursor: pointer;
}

.results-wrapper .load-more-container button:hover {
    border-color: #a7a7a7;
    transition: 0.3s;
}

.search-results .results-category .product-categories li:hover {
    box-shadow: 0px 4px 12px rgba(0, 0, 0, .2);
    -webkit-box-shadow: 0px 4px 12px rgba(0, 0, 0, .2);
    -moz-box-shadow: 0px 4px 12px rgba(0, 0, 0, .2);
    -o-box-shadow: 0px 4px 12px rgba(0, 0, 0, .2);
}
.search-results .results-category .product-categories li a {
    text-decoration: none;
}
.search-results .results-category .product-categories li span {
    display: block;
    color: #8d8787;
    font-size: .85em;
}
.search-results .results-category {
    width: 100%;
    display: inline-block;
    max-width: 285px;
}
.search-results .highlighted {
    background-color: initial;
    color: initial;
}
.results-wrapper {
    vertical-align: top;
    width: 100%;
    display: inline-block;
    max-width: calc(100% - 290px);
}
#search-modal input:focus {
    outline: none;
}
#search-modal input {
    border: none;
    width: calc(100% - 44px);
}
#search-modal button.disabled {
    background-color: transparent!important;
    border: 1px solid var(--clr1);
    color: var(--clr1);
}
#search-modal .type-switch {
    justify-content: center;
    margin-top: 5rem;
    margin-bottom: 5rem;
    text-align: center;
}
.results-wrapper ul.products {
    display: flex;
    flex-wrap: wrap;

}
.search-options-products ul.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1600px;
    margin: 0 auto;
}
.results-wrapper ul.products li,
.search-options-products ul.products li {
    width: 100% !important;
    margin-right: 1.5% !important;
    margin-left: 1.5%;
    flex-basis: calc((100% / 5) - 3%);
    max-width: calc((100% / 5) - 3%);
}
 .woocommerce-page .search-options-products div.columns-4 {
    width: 100%;
    padding-left: 0;
}


.results-wrapper h3. {
    margin-bottom: 0.8rem;
}
#search-modal .top-wrapper {
    grid-row: 1;
    grid-column: 1;
    display: grid;
    grid-template-rows: min-content;
    grid-template-columns: 1fr 1fr 1fr;
}
#search-modal .top-wrapper .top-left {
    justify-self: start;
    align-self: center;
    text-align: left;
}
.no-search-results {
    text-align: center;
    display: none;
}
.results-wrapper > div {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    align-items: unset !important;
    flex-wrap: unset !important;
    max-width: 100% !important;
}
.placeholders span {
    display: none;
}
.full + .placeholders.js-search-placeholders {
    opacity: 0;
}
.placeholders.js-search-placeholders {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 1;
    transition: opacity 150ms ease;
    text-align: center;
    width: 100%;
    padding: 1.4rem;
    line-height: 1.2;
}
.results-wrapper .load-more-container {
    margin-top: 8rem;
}
.results-wrapper .woocommerce .load-more-container {
    margin-top: 2rem;
    margin-bottom:  0;
}
.results-wrapper h3,
#search-modal .type-switch button {
    text-transform: capitalize;
    margin-top: 0;
}
.type-switch button {
    padding: 0.8rem 3rem!important;
}
.results-wrapper li.product {

    margin-right: 0!important;
}
.search-results .container {
    padding: 0 2.2rem;
    max-width: 1600px;
    margin: 0 auto;
}
.mobile-search-tab {
    display: none;
}
.results-wrapper.empty {
    max-width: 100%;
}
.search-options-products .top span {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.5;
}
.search-close {
    position: relative;
    display: flex;
    height: 44px;
    width: 44px;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    padding: 0;
    color: #000000;
    text-decoration: none;
    text-align: center;
    background-color: #fff;
    border: 1px solid #f3f3f3;
    border-radius: 50%;
    cursor: pointer;
}
.search-close:hover {
    background-color: #d8dbdf;
    border: 0;
}
#search-modal .top-wrapper .top-middle .input-icon svg {
    width: 20px;
    height: 20px;
}
.search-options-products .woocommerce {
    max-width: 100% !important;
}
.search-options-products .columns-4 ul.products li.product a.woocommerce-LoopProduct-link {
    position: unset;
}
@media screen and (max-width: 1440px){
    .results-wrapper ul.products li,
    .search-options-products ul.products li {
        flex-basis: calc((100% / 4) - 3%);
        max-width: calc((100% / 4) - 3%);
    }
}
@media screen and (max-width: 1240px){
    .results-wrapper ul.products li {
        flex-basis: calc((100% / 3) - 3%);
        max-width: calc((100% / 3) - 3%);
    }
}
@media screen and (max-width: 1000px){
    .results-wrapper ul.products li,
    .search-options-products ul.products li {
        flex-basis: calc((100% / 3) - 3%);
        max-width: calc((100% / 3) - 3%);
    }
    .mobile-search-tab {
        position: relative;
        display: none;
        justify-content: space-around;
        font-weight: 400;
        padding: 0;
        border-top: 1px solid #e8e9eb;
        border-bottom: 1px solid #e8e9eb;
        margin-left: -15px;
        width: calc(100% + 30px);
        margin-bottom: 25px;
    }

    .mobile-search-tab:after {
        content: '';
        position:  absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 1px;
        height: 100%;
        background:  #e8e9eb;
    }

    .mobile-search-tab div {
        padding: 9px 25px 9px 19px;
    }

    .mobile-search-tab.active {
        display: flex;
    }
    .mobile-search-tab .active {
        font-weight: bold;
    }
    .results-wrapper.hide,
    .results-category.hide {
        display: none !important;
    }

    .search-close {
        position: relative;
    }
    #search-modal .site-branding {
        width: 12rem;
        margin: 0 auto;
        max-width: 60px;
    }
    #search-modal .site-branding .logo {
        text-align: center;
        opacity: 1 !important;
    }
    #search-modal .top-wrapper .top-middle {
        flex: 100%;
        max-width: 100%;
    }
    #search-modal .top-wrapper .top-left {
        flex: 100%;

    }
    #search-modal .container.top {
        padding: 15px;
    }
    #search-modal .top-wrapper {
        display: flex;
        flex-wrap: wrap;
        position: relative;
    }
    #search-modal .top-wrapper .top-right {
        display: flex;
    }
    .search-results {
        margin: 0 0 30px 0;
    }
    .search-options-products .top {
        margin-top: 30px;
    }
    .search-results .container {
        padding: 0 15px;
    }
    .results-category h3 {
        display:  none;
    }
    .search-results .results-category .product-categories {
        margin: 0;
    }
    .search-results .results-category {
        max-width: 100%;
    }
    .results-wrapper {
        max-width: 100%;
    }
    #search-modal .top-wrapper .top-right {
        position: absolute;
        right: 0;
        top: 0;
    }
    .search-options-products .top span {
        font-size: 24px;
    }
    .search-options-products .top p {
        margin-bottom: 1rem;
    }
}
@media screen and (max-width: 768px){
    #search-modal ul.products li.product {
        width: auto!important;
        margin: 0 1.5% 1.5%;
    }
    .results-wrapper ul.products li,
    .search-options-products ul.products li {
        flex-basis: calc((100% / 2) - 3%);
        max-width: calc((100% / 2) - 3%);
    }
}
@media screen and (max-width: 680px){
    #search-modal .top-wrapper {
        justify-content: space-between;
        flex-direction: column;
        align-items: center;


    }
    #search-modal .top-wrapper .top-middle {
        position: relative;
        transform: none;
        left: auto;

    }

    #search-modal .type-switch {
        margin-top: 3rem
    }
    #search-modal .type-switch button {
        margin-top: 1rem;
    }
    .results-wrapper .load-more-container {
        margin-top: 3rem;
        margin-bottom: 1rem;
    }
    .results-wrapper .woocommerce .load-more-container {
        margin-top: 0rem;
        margin-bottom: 4rem;
    }
    .search-results {
        margin-bottom: 50px;
    }
    #search-modal ul.products li.product {
        width: auto!important;

        /* margin-right: 0!important; */
    }
}
