/*Search Modal style*/

.search-submit-btn {
    width: 45px;
    height: 49px;
    cursor: pointer;
    background: #eebd36;
    border: none;
    border-radius: 5px;
    padding: 5px;
    margin: 0 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-submit-btn:hover {
    background: #dba716;
}
.search-submit-btn img {
    width: 80%;
    height: auto;
}

.search-icon {
    font-size: 24px;
    cursor: pointer;
    position: fixed;
    top: 20px;
    left: 20px;
}
.search-modal {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 1000;
    overflow: auto;
    overflow-x: hidden;
    padding-bottom: 20px;
}
.search-container {
    width: auto;
    height: auto;
    background: #ffffff;
    padding: 0 0 56px 0;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}
.close-btn {
    position: absolute;
    right: -5%;
    padding: 0;
    background: #ffffff;
    border: none;
    font-size: 40px;
    line-height: 40px;
    cursor: pointer;
    color: #000;
}
.close-btn:hover{
    color:#000;
    background:#ffffff;
}
#searchInput {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: 1px solid #ddd;
    background-color: #f2f2f2;
    border-radius: 5px;
    height: 50px;
    margin: 0;
}
.modal-search-bar {
    max-width: 1000px;
    margin: auto;
    width: 100%;
    padding: 25px 0;
    position: relative;
}
.search-results {
    margin: auto;
    max-width: 1000px;
}
.search-tag {
    /* background: #f5f5f5;
    border: 1px solid black;
    padding: 8px 12px;
    margin: 5px;
    font-size: 14px;
    cursor: pointer;
    color: #615d5d;
    border-radius: 5px; */
    text-decoration: underline;
}
/* .search-tag:hover{
    background: #ffbc0d !important;
    color: #fff;
    border-color: #ffbc0d;
} */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 15px -5px;
}
.product-cell {
    padding: 5px;
    width: 25%;
    background-color: #fcfcfc70;
    text-align: center;
}
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card h4 {
    font-size: 14px;
    margin: 10px 0;
}
.product-card p {
    font-size: 14px;
    font-weight: bold;
}
.product-image-box {
    height: 0;
    padding-top: 80%;
    padding-bottom: 5px;
    position: relative;
}
.product-image-box:after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(#575757 4%, #575757 1%, #575757 100%, #575757 97%);
    opacity: 0.05;
    pointer-events: none;
    z-index: 2;
}

.product-image-box img {
    max-width: 90%;
    max-height: 95%;
}
.product-properties-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-grow: 1;
}

.ajax-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    z-index: 10;
}
.ajax-loader-overlay div.spinner-border {
    margin-top: 15px;
}

#clearSearch {
    border-bottom: 1px solid #ffbc0d;
    position: absolute;
    right: 70px;
    top: 37px;
    cursor: pointer;
    font-size: 14px;
    color: #ffbc0d;
}
.popular-searches {
    margin-left: auto;
}
.product-card h2.item-brand {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    padding: 0;
}
.product-card > a:hover {
    text-decoration: none;
}
/* .suggestion-box {
    position: absolute;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    top: 75px;
    border-radius: 10px;
}
.search-suggestion {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}
.search-suggestion:hover {
    background-color: #f1f1f1;
} */
/*.recent-searches, .popular-searches {*/
/*    margin-bottom: 20px;*/
/*    border-bottom: 1px solid #ddd;*/
/*    padding-bottom: 20px;*/
/*}*/
.suggestion-box {
    margin-bottom: 20px;
    padding-bottom: 20px;
}
.search-results a.search-tag {
    color: #000;
    display: block;
    clear: left;
    padding: 0 0 4px 0;
}
.search-results a.search-tag:hover {
    padding: 0 0 4px 0;
}
.search-results h3 {
    color: #000;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}
.popular-items a.view-all-link, .search-results a {
    font-size: 16px;
    color: #000;
    text-decoration: underline;
}



/*Search Modal Style end*/



@media (max-width: 1100px) {
    .modal-search-bar {
        padding: 15px 20px;
        position: relative;
        display: flex;
        align-items: center;
    }
    .close-btn {
        top: 20px;
        right: 20px;
    }
    #clearSearch {
        right: 140px;
        top: 28px;
    }
    form#searchForm {
        position: relative;
        width: 95%;
    }
    .search-results {
        padding: 0 20px;
    }
    .popular-items a.view-all-link, .search-results a {
        font-size: 13px;
     }
}

@media (max-width: 767px) {
    .search-results a.search-tag {
        display: inline-block;
        padding: 0;
        margin: 0 8px 0 0;
    }
    .product-cell {
        width: 33.33%;
    }
}

@media (max-width: 480px) {
    .product-cell {
        width: 50%;
    }
    #searchInput {
        padding: 10px;
        font-size: 14px;
        height: 40px;
    }

    .search-submit-btn img {
        width: 60%;
    }

    .search-submit-btn {
        width: 38px;
        height: 40px;
    }

    form#searchForm {
        width: 88%;
    }

    #clearSearch {
        right: 120px;
        top: 26px;
        font-size: 11px;
    }

    .search-results h3 {
        font-size: 15px;
    }
}