Looking to experiment with a new product card layout and encountering an issue with the box shadow effect. When hovering over the product card, the hover function only affects the child elements of the div Product-Card hov instead of the actual div itself. Any suggestions on how to resolve this? Thank you for your assistance.
.Product-Card{
position: relative;
display: flex;
flex-flow: column nowrap;
flex-shrink: 0;
justify-content: space-between;
padding: 8px;
transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.hov{
margin: 0 4px 16px;
border-radius: 4px;
}
.hov :hover{
box-shadow: 0 4px 12px 0 rgb(44 44 45 / 7%), 0 0 20px 0 rgb(44 44 45 / 7%);
}
<div class="Product-Card hov">
<div class="Item-Layout">
<div class="img-box">
<img src="1.jpg">
</div>
<div class="content">
<div class="product-name">
<p> Testing <p>
</div>
<div class="Price">
<p>$10.40<p>
</div>
</div>
</div>
</div>