The company said a new AI shopping tool was "paying off." But with tariffs hitting ad spending, investors didn't see it that ...