Let $\Phi(r,\theta,\phi)=(r\cos \theta \sin \phi,r\sin \theta\sin\phi,r\cos\phi)$ be the usual spherical coordinate transformation.
One way to define coordinates systems at each $\theta,\phi$ on the unit sphere is to use the fact $\frac{\partial \Phi}{\partial r}$ has a constant magnitude of $1$, which implies $\frac{\partial \Phi}{\partial r}\perp \frac{\partial \Phi}{\partial \theta},\frac{\partial \Phi}{\partial \phi}$. Another quick calculation shows $\frac{\partial \Phi}{\partial \theta}\perp \frac{\partial \Phi}{\partial \phi}$. So the partial derivatives are always orthogonal.
I want to apply Stokes' theorem to calculate a path integral of a field along the unit circle in the $xy$ plane. To calculate the integral of the curl I need the normal to the sphere in terms of $\theta,\phi$. By definition it's given by $\frac{\partial \Phi}{\partial \theta}\times \frac{\partial \Phi}{\partial\phi}$. I think that by orthogonality this should be exactly $\sin \phi\hat r(\theta,\phi)=\sin \phi(\cos\theta\sin\phi,\sin\theta\sin\phi,\cos\phi)$ but when I calculate the mnemonic determinant, I get something else, namely the same vector except the $\hat x$ component goes in the opposite direction.
How can this be?