Accept cart item values in is_valid_for_product method and pass these to the woocommerce_coupon_is_valid_for_product filter