Complex sentence: Thinking the shop is closed, Alma begins to walk away before the door suddenly opens.
Split into simpler sentences: Thinking the shop is closed, Alma begins to walk away. Then, the door suddenly opens.