It sounds like all that is left is to add in the link to the details page. Normally on the details page you would show details for a particular item based on the id. How do your images or the button for them relate to your products?
You just need to be able to add in the product id to the link that goes to the detail page, then the detail page will pull that items info to display.