You have gone to a huge amount of work to get a layout that you could have done by only styling the stock template files, and a bit of work in tpl_header.php. Meanwhile, if you have changed the coding that calls in the appropriate listing files, you have broken the stock functionality which takes care of product/category listing situations.
Until you understand the stock functionality thoroughly, you should try minimal tweaks to stock files rather than wholesale substitutions. Studying current best practice in CSS styling would benefit you, and enable you to avoid antiquated table-style (even without tables) page structures.



