.search-icon {
    font-size: 18px;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    outline: none;
}


/* Popup overlay (hidden by default) */

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}


/* Popup box */

.popup {
    background: #F8F8F8;
    padding: 20px;
    border-radius: 8px;
    width: 1100px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}


/* When popup is active, animate it */

.popup-overlay.active .popup {
    transform: scale(1);
    opacity: 1;
}


/* Close button */

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 18px;
    cursor: pointer;
    background: none;
    border: none;
}


/* Search input field */

.popup input {
    width: 90%;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
}


/* Show the popup */

.popup-overlay.active {
    display: flex;
    z-index: 999;
}

#header_seachbtn {
    background-color: transparent;
    border: none;
    position: relative;
    left: -41px;
    top: 10px;
    cursor: pointer;
}

#popupOverlay #search_row {
    margin: 20px 0;
    gap: 0;
}

#popupOverlay #search_row .row {
    gap: 0;
    justify-content: space-between;
}

#search_row .col-md-3 {
    width: 23%;
}

#search_row .col-md-8 {
    width: 75%;
}

#search_row h4 {
    margin: 20px 0;
}

#search_Catlist li {
    list-style: none;
}

#search_Catlist li a {
    color: #000;
    line-height: 30px;
}

.header_relative {
    position: relative;
    z-index: 0;
}

#mobile_search {
    display: none;
}

@media screen and (max-width:765px) {
    #search_row {
        display: none;
    }

    .popup-overlay.active .popup {
        top: 50px;
    }

    .popup {
        height: 100vh;
    }

    .collection-images .col-md-6 {
        width: 50%;
    }

    .discovermorebtns button {
        margin: 5px 0;
        width: 100%;
    }

    #popupOverlay form {
        display: flex;
    }

    .filterspace {
        position: relative;
    }

    .filterspace select,
    .comments-section .card {
        width: 100%;
        margin: 5px 0;
    }

    .form_box {
        padding: 0 !important;
    }

    .login-signup .imgbg {
        width: 100% !important;
        height: 100% !important;
    }

    .login-signup .imgbg img {
        left: 0 !important;
        width: 100% !important;
    }

    .reset-button {
        position: absolute;
        top: -5px;
        right: 10px;
    }

    .cta-content h1 {
        font-size: 40px;
    }

    .overlay_box {
        min-width: 38% !important;
        left: 10% !important;
        padding: 10px 10px !important;
        /* margin: auto; */
    }

    .sortdropdown {
        float: none;
        margin-bottom: 20px;
    }

    #header_seachbtn {
        top: 0;
    }

    div#mobile_search {
        display: flex;
        flex-wrap: wrap;
        margin: 10px 0;
    }

    div#mobile_search .col-md-3 {
        width: 48%;
    }

    div#mobile_search {
        justify-content: space-between;
    }

    .cta-content {
        margin-left: 30px;
    }
}


@media screen and (max-width: 359px) {
    .overlay_box {
        width: 80%;
    }
}