It looks like the detail page isn't using framework builder and the theme.
The issue is that the link paths are relative to the templates folder but in the root, which throws them off. If you want to put the code directly into the details page every reference to:
href="../Prod_detail.php
needs to be:
href="Prod_detail.php