/* Мобильное нижнее меню */
.mobile-bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

@media (max-width: 767px) {
    .mobile-bottom-menu {
        display: block;
    }
    
    body {
        padding-bottom: 70px;
    }
}

.mobile-bottom-menu .menu-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    max-width: 100%;
}

.mobile-bottom-menu .menu-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.mobile-bottom-menu .menu-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 10px;
    line-height: 1.2;
    padding: 5px 2px;
    transition: color 0.3s ease;
}

.mobile-bottom-menu .menu-item a:hover,
.mobile-bottom-menu .menu-item a.active {
    color: #EE3424;
    text-decoration: none;
}

.mobile-bottom-menu .menu-item .menu-icon {
    font-size: 20px;
    margin-bottom: 2px;
    transition: transform 0.2s ease;
    position: relative;
}

.mobile-bottom-menu .menu-item a:hover .menu-icon {
    transform: scale(1.1);
}

.mobile-bottom-menu .menu-item .menu-text {
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60px;
}

/* Счетчики для корзины, избранного и сравнения */
.mobile-bottom-menu .menu-item .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #EE3424;
    color: white;
    border-radius: 10px;
    padding: 1px 5px;
    font-size: 8px;
    min-width: 16px;
    height: 16px;
    line-height: 14px;
    text-align: center;
    font-weight: bold;
    z-index: 10;
}

.mobile-bottom-menu .menu-item .badge.empty {
    display: none;
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 320px) {
    .mobile-bottom-menu .menu-item .menu-text {
        font-size: 8px;
        max-width: 50px;
    }
    
    .mobile-bottom-menu .menu-item .menu-icon {
        font-size: 18px;
    }
}

/* Скрываем меню на планшетах и десктопах */
@media (min-width: 768px) {
    .mobile-bottom-menu {
        display: none !important;
    }
    
    body {
        padding-bottom: 0 !important;
    }
}

/* Улучшения для активного состояния */
.mobile-bottom-menu .menu-item a.active .menu-icon {
    color: #EE3424;
    transform: scale(1.1);
}

/* Плавная анимация для счетчиков */
.mobile-bottom-menu .menu-item .badge {
    transition: all 0.3s ease;
    transform: scale(1);
}

.mobile-bottom-menu .menu-item .badge:not(.empty) {
    animation: badgePulse 0.5s ease-in-out;
}

@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Мини-иконка уведомления избранного над профилем */
.mobile-bottom-menu .menu-item .wishlist-notification {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #EE3424;
    color: #fff;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    animation: wishlistPulse 1s ease-in-out infinite;
}

@keyframes wishlistPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}
