/* blocks/frontend/assets/css/menu/icon_menu.css */

.menu {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    align-items: flex-start;
}

.menu-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 4px;
    min-width: 50px;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.menu-item:hover {
    background-color: #f5f5f5;
}

.menu-label {
    font-size: 11px;
    font-weight: 500;
    color: #888888;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.menu-link:hover .menu-label {
    color: #666666;
}

.menu-icon {
    width: 24px;
    height: 24px;
    color: #888888;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Бейджи для корзины, избранного и заказов */
.cart-count-badge,
.favorites-count-badge,
.orders-count-badge {
    position: absolute;
    top: -1px;
    right: -3px;
    background-color: #e53935;
    color: white;
    font-size: 10px;
    font-weight: bold;
    border-radius: 20px;
    min-width: 16px;
    height: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 3px 5px;
    box-sizing: border-box;
    line-height: 1;
}

.favorites-count-badge {
    background-color: #dc3545;
}

.cart-count-badge.show,
.favorites-count-badge.show,
.orders-count-badge.show {
    display: flex;
}

.menu-item.cart,
.menu-item.favorites,
.menu-item.orders {
    position: relative;
}

/* Мобильная версия - скрываем надписи и уменьшаем расстояние */
@media (max-width: 768px) {
    .menu-label {
        display: none;
    }
    
    .menu-link {
        gap: 0; /* Убираем отступ между иконкой и текстом */
        min-width: 40px; /* Уменьшаем минимальную ширину */
    }
    
    .menu {
        gap: 10px; /* Уменьшаем расстояние между иконками (было 15px) */
    }
    
    /* ВОЗВРАЩАЕМ НОРМАЛЬНЫЙ РАЗМЕР ИКОНОК */
    .menu-item {
        width: 40px;
        height: 40px;
    }
    
    .menu-icon {
        width: 24px;
        height: 24px;
    }
}

/* Дополнительно для очень маленьких экранов */
@media (max-width: 480px) {
    .menu {
        gap: 8px; /* Еще меньше расстояние между иконками */
    }
}

/* Для самых маленьких экранов */
@media (max-width: 360px) {
    .menu {
        gap: 6px; /* Минимальное расстояние между иконками */
    }
}