function toRecoItem(product, variant) {
  return {
    name: `${product.name} ${variant.name}`,
    sku: variant.sku,
    image: variant.image,
    url: productUrl(product.id, variant.sku),
    rgb: hexToRgb(variant.color),
  };
}
Converts a product object and a variant object to a formatted recommendation item.
@param {Product} product - The product object.
@param {Variant} variant - The variant object.
@returns {RecoItem} The formatted recommendation item.