I've just been through Madrid a couple of times recently - if you are using T4S (eg with BA) you'll need to allow an extra 30-40 minutes transfer time compared with T4 to make sure you have enough time for your shopping.
They are both good terminals with nice shopping - you can shop in T4 before moving on to T4S.
Have fun in Madrid