Proof (direct product theorem)
Define a map $$\begin{align*} \Phi: H_1\times H_2 &\to G \\ (h_1, h_2) &\mapsto h_1 h_2. \end{align*}$$
We want to show that this is an isomorphism.
First, $\Phi$ is a homomorphism because for all $h_1,h_1'\in H_1$ and $h_2,h_2'\in H_2$, $$\begin{align*} \Phi\big((h_1,h_2)\cdot (h_1', h_2')\big) &= \Phi(h_1h_1', h_2h_2') \\ &= h_1h_1'h_2h_2' \\ &= h_1h_2h_1'h_2' &&\text{by (2)} \\ &= \Phi(h_1,h_2)\Phi(h_1',h_2'). \end{align*}$$
Next, $\Phi$ is surjective because of hypothesis (3).
Finally, to show that $\Phi$ is injective, we need to show $\ker\Phi = \set e$. For any $(h_1, h_2)\in H_1\times H_2$, if $\Phi(h_1, h_2) = e$, then $$ h_1 h_2 = e $$ so $$ h_1 = h_2\inv. $$ The left hand side is in $H_1$ while the right hand side is in $H_2$, so this value is in $H_1\cup H_2 = \set e$. Therefore $h_1=h_2 = e$ and $(h_1,h_2) = (e,e) = e$ as required.