---
description: Update Search Result Page Styling
---

# Update Search Result Page Styling

1.  **Analyze `index.php`**: Identify the modern `am-card` product card structure used on the homepage.
2.  **Analyze `search-result.php`**: Understand the existing legacy layout and PHP logic.
3.  **Refactor `search-result.php`**:
    *   Replace the legacy product grid with the `am-card` structure.
    *   Update image paths to `__admin__/productimages/`.
    *   Implement discount calculation logic.
    *   Add responsive grid classes (`col-6 col-md-3`).
    *   Ensure "Add to Cart" and "Wishlist" functionality is preserved or adapted.
4.  **Verify**: Ensure the new page includes the same CSS assets as the homepage for consistent styling.
