/* ========================================
   Header Middle
======================================== */

.header-middle {
    background: #fff;
    padding: 0px 0;
    border-bottom: 1px solid #eeeeee;
}

.header-logo img {
    display: block;
    width: auto;
    max-width: 315px;
    height: auto;
}

/* ========================================
   Search
======================================== */

.header-search {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    background: #fff;
}

.search-category {
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid #eeeeee;
}

.search-category select {
    height: 100%;
    min-width: 95px;
    padding: 0 28px 0 18px;
    border: 0;
    outline: none;
    background: transparent;
    color: #444;
    font-size: 14px;
    appearance: auto;
    cursor: pointer;
}

.search-input {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

.search-input input[type="search"] {
    width: 100%;
    height: 100%;
    border: 0;
    outline: none;
    padding: 0 10px;
    font-size: 14px;
    color: #333;
}

.search-input input::placeholder {
    color: #999;
}

.search-input button {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 0;
    background: transparent;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-input button:hover {
    color: #000;
}

/* ========================================
   Header Actions
======================================== */

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.header-action {
    height: 34px;
    min-width: 70px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #e5e5e5;
    background: var(--bs-white);
    color: #222;
    text-decoration: none;
    font-size: 14px;
    transition: all .2s ease;
}

.header-action:hover {
    color: #111;
    background: #fafafa;
}

.header-action i {
    font-size: 12px;
}

.header-dropdown .header-action {
    min-width: 42px;
    padding: 0 10px;
}

.header-dropdown .dropdown-toggle::after {
    margin-left: 5px;
    font-size: 8px;
}

.flag {
    font-size: 15px;
}

/* ========================================
   Responsive
======================================== */

@media (max-width: 991.98px) {

    .header-middle {
        padding: 15px 0;
    }

    .header-actions {
        justify-content: flex-end;
    }

    .header-search {
        margin-top: 15px;
    }
}

@media (max-width: 575.98px) {

    .header-middle {
        padding: 12px 0;
    }

    .header-logo img {
        max-width: 115px;
    }

    .header-actions {
        gap: 3px;
    }

    .header-action {
        min-width: 38px;
        height: 34px;
        padding: 0 8px;
    }

    .header-action span:not(.flag) {
        display: none;
    }

    .header-dropdown .header-action {
        min-width: 38px;
    }

    .header-search {
        height: 38px;
        margin-top: 12px;
    }

    .search-category select {
        min-width: 85px;
        padding-left: 12px;
        font-size: 10px;
    }

    .search-input input[type="search"] {
        font-size: 10px;
    }
}