.mobile-search-link,
.header-inner > .mobile-cart-link,
.mobile-nav-head,
.mobile-nav-auth,
.menu-backdrop {
    display: none;
}

.mobile-nav-links {
    display: contents;
}

.mobile-nav-item-icon {
    display: none;
}

@media (max-width: 1050px) {
    .site-header {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .header-inner {
        direction: ltr;
        display: grid;
        gap: 8px;
        grid-template-columns: 92px minmax(0, 1fr) 92px;
        min-height: 62px;
        padding: 5px 12px;
        position: relative;
    }

    .header-inner > .brand {
        direction: ltr;
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        min-width: 0;
    }

    .header-inner > .brand img {
        height: 56px;
        width: 102px;
    }

    .menu-toggle {
        background: transparent;
        border: 0;
        display: flex;
        grid-column: 3;
        grid-row: 1;
        height: 40px;
        justify-self: end;
        position: relative;
        width: 40px;
    }

    .menu-toggle span {
        background: #fff;
        width: 23px;
    }

    .mobile-search-link {
        align-items: center;
        color: #fff;
        display: flex;
        grid-column: 1;
        grid-row: 1;
        height: 40px;
        justify-content: center;
        justify-self: start;
        width: 40px;
    }

    .mobile-search-link svg {
        height: 26px;
        width: 26px;
    }

    .header-inner > .mobile-cart-link {
        align-self: center;
        color: #fff;
        display: inline-flex;
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
    }

    .main-nav {
        backdrop-filter: none;
        background: #fff;
        border: 0;
        border-radius: 0;
        bottom: 0;
        box-shadow: -18px 0 55px rgba(0, 0, 0, .34);
        direction: rtl;
        display: flex;
        flex-direction: column;
        gap: 0;
        height: 100dvh;
        max-height: 100dvh;
        overscroll-behavior: contain;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 0 0 22px;
        position: fixed;
        right: 0;
        top: 0;
        transform: translateX(105%);
        transition: transform .26s ease, visibility .26s;
        visibility: hidden;
        width: min(360px, 88vw);
        z-index: 102;
    }

    .main-nav.is-open {
        display: flex;
        transform: translateX(0);
        visibility: visible;
    }

    .mobile-nav-head {
        align-items: center;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        display: flex;
        flex: 0 0 auto;
        justify-content: center;
        min-height: 82px;
        padding: 8px 16px;
    }

    .mobile-nav-brand {
        align-items: center;
        display: flex;
    }

    .mobile-nav-brand img {
        display: block;
        height: 64px;
        object-fit: contain;
        width: 116px;
    }

    .mobile-nav-links {
        display: grid;
        gap: 2px;
        padding: 8px 12px 18px;
    }

    .mobile-nav-links a {
        align-items: center;
        border: 0;
        border-radius: 7px;
        color: #111827;
        display: flex;
        flex: 0 0 auto;
        font-size: 15px;
        font-weight: 700;
        gap: 14px;
        line-height: 1.4;
        min-height: 50px;
        padding: 0 12px;
        position: relative;
    }

    .mobile-nav-links a::after {
        background: #2563eb;
        border-radius: 999px;
        bottom: 7px;
        content: "";
        opacity: 0;
        position: absolute;
        right: 8px;
        top: 7px;
        width: 3px;
    }

    .mobile-nav-links a.is-active {
        background: #eef2ff;
        color: #1d4ed8;
    }

    .mobile-nav-links a.is-active::after {
        opacity: 1;
    }

    .mobile-nav-item-icon {
        align-items: center;
        color: currentColor;
        display: flex;
        flex: 0 0 27px;
        height: 27px;
        justify-content: center;
        width: 27px;
    }

    .mobile-nav-item-icon svg {
        height: 25px;
        width: 25px;
    }

    .mobile-nav-auth {
        background: #eef0ff;
        border: 1px solid #dfe3ff;
        border-radius: 10px;
        display: grid;
        gap: 12px;
        margin: 12px;
        padding: 14px;
    }

    .mobile-nav-auth a {
        border: 0;
        border-radius: 7px;
        line-height: 40px;
        padding: 0 14px;
        text-align: center;
    }

    .mobile-auth-title {
        align-items: center;
        display: flex;
        gap: 11px;
    }

    .mobile-auth-title div,
    .mobile-nav-user div {
        display: grid;
        gap: 3px;
        min-width: 0;
    }

    .mobile-auth-title strong,
    .mobile-nav-user strong {
        color: #111827;
        font-size: 15px;
    }

    .mobile-auth-title small,
    .mobile-nav-user small {
        color: #667085;
        font-size: 11px;
    }

    .mobile-auth-icon {
        align-items: center;
        color: #111827;
        display: flex;
        flex: 0 0 30px;
        height: 30px;
        justify-content: center;
        width: 30px;
    }

    .mobile-auth-icon svg {
        height: 27px;
        width: 27px;
    }

    .mobile-auth-actions {
        display: grid;
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mobile-login-link,
    .mobile-dashboard-link {
        background: #3157ff;
        color: #fff !important;
    }

    .mobile-register-link {
        background: #fff;
        border: 1px solid #cbd2ff !important;
        color: #2543cf !important;
    }

    .mobile-nav-user {
        align-items: center;
        display: flex;
        gap: 12px;
        padding: 2px 4px 10px;
    }

    .mobile-nav-user .user-avatar-large {
        flex: 0 0 42px;
        height: 42px;
        width: 42px;
    }

    .mobile-nav-user small {
        direction: ltr;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-nav-auth form {
        margin: 0;
    }

    .mobile-logout-button {
        background: #fff;
        border: 1px solid #fecaca;
        border-radius: 7px;
        color: #dc2626;
        cursor: pointer;
        font: inherit;
        font-weight: 700;
        min-height: 40px;
        width: 100%;
    }

    .menu-backdrop {
        background: rgba(0, 7, 16, .58);
        border: 0;
        bottom: 0;
        cursor: default;
        display: block;
        left: 0;
        opacity: 0;
        padding: 0;
        pointer-events: none;
        position: fixed;
        right: 0;
        top: 0;
        transition: opacity .22s ease, visibility .22s;
        visibility: hidden;
        z-index: 101;
    }

    .menu-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    .header-actions {
        display: none;
    }

    .search-page-hero {
        margin-inline: auto;
        padding: 18px 0 20px;
        width: calc(100% - 28px);
    }

    .search-page-hero h1 {
        font-size: 22px;
        margin: 0 0 12px;
    }

    .search-page-form {
        display: grid;
        gap: 10px;
        grid-template-columns: minmax(0, 1fr);
        margin-top: 0;
        width: 100%;
    }

    .search-page-form input {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .search-page-form button {
        margin: 0;
        min-height: 46px;
        width: 100%;
    }
}
