Magnetic box with a custom insert for cosmetic vials