Input reallocation within multi-product firms