/* ═══════════════════════════════════════════════════════════
   🚀 كود CSS قوي ومؤثر لمتجر Livo
   تأثيرات واضحة وملموسة - ليس مجرد تغيير ألوان!
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   1️⃣ تحويل بطاقات المنتجات لتصميم 3D احترافي
   ═══════════════════════════════════════════════════════════ */
.product-card,
.product-item,
[class*="product"] {
    position: relative !important;
    transform-style: preserve-3d !important;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
    border-radius: 20px !important;
    overflow: visible !important;
    background: white !important;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.05),
        0 8px 16px rgba(0,0,0,0.08) !important;
}

/* تأثير 3D عند التمرير */
.product-card:hover,
.product-item:hover {
    transform: translateY(-20px) rotateX(5deg) rotateY(-5deg) !important;
    box-shadow: 
        0 20px 40px rgba(81, 45, 168, 0.2),
        0 30px 60px rgba(0, 0, 0, 0.15),
        inset 0 0 20px rgba(255, 255, 255, 0.1) !important;
}

/* شعاع ضوئي يتحرك على الكارد */
.product-card::before,
.product-item::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 50% !important;
    height: 100% !important;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    ) !important;
    transition: left 0.5s ease !important;
    z-index: 1 !important;
}

.product-card:hover::before,
.product-item:hover::before {
    left: 150% !important;
}

/* ═══════════════════════════════════════════════════════════
   2️⃣ صور المنتجات - تأثير Zoom وتدوير
   ═══════════════════════════════════════════════════════════ */
.product-card img,
.product-image img,
.product-img {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1) !important;
    border-radius: 15px !important;
}

.product-card:hover img,
.product-item:hover img {
    transform: scale(1.15) rotate(2deg) !important;
    filter: brightness(1.1) contrast(1.1) !important;
}

/* ═══════════════════════════════════════════════════════════
   3️⃣ الأزرار - تأثير موجة مائية عند النقر
   ═══════════════════════════════════════════════════════════ */
.btn,
button,
.add-to-cart,
.button {
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 15px 40px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 
        0 4px 15px rgba(102, 126, 234, 0.4),
        inset 0 -4px 8px rgba(0, 0, 0, 0.2) !important;
}

/* تأثير الرفع والتوهج */
.btn:hover,
button:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 
        0 15px 35px rgba(102, 126, 234, 0.6),
        0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 -4px 8px rgba(0, 0, 0, 0.3) !important;
}

/* موجة عند النقر */
.btn::after,
button::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.5) !important;
    transform: translate(-50%, -50%) !important;
    transition: width 0.6s, height 0.6s !important;
}

.btn:active::after,
button:active::after {
    width: 500px !important;
    height: 500px !important;
}

/* ═══════════════════════════════════════════════════════════
   4️⃣ شارات الخصم - تأثير Flip 3D
   ═══════════════════════════════════════════════════════════ */
.discount-badge,
.sale-badge,
.badge {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 25px !important;
    font-weight: 900 !important;
    font-size: 14px !important;
    z-index: 10 !important;
    transform-style: preserve-3d !important;
    animation: flipBadge 3s infinite ease-in-out !important;
    box-shadow: 
        0 8px 20px rgba(245, 87, 108, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.3) !important;
}

@keyframes flipBadge {
    0%, 100% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(180deg);
    }
}

/* ═══════════════════════════════════════════════════════════
   5️⃣ السعر - تأثير نبض وتوهج
   ═══════════════════════════════════════════════════════════ */
.product-price,
.price {
    font-size: 32px !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: pulsPrice 2s infinite !important;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.3) !important;
    display: inline-block !important;
}

@keyframes pulsPrice {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.08);
        filter: brightness(1.2);
    }
}

/* ═══════════════════════════════════════════════════════════
   6️⃣ الهيدر - زجاجي شفاف (Glassmorphism)
   ═══════════════════════════════════════════════════════════ */
header,
.header,
.top-header {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* ═══════════════════════════════════════════════════════════
   7️⃣ أيقونة السلة - تأثير ارتداد عند الإضافة
   ═══════════════════════════════════════════════════════════ */
.cart-icon,
.shopping-cart {
    position: relative !important;
    display: inline-block !important;
}

.cart-count,
.cart-badge {
    position: absolute !important;
    top: -10px !important;
    right: -10px !important;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: white !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 900 !important;
    font-size: 13px !important;
    animation: cartBounce 0.5s ease infinite alternate !important;
    box-shadow: 
        0 4px 15px rgba(245, 87, 108, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.3) !important;
}

@keyframes cartBounce {
    from {
        transform: scale(1) translateY(0);
    }
    to {
        transform: scale(1.15) translateY(-5px);
    }
}

/* ═══════════════════════════════════════════════════════════
   8️⃣ شريط البحث - تأثير توهج عند التركيز
   ═══════════════════════════════════════════════════════════ */
.search-input,
input[type="search"],
input[type="text"] {
    border: 2px solid transparent !important;
    border-radius: 50px !important;
    padding: 15px 25px !important;
    font-size: 16px !important;
    transition: all 0.4s ease !important;
    background: rgba(255, 255, 255, 0.9) !important;
}

.search-input:focus,
input[type="search"]:focus,
input[type="text"]:focus {
    outline: none !important;
    border-color: #667eea !important;
    background: white !important;
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.2),
        0 10px 40px rgba(102, 126, 234, 0.3) !important;
    transform: scale(1.02) !important;
}

