Converted product + category arrays to hashes