I'm not sure if this is what you are asking:
In[1]:= Map[Flatten[Outer[List,lista,#],2]&,listb]
Out[1]= {{{a,h},{a,i},{a,j},{b,h},{b,i},{b,j},{c,h},{c,i},{c,j},{d,h},{d,i},{d,j},{e,h},{e,i},{e,j},{f,h},{f,i},{f,j},{g,h},{g,i},{g,j}},
{{a,k},{a,l},{a,m},{b,k},{b,l},{b,m},{c,k},{c,l},{c,m},{d,k},{d,l},{d,m},{e,k},{e,l},{e,m},{f,k},{f,l},{f,m},{g,k},{g,l},{g,m}}}