Container ships are crazy efficient in shipping dollars per kilogram not emissions. They use the worst most
Polluting fuel there is and because of their efficiency present a far more polluting option (ship across the world) as a logistic possibility to cut costs.
The pollution of the last mile of trucking an item to the store and the consumer driving to said store are an order of magnitude more than the entire journey across the Pacific on the boat