Responsive Product Card Html Css Codepen 95%

button:hover { background-color: #3e8e41; }

.product-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px 10px 0 0; } responsive product card html css codepen

.product-info p { font-size: 14px; margin-bottom: 20px; } button:hover { background-color: #3e8e41; }

/* Media Queries */

.product-info h2 { font-size: 18px; margin-bottom: 10px; } button:hover { background-color: #3e8e41

@media (max-width: 480px) { .product-card { flex-direction: column; } .product-image { width: 100%; height: 200px; } .product-info { text-align: center; } }

.product-image { width: 100%; height: 200px; margin-bottom: 20px; }