First, the deposit is used as a guarantee before the conclusion or performance of the sales contract. In other words, if the party paying the deposit fails to perform the debt, the deposit will be lost; If the party who receives the deposit fails to perform the debt, it shall double the deposit. To put it simply, if you pay the deposit but don't want to buy it, the deposit of 5000 should not be refunded.
Second, how is the 4s shop a seller? If the buyer of the car purchase contract is not you or your agent, the contract is valid, but it has nothing to do with you.