This got split up into lots of different topics very quickly.
As for food: What is "food"? Food is anything that supplies energy, really. Many current organisms take that from other current organisms - we eat plants, animals, fungi. All of these things evolved not to BE food, but as organisms in their own right.
Some organisms use the sun as the primary source of energy. In this case, the sun again didn't evolve to BE food, but predated life.
At a basic level, any way energy is put into a chemical system is, in the abstract, "food" - and there are many ways energy can be put into a chemical reaction.
So, I don't believe your question "How did food evolve?" makes much sense, when you understand that ANY source of energy serves the purpose of what we informally call "food".