►The function $f(x)$ where $x=C$ solution of your problem can be find out without using your determinant. The variable $x$ should be such that $0\lt x\lt\dfrac{3\pi}{8}(=135^{\circ})$, as you can verify by drawing triangles appropriate to the problem, and the function is increasing from $2$ to $\infty$. You have
$$f(x)=\frac{\sin(x+\frac{\pi}{4})+\sin( x)}{\sin(\frac{3\pi}{4}-2x)}+1 \left(\text {this is }f(x)=\frac {a+b+c}{a}\right)$$ and its (blue) graphic where figure the red point $\left(\dfrac{\pi}{4},2+\sqrt2\right)$ corresponding to your verification with $C=45^{\circ}$.

► Another thing (more difficult) is to use the $p$ value of your determinant.
We have to calculate $\dfrac {b+c}{a}+1$.
One has $$\frac {b+c}{a}=\frac{\sin B+\sin C}{\sin A}\space\space \qquad (1)$$
and the determinant equal to $p$ above is equal to
$$p=2\cos A\cos B\cos C-2+2\cos^2A+\cos^2B+\cos^2C$$ or $$\\2\cos A\cos B\cos C-\sin^2B-\sin^2C=3p\qquad (2)$$
Noting $C=x$ we have $B=x+\dfrac{\pi}{4}$ and $A=\dfrac{3\pi}{4}-2x$ it follows
$\sin A=\dfrac{\sqrt2}{2}(\sin(2x)+\cos(2x))\Rightarrow \sin^2 A=\dfrac 12(1+\sin 4x)=P$ where $0\lt P=-p$.
Therefore $\sin 4x=2P-1\Rightarrow \boxed{x=\dfrac{\arcsin(2P-1)}{4}}$. This solves already the problem because this is to find a relationship between $ x $ and $ P $ but if you want to use $(2)$ for the purpose of finding a simpler relationship between $x$ and $P$, you have
$$2\cos A\cos B\cos C=(\sin 2x-\cos 2x)(\sin x-\cos x)\cos x=(\cos x-\sin 3x)\cos x\\\sin^2B=\frac 12(1+\sin 2x)$$
from which you get in $(2)$ $$(\cos x-\sin 3x)\cos x-\frac 12(1+\sin 2x)-\sin^2x=-3P\\$$
I stop here. Whatever you can deduce, you will find at the end an expression for the angle x equal to the boxed above. I add an easy exercise to find algebraic expressions for trigonometric functions of the variable $x$. In the attached figure is drawn a right triangle in which a construction of the angle $ 4x $ is presented. By the geometric theorem of the bisector you can find expressions for trigonometric functions of $ x $ and $2x$ as a function of $ P $. The result, if you get it, will be a quite complicated algebraic expression for $ f (x) $.
