.mobile-bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.1) transparent;
    border-top: 1px solid #e0e0e0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

/* Стиль для скроллбара (оставляем) */
.mobile-bottom-menu::-webkit-scrollbar {
    height: 2px;
}

.mobile-bottom-menu::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.1);
    border-radius: 1px;
}

.mobile-bottom-menu::-webkit-scrollbar-track {
    background: transparent;
}

/* Элементы меню */
.mobile-bottom-menu a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: black;
    text-decoration: none;
    min-width: 90px; /* Минимальная ширина элемента */
    flex: 1; /* Растягиваем по возможности */
    height: 60px;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0; /* Не сжимаем элементы */
    border-right: 1px solid #e0e0e0;
}

/* Убираем границу у последнего элемента */
.mobile-bottom-menu a:last-child {
    border-right: none;
}

/* Остальные стили без изменений */
.mobile-bottom-menu a:hover,
.mobile-bottom-menu a:active,
.mobile-bottom-menu a.active {
    color: #3366ff;
}

.mobile-bottom-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #3366ff;
    border-radius: 3px 3px 0 0;
}

.mobile-bottom-menu a img {
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
}

.mobile-bottom-menu a i {
    font-size: 24px;
}

.mobile-bottom-menu a span {
    white-space: nowrap;
    font-weight: bold;
}

@media (min-width: 768px) {
    .mobile-bottom-menu {
        display: none;
    }
}