/* Header top bar — compact layout for lg / medium-desktop widths (992–1199px) */

@media (min-width: 992px) and (max-width: 1199.98px) {
    .header-middle-bar.pt20.pb20 {
        padding-bottom: 14px !important;
        padding-top: 14px !important;
    }

    .header-middle-bar__row {
        flex-wrap: nowrap;
        gap: 10px;
    }

    .header-middle-bar__logo {
        flex: 0 0 auto;
        max-width: 118px;
        width: auto;
    }

    .header-middle-bar__logo .header_top_logo_home1 .logo {
        height: 34px !important;
        max-width: 100%;
    }

    .header-middle-bar__search {
        flex: 1 1 0;
        max-width: none;
        min-width: 0;
        width: auto;
    }

    .header-middle-bar__actions {
        flex: 0 0 auto;
        max-width: none;
        width: auto;
    }

    .header-middle-bar__widgets {
        padding-left: 0;
    }

    .header-middle-bar__widget-list {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .header-middle-bar__widget-list > li {
        margin-right: 0 !important;
    }

    /* Icon-only widgets — same pattern as cart badge */
    .header-middle-bar .header_top_iconbox .details {
        display: none !important;
    }

    .header-middle-bar .header_top_iconbox .icon {
        height: 42px;
        line-height: 42px;
        margin-right: 0;
        width: 42px;
    }

    .header-middle-bar .header_top_iconbox .icon span:not(.badge) {
        font-size: 18px;
    }

    .header-middle-bar .header_top_iconbox .icon img {
        height: 18px;
        width: auto;
    }

    /* Search bar — give query field priority over category label */
    .header-middle-bar .nasad-header-search__bar {
        min-height: 44px;
    }

    .header-middle-bar .nasad-header-search__category {
        max-width: 44px;
        min-width: 44px;
        padding-left: 0.25rem;
    }

    .header-middle-bar .nasad-header-search__category-label,
    .header-middle-bar .nasad-header-search__category-chevron {
        display: none;
    }

    .header-middle-bar .nasad-header-search__category-trigger {
        height: 42px;
        justify-content: center;
        padding: 0 0.35rem;
        width: 44px;
    }

    .header-middle-bar .nasad-header-search__field {
        padding: 0 0.55rem;
    }

    .header-middle-bar .nasad-header-search__field-icon {
        display: none;
    }

    .header-middle-bar .nasad-header-search__input,
    .header-middle-bar .nasad-header-search input.form_control {
        font-size: 0.8125rem;
        height: 42px !important;
        min-height: 42px;
    }

    .header-middle-bar .nasad-header-search__submit {
        min-height: 44px;
        min-width: 44px;
        padding: 0 0.75rem;
    }
}

/* Extra-tight lg tablets / narrow desktop (~992–1050px) */
@media (min-width: 992px) and (max-width: 1050px) {
    .header-middle-bar__row {
        gap: 8px;
    }

    .header-middle-bar__logo {
        max-width: 100px;
    }

    .header-middle-bar__widget-list {
        gap: 4px;
    }

    .header-middle-bar .header_top_iconbox .icon {
        height: 40px;
        line-height: 40px;
        width: 40px;
    }

    .header-middle-bar .nasad-header-search__input::placeholder {
        font-size: 0.75rem;
    }
}
