Consider a bipartite state $\rho$, and let $\Pi^A\equiv \{\Pi^A_a\}_a$ and $\Pi^A\equiv\{\Pi^B_b\}_b$ be local projective measurements. Suppose that measuring $\rho$ in these bases gives uncorrelated outcomes. More precisely, this means that the probability distribution $$p(a,b)\equiv \operatorname{Tr}[(\Pi^A_a\otimes \Pi^B_b)\rho],\tag A$$ is uncorrelated: $p(a,b)=p_A(a)p_B(b)$ for some $p_A,p_B$.
I should stress that I'm considering this property for a fixed basis here, so this can easily hold regardless of the separability of $\rho$.
Given $\Pi^A,\Pi^B$, is there a way to characterise the set of $\rho$ producing uncorrelated measurement outcomes?
For example, if the measurements are rank-1 and diagonal in the computational basis, $\Pi^A_a=\Pi^B_a=|a\rangle\!\langle a|$, then any state of the form $$\sum_{ab} \sqrt{p_A(a) p_B(b)} e^{i\varphi_{ab}}|a,b\rangle\tag B$$ will give uncorrelated outcomes (assuming of course $p_A,p_B$ are probability distributions). These are product states for $\varphi_{ij}=0$, but not in general.
Nonpure examples include the maximally mixed state (for any measurement basis) and the completely dephased version of any pure state of the form (B).
Is there a way to characterise these states more generally? Ideally, I'm looking for a way to write the general state satisfying the constraints. If this is not possible, some other way to characterise the class more or less directly.