#header-search {
    display: grid;
    align-items: center;
    justify-content: center;
    grid-template-columns: 1fr;
    flex: 1;
    margin-right: 30px;
}

#header-search.only-responsive {
    display: none;
}

#header-actions #header-search-mobile.only-responsive {
    display: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
}

#header-actions #header-search-mobile.only-responsive:hover #display-text i {
    color: var(--theme-color1);
}

#header-actions #header-search-mobile.only-responsive #search-dropdown {
    display: none;
    position: absolute;
    background-color: #FFF;
    bottom: 57px;
    border-radius: 5px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
    cursor: default;
    right: 10px;
    left: 10px;
}

#header-actions #header-search-mobile.only-responsive #search-dropdown:hover form button i {
    color: #FFF;
}

@media (max-width: 1200px) {
    #header-search {
        display: none;
    }

    #header-search.only-responsive {
        display: grid;
        width: 100%;
        margin: 0;
        padding: 5px 0;
    }

    #header-search.only-responsive > form {
        margin: 0 15px;
    }
}

@media (max-width: 767px) {
    header > div > #header-search.only-responsive {
        display: none ;
    }

    #header-actions #header-search-mobile.only-responsive {
        display: flex;
    }

    #header-actions #header-search-mobile.only-responsive #search-dropdown {
        left: 5px;
        right: 5px;
        width: auto;
        max-width: unset;
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.4);

    }

    #header-actions #header-search-mobile.only-responsive #search-dropdown::before{
        content: "";
        background-color: rgba(0, 0, 0, 0.3);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: calc(100% - 52px);
        z-index: -1;
    }
}

@media (max-width: 485px) {
    #header-actions #header-search-mobile.only-responsive #search-dropdown {
        /* margin-right: 60px; */
    }
}

#header-search form,
#header-search-mobile.only-responsive form {
    display: flex;
    height: 40px;
}

#header-search-mobile.only-responsive form {
    margin: 5px 15px;
}

#header-search input,
#header-search-mobile.only-responsive input {
    flex: 1;
    padding: 5px 13px;
    border: 1px solid var(--lightgray);
    border-radius: 5px; 
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background-color: var(--bg-color1);
}

#header-search input:focus, 
#header-search-mobile.only-responsive input:focus {
    border: 1px solid var(--text-color2);
    transition: all 0.3s ease;
}

#header-search input::placeholder,
#header-search-mobile.only-responsive input::placeholder {
    color: var(--text-color2);
    opacity: 1;
}

#header-search input:focus,
#header-search-mobile.only-responsive input:focus {
    outline: none;
}

#header-search button,
#header-search-mobile.only-responsive button {
    background-color: var(--theme-color1);
    color: var(--text-color3);
    border: none;
    cursor: pointer;
    padding: 0 10px;
    border-radius: 0;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}