# Adding shadow to product cards

You can make the product cards more fancy by adding some shadow to it so that it highlights and looks funky.

```css
.card {
  border-radius: 10px;
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.5);
  padding: 20px;
  background-color: #F7F7F7;
  transition: all 0.3s ease-in-out;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.3);
  background-color: #FFC107;
}
```

The above CSS makes the card with rounded edges, a shadow effect, and a light grey background. When you hover over the card, it will move up slightly, the shadow effect will get stronger, and the background color will change to a yellowish color.

Add this CSS to the layout.css file and deploy the changes.

This is how the card looked previously

<figure><img src="/files/fF3WtEqeiodzTa62vXdQ" alt=""><figcaption></figcaption></figure>

This is how it looks after adding the CSS, where the middle card is hovered upon.

<figure><img src="/files/b1vXLyCAX7igMeGfnsOs" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mydukaan.io/code-snippets/adding-shadow-to-product-cards.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
