Add logic for sidebar toggling when cart panel opens and closes