/* ═══════════════════════════════════════════════════════════
   9️⃣ قوائم التنقل - خط متحرك تحت العنصر النشط
   ═══════════════════════════════════════════════════════════ */
.nav-item a,
.menu-item a {
    position: relative !important;
    color: #333 !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.nav-item a::after,
.menu-item a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    width: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, #667eea, #764ba2) !important;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    transform: translateX(-50%) !important;
    border-radius: 2px !important;
}

.nav-item a:hover::after,
.menu-item a:hover::after,
.nav-item a.active::after,
.menu-item a.active::after {
    width: 100% !important;
}

.nav-item a:hover,
.menu-item a:hover {
    color: #667eea !important;
    transform: translateY(-2px) !important;
}

/* ═══════════════════════════════════════════════════════════
   🔟 الفوتر - تدرج داكن مع تأثير parallax
   ═══════════════════════════════════════════════════════════ */
footer,
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    color: white !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 60px 0 20px !important;
}

footer::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%) !important;
}

/* ═══════════════════════════════════════════════════════════
   1️⃣1️⃣ شارة "جديد" - تأثير وميض
   ═══════════════════════════════════════════════════════════ */
.new-badge,
[class*="new-"] {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    color: white !important;
    padding: 6px 15px !important;
    border-radius: 20px !important;
    font-weight: 900 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    animation: blinkNew 1.5s infinite !important;
    box-shadow: 0 4px 15px rgba(56, 239, 125, 0.5) !important;
    z-index: 10 !important;
}

@keyframes blinkNew {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 4px 15px rgba(56, 239, 125, 0.5);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 4px 25px rgba(56, 239, 125, 0.8);
    }
}

/* ═══════════════════════════════════════════════════════════
   1️⃣2️⃣ عناوين الأقسام - خط متحرك ملون
   ═══════════════════════════════════════════════════════════ */
.section-title,
h2, h3 {
    position: relative !important;
    font-weight: 900 !important;
    font-size: 36px !important;
    color: #1a1a2e !important;
    padding-bottom: 20px !important;
    margin-bottom: 40px !important;
    display: inline-block !important;
}

.section-title::after,
h2::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 0 !important;
    height: 5px !important;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c) !important;
    background-size: 300% 100% !important;
    animation: gradientMove 3s ease infinite, expandLine 2s ease-out forwards !important;
    border-radius: 3px !important;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes expandLine {
    to { width: 120px; }
}

/* ═══════════════════════════════════════════════════════════
   1️⃣3️⃣ تأثير Parallax للخلفية
   ═══════════════════════════════════════════════════════════ */
body {
    background: 
        linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    position: relative !important;
}

body::before {
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%) !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* ═══════════════════════════════════════════════════════════
   1️⃣4️⃣ تأثير Skeleton Loading للمنتجات
   ═══════════════════════════════════════════════════════════ */
.product-card.loading,
.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    ) !important;
    background-size: 200% 100% !important;
    animation: shimmer 1.5s infinite !important;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ═══════════════════════════════════════════════════════════
   1️⃣5️⃣ نجوم التقييم - تأثير برّاق
   ═══════════════════════════════════════════════════════════ */
.rating,
.stars {
    display: inline-block !important;
}

.star,
.rating i {
    color: #ffc107 !important;
    font-size: 18px !important;
    margin: 0 2px !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    animation: starTwinkle 2s infinite !important;
}

.star:hover,
.rating i:hover {
    transform: scale(1.3) rotate(15deg) !important;
    filter: drop-shadow(0 0 8px #ffc107) !important;
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        opacity: 0.8;
        filter: brightness(1.3);
    }
}

/* ═══════════════════════════════════════════════════════════
   1️⃣6️⃣ شريط التقدم (Progress Bar) للعروض
   ═══════════════════════════════════════════════════════════ */
.progress-bar {
    width: 100% !important;
    height: 8px !important;
    background: rgba(0, 0, 0, 0.1) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    position: relative !important;
    margin: 15px 0 !important;
}

.progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #667eea, #764ba2) !important;
    border-radius: 10px !important;
    position: relative !important;
    animation: progressPulse 2s ease infinite !important;
}

.progress-fill::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    ) !important;
    animation: progressShine 1.5s infinite !important;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* ═══════════════════════════════════════════════════════════
   1️⃣7️⃣ تحسين الأداء والتجاوب
   ═══════════════════════════════════════════════════════════ */
* {
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}

html {
    scroll-behavior: smooth !important;
}

/* تجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .product-card:hover {
        transform: translateY(-10px) !important;
    }
    
    .section-title, h2 {
        font-size: 24px !important;
    }
    
    .btn, button {
        padding: 12px 30px !important;
        font-size: 14px !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   ✨ تأثيرات إضافية عند التمرير
   ═══════════════════════════════════════════════════════════ */
[data-aos] {
    opacity: 0 !important;
    transition: opacity 0.8s ease, transform 0.8s ease !important;
}

[data-aos].aos-animate {
    opacity: 1 !important;
}

/* ═══════════════════════════════════════════════════════════
   🎉 النهاية - كود احترافي مع تأثيرات قوية وواضحة!
   ═══════════════════════════════════════════════════════════ */