/* 1. تفعيل التحميل البطيء لكل الصور */
img {
    loading: lazy;
    max-width: 100%;
    height: auto;
    display: block;
}

/* 2. تفعيل التحميل البطيء للفيديوهات */
video {
    loading: lazy;
    max-width: 100%;
    height: auto;
    display: block;
}

/* 3. إخفاء العناصر الثقيلة في الجوال (مثل بانرات كبيرة أو صور غير ضرورية) */
@media (max-width: 768px) {
    /* استبدل .banner-class باسم البانر أو العنصر الثقيل */
    .banner-class {
        display: none !important;
    }
}

/* 4. تحسين عرض النصوص بسرعة (إظهار خط بديل فوراً) */
body {
    font-display: swap;
}

/* 5. تحسين الأزرار لتكون أوضح وأسهل ضغطاً في الجوال */
button, .btn {
    padding: 12px 18px;
    font-size: 16px;
    border-radius: 6px;
}

/* 6. تقليل المسافات الفارغة لتقريب العناصر المهمة */
.section, .container {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* 7. التأكد من أن الصور داخل السلة وصفحة الدفع مناسبة للشاشة */
.cart img, .checkout img {
    max-width: 80px;
    height: auto;
}

/* 8. تسريع ظهور الأيقونات والخطوط */
@font-face {
    font-display: swap;
}

/* تكبير أيقونات التواصل */
.footer-social-icons a {
    font-size: 36px !important;
    margin: 0 15px;
    color: #00bfff !important;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* تأثير عند المرور بالماوس */
.footer-social-icons a:hover {
    transform: scale(1.4);
    color: #ff6600 !important;
    animation: none;
}

/* وضع الأيقونات بالمنتصف أسفل الصفحة */
.footer-social-icons {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    flex-direction: row;
    gap: 20px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 24px;
    border-radius: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* حركة النبض */
@keyframes pulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.4); }
    60% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

/* حركة الوميض */
@keyframes glow {
    0% { text-shadow: 0 0 5px #00bfff, 0 0 10px #00bfff, 0 0 15px #00bfff; }
    100% { text-shadow: 0 0 15px #ff6600, 0 0 25px #ff6600, 0 0 35px #ff6600; }
}

/* تشغيل التأثيرات فقط عند القرب من أسفل الصفحة */
body.scrolled-bottom .footer-social-icons a {
    animation: pulse 1s infinite, glow 1.5s infinite alternate;
}