<div style="width: 100%;"> <div class="cards-grid"> <!-- Product Card 1 - Classic Sneaker --> <div class="product-card"> <div class="card-media"> <span class="badge hot">🔥 Hot deal</span> <img class="product-img" src="https://images.unsplash.com/photo-1549298916-b41d501d3772?w=500&auto=format" alt="Minimalist sneakers" loading="lazy"> </div> <div class="card-content"> <div class="product-category">Footwear</div> <h3 class="product-title">Urban Court Sneakers</h3> <p class="product-description">Breathable mesh, lightweight cushioning. Perfect for daily wear and urban exploration.</p> <div class="rating"> <div class="stars"> <span class="star-filled">★</span><span class="star-filled">★</span><span class="star-filled">★</span><span class="star-filled">★</span><span class="star-empty">★</span> </div> <span class="review-count">(124 reviews)</span> </div> <div class="price-row"> <span class="current-price">$79.00</span> <span class="old-price">$129.00</span> <span class="discount-badge-text">-38%</span> </div> <button class="btn-add" aria-label="Add to cart">➕ Add to cart</button> </div> </div>
/* CTA button - fully responsive touch friendly */ .btn-add background: #101d2f; color: white; border: none; border-radius: 60px; padding: 0.8rem 0; font-weight: 600; font-size: 0.9rem; font-family: 'Inter', sans-serif; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: auto; width: 100%;
.discount-badge-text background: #fee2e2; color: #c2412c; font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 30px; responsive product card html css codepen
.product-title font-size: 1.35rem; font-weight: 700; line-height: 1.3; color: #101d2f; margin-bottom: 0.5rem; transition: color 0.2s;
body background: linear-gradient(145deg, #e9f0fc 0%, #d9e4f0 100%); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1.5rem; div style="width: 100%
.product-category font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; color: #5b6e8c; margin-bottom: 0.6rem;
.old-price font-size: 0.9rem; font-weight: 500; color: #9aaec9; text-decoration: line-through; span class="badge hot">
<!-- Product Card 2 - Modern Backpack (new arrival) --> <div class="product-card"> <div class="card-media"> <span class="badge new">✨ New</span> <img class="product-img" src="https://images.unsplash.com/photo-1553062407-98eeb64c6a62?w=500&auto=format" alt="Modern travel backpack" loading="lazy"> </div> <div class="card-content"> <div class="product-category">Accessories</div> <h3 class="product-title">Apex Backpack 22L</h3> <p class="product-description">Water-resistant, padded laptop sleeve, ergonomic straps. Built for city commuters & weekend trips.</p> <div class="rating"> <div class="stars"> <span class="star-filled">★</span><span class="star-filled">★</span><span class="star-filled">★</span><span class="star-filled">★</span><span class="star-filled">★</span> </div> <span class="review-count">(89 reviews)</span> </div> <div class="price-row"> <span class="current-price">$99.50</span> <span class="old-price">$149.00</span> <span class="discount-badge-text">-33%</span> </div> <button class="btn-add" aria-label="Add to cart">🛒 Add to cart</button> </div> </div>
.current-price font-size: 1.7rem; font-weight: 800; color: #101d2f; letter-spacing: -0.5px;
.product-card:hover transform: translateY(-6px); box-shadow: 0 28px 40px -16px rgba(0, 0, 0, 0.2);
/* rating stars (inline flex) */ .rating display: flex; align-items: center; gap: 0.4rem; margin-bottom: 1rem; flex-wrap: wrap;