-
- {product.nameFa || product.name}
-
- {product.nameEn && (
-
- {product.nameEn}
-
- )}
+
+
+
+ {(product.suitableFor === "سگ" || product.suitableFor === "هر دو") && (
+
+
+
+ )}
+ {(product.suitableFor === "گربه" || product.suitableFor === "هر دو") && (
+
+
+
+ )}
+
-
- {product.symptoms.slice(0, 2).map((s, i) => (
-
- {s}
-
- ))}
-
+
+
{product.category}
+
+
+ {product.nameFa || product.name}
+
+ {product.nameEn && (
+
+ {product.nameEn}
+
+ )}
+
-
-
{product.price}
-
+
+ {product.symptoms.slice(0, 2).map((s, i) => (
+
+ {s}
+
+ ))}
+
+
+
+
{product.price}
+
+
-
+
);
-}
+};
import { useRouter } from 'next/navigation';
@@ -491,7 +498,7 @@ export default function ArchivePage({
{filteredProducts.map((p: Product) => (
- router.push(`/shop/${p.slug || p.id}`)} />
+
))}
diff --git a/frontend/application/components/IngredientWiki.tsx b/frontend/application/components/IngredientWiki.tsx
index 3c9862cc..2da18912 100644
--- a/frontend/application/components/IngredientWiki.tsx
+++ b/frontend/application/components/IngredientWiki.tsx
@@ -6,6 +6,7 @@ import { FlaskConical, CheckCircle2, ChevronRight, ChevronLeft, Beaker, Search }
import { useSettingsStore } from "../lib/store/settingsStore";
import { productService } from "../lib/services/productService";
+import Link from "next/link";
import { SCIENTIFIC_TERMS } from "../lib/data/scientificTerms";
import { useRouter, useSearchParams } from 'next/navigation';
@@ -236,14 +237,14 @@ export default function IngredientWiki() {
{hasIngredient.length > 0 ? hasIngredient.map(p => (
-
router.push(`/shop/${p.slug || p.id}`)}
- className="bg-white rounded-[2.5rem] p-6 shadow-xl hover:scale-105 transition-transform cursor-pointer group"
+ href={`/shop/${p.slug || p.id}`}
+ className="bg-white rounded-[2.5rem] p-6 shadow-xl hover:scale-105 transition-transform cursor-pointer group block"
>
{p.name}
-
+
)) : (
محصولی با این ماده مؤثره یافت نشد.
diff --git a/frontend/application/components/SearchResultsPage.tsx b/frontend/application/components/SearchResultsPage.tsx
index 96d20cf7..8a975263 100644
--- a/frontend/application/components/SearchResultsPage.tsx
+++ b/frontend/application/components/SearchResultsPage.tsx
@@ -6,6 +6,7 @@ import { motion } from "motion/react";
import { Product } from "../lib/data/products";
import { productService } from "../lib/services/productService";
+import Link from "next/link";
import { useRouter } from 'next/navigation';
export default function SearchResultsPage({ query }: { query: string }) {
@@ -64,46 +65,50 @@ export default function SearchResultsPage({ query }: { query: string }) {
router.push(`/shop/${product.slug || product.id}`)}
- className="bg-white rounded-[2.5rem] p-8 border border-medical-gray-200 group cursor-pointer hover:shadow-2xl hover:shadow-canina-blue/10 transition-all flex flex-col relative"
+ className="h-full"
>
-
-

- {product.specialBadge && (
-
- {product.specialBadge}
-
- )}
- {compatibility && (
-
- {compatibility.type === 'alert' ?
: compatibility.type === 'success' ?
:
}
- {compatibility.text}
-
- )}
-
-
-
-
{product.category}
-
{product.nameFa || product.name}
-
{product.benefits}
-
-
-
-
-
{product.price}
+
+
+

+ {product.specialBadge && (
+
+ {product.specialBadge}
+
+ )}
+ {compatibility && (
+
+ {compatibility.type === 'alert' ?
: compatibility.type === 'success' ?
:
}
+ {compatibility.text}
+
+ )}
-
-
+
+
+
{product.category}
+
{product.nameFa || product.name}
+
{product.benefits}
+
+
+
+
+ {product.price}
+
+
+
+
+
+
)
})}
@@ -124,12 +129,12 @@ export default function SearchResultsPage({ query }: { query: string }) {
محصولات پیشنهادی (پرفروش)
{bestSellers.map(p => (
-
router.push(`/shop/${p.id}`)} className="cursor-pointer group">
+
{p.name}
-
+
))}