.mobile-menu-toggle,
.mobile-menu {
    display: none;
}

.mobile-menu-toggle[hidden],
.mobile-menu[hidden] {
    display: none;
}

@media screen and (max-width: 800px) {
    #navigation-top,
    .electronics-navigation {
        display: none;
    }

    #topbar,
    .page-header-content {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }

    #topbar {
        margin-bottom: 1rem;
    }

    .site-logo {
        display: flex;
        align-items: center;
        flex: 1 1 0;
        min-width: 0;
        min-height: 44px;
    }

    .site-logo img {
        max-width: 100%;
        height: auto;
    }

    #logo {
        margin: 0;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        gap: 0.5rem;
        min-width: 44px;
        min-height: 44px;
        padding: 0.625rem 0.75rem;
        border: 1px solid currentColor;
        border-radius: 5px;
        background: transparent;
        color: inherit;
        font: inherit;
        font-size: 1rem;
        line-height: 1.25;
        cursor: pointer;
    }

    .mobile-menu-toggle svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
    }

    .mobile-menu-toggle:focus-visible {
        outline: 2px solid currentColor;
        outline-offset: 3px;
    }

    .mobile-menu {
        display: block;
        flex: 0 0 100%;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        padding: 0.75rem;
        border: 1px solid #c3d3e4;
        border-radius: 6px;
        background: #fff;
        color: #333;
        font-size: 1rem;
        line-height: 1.4;
    }

    .mobile-menu-group + .mobile-menu-group {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid #ddd;
    }

    .mobile-menu-group h2 {
        margin: 0 0 0.375rem;
        color: #555;
        font: inherit;
        font-size: 0.875rem;
        font-weight: bold;
        line-height: 1.4;
    }

    .mobile-menu ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mobile-menu li {
        margin: 0;
        padding: 0;
    }

    .mobile-menu a {
        display: flex;
        align-items: center;
        box-sizing: border-box;
        min-height: 44px;
        padding: 0.625rem 0.75rem;
        border-radius: 4px;
        color: #933;
        font-size: 1rem;
        line-height: 1.4;
        text-decoration: none;
        overflow-wrap: anywhere;
    }

    .mobile-menu a:hover {
        background: #f2f6fa;
    }

    .mobile-menu a:focus-visible {
        outline: 2px solid #456b99;
        outline-offset: -2px;
        background: #f2f6fa;
    }

    .mobile-menu a[aria-current="page"] {
        padding-left: calc(0.75rem - 3px);
        border-left: 3px solid #6699cc;
        background: #eaf3fd;
        color: #333;
        font-weight: bold;
    }
}
