If I’m stopped for a traffic violation, can the officer search me or my car?

No. If you are stopped for only a traffic violation, it is not considered an arrest, and without additional probable cause of wrongdoing, an officer may not search you or your car incident to the stop.