Paste the following CSS in theme stylesheet or in “additional CSS”:

/* Center products and categories in shop archives */
ul.products {
justify-content: center;
display: flex;
flex-wrap: wrap;
}