css for input and cart on thumbnail