It can be a verb, a noun, or, informally, an adjective.
You can bargain with someone, (verb), you can be given a bargain
on a purchase (noun), or you can purchase a bargain item
(adjective).
The use of "bargain" as an adjective is not considered
technically correct, but it is still occasionally used in informal
contexts.