/** * Product Page Elegant Design * تصميم أنيق لصفحة المنتج مع أزرار حديثة */ /* ============================================ Action Buttons Container - حاوية الأزرار ============================================ */ .elegant-actions-container { display: flex; gap: 12px; align-items: stretch; margin: 24px 0; } /* ============================================ Elegant Buttons - الأزرار الأنيقة ============================================ */ .elegant-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 28px; border: none; border-radius: 50px; font-size: 16px; font-weight: 600; cursor: pointer; overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); flex: 1; } .elegant-btn:active { transform: scale(0.96); } .elegant-btn .btn-icon { display: flex; align-items: center; justify-content: center; transition: transform 0.3s; } .elegant-btn:hover .btn-icon { transform: scale(1.1) rotate(5deg); } .elegant-btn .btn-text { position: relative; z-index: 2; } /* Shimmer Effect */ .elegant-btn .btn-shimmer { 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; } .elegant-btn:hover .btn-shimmer { left: 100%; } /* ============================================ Primary Button - زر أضف للسلة ============================================ */ .elegant-btn-primary { background: linear-gradient(135deg, #E57393 0%, #D1537A 100%); color: white; } .elegant-btn-primary:hover { background: linear-gradient(135deg, #D1537A 0%, #C04368 100%); box-shadow: 0 8px 25px rgba(229, 115, 147, 0.4); transform: translateY(-2px); } .elegant-btn-primary:active { transform: translateY(0) scale(0.96); } /* ============================================ Secondary Button - زر اشتري الآن ============================================ */ .elegant-btn-secondary { background: linear-gradient(135deg, #111111 0%, #374151 100%); color: white; } .elegant-btn-secondary:hover { background: linear-gradient(135deg, #000000 0%, #1F2937 100%); box-shadow: 0 8px 25px rgba(17, 17, 17, 0.4); transform: translateY(-2px); } .elegant-btn-secondary:active { transform: translateY(0) scale(0.96); } /* ============================================ Wishlist Button - زر المفضلة (دائري) ============================================ */ .elegant-btn-wishlist { width: 60px; min-width: 60px; height: 60px; padding: 0; border-radius: 50%; background: white; color: #E57393; border: 2px solid #E5E7EB; flex: 0 0 auto; } .elegant-btn-wishlist:hover { background: #FFF5F7; border-color: #E57393; box-shadow: 0 6px 20px rgba(229, 115, 147, 0.3); transform: translateY(-2px); } .elegant-btn-wishlist:active { transform: translateY(0) scale(0.9); } .elegant-btn-wishlist.active { background: #E57393; color: white; border-color: #E57393; } .elegant-btn-wishlist .btn-icon svg { width: 22px; height: 22px; } /* ============================================ Loading State - حالة التحميل ============================================ */ .elegant-btn.loading { pointer-events: none; opacity: 0.7; } .elegant-btn.loading .btn-icon { animation: spin 1s linear infinite; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } /* ============================================ Success State - حالة النجاح ============================================ */ .elegant-btn.success { background: linear-gradient(135deg, #10B981 0%, #059669 100%); } .elegant-btn.success .btn-icon { animation: checkmark 0.5s ease-in-out; } @keyframes checkmark { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } } /* ============================================ Share Icons - أيقونات المشاركة ============================================ */ .share-icons { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 20px 0; } .share-icon-btn { width: 44px; height: 44px; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .share-icon-btn:active { transform: scale(0.9); } .share-icon-btn svg { width: 20px; height: 20px; } /* WhatsApp */ .share-icon-btn.whatsapp { background: #25D366; color: white; } /* Facebook */ .share-icon-btn.facebook { background: #1877F2; color: white; } /* Twitter */ .share-icon-btn.twitter { background: #1DA1F2; color: white; } /* Copy Link */ .share-icon-btn.copy { background: #6c757d; color: white; } .share-icon-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); } /* ============================================ Additional Images Row - صف الصور الإضافية ============================================ */ .additional-images-section { margin: 30px 0; position: relative; } .additional-images-container { position: relative; overflow: hidden; padding: 0 50px; /* مساحة للأسهم */ } .additional-images-row { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; padding: 10px 0; } .additional-images-row::-webkit-scrollbar { display: none; } .additional-image-item { min-width: 80px; width: 80px; height: 80px; flex-shrink: 0; border-radius: 12px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: all 0.3s; position: relative; } .additional-image-item:hover { border-color: #E57393; transform: scale(1.05); } .additional-image-item.active { border-color: #E57393; box-shadow: 0 0 0 2px rgba(229, 115, 147, 0.2); } .additional-image-item img { width: 100%; height: 100%; object-fit: cover; } /* أسهم التنقل */ .additional-images-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: white; border: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; transition: all 0.3s; } .additional-images-nav:hover { background: #E57393; color: white; box-shadow: 0 4px 12px rgba(229, 115, 147, 0.4); } .additional-images-nav:active { transform: translateY(-50%) scale(0.9); } .additional-images-nav.prev { right: 5px; } .additional-images-nav.next { left: 5px; } .additional-images-nav svg { width: 20px; height: 20px; } .additional-images-nav:disabled { opacity: 0.3; cursor: not-allowed; } /* ============================================ Responsive - التصميم المتجاوب ============================================ */ @media (max-width: 768px) { .elegant-actions-container { gap: 10px; } .elegant-btn { padding: 14px 24px; font-size: 15px; } .elegant-btn .btn-icon svg { width: 18px; height: 18px; } .elegant-btn-wishlist { width: 56px; min-width: 56px; height: 56px; } .share-icon-btn { width: 40px; height: 40px; } .additional-images-container { padding: 0 45px; } .additional-image-item { min-width: 70px; width: 70px; height: 70px; } } @media (max-width: 480px) { .elegant-actions-container { flex-wrap: wrap; gap: 8px; } .elegant-btn { padding: 12px 20px; font-size: 14px; flex: 1 1 calc(50% - 4px); } .elegant-btn .btn-icon svg { width: 16px; height: 16px; } .elegant-btn-wishlist { width: 52px; min-width: 52px; height: 52px; flex: 0 0 auto; } .elegant-btn-wishlist .btn-icon svg { width: 20px; height: 20px; } .additional-image-item { min-width: 60px; width: 60px; height: 60px; } } /* ============================================ Animations ============================================ */ @keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(229, 115, 147, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(229, 115, 147, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 115, 147, 0); } } .elegant-btn.pulse { animation: pulse-ring 1.5s infinite; } /* ============================================ Loading State ============================================ */ .elegant-btn.loading { pointer-events: none; opacity: 0.7; } .elegant-btn.loading svg { animation: spin 1s linear infinite; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }