Responsive Product Card Slider Codepen Today

.header h2 font-size: 2rem; font-weight: 600; color: #1e293b;

.product-card img width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; margin-bottom: 1rem; responsive product card slider codepen

.view-all text-decoration: none; color: #3b82f6; font-weight: 500; transition: 0.2s; .header h2 font-size: 2rem

<!-- Swiper JS --> <script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js"></script> </body> </html> * margin: 0; padding: 0; box-sizing: border-box; .product-card img width: 100%

.badge position: absolute; top: 20px; left: 20px; background: #ef4444; color: white; padding: 4px 12px; border-radius: 30px; font-size: 0.75rem; font-weight: bold; z-index: 2;

.badge.sale background: #f59e0b;

Leave a Reply

Your email address will not be published. Required fields are marked *