Following my book I came to know the following expressions for the position and momentum operators ($\hat{x},\hat{p}$): \begin{align}&\langle x|\hat{x}|\psi\rangle=x\psi(x) \ \ \ \ \ &(1)\\[1.5ex] &\langle x|\hat{p}|\psi \rangle=-i\hbar\frac{d}{dx}\psi(x) \ \ \ \ \ &(2)\\[1.5ex] &\langle p|\hat{x}|\psi\rangle=i\hbar\frac{d}{dp}\psi(p) \ \ \ \ \ &(3)\\[1.5ex] &\langle p|\hat{p}|\psi\rangle=p\psi(p) \ \ \ \ \ &(4)\end{align} To prevent misunderstandings: $|x\rangle,|p\rangle$ are the eigenvectors of position and momentum respectively, $|\psi\rangle$ is a general state, $x,p$ are the values of position and momentum (that can be seen as eigenvalues of the respective operators) and $\psi(x)=\langle x|\psi\rangle,\psi(p)=\langle p | \psi\rangle$ are simply the wavefunctions of the state $\psi$.
However we also know that the following is true: \begin{align} &\hat{x}|x\rangle=x|x\rangle \ \ \ \ \ &(5)\\[1.5ex] &\hat{p}|p\rangle=p|p\rangle \ \ \ \ \ &(6) \end{align} My question is: is there a way to write down explicitly the action of the position operator on the eigenvectors of momentum and the action of the momentum operator on the eigenvector of position, similarly to what we do in equations (5) and (6)? So in practice what I am asking is: $$\hat{x}|p\rangle=?$$ $$\hat{p}|x\rangle=?$$ Trying to answer my own question I came up with the following brutal line of reasoning: we can use equations (2) and (3): $$\langle x|\hat{p}|\psi \rangle=-i\hbar\frac{d}{dx}\langle x|\psi\rangle$$ $$\langle p|\hat{x}|\psi\rangle=i\hbar\frac{d}{dp}\langle p |\psi\rangle$$ and using the fact that $\hat{x},\hat{p}$ are both hermitian operators we can think to write: $$\hat{x}|p\rangle=i\hbar\frac{d}{dp}|p\rangle \ \ \ \ \ (7)$$ $$\hat{p}|x\rangle=-i\hbar\frac{d}{dx}|x\rangle \ \ \ \ \ (8)$$ however I really don't trust my own reasoning here, firstly because it is not mathematically formal at all; and secondly because deriving a vector representing a state just like it was a function make no sense in my mind ($d/dp|p\rangle=???$).
What is going on? Is my reasoning at least partially correct? Can we find an explicit form for $\hat{x}|p\rangle,\hat{p}|x\rangle$?
Notice that I have edited my question to correct a mistake present into equation (3), that had nothing to do with the question itself. Some of the answers may refer to this mistake edited out.