In short
The country where a seller’s head office sits, which often decides the law and currency it trades under.
The headquarters country is the nation a seller’s head office sits in. It tells you which company law governs your order, which currency prices are set in and where disputes are heard. Storefront language and a dot-com domain can hide this, so the imprint or legal page is the place to look.