> For the complete documentation index, see [llms.txt](https://docs.mydukaan.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mydukaan.io/code-snippets/adding-shadow-to-product-cards.md).

# 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="https://869317877-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEpxvKr8371wMxhqFS6hu%2Fuploads%2Fy81fGdS66muDHh59t1P7%2FScreenshot%202023-04-03%20at%2019.49.29.png?alt=media&amp;token=3ba87774-397e-440a-9a2d-fa931baf87ec" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://869317877-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEpxvKr8371wMxhqFS6hu%2Fuploads%2Fs1SW5cCqlTvVgv1qRISl%2FScreenshot%202023-04-03%20at%2019.49.58.png?alt=media&amp;token=25dc2454-18a9-49d7-9741-b3461ad55eec" alt=""><figcaption></figcaption></figure>
