.mobile-menu {
    background-color: var(--color-light);
    padding: 5rem 0 3rem;
    height: 100%;
    overflow-y: auto;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 25rem;
    z-index: 200;
    box-shadow: var(--shadow-base);
    transition: var(--transition-base);
    transform: translateX(-100%);
    pointer-events: none;

    &.open {
        transform: translateX(0);
        pointer-events: all;
    }

    .popup__close {
        top: 1.5rem;
        right: 1.5rem;
    }

    &__menu {
        .menu {
            display: flex;
            flex-direction: column;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .menu-item a {
            display: block;
            padding: 0.875rem 0;
            font-size: 1.125rem;
            font-weight: 500;
            text-decoration: none;
            border-bottom: var(--stroke-base);
            transition: opacity 0.2s ease;

            &:hover {
                opacity: 0.7;
            }
        }
    }
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 199;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;

    &.open {
        opacity: 1;
        pointer-events: all;
    }
}
