.menu-sidebar-layout {
    display: flex;
    align-items: stretch;
    width: 100%;
    background: #ffffff;
}

.menu-sidebar-nav {
    flex: 0 0 clamp(96px, 28vw, 156px);
    width: clamp(96px, 28vw, 156px);
    box-sizing: border-box;
    background: #f6f7f9;
    border-right: 1px solid #eceff3;
}

.menu-sidebar-nav__inner {
    padding: 6px;
}

.menu-sidebar-nav__item + .menu-sidebar-nav__item {
    margin-top: 2px;
}

.menu-sidebar-nav__link {
    display: flex;
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    align-items: center;
    padding: 4px 10px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    border-radius: 9px;
    transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.menu-sidebar-nav__label {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.menu-sidebar-nav__link:hover,
.menu-sidebar-nav__link:focus {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.08);
    color: #111827;
    outline: none;
}

.menu-sidebar-nav__link:active {
    background: #111827;
    box-shadow: none;
    color: #ffffff;
}

.menu-sidebar-content {
    flex: 1;
    min-width: 0;
    padding: 4px 10px 16px;
}

.menu-sidebar-category {
    padding-top: 12px;
}

.menu-sidebar-category__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #374151;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.menu-sidebar-category__title::before {
    width: 3px;
    height: 16px;
    background: #111827;
    border-radius: 999px;
    content: "";
}

.menu-sidebar-item {
    display: block;
    margin-bottom: 8px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.03);
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.menu-sidebar-item:hover {
    border-color: #d9dee6;
    box-shadow: 0 5px 14px rgba(17, 24, 39, 0.08);
    transform: translateY(-1px);
}

.menu-sidebar-item__image {
    display: block;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
}

.menu-sidebar-item__info {
    flex: 1;
    min-width: 0;
}

.menu-sidebar-item__name {
    overflow: hidden;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-sidebar-item__desc,
.menu-sidebar-item__stock {
    overflow: hidden;
    margin-top: 3px;
    color: #8a94a3;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-sidebar-item__price {
    flex-shrink: 0;
    margin-left: 8px;
    color: #e24a4a;
    font-size: 14px;
    font-weight: 700;
}

.menu-sidebar-item__count {
    width: 18px;
    height: 18px;
    line-height: 18px;
    top: -10px;
    right: -10px;
}

@media (max-width: 360px) {
    .menu-sidebar-nav {
        flex-basis: 88px;
        width: 88px;
    }

    .menu-sidebar-nav__inner {
        padding: 4px;
    }

    .menu-sidebar-nav__link {
        min-height: 38px;
        padding-right: 7px;
        padding-left: 7px;
        font-size: 12px;
    }

    .menu-sidebar-content {
        padding-right: 8px;
        padding-left: 8px;
    }
}
