This is called cost-push inflation. Unfortunately, that theory doesn't explain where the extra dollars come from.
You're right on one point, the Law of Supply & Demand. It is an emergent property of many individual actions, though each might be completely ignorant of the big picture.
Basically the inverse of people being averse to spending and instead hoarding cash, leading to deflation as prices are lowered to tempt them into spending again.
EDIT: I think this is one of the primary phenomenons creating the dilemma for the central bank and government: https://en.wikipedia.org/wiki/Inertial_inflation But IIRC from the Brazil case, informal expectations and pricing strategies in the supply chain (from factory to corner store) were at least as important as contracts.