#header .ds-mobile-search { display: none; }
@media (max-width: 767.98px) {
    #header:has(.ds-has-mobile-search) > #sticky-wrapper {
        height: auto !important;
        min-height: 160px;
    }
    #header .header.ds-has-mobile-search {
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        align-items: center;
        gap: 12px 8px;
        height: auto;
        width: 100% !important;
        box-sizing: border-box;
        padding: 12px 16px 16px;
    }
    #header .header.ds-has-mobile-search > .toggle-menu {
        grid-column: 1;
        grid-row: 1;
        position: static;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin: 0;
        transform: none;
    }
    #header .header.ds-has-mobile-search > .header-left {
        grid-column: 2;
        grid-row: 1;
        width: auto !important;
        min-width: 0;
        justify-content: center;
        margin: 0;
        padding: 0;
    }
    #header .header.ds-has-mobile-search > .header-left > .logo {
        width: auto !important;
        flex: 0 1 auto;
        margin: 0;
        padding: 0;
        text-align: center;
        line-height: 0;
    }
    #header .header.ds-has-mobile-search > .header-left > .logo img {
        width: 76px !important;
        height: 76px !important;
        max-width: 100%;
        object-fit: contain;
    }
    #header .header.ds-has-mobile-search > .header-left > .st-list-mobile:not(:has(li)) { display: none; }
    #header .header.ds-has-mobile-search > .header-right {
        grid-column: 3;
        grid-row: 1;
        width: 44px;
        margin: 0;
        padding: 0;
    }
    #header .header.ds-has-mobile-search > .header-right > ul {
        margin: 0;
        padding: 0;
        justify-content: center;
    }
    #header .header.ds-has-mobile-search > .header-right > ul > li {
        margin: 0;
        padding: 0;
    }
    #header .header.ds-has-mobile-search #dropdown-mini-cart {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        min-height: 44px;
    }
    #header .header .ds-mobile-search {
        display: flex;
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
        gap: 8px;
        grid-column: 1 / -1;
        grid-row: 2;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    #header .ds-mobile-search input {
        flex: 1 1 0%;
        width: 0;
        min-width: 0;
        height: 44px;
        padding: 10px 12px;
        border: 1px solid #c9d1d9;
        border-radius: 8px;
        background: #fff;
        color: #182b3a;
        font: inherit;
        font-size: 16px;
        box-sizing: border-box;
    }
    #header .ds-mobile-search button {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 10px 16px;
        border: 0;
        border-radius: 8px;
        background: #174d72;
        color: #fff;
        font: inherit;
        font-weight: 600;
        cursor: pointer;
    }
    #header .ds-mobile-search :focus-visible { outline: 2px solid #174d72; outline-offset: 3px; }
}
