<div class="product-card">
<div class="product-image">
<img src="https://placehold.co/300x300/e5e7eb/1f2937?text=Shoe" alt="Product">
<button class="quick-view">Quick View</button>
</div>
<div class="product-info">
<h3>Running Sneakers</h3>
<div class="price">$89.00</div>
<button class="add-btn">Add to Cart</button>
</div>
</div>
.product-card {
font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
width: 280px;
background: #fff;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 4px 15px rgba(0,0,0,0.05);
transition: box-shadow 0.3s;
}
.product-card:hover {
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.product-image {
position: relative;
height: 280px;
background: #f3f4f6;
overflow: hidden;
}
.product-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s;
}
.product-card:hover img {
transform: scale(1.05);
}
.quick-view {
position: absolute;
bottom: -50px;
left: 50%;
transform: translateX(-50%);
background: rgba(255, 255, 255, 0.9);
border: none;
padding: 10px 20px;
border-radius: 20px;
font-weight: 600;
cursor: pointer;
transition: bottom 0.3s;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.product-card:hover .quick-view {
bottom: 20px;
}
.product-info {
padding: 20px;
text-align: center;
}
.product-info h3 {
font-size: 1.1rem;
margin: 0 0 10px 0;
color: #1f2937;
}
.price {
font-size: 1.2rem;
font-weight: 700;
color: #111827;
margin-bottom: 15px;
}
.add-btn {
width: 100%;
padding: 12px;
background: #1f2937;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
transition: background 0.2s;
}
.add-btn:hover {
background: #000;
}