.btn-add background: transparent; border: 1.5px solid #cbdde9; border-radius: 60px; padding: 0.6rem 0; font-weight: 600; font-size: 0.85rem; color: #2c4e6e; cursor: pointer; transition: all 0.2s ease; margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px; background: white;
<!-- Product 6 --> <div class="swiper-slide"> <div class="product-card"> <div class="product-img"> <span class="badge new">Limited</span> <img src="https://cdn-icons-png.flaticon.com/512/1223/1223324.png" alt="Smart Speaker" loading="lazy"> </div> <div class="product-info"> <div class="product-category">Smart Home</div> <div class="product-title">EchoDot Sphere</div> <div class="product-desc">Voice assistant, rich sound, multi-room sync</div> <div class="price-row"> <span class="current-price">$79</span> <span class="old-price">$109</span> </div> <button class="btn-add" aria-label="Add to cart">+ Add to Cart</button> </div> </div> </div> Responsive Product Slider Html Css Codepen
/* image wrapper with aspect ratio */ .product-img position: relative; background: #f4f8fe; padding: 1rem; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid #edf2f7; .btn-add background: transparent
.old-price font-size: 0.85rem; color: #98aec5; text-decoration: line-through; border: 1.5px solid #cbdde9
.section-head p color: #5b6f82; font-weight: 500; margin-top: 0.5rem; font-size: 1rem;
.swiper-pagination-bullet background: #bdd4e6; opacity: 0.6; width: 8px; height: 8px;
body background: linear-gradient(145deg, #f6f9fc 0%, #eef2f5 100%); font-family: 'Inter', sans-serif; padding: 2rem 1rem; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh;