/* 🎨 هدايا الإمارات - تصميم مبهر وعصري للغاية */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* CSS Variables for Theming */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --secondary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --accent-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --warning-gradient: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-primary: 0 20px 60px rgba(102, 126, 234, 0.3);
    --shadow-secondary: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 30px 80px rgba(102, 126, 234, 0.4);
    --border-radius: 20px;
    --border-radius-lg: 30px;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --backdrop-blur: blur(20px);
}

/* Global Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; line-height: 1.7; color: #2d3748; background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 50%, #e2e8f0 100%); direction: rtl; text-align: right; overflow-x: hidden; }

/* Smooth Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--primary-gradient); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary-gradient); }

/* Container */
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; margin-bottom: 1rem; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
h1 { font-size: clamp(2rem, 5vw, 4rem); } h2 { font-size: clamp(1.75rem, 4vw, 3rem); } h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin-bottom: 1.2rem; color: #4a5568; font-weight: 400; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 16px 32px; border: none; border-radius: var(--border-radius-lg); text-decoration: none; font-weight: 600; font-size: 16px; text-align: center; cursor: pointer; transition: var(--transition-smooth); position: relative; overflow: hidden; backdrop-filter: var(--backdrop-blur); }
.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.6s; }
.btn:hover::before { left: 100%; }
.btn-primary { background: var(--primary-gradient); color: white; box-shadow: var(--shadow-primary); }
.btn-primary:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-hover); }
.btn-secondary { background: var(--success-gradient); color: white; box-shadow: 0 10px 30px rgba(17, 153, 142, 0.3); }
.btn-secondary:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 20px 50px rgba(17, 153, 142, 0.4); }
.btn-outline { background: var(--glass-bg); backdrop-filter: var(--backdrop-blur); border: 2px solid var(--glass-border); color: #667eea; }
.btn-outline:hover { background: var(--primary-gradient); color: white; transform: translateY(-3px); }

/* Header - Glass Morphism */
.header { position: fixed; top: 0; width: 100%; z-index: 1000; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255, 255, 255, 0.2); transition: var(--transition-smooth); }
.header.scrolled { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(30px); box-shadow: var(--shadow-secondary); }
.navbar { padding: 1rem 0; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo h1 { font-size: 2rem; margin: 0; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-shadow: 0 0 30px rgba(102, 126, 234, 0.3); }
.nav-menu { display: flex; list-style: none; gap: 1rem; }
.nav-link { padding: 12px 24px; text-decoration: none; color: #4a5568; font-weight: 500; border-radius: var(--border-radius); transition: var(--transition-smooth); position: relative; background: var(--glass-bg); backdrop-filter: var(--backdrop-blur); border: 1px solid var(--glass-border); }
.nav-link::after { content: ''; position: absolute; bottom: 0; right: 50%; width: 0; height: 2px; background: var(--primary-gradient); transition: var(--transition-smooth); }
.nav-link:hover, .nav-link.active { background: var(--primary-gradient); color: white; transform: translateY(-2px); box-shadow: var(--shadow-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; right: 0; }

/* Hero Section */
.hero { position: relative; margin-top: 80px; padding: 120px 0; background: var(--primary-gradient); color: white; overflow: hidden; min-height: 100vh; display: flex; align-items: center; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%); animation: heroAnimation 20s ease-in-out infinite; }
@keyframes heroAnimation { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.05); } }
.hero-content { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.hero-title { font-size: clamp(3rem, 8vw, 5rem); font-weight: 900; margin-bottom: 1.5rem; line-height: 1.1; text-shadow: 0 10px 30px rgba(0,0,0,0.3); animation: slideInUp 1s ease-out; }
.hero-subtitle { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 2rem; opacity: 0.95; font-weight: 300; animation: slideInUp 1s ease-out 0.2s both; }
.hero-price { margin-bottom: 3rem; animation: slideInUp 1s ease-out 0.4s both; }
.price { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; color: #ffd700; text-shadow: 0 5px 20px rgba(255, 215, 0, 0.4); margin-left: 1rem; }
.old-price { font-size: clamp(1.2rem, 3vw, 1.8rem); text-decoration: line-through; opacity: 0.7; color: #e2e8f0; }
.hero-image { position: relative; animation: slideInRight 1s ease-out; }
.hero-product-image { width: 100%; max-width: 500px; border-radius: var(--border-radius-lg); box-shadow: 0 40px 100px rgba(0,0,0,0.3); transition: var(--transition-smooth); filter: drop-shadow(0 0 30px rgba(255,255,255,0.2)); }
.hero-product-image:hover { transform: scale(1.05) rotateY(5deg); box-shadow: 0 50px 120px rgba(0,0,0,0.4); }

/* Features */
.features { padding: 120px 0; background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%); position: relative; }
.features::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--primary-gradient); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; }
.feature { background: var(--glass-bg); backdrop-filter: var(--backdrop-blur); border: 1px solid var(--glass-border); border-radius: var(--border-radius-lg); padding: 3rem 2rem; text-align: center; position: relative; overflow: hidden; transition: var(--transition-smooth); box-shadow: var(--shadow-secondary); }
.feature::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--primary-gradient); transform: scaleX(0); transition: transform 0.6s ease; }
.feature:hover::before { transform: scaleX(1); }
.feature:hover { transform: translateY(-15px); box-shadow: var(--shadow-hover); background: rgba(255, 255, 255, 0.2); }
.feature-icon { font-size: 4rem; margin-bottom: 1.5rem; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-shadow: 0 0 30px rgba(250, 112, 154, 0.3); animation: pulse 3s ease-in-out infinite; }
.feature h3 { font-size: 1.5rem; margin-bottom: 1rem; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Categories */
.categories { padding: 120px 0; background: radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.1) 0%, transparent 50%), radial-gradient(circle at 75% 75%, rgba(118, 75, 162, 0.1) 0%, transparent 50%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); }
.section-title { text-align: center; font-size: clamp(2rem, 5vw, 4rem); margin-bottom: 4rem; position: relative; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-title::after { content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 120px; height: 4px; background: var(--accent-gradient); border-radius: 2px; box-shadow: 0 5px 15px rgba(250, 112, 154, 0.4); }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 3rem; }
.category-card { background: white; border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: var(--shadow-secondary); transition: var(--transition-smooth); position: relative; backdrop-filter: var(--backdrop-blur); }
.category-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--primary-gradient); opacity: 0; transition: opacity 0.4s ease; z-index: 1; }
.category-card:hover::before { opacity: 0.1; }
.category-card:hover { transform: translateY(-20px) scale(1.02); box-shadow: var(--shadow-hover); }
.category-image { height: 280px; overflow: hidden; position: relative; }
.category-image::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50%; background: linear-gradient(transparent, rgba(0,0,0,0.1)); }
.category-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; filter: brightness(1.1) contrast(1.1); }
.category-card:hover .category-image img { transform: scale(1.15) rotate(1deg); }
.category-info { padding: 3rem 2rem; position: relative; z-index: 2; }
.category-info h3 { font-size: 1.8rem; margin-bottom: 1rem; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.category-info p { font-size: 1.1rem; line-height: 1.6; margin-bottom: 2rem; color: #6b7280; }
.category-button { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--primary-gradient); color: white; padding: 16px 32px; border-radius: var(--border-radius-lg); text-decoration: none; font-weight: 600; font-size: 1.1rem; transition: var(--transition-smooth); box-shadow: var(--shadow-primary); position: relative; overflow: hidden; }
.category-button::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.6s; }
.category-button:hover::before { left: 100%; }
.category-button:hover { transform: translateY(-5px) scale(1.05); box-shadow: var(--shadow-hover); }

