Assume there is a table with 5 columns (id ,first_name (text),last_name(text), product_name(text) and available(boolean)).
CREATE INDEX IF NOT EXISTS "idx-firstname-lower + product_name"
ON persons (LOWER(first_name), product_name) WHERE available;