The add to cart isn't working because you have two different quantity fields named the same in the same form. That isn't allowed.
The solution is to hide the other columns and add content to the column with the quantity and size fields for mobile so that you can only have one set of form fields.