Fast ​food chain operator Shake Shack on Thursday swung to ​a quarterly loss and missed revenue estimates, hurt by rising commodity costs such as that of beef and weak consumer spending, sending its shares down about ‌28% in ⁠early ⁠market trading.