Let $k$ be an algebraically closed field, and $A, B$ affine $k$-algebras. We can define a functor $\mathfrak F$ from the category of affine $k$-algebras to that of affine algebraic varieties, by making $Max(A)$ into a topological space (for $g \in A$, set $D(g)$ to be the set of $\mathfrak m \in Max(A)$ for which $g \not\in \mathfrak m$; this is a basis for a topology of which every open set is a finite union). We then define a sheaf $\mathcal O_A$ on $Max(A)$ in a natural way, and obtain the affine $k$-algebra $(Max(A), \mathcal O_A) = \mathfrak F(A)$.
I know how to prove that the functor $\mathfrak F$ induces an antiequivalence of categories. I know that the tensor product $A \otimes_k B$ is a coproduct in the category of affine $k$-algebras, so it follows that $\mathfrak F(A \otimes_k B)$ is a product in the category of affine varieties. But I have also read that the cartesian product $Max(A) \times Max(B)$, along with the natural projections onto $Max(A), Max(B)$, can serve as the underlying set (usually not in the product topology) of the product of affine varieties $\mathfrak F(A)$ and $\mathfrak F(B)$. Is there an easy way to see this?
I'm trying to do things as "categorically" as possible, in particular avoiding noncanonical descriptions of affine $k$-algebras (as quotients of polynomial rings by radical ideals) where I can. Any help would be greatly appreciated.