Gloria saw the shop she was looking for.the is a determiner telling you more about the noun shop. Gloria saw a particular shop, not any old shop. Therefore, use a determiner showing the shop is known.