/* Products */
.products { padding: 120px 0; position: relative; }
.products:nth-child(odd) { background: radial-gradient(circle at 30% 20%, rgba(79, 172, 254, 0.05) 0%, transparent 50%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); }
.products:nth-child(even) { background: radial-gradient(circle at 70% 80%, rgba(250, 112, 154, 0.05) 0%, transparent 50%), linear-gradient(135deg, #fafbfc 0%, #ffffff 100%); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 3rem; margin-top: 3rem; }
.product-card { background: white; border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: var(--shadow-secondary); transition: var(--transition-smooth); position: relative; backdrop-filter: var(--backdrop-blur); border: 1px solid rgba(255, 255, 255, 0.3); }
.product-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--primary-gradient); opacity: 0; transition: opacity 0.4s ease; z-index: 1; }
.product-card:hover::before { opacity: 0.05; }
.product-card:hover { transform: translateY(-20px) scale(1.03); box-shadow: var(--shadow-hover), 0 0 50px rgba(102, 126, 234, 0.2); }
.product-image { position: relative; height: 280px; overflow: hidden; }
.product-image::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, transparent 60%, rgba(102, 126, 234, 0.1)); opacity: 0; transition: opacity 0.4s ease; }
.product-card:hover .product-image::after { opacity: 1; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; filter: brightness(1.05) contrast(1.1); }
.product-card:hover .product-image img { transform: scale(1.1) rotate(2deg); }
.discount-badge { position: absolute; top: 20px; right: 20px; background: var(--accent-gradient); color: white; padding: 8px 16px; border-radius: 25px; font-size: 13px; font-weight: 700; box-shadow: 0 5px 20px rgba(250, 112, 154, 0.4); animation: bounce 2s ease-in-out infinite; z-index: 3; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.product-info { padding: 2rem; position: relative; z-index: 2; }
.product-title { font-size: 1.3rem; font-weight: 600; margin-bottom: 1rem; line-height: 1.4; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.product-price { margin-bottom: 2rem; display: flex; align-items: center; gap: 1rem; }
.current-price { font-size: 1.8rem; font-weight: 800; background: var(--success-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.old-price { font-size: 1.2rem; color: #9ca3af; text-decoration: line-through; opacity: 0.8; }
.product-actions { display: flex; flex-direction: column; gap: 1rem; }
.product-actions .btn { width: 100%; justify-content: center; }

/* Footer */
.footer { background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #4a5568 100%); color: white; padding: 80px 0 30px; position: relative; overflow: hidden; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--primary-gradient); }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-section h3, .footer-section h4 { margin-bottom: 1.5rem; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-size: 1.3rem; }
.footer-section p { color: #cbd5e0; line-height: 1.7; font-weight: 300; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #e2e8f0; text-decoration: none; transition: var(--transition-smooth); position: relative; }
.footer-links a::before { content: '→'; position: absolute; right: -20px; opacity: 0; transition: var(--transition-smooth); }
.footer-links a:hover { color: #667eea; padding-right: 25px; }
.footer-links a:hover::before { opacity: 1; right: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 2rem; text-align: center; color: #a0aec0; font-weight: 300; }

/* WhatsApp */
.whatsapp-float { position: fixed; bottom: 30px; left: 30px; z-index: 1000; }
.whatsapp-float a { display: flex; align-items: center; justify-content: center; width: 70px; height: 70px; background: var(--success-gradient); border-radius: 50%; text-decoration: none; font-size: 1.8rem; color: white; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); transition: var(--transition-smooth); animation: whatsappPulse 3s ease-in-out infinite; position: relative; overflow: hidden; }
.whatsapp-float a::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: rgba(255,255,255,0.3); border-radius: 50%; transform: translate(-50%, -50%); transition: all 0.6s ease; }
.whatsapp-float a:hover::before { width: 100%; height: 100%; }
.whatsapp-float a:hover { transform: scale(1.1); box-shadow: 0 20px 50px rgba(37, 211, 102, 0.6), 0 0 0 20px rgba(37, 211, 102, 0.1); }
@keyframes whatsappPulse { 0% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); } 50% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 15px rgba(37, 211, 102, 0.2); } 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }}

/* Animations */
@keyframes slideInUp { from { opacity: 0; transform: translateY(50px);} to { opacity: 1; transform: translateY(0);} }
@keyframes slideInRight { from { opacity: 0; transform: translateX(50px);} to { opacity: 1; transform: translateX(0);} }
@keyframes pulse { 0%, 100% { transform: scale(1);} 50% { transform: scale(1.05);} }

/* Loading Overlay */
.loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--primary-gradient); display: flex; align-items: center; justify-content: center; z-index: 10000; opacity: 0; visibility: hidden; transition: var(--transition-smooth);} 
.loading-overlay.active { opacity: 1; visibility: visible; }
.spinner { width: 60px; height: 60px; border: 4px solid rgba(255,255,255,0.3); border-top: 4px solid white; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg);} 100% { transform: rotate(360deg);} }

