.header-mobile-search,
.header-menu-label {
    display: none;
}

.desktop-menu #header .site-menu {
    display: none;
}

@media (max-width: 767.98px) {
    :root {
        --mobile-header-height: 148px;
    }

    /* Clip horizontal overflow without creating a scroll container around the sticky header. */
    .site {
        overflow-x: clip;
    }

    #header.site-header {
        --header-ink: #273b2a;
        --header-line: rgb(39 59 42 / 22%);
        --header-hover: rgb(39 59 42 / 7%);
        --header-logo-light: none;
        --header-logo-dark: block;
        position: sticky;
        top: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    #header.site-header:has(+ #main_content[data-header-overlay="true"]) {
        margin-bottom: calc(-1 * var(--mobile-header-height));
    }

    #header.site-header:has(+ #main_content[data-header-overlay="true"]):not(.header-on-content) {
        --header-ink: #fff;
        --header-line: rgb(255 255 255 / 40%);
        --header-hover: rgb(255 255 255 / 12%);
        --header-logo-light: block;
        --header-logo-dark: none;
    }

    #header .topbar {
        display: none;
    }

    #header.site-header .mainbar {
        position: relative !important;
        padding: 8px 16px 14px;
        border: 0;
        background: transparent;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        transform: none;
    }

    #header.site-header.header-on-content .mainbar {
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }

    #main_content > .sub-header-bg:not(.elementor) .titlebar-inner {
        padding: calc(var(--mobile-header-height) + 40px) 0 40px;
    }

    #main_content > .sub-header-bg:not(.elementor) .titlebar-inner h1 {
        margin: 0 !important;
        font-size: clamp(30px, 8vw, 42px);
        line-height: 1.2;
    }

    #main_content > .sub-header-bg:not(.elementor) .titlebar-inner p {
        margin: 16px 0 0;
        font-size: 17px;
        font-weight: 400;
        line-height: 1.6;
    }

    #main_content > .sub-header-bg.no-title:not(.elementor) {
        display: none;
    }

    #index_hero_slider .hero-content__inner {
        padding-top: var(--mobile-header-height);
    }

    #header .mainbar > .container-fluid {
        padding: 0;
    }

    #header .header-main-row {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr) 88px;
        min-height: 76px;
        margin: 0 0 6px;
    }

    #header .header-main-row > * {
        padding: 0;
    }

    #header .header-brand {
        grid-column: 2;
        grid-row: 1;
        justify-content: center;
        width: 100%;
        min-width: 0;
    }

    #header .navbar-brand {
        margin: 0;
        padding: 4px 8px;
    }

    #header.site-header .mainbar .navbar-brand .logo-image {
        width: 116px;
        max-width: 100%;
        height: 64px;
        object-fit: contain;
    }

    #header.site-header .mainbar .navbar-brand .smpls_image_logo {
        display: var(--header-logo-light);
    }

    #header.site-header .mainbar .navbar-brand .smpls_image_logo_invert {
        display: var(--header-logo-dark);
    }

    #header .header-actions {
        display: contents !important;
    }

    #header .header-utilities {
        display: flex;
        grid-column: 3;
        grid-row: 1;
        align-items: center;
        justify-content: flex-end;
    }

    #header .header-utilities .user-wrap {
        display: none;
    }

    #header .header-utilities .wishlist-wrap,
    #header .header-utilities .mini-cart-wrap {
        display: block;
        margin: 0;
    }

    #header .header-utilities a,
    #header.site-header .mainbar .site-menu .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        min-height: 44px;
        border-radius: 8px;
        color: var(--header-ink);
        text-decoration: none;
    }

    #header .mainbar ion-icon {
        color: var(--header-ink);
        font-size: 26px;
    }

    #header .mainbar .site-menu {
        grid-column: 1;
        grid-row: 1;
        height: auto;
        padding: 0;
    }

    #header .site-menu .menu-toggle {
        flex-direction: column;
        gap: 2px;
    }

    #header .header-menu-label {
        display: block;
        font-size: 11px;
        font-weight: 500;
        line-height: 1;
        letter-spacing: 0.03em;
    }

    #header .wishlist-btn {
        position: relative;
        display: flex;
    }

    #header .wishlist-btn::after,
    #header .mini-cart-icon::after {
        top: 0;
        right: 0;
        min-width: 17px;
        height: 17px;
        padding: 0 3px;
        border: 2px solid #fffefb;
        border-radius: 10px;
        background: #386043;
        font-size: 10px;
        line-height: 13px;
    }

    #header .wishlist-btn::after {
        top: -6px;
        right: -6px;
    }

    #header .wishlist-btn[data-count="0"]::after,
    #header .mini-cart-icon[data-count="0"]::after {
        display: none;
    }

    #header .header-mobile-search {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 44px;
        padding: 10px 14px;
        border: 1px solid var(--header-line);
        border-radius: 8px;
        background: transparent;
        color: var(--header-ink);
        font-size: 14px;
        line-height: 1.5;
        text-decoration: none;
    }

    .header-mobile-search svg {
        flex-shrink: 0;
    }

    .header-mobile-search__hint {
        margin-left: auto;
        color: inherit;
        font-size: 12px;
        font-weight: 500;
    }

    #header .header-utilities a:hover,
    #header .site-menu .menu-toggle:hover,
    #header .header-mobile-search:hover {
        background: var(--header-hover);
    }

    #header a:focus-visible {
        outline: 2px solid var(--header-ink);
        outline-offset: 3px;
    }
}
