/* Shared desktop header: keep the logo, navigation and tools on one row. */
@media (min-width: 992px) {
    #header .header {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 20px;
        padding: 16px 24px !important;
    }
    #header .header .header-left {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        flex: 1 1 auto;
        width: auto !important;
        min-width: 0;
        gap: 20px;
    }
    #header .header .header-left :is(.logo, .custom-logo-link) {
        flex: 0 0 auto;
        width: clamp(160px, 17vw, 245px) !important;
        margin-right: 0 !important;
    }
    #header .header .header-left :is(.logo, .custom-logo-link) img {
        width: 100%; max-width: 100%; height: auto; object-fit: contain;
    }
    #header .header #st-main-menu {
        flex: 1 1 auto; width: auto !important; min-width: 0;
    }
    #header .header #st-main-menu .main-menu {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: clamp(10px, 1.4vw, 22px);
        margin: 0 !important;
        padding: 0 !important;
    }
    #header .header #st-main-menu .main-menu > li {
        flex: 0 0 auto;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #header .header #st-main-menu .main-menu > li > a {
        padding: 18px 0 !important;
        white-space: nowrap !important;
        font-size: 15px;
    }
    #header .header .header-right { flex: 0 0 auto; }
    #header .header .header-right > .st-list {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 12px; margin: 0; padding: 0;
    }
    #header .header .header-right > .st-list > li {
        margin: 0 !important; padding: 0 !important; white-space: nowrap;
    }
    #header .header .header-search { margin: 0; }
    #header .header .header-search input,
    #header .header .header-search input:focus {
        width: clamp(100px, 12vw, 180px) !important;
        max-width: 100%;
    }
}

/* Elementor v2 uses a standalone header and three separate columns. */
@media (min-width: 992px) {
    header.header.header-sticky-menu:has(> .header__center) {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: clamp(16px, 2vw, 32px);
        padding: 18px 28px !important;
    }
    header.header > .header__left {
        flex: 0 0 auto;
        width: clamp(160px, 18vw, 260px) !important;
        min-width: 0;
        margin: 0 !important;
    }
    header.header > .header__left :is(.logo, .custom-logo-link) {
        width: 100%; margin: 0 !important;
    }
    header.header > .header__left img {
        width: 100% !important; max-width: 100%; height: auto !important;
    }
    header.header > .header__center {
        flex: 1 1 auto;
        width: auto !important;
        min-width: 0;
        margin: 0 !important;
    }
    header.header .header__center #st-main-menu { width: auto !important; }
    header.header .header__center #main-menu {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: center;
        gap: clamp(12px, 1.6vw, 26px);
        margin: 0 !important; padding: 0 !important;
    }
    header.header .header__center #main-menu > li {
        flex: 0 0 auto;
        width: auto !important;
        margin: 0 !important; padding: 0 !important;
    }
    header.header .header__center #main-menu > li > a {
        white-space: nowrap;
        padding: 18px 0 !important;
        font-size: 16px;
    }
    header.header > .header__right {
        flex: 0 0 auto; width: auto !important; margin: 0 !important;
    }
    header.header .header__right > .items {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center;
        gap: 14px;
        padding: 0 !important; margin: 0 !important;
    }
    header.header .header__right > .items > li {
        margin: 0 !important; padding: 0 !important; white-space: nowrap;
    }
    header.header .header__right .header-search { margin: 0; }
    header.header .header__right .header-search input,
    header.header .header__right .header-search input:focus {
        width: clamp(100px, 11vw, 180px) !important;
    }
}
