California has enacted sweeping legislation to combat retail theft, introducing measures that could provide protection for fashion retailers.