headless commerce basically gives you freedom to keep frontend(storefront) and backend(business logic)of e commerce platform differently, so they can be customised with more greater developer experience, it has some pros and cons.
pros:
- Flexibility and familiarity for frontend developers.
- you have control in your hands to do whatever you want to do
cons:
- Integration effort and dependency on third-party services.