/* section header */ .section-head text-align: center; margin-bottom: 2rem;
.section-head h2 font-size: 2.2rem; font-weight: 700; background: linear-gradient(135deg, #1A2A3F, #2C4C6E); background-clip: text; -webkit-background-clip: text; color: transparent; letter-spacing: -0.02em; Responsive Product Slider Html Css Codepen
<!-- Swiper --> <div class="swiper product-swiper"> <div class="swiper-wrapper"> <!-- Product 1 --> <div class="swiper-slide"> <div class="product-card"> <div class="product-img"> <span class="badge">−25%</span> <img src="https://cdn-icons-png.flaticon.com/512/4461/4461320.png" alt="Smart Watch" loading="lazy"> </div> <div class="product-info"> <div class="product-category">Wearables</div> <div class="product-title">AeroSmart Edge</div> <div class="product-desc">Fitness tracker, AMOLED display, 10-day battery life</div> <div class="price-row"> <span class="current-price">$149</span> <span class="old-price">$199</span> </div> <button class="btn-add" aria-label="Add to cart">+ Add to Cart</button> </div> </div> </div> /* section header */
/* 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; .section-head h2 font-size: 2.2rem
.product-category font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; color: #5c7f9c; margin-bottom: 0.5rem;
.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;