Add category detail URLs and polish mega menu UX.

Route categories to /products/category/{id}/{slug}, improve menu hover/layout, and hide stock/category clutter on product cards.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-23 00:34:23 +03:30
co-authored by Cursor
parent 5d53cf91eb
commit f078cdad0e
11 changed files with 375 additions and 128 deletions
+5 -3
View File
@@ -149,9 +149,11 @@ export default async function ProductDetailsPage({
)}
</p>
</div>
<p className={`mt-2 text-[13px] ${inStock ? "text-emerald-600" : "text-brand"}`}>
{inStock ? "موجود در فروشگاه" : "ناموجود"}
</p>
{price != null ? (
<p className={`mt-2 text-[13px] ${inStock ? "text-emerald-600" : "text-brand"}`}>
{inStock ? "موجود در فروشگاه" : "ناموجود"}
</p>
) : null}
{variants.length > 1 ? (
<div className="mt-5 flex flex-wrap gap-2">