border box how to create

i would like to do a border box around the products like on this page

https://www.etsy.com/shop/ModernCrochetClub?ref=l2-shop-header-avatar

also what is causing the box here to be squeezed up

https://shopcreativebarbados.com/clothing-evolve/store/products/category/mens-accessories/

Regards