/* ============================================== Product Page Enhancements - UX Improvements Modern, Interactive, Conversion-Optimized ============================================== */ /* ========================================== 1. Image Gallery - Interactive & Zoom ========================================== */ .product-image-gallery { position: sticky; top: 100px; } .main-image-container { position: relative; border-radius: 20px; overflow: hidden; background: #f5f5f5; margin-bottom: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.12); cursor: zoom-in; } .main-image-container img { width: 100%; height: auto; display: block; transition: transform 0.3s ease; } .main-image-container:hover img { transform: scale(1.05); } /* Zoom Icon */ .zoom-icon { position: absolute; bottom: 20px; right: 20px; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: all 0.3s; pointer-events: none; } .main-image-container:hover .zoom-icon { transform: scale(1.1); background: rgba(229, 115, 147, 0.95); color: white; } /* Thumbnail Gallery */ .thumbnail-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 12px; } .thumbnail-item { position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; border: 3px solid transparent; transition: all 0.3s; aspect-ratio: 1; } .thumbnail-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; } .thumbnail-item:hover { border-color: #E57393; transform: translateY(-2px); } .thumbnail-item:hover img { transform: scale(1.1); } .thumbnail-item.active { border-color: #E57393; box-shadow: 0 4px 12px rgba(229, 115, 147, 0.3); } /* ========================================== 2. Quantity Selector ========================================== */ .quantity-selector { display: flex; align-items: center; gap: 16px; padding: 20px; background: #F9FAFB; border-radius: 16px; margin-bottom: 24px; } .quantity-label { font-weight: 600; color: #374151; font-size: 16px; } .quantity-controls { display: flex; align-items: center; gap: 12px; } .qty-btn { width: 44px; height: 44px; border: 2px solid #E5E7EB; background: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; font-size: 20px; font-weight: 600; color: #374151; } .qty-btn:hover { border-color: #E57393; background: #FFF5F7; color: #E57393; transform: scale(1.05); } .qty-btn:active { transform: scale(0.95); } .qty-btn:disabled { opacity: 0.4; cursor: not-allowed; } .qty-input { width: 70px; height: 44px; text-align: center; border: 2px solid #E5E7EB; border-radius: 12px; font-size: 18px; font-weight: 600; color: #111; background: white; } .qty-input:focus { outline: none; border-color: #E57393; } .stock-info { font-size: 14px; color: #6B7280; margin-right: auto; } /* ========================================== 3. Stock Indicator ========================================== */ .stock-indicator { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 50px; font-weight: 600; font-size: 14px; margin-bottom: 20px; } .stock-indicator.in-stock { background: #D1FAE5; color: #065F46; } .stock-indicator.low-stock { background: #FEF3C7; color: #92400E; } .stock-indicator.last-item { background: #FEE2E2; color: #991B1B; animation: pulse 2s infinite; } .stock-indicator.out-of-stock { background: #F3F4F6; color: #6B7280; } .stock-dot { width: 10px; height: 10px; border-radius: 50%; } .stock-indicator.in-stock .stock-dot { background: #10B981; } .stock-indicator.low-stock .stock-dot { background: #F59E0B; } .stock-indicator.last-item .stock-dot { background: #EF4444; } .stock-indicator.out-of-stock .stock-dot { background: #9CA3AF; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } } /* ========================================== 4. Shipping Info Box ========================================== */ .shipping-info-box { background: linear-gradient(135deg, #F0FDF4 0%, #DBEAFE 100%); border-radius: 16px; padding: 24px; margin-bottom: 24px; border: 2px solid #E5E7EB; } .shipping-info-title { font-size: 18px; font-weight: 700; color: #111827; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; } .shipping-info-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.05); } .shipping-info-item:last-child { border-bottom: none; } .shipping-icon { width: 40px; height: 40px; background: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; } .shipping-text { flex: 1; font-size: 14px; color: #374151; line-height: 1.5; } /* ========================================== 5. Share Buttons ========================================== */ .share-section { padding: 20px; background: #F9FAFB; border-radius: 16px; margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; } .share-title { font-size: 14px; font-weight: 600; color: #6B7280; white-space: nowrap; margin: 0; } .share-buttons-icons { display: flex; gap: 12px; align-items: center; } .share-icon-btn { width: 48px; height: 48px; border-radius: 50%; border: none; background: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); font-size: 20px; } .share-icon-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); } .share-icon-btn:active { transform: translateY(-1px) scale(0.98); } .share-icon-btn.whatsapp { background: #25D366; color: white; } .share-icon-btn.whatsapp:hover { background: #20BA5A; box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4); } .share-icon-btn.facebook { background: #1877F2; color: white; } .share-icon-btn.facebook:hover { background: #0C63D4; box-shadow: 0 6px 16px rgba(24, 119, 242, 0.4); } .share-icon-btn.twitter { background: #1DA1F2; color: white; } .share-icon-btn.twitter:hover { background: #0C8BD9; box-shadow: 0 6px 16px rgba(29, 161, 242, 0.4); } .share-icon-btn.copy { background: #6B7280; color: white; } .share-icon-btn.copy:hover { background: #4B5563; box-shadow: 0 6px 16px rgba(107, 114, 128, 0.4); } /* Responsive for share buttons */ @media (max-width: 768px) { .share-icon-btn { width: 44px; height: 44px; font-size: 18px; } .share-buttons-icons { gap: 10px; } .share-section { gap: 16px; } .share-title { font-size: 13px; } } @media (max-width: 480px) { .share-icon-btn { width: 40px; height: 40px; font-size: 16px; } .share-buttons-icons { gap: 8px; } .share-section { padding: 16px; gap: 12px; flex-wrap: wrap; justify-content: center; } .share-title { font-size: 12px; width: 100%; text-align: center; } } /* ========================================== 6. Breadcrumb Navigation ========================================== */ .breadcrumb { display: flex; align-items: center; gap: 8px; padding: 12px 0; margin-bottom: 24px; font-size: 14px; flex-wrap: wrap; } .breadcrumb-item { color: #6B7280; text-decoration: none; transition: color 0.3s; } .breadcrumb-item:hover { color: #E57393; } .breadcrumb-item.active { color: #111827; font-weight: 600; } .breadcrumb-separator { color: #D1D5DB; } /* ========================================== 7. Sticky Add to Cart Bar (Mobile) ========================================== */ .sticky-cart-bar { position: fixed; bottom: 0; left: 0; right: 0; background: white; padding: 16px 20px; box-shadow: 0 -4px 20px rgba(0,0,0,0.1); z-index: 999; display: none; align-items: center; gap: 16px; transform: translateY(100%); transition: transform 0.3s ease; } .sticky-cart-bar.visible { transform: translateY(0); } .sticky-price { font-size: 24px; font-weight: 700; color: #E57393; } .sticky-add-btn { flex: 1; padding: 16px 24px; background: linear-gradient(135deg, #E57393 0%, #D1537A 100%); color: white; border: none; border-radius: 50px; font-size: 16px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 12px rgba(229, 115, 147, 0.3); } /* ========================================== 8. Reviews Section (Placeholder) ========================================== */ .reviews-section { background: white; border-radius: 16px; padding: 32px; margin-bottom: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); } .reviews-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; } .reviews-summary { display: flex; align-items: center; gap: 16px; } .rating-number { font-size: 48px; font-weight: 700; color: #111827; } .rating-stars { color: #F59E0B; font-size: 24px; } .rating-count { color: #6B7280; font-size: 14px; } .write-review-btn { padding: 12px 24px; background: white; border: 2px solid #E57393; color: #E57393; border-radius: 50px; font-weight: 600; cursor: pointer; transition: all 0.3s; } .write-review-btn:hover { background: #E57393; color: white; } /* ========================================== 9. Responsive Design ========================================== */ @media (max-width: 768px) { .product-image-gallery { position: static; } .thumbnail-gallery { grid-template-columns: repeat(4, 1fr); } .quantity-selector { flex-direction: column; align-items: stretch; } .quantity-controls { justify-content: center; } .stock-info { text-align: center; margin: 0; } .share-buttons { flex-direction: column; } .share-btn { min-width: auto; } .sticky-cart-bar { display: flex; } .shipping-info-box { padding: 16px; } } /* ========================================== 10. Lightbox for Image Zoom ========================================== */ .lightbox { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.95); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; } .lightbox.active { display: flex; } .lightbox-content { max-width: 90%; max-height: 90%; position: relative; } .lightbox-image { max-width: 100%; max-height: 90vh; border-radius: 8px; } .lightbox-close { position: absolute; top: -40px; right: 0; width: 40px; height: 40px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 24px; color: #111; } .lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 24px; color: #111; } .lightbox-prev { left: 20px; } .lightbox-next { right: 20px; } /* ========================================== 11. Reviews Section - Full Implementation ========================================== */ .reviews-section { background: white; border-radius: 16px; padding: 32px; margin-bottom: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); } .reviews-summary-box { display: flex; align-items: center; justify-content: space-between; padding: 24px; background: linear-gradient(135deg, #FFF7ED 0%, #FEF3C7 100%); border-radius: 16px; margin-bottom: 32px; } .rating-overview { display: flex; align-items: center; gap: 20px; } .rating-number { font-size: 56px; font-weight: 700; color: #111827; line-height: 1; } .rating-stars { font-size: 24px; margin-bottom: 4px; } .rating-count { color: #6B7280; font-size: 14px; font-weight: 500; } .write-review-btn { padding: 14px 28px; background: white; border: 2px solid #E57393; color: #E57393; border-radius: 50px; font-weight: 600; font-size: 16px; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; gap: 8px; } .write-review-btn:hover { background: #E57393; color: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(229, 115, 147, 0.3); } /* Reviews List */ .reviews-list { display: flex; flex-direction: column; gap: 20px; } .review-item { padding: 24px; background: #F9FAFB; border-radius: 16px; border: 1px solid #E5E7EB; transition: all 0.3s; } .review-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: #E57393; } .review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; } .reviewer-info { display: flex; align-items: center; gap: 12px; } .reviewer-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #E57393 0%, #D1537A 100%); color: white; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; } .reviewer-name { font-weight: 600; color: #111827; font-size: 16px; } .review-date { font-size: 13px; color: #9CA3AF; } .review-rating { font-size: 18px; } .review-content { color: #374151; line-height: 1.7; font-size: 15px; } /* No Reviews State */ .no-reviews { text-align: center; padding: 60px 20px; color: #6B7280; } /* Review Form Modal */ .review-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); } .review-modal-content { background: white; border-radius: 20px; padding: 32px; max-width: 500px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.3); animation: modalSlideIn 0.3s ease-out; } @keyframes modalSlideIn { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } } .review-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; } .review-modal-header h3 { font-size: 24px; font-weight: 700; color: #111827; } .review-modal-close { width: 36px; height: 36px; border: none; background: #F3F4F6; border-radius: 50%; font-size: 24px; color: #6B7280; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; } .review-modal-close:hover { background: #E5E7EB; color: #111827; } /* Star Rating Input */ .star-rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 8px; font-size: 32px; } .star-rating-input input { display: none; } .star-rating-input label { cursor: pointer; color: #E5E7EB; transition: all 0.2s; } .star-rating-input label:hover, .star-rating-input label:hover ~ label { color: #FCD34D; transform: scale(1.1); } .star-rating-input input:checked ~ label { color: #F59E0B; transform: scale(1.1); } /* Form Groups */ .form-group { margin-bottom: 24px; } .form-group label { display: block; font-weight: 600; color: #374151; margin-bottom: 8px; font-size: 15px; } .form-group textarea { width: 100%; padding: 14px; border: 2px solid #E5E7EB; border-radius: 12px; font-family: 'Tajawal', sans-serif; font-size: 15px; color: #111827; resize: vertical; transition: all 0.3s; } .form-group textarea:focus { outline: none; border-color: #E57393; box-shadow: 0 0 0 3px rgba(229, 115, 147, 0.1); } .submit-review-btn { width: 100%; padding: 16px; background: linear-gradient(135deg, #E57393 0%, #D1537A 100%); color: white; border: none; border-radius: 50px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 12px rgba(229, 115, 147, 0.3); } .submit-review-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(229, 115, 147, 0.4); } .submit-review-btn:active { transform: translateY(0); } /* ========================================== 12. Responsive Updates for Reviews ========================================== */ @media (max-width: 768px) { .reviews-summary-box { flex-direction: column; gap: 20px; text-align: center; } .rating-overview { flex-direction: column; gap: 12px; } .review-modal-content { padding: 24px; } .reviewer-avatar { width: 40px; height: 40px; font-size: 18px; } .star-rating-input { font-size: 28px; justify-content: center; } } /* ========================================== 13. Enhanced Modern Styles ========================================== */ /* Glassmorphism Modal */ .review-modal { background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(10px); animation: fadeIn 0.3s ease; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .review-modal-content { background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.3); } /* Gradient Button with Animation */ .submit-review-btn { background: linear-gradient(45deg, #E57393, #D1537A, #E57393); background-size: 200% 200%; position: relative; overflow: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .submit-review-btn:hover { background-position: right center; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(229, 115, 147, 0.5); } /* Ripple Effect */ .submit-review-btn::after { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.5); transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s; } .submit-review-btn:active::after { width: 300px; height: 300px; } /* Enhanced Star Rating */ .star-rating-input input:checked ~ label { color: #F59E0B; filter: drop-shadow(0 0 8px #F59E0B); animation: starPulse 0.3s ease; } @keyframes starPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } } .star-rating-input label:hover { transform: scale(1.15) rotate(-5deg); } /* Enhanced Toast */ .toast-notification { background: linear-gradient(135deg, #E57393 0%, #D1537A 100%); box-shadow: 0 8px 32px rgba(229, 115, 147, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1); animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1); } @keyframes slideInRight { from { transform: translateX(400px); opacity: 0; } to { transform: translateX(0); opacity: 1; } } /* Enhanced Review Items */ .review-item { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .review-item:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 12px 28px rgba(0,0,0,0.15); border-color: #E57393; } /* Enhanced Avatar */ .reviewer-avatar { background: linear-gradient(135deg, #E57393, #D1537A, #C14368); box-shadow: 0 4px 12px rgba(229, 115, 147, 0.4); transition: all 0.3s; } .review-item:hover .reviewer-avatar { transform: scale(1.1) rotate(5deg); box-shadow: 0 6px 16px rgba(229, 115, 147, 0.5); } /* Enhanced Textarea Focus */ .form-group textarea { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .form-group textarea:focus { border-color: #E57393; box-shadow: 0 0 0 4px rgba(229, 115, 147, 0.1), 0 8px 16px rgba(229, 115, 147, 0.15); transform: scale(1.01); } /* Loading Spinner */ .fa-spinner { animation: spin 1s linear infinite; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } /* Enhanced Write Review Button */ .write-review-btn { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; } .write-review-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); transition: left 0.5s; } .write-review-btn:hover::before { left: 100%; } /* Enhanced Modal Close Button */ .review-modal-close { transition: all 0.3s; } .review-modal-close:hover { background: #E57393; color: white; transform: rotate(90deg) scale(1.1); } /* Enhanced Rating Stars Display */ .rating-stars { transition: all 0.3s; } .reviews-summary-box:hover .rating-stars { transform: scale(1.1); filter: drop-shadow(0 0 8px #F59E0B); } /* Enhanced No Reviews State */ .no-reviews { transition: all 0.3s; } .no-reviews:hover { transform: scale(1.02); } .no-reviews .fa-star { animation: float 3s ease-in-out infinite; } @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } } /* Enhanced Shipping Info */ .shipping-info-item { transition: all 0.3s; } .shipping-info-item:hover { transform: translateX(-5px); background: rgba(255, 255, 255, 0.5); border-radius: 8px; padding-right: 12px; } .shipping-icon { transition: all 0.3s; } .shipping-info-item:hover .shipping-icon { transform: scale(1.2) rotate(10deg); } /* Enhanced Share Buttons */ .share-btn { position: relative; overflow: hidden; } .share-btn::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.3); transform: translate(-50%, -50%); transition: width 0.4s, height 0.4s; } .share-btn:hover::before { width: 200px; height: 200px; } /* Enhanced Quantity Selector */ .qty-btn { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .qty-btn:hover { transform: scale(1.1); } .qty-btn:active { transform: scale(0.9); } /* Enhanced Stock Indicator */ .stock-indicator { transition: all 0.3s; } .stock-indicator:hover { transform: scale(1.05); } .stock-indicator.last-item { animation: pulse 2s infinite, shake 0.5s ease-in-out; } @keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } } /* Enhanced Breadcrumb */ .breadcrumb-item { transition: all 0.3s; position: relative; } .breadcrumb-item::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: #E57393; transition: width 0.3s; } .breadcrumb-item:hover::after { width: 100%; } /* Enhanced Image Gallery */ .thumbnail-item { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .thumbnail-item:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 8px 16px rgba(0,0,0,0.2); } .thumbnail-item.active { animation: borderPulse 2s infinite; } @keyframes borderPulse { 0%, 100% { border-color: #E57393; } 50% { border-color: #D1537A; } } /* Smooth Scrolling */ html { scroll-behavior: smooth; } /* Enhanced Form Groups */ .form-group { position: relative; } .form-group label { transition: all 0.3s; } .form-group textarea:focus + label, .form-group input:focus + label { color: #E57393; transform: translateY(-2px); } /* Micro-interactions */ button, a, input, textarea, select { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } /* Enhanced Related Products */ .related-card { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); } .related-card:hover { transform: translateY(-12px) scale(1.02); box-shadow: 0 16px 32px rgba(0,0,0,0.15); } .related-card:hover .related-image { transform: scale(1.1); } .related-image { transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); } /* ========================================== 14. Discount Price Styling ========================================== */ .product-price-container { margin-bottom: 24px; } .price-with-discount { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .original-price { font-size: 20px; color: #6B7280; text-decoration: line-through; font-weight: 400; } .discount-price { font-size: 32px; font-weight: 700; color: #DC2626; } .discount-badge { display: inline-block; background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%); color: white; padding: 6px 12px; border-radius: 6px; font-size: 16px; font-weight: 700; box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3); animation: badgePulse 2s infinite; } @keyframes badgePulse { 0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3); } 50% { transform: scale(1.05); box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5); } } /* Savings Text */ .savings-text { font-size: 14px; color: #059669; font-weight: 600; background: #D1FAE5; padding: 4px 12px; border-radius: 4px; display: inline-block; } /* Related Products with Discount */ .related-price-container { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .related-original-price { font-size: 14px; color: #9CA3AF; text-decoration: line-through; } .related-discount-price { font-size: 18px; font-weight: 700; color: #DC2626; } .related-discount-badge { background: #DC2626; color: white; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; } /* Product Card Discount Badge */ .product-card-badge { position: absolute; top: 12px; right: 12px; background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%); color: white; padding: 6px 12px; border-radius: 6px; font-size: 14px; font-weight: 700; box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4); z-index: 10; } /* Mobile Responsive */ @media (max-width: 768px) { .price-with-discount { flex-direction: column; align-items: flex-start; gap: 8px; } .discount-price { font-size: 28px; } .original-price { font-size: 18px; } .discount-badge { font-size: 14px; padding: 4px 10px; } }