/* Responsive */
@media (max-width: 768px) { .hero-content { grid-template-columns: 1fr; gap: 3rem; text-align: center; padding: 2rem 0;} .hero { padding: 100px 0; min-height: auto;} .hero-title { font-size: 2.5rem;} .categories-grid { grid-template-columns: 1fr; gap: 2rem;} .features-grid { grid-template-columns: 1fr; gap: 2rem;} .nav-menu { display: none;} .products-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem;} }
@media (max-width: 480px) { .container { padding: 0 15px;} .hero { padding: 80px 0;} .hero-title { font-size: 2rem;} .features, .categories, .products { padding: 80px 0;} .category-card, .product-card { margin: 0 10px;} .whatsapp-float { bottom: 20px; left: 20px;} .whatsapp-float a { width: 60px; height: 60px; font-size: 1.5rem;} }

/* Dark Mode */
@media (prefers-color-scheme: dark) { :root { --glass-bg: rgba(0, 0, 0, 0.1); --glass-border: rgba(255, 255, 255, 0.1);} body { background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #4a5568 100%); color: #e2e8f0;} .product-card, .category-card, .feature { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(20px);} }

/* Performance */
.product-card, .category-card, .feature { will-change: transform, box-shadow; }
.product-image img, .category-image img { will-change: transform; }

/* Print */
@media print { .header, .whatsapp-float, .footer { display: none;} .hero { margin-top: 0; background: white; color: black; padding: 2rem 0;} body { background: white;} .product-card, .category-card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd;} }

/* Accessibility */
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }
.btn:focus, .nav-link:focus, .category-button:focus { outline: 3px solid rgba(102, 126, 234, 0.5); outline-offset: 2px; }
::selection { background: rgba(102, 126, 234, 0.2); color: #1a202c; }
* { scrollbar-width: thin; scrollbar-color: #667eea #f1f5f9; }
