If you return a product which was paid for with a gift card any money refunded will automatically go back onto the original gift card. You can then re-use it online or in store.
If you're returning an item in store, the value of the refund will be added to a new gift card.