Stylish Product Listings - MeggiTools
Run
Toggle Theme
Share Link
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Stylish Product Listings</title> <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" integrity="sha512-Fo3rlrQdErkf8TZ4lT2M2IQ6uG4cywZqzVZoua3b2d6Q2s3oN1y2Z1k8dCtmwixWyOoJLvX02fT9/Tm2T5y/sA==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <style> * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; } body { background: #f5f5f5; display: flex; justify-content: center; align-items: center; height: 100vh; flex-direction: column; } .product-listing { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; padding: 20px; } .product-card { background: #fff; border-radius: 15px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); overflow: hidden; transition: transform 0.3s ease-in-out; width: 300px; text-align: center; position: relative; } .product-card:hover { transform: translateY(-10px); } .product-card img { width: 100%; height: 200px; object-fit: cover; border-bottom: 1px solid #f0f0f0; } .product-details { padding: 20px; } .product-title { font-size: 1.5em; color: #333; margin-bottom: 10px; position: relative; } .product-description { font-size: 1em; color: #666; margin-bottom: 20px; } .product-price { font-size: 1.2em; color: #e74c3c; margin-bottom: 20px; } .buy-now { background: #e74c3c; color: #fff; padding: 10px 20px; border-radius: 25px; text-transform: uppercase; text-decoration: none; transition: background 0.3s ease-in-out; } .buy-now:hover { background: #c0392b; } .product-card .fa-heart { position: absolute; top: 20px; right: 20px; font-size: 1.5em; color: #e74c3c; cursor: pointer; transition: color 0.3s ease-in-out; } .product-card .fa-heart:hover { color: #c0392b; } /* Additional unique designs */ .product-card2 { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); } .product-card2 .product-details { color: #fff; } .product-card3 { background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%); } .product-card3 .product-details { color: #fff; } .product-card4 { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); } .product-card4 .product-details { color: #fff; } .product-card5 { background: linear-gradient(135deg, #fccb90 0%, #d57eeb 100%); } .product-card5 .product-details { color: #fff; } .product-card6 { background: linear-gradient(135deg, #fddb92 0%, #d1fdff 100%); } .product-card6 .product-details { color: #333; } .product-card7 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); } .product-card7 .product-details { color: #fff; } .product-card8 { background: linear-gradient(135deg, #fad0c4 0%, #ffd1ff 100%); } .product-card8 .product-details { color: #333; } .product-card9 { background: linear-gradient(135deg, #fcb69f 0%, #ffebb4 100%); } .product-card9 .product-details { color: #333; } .product-card10 { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); } .product-card10 .product-details { color: #333; } </style> </head> <body> <div class="product-listing"> <!-- Original Product Card --> <div class="product-card"> <i class="fa fa-heart"></i> <img src="https://via.placeholder.com/300x200" alt="Product Image"> <div class="product-details"> <h2 class="product-title">Product 1</h2> <p class="product-description">This is a brief description of the product.</p> <p class="product-price">$29.99</p> <a href="#" class="buy-now">Buy Now</a> </div> </div> <!-- Product Card 2 --> <div class="product-card product-card2"> <i class="fa fa-heart"></i> <img src="https://via.placeholder.com/300x200" alt="Product Image"> <div class="product-details"> <h2 class="product-title">Product 2</h2> <p class="product-description">This is a brief description of the product.</p> <p class="product-price">$39.99</p> <a href="#" class="buy-now">Buy Now</a> </div> </div> <!-- Product Card 3 --> <div class="product-card product-card3"> <i class="fa fa-heart"></i> <img src="https://via.placeholder.com/300x200" alt="Product Image"> <div class="product-details"> <h2 class="product-title">Product 3</h2> <p class="product-description">This is a brief description of the product.</p> <p class="product-price">$49.99</p> <a href="#" class="buy-now">Buy Now</a> </div> </div> <!-- Product Card 4 --> <div class="product-card product-card4"> <i class="fa fa-heart"></i> <img src="https://via.placeholder.com/300x200" alt="Product Image"> <div class="product-details"> <h2 class="product-title">Product 4</h2> <p class="product-description">This is a brief description of the product.</p> <p class="product-price">$59.99</p> <a href="#" class="buy-now">Buy Now</a> </div> </div> <!-- Product Card 5 --> <div class="product-card product-card5"> <i class="fa fa-heart"></i> <img src="https://via.placeholder.com/300x200" alt="Product Image"> <div class="product-details"> <h2 class="product-title">Product 5</h2> <p class="product-description">This is a brief description of the product.</p> <p class="product-price">$69.99</p> <a href="#" class="buy-now">Buy Now</a> </div> </div> <!-- Product Card 6 --> <div class="product-card product-card6"> <i class="fa fa-heart"></i> <img src="https://via.placeholder.com/300x200" alt="Product Image"> <div class="product-details"> <h2 class="product-title">Product 6</h2> <p class="product-description">This is a brief description of the product.</p> <p class="product-price">$79.99</p> <a href="#" class="buy-now">Buy Now</a> </div> </div> <!-- Product Card 7 --> <div class="product-card product-card7"> <i class="fa fa-heart"></i> <img src="https://via.placeholder.com/300x200" alt="Product Image"> <div class="product-details"> <h2 class="product-title">Product 7</h2> <p class="product-description">This is a brief description of the product.</p> <p class="product-price">$89.99</p> <a href="#" class="buy-now">Buy Now</a> </div> </div> <!-- Product Card 8 --> <div class="product-card product-card8"> <i class="fa fa-heart"></i> <img src="https://via.placeholder.com/300x200" alt="Product Image"> <div class="product-details"> <h2 class="product-title">Product 8</h2> <p class="product-description">This is a brief description of the product.</p> <p class="product-price">$99.99</p> <a href="#" class="buy-now">Buy Now</a> </div> </div> <!-- Product Card 9 --> <div class="product-card product-card9"> <i class="fa fa-heart"></i> <img src="https://via.placeholder.com/300x200" alt="Product Image"> <div class="product-details"> <h2 class="product-title">Product 9</h2> <p class="product-description">This is a brief description of the product.</p> <p class="product-price">$109.99</p> <a href="#" class="buy-now">Buy Now</a> </div> </div> <!-- Product Card 10 --> <div class="product-card product-card10"> <i class="fa fa-heart"></i> <img src="https://via.placeholder.com/300x200" alt="Product Image"> <div class="product-details"> <h2 class="product-title">Product 10</h2> <p class="product-description">This is a brief description of the product.</p> <p class="product-price">$119.99</p> <a href="#" class="buy-now">Buy Now</a> </div> </div> </div> </body> </html>