/* ==================== MOON PLUS ENGINE FOOTER OVERRIDE ==================== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@500;700;900&display=swap');

/* حماية وتوحيد الخط لجميع عناصر الفوتر */
.store-footer.dark, 
.store-footer.dark * {
    font-family: 'Tajawal', sans-serif !important;
    box-sizing: border-box !important;
}

/* الخلفية الأساسية والحدود العلوية المضيئة */
.store-footer.dark {
    background: #040a13 !important;
    color: #ffffff !important;
    border-top: 1px solid rgba(0, 216, 255, 0.25) !important;
    padding-bottom: 20px !important;
}

.store-footer__inner {
    position: relative !important;
}

/* خط النيون المتوهج أعلى الفوتر ليعطي لمسة فاخرة */
.store-footer__inner::before {
    content: '' !important;
    position: absolute !important;
    top: -1px !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, #00D8FF, transparent) !important;
    box-shadow: 0 0 15px #00D8FF !important;
    z-index: 5 !important;
}

/* تحسين زر "العودة إلى الأعلى" ليصبح دائرياً عائماً بتأثير المون */
.to-top a {
    background: rgba(10, 28, 53, 0.85) !important;
    border: 1px solid rgba(0, 216, 255, 0.35) !important;
    color: #7EEBFF !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 5px 15px rgba(0, 216, 255, 0.15) !important;
    border-radius: 30px !important;
    padding: 8px 24px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.to-top a:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 0 25px rgba(0, 216, 255, 0.4) !important;
    border-color: #00D8FF !important;
    background: rgba(0, 216, 255, 0.15) !important;
    color: #ffffff !important;
}

/* تحسين الحاويات الوسطى والعلوية لتوزيع العناصر جنب لجنب بسلاسة */
.footer-middle {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* الشعار ووصف المتجر */
.logo-footer img {
    filter: drop-shadow(0 0 15px rgba(0, 216, 255, 0.5)) !important;
    transition: transform 0.3s ease !important;
}
.logo-footer hover img {
    transform: scale(1.03) !important;
}

.footer-description p {
    color: #8da4be !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
    margin-top: 12px !important;
    font-weight: 500 !important;
}

/* قسم خدمة العملاء وجهات الاتصال */
.s-contacts-title {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 14px !important;
}

.s-contacts-item {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(0, 216, 255, 0.15) !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    color: #7EEBFF !important;
    font-weight: 700 !important;
    transition: all 0.22s ease !important;
}

.s-contacts-item:hover {
    background: rgba(0, 216, 255, 0.08) !important;
    border-color: rgba(0, 216, 255, 0.4) !important;
    color: #ffffff !important;
}

.s-contacts-icon svg {
    fill: currentColor !important;
    width: 20px !important;
    height: 20px !important;
}

/* وثيقة العمل الحر (Trust Badge) بجانب الخدمات */
.s-trust-badges-wrapper {
    background: linear-gradient(145deg, rgba(10, 28, 53, 0.8), rgba(5, 16, 32, 0.9)) !important;
    border: 1px solid rgba(0, 216, 255, 0.25) !important;
    border-radius: 16px !important;
    padding: 14px 20px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

.s-trust-badges-label {
    color: #8da4be !important;
    font-size: 13px !important;
}

.s-trust-badges-number {
    color: #00D8FF !important;
    font-weight: 900 !important;
    font-size: 14px !important;
}

/* كروت ووسائل الدفع (جنباً إلى جنب دائماً) */
.footer-bottom {
    border-top: none !important;
    padding-top: 15px !important;
}

.footer-bottom ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
}

.footer-bottom ul li {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 6px !important;
    padding: 3px 6px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
    transition: transform 0.2s ease !important;
    width: 46px !important;
    height: 26px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.footer-bottom ul li:hover {
    transform: translateY(-2px) !important;
    background: #ffffff !important;
}

/* توثيق منصة الأعمال السعودي */
.sbc-certificate {
    color: #8da4be !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
}

.sbc-link {
    background: #ffffff !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
}

/* الحقوق المحفوظة */
.copyrights {
    border-top: none !important;
    padding-top: 0 !important;
    color: #8da4be !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
}

.copyrights a {
    color: #00D8FF !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* 📱 تحسينات التجاوب الذكي لشاشات الجوال */
@media (max-width: 768px) {
    .footer-middle {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 28px !important;
    }
    
    .footer-profile {
        align-items: center !important;
    }
    
    .s-contacts-list {
        justify-content: center !important;
    }

    .footer-bottom {
        flex-direction: column-reverse !important; /* لترتيب العناصر بشكل مريح جمالياً */
        gap: 20px !important;
        padding-bottom: 25px !important;
    }
    
    .footer-bottom ul {
        max-width: 290px !important; /* لمنع تشتت الأيقونات وحصرها بشكل منسق */
        margin: 0 auto !important;
    }
}