/* Add custom CSS styles below */ 
/* استخدام خط ناصع وواضح يعبر عن طابع رسمي وموثوق */
body, p, a, h1, h2, h3, h4, span {
    font-family: 'Cairo', sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

/* إعطاء بطاقات المنتجات مظهراً فريداً لتبدو مرتبة */
.product-card {
    border: 1px solid #f0f0f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.product-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06) !important;
    border-color: #d1d5db !important;
}

/* تمييز الأزرار لتبسيط تجربة المستخدم */
.s-product-card-btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    background-color: #005a43 !important; /* لون أخضر رسمي يعبر عن النماء والموثوقية السعودية */
    transition: background 0.2s ease-in-out;
}
.s-product-card-btn:hover {
    background-color: #004231 !important;
}
/* تحسين حاوية خيارات الطلب في صفحة السلة */
.cart-options-v2, .s-cart-summary {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 20px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}

/* إضافة عنوان بارز للاستمارة */
.cart-options-v2::before {
    content: "📋 بيانات النزيل المطلوبة لإتمام الشحن";
    display: block;
    font-size: 15px;
    font-weight: bold;
    color: #005a43; /* اللون الأخضر الموثوق */
    margin-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

/* تحسين شكل خانات الإدخال (Inputs) */
.cart-options-v2 input, .cart-options-v2 select {
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 12px !important;
    font-size: 14px !important;
    background-color: #f8fafc !important;
    transition: all 0.3s ease !important;
}

/* تأثير احترافي عند الضغط والكتابة داخل الحقل */
.cart-options-v2 input:focus, .cart-options-v2 select:focus {
    border-color: #005a43 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(0, 90, 67, 0.1) !important;
    outline: none !important;
}

/* ==========================================================================
   حزمة تنسيق صفحة الدفع النهائية لمتجر نزيل (Checkout UI)
   ========================================================================== */

/* 1. تحسين الهيكل العام لصفحة الدفع وجعلها مريحة للعين */
.shipping-selectors, .payment-selectors, .checkout-step {
    background: #ffffff !important;
    border: 1px solid #e9eff5 !important;
    border-radius: 16px !important; /* زوايا دائرية عصرية للبلوكات */
    padding: 24px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.015) !important;
    margin-bottom: 20px !important;
}

/* 2. إبراز العناوين الرئيسية للأقسام (العنوان، الشحن، الدفع) */
.checkout-step-title, .step-title {
    color: #005a43 !important; /* لون هويتك الأخضر الرسمي الموثوق */
    font-weight: 700 !important;
    font-size: 16px !important;
    border-bottom: 2px solid #f4f6f8;
    padding-bottom: 12px;
    margin-bottom: 18px !important;
}

/* 3. تنسيق بطاقات خيارات شركات الشحن (سبل وغيرها) */
.shipping-company-card, .shipping-option {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 16px !important;
    transition: all 0.3s ease !important;
    background: #fdfdfd !important;
}

/* تمييز شركة الشحن عند اختيارها من قِبل العميل */
.shipping-company-card.active, .shipping-option.selected, input[type="radio"]:checked + label {
    border-color: #005a43 !important; /* حواف خضراء عند الاختيار */
    background: #f0fdf4 !important; /* خلفية خضراء ناعمة جداً */
    box-shadow: 0 4px 12px rgba(0, 90, 67, 0.05) !important;
}

/* 4. تنسيق أزرار وسائل الدفع (مدى، فيزا، تمارا) وجعلها بارزة */
.payment-method-card, .payment-option {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 14px !important;
    transition: all 0.2s ease-in-out !important;
}
.payment-method-card:hover {
    border-color: #cbd5e1 !important;
    transform: translateY(-2px) !important;
}

/* 5. تحسين وتكبير زر "إكمال الدفع" النهائي لزيادة التحويل */
.btn-submit-order, #btn-place-order, .submit-checkout-btn {
    background: #005a43 !important; /* لون أخضر رسمي يحفز على التأكيد */
    color: #ffffff !important;
    border-radius: 12px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    padding: 16px !important;
    box-shadow: 0 8px 20px rgba(0, 90, 67, 0.2) !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.btn-submit-order:hover {
    background: #004231 !important; /* لون أغمق عند التمرير بالماوس */
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 25px rgba(0, 90, 67, 0.3) !important;
}

/* 6. تنسيق صندوق ملخص الفاتورة على اليسار */
.checkout-summary, .s-cart-summary {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 20px !important;
}
/* ==========================================================================
   كود إجبار التعديل المطور لثيم رائد - متجر نزيل
   ========================================================================== */

/* تحسين شكل كروت المنتجات في الصفحة الرئيسية */
html body .product-card, 
html body .s-product-card {
    border: 1px solid #f1f5f9 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s ease-in-out !important;
    overflow: hidden !important;
}

html body .product-card:hover, 
html body .s-product-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(0, 90, 67, 0.08) !important;
}

/* تحسين وحقن ألوان صفحة الدفع وإتمام الطلب بالكامل */
html body .shipping-selectors, 
html body .payment-selectors, 
html body .checkout-step,
html body .s-panel {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 20px !important;
    margin-bottom: 15px !important;
}


/* التنسيق الأساسي للزر */
.salla-back-to-top {
    position: fixed;
    bottom: 95px; /* تم رفعه ليظهر فوق شريط التنقل السفلي لثيمات سلة في الجوال */
    left: 20px;   /* موضوع في جهة اليسار لكي لا يتعارض مع زر الواتساب الافتراضي باليمين */
    width: 45px;
    height: 45px;
    background-color: #00b2a9; /* لون سلة الافتراضي - يمكنك تغييره للون هويتك */
    color: #ffffff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    
    /* تأثيرات الاختفاء والظهور الاحترافية */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* التنسيق عند ظهور الزر */
.salla-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* تأثير خفيف وتكبير بسيط عند تمرير الماوس (لأجهزة الكمبيوتر) */
@media (min-width: 769px) {
    .salla-back-to-top:hover {
        background-color: #00827b; /* لون أغمق عند التمرير */
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    }
}

/* استجابة الزر لشاشات الهواتف لضمان المظهر المثالي */
@media (max-width: 768px) {
    .salla-back-to-top {
        width: 40px;
        height: 40px;
        bottom: 85px; /* متناسق تماماً مع شريط الجوال السفلي */
        left: 15px;
    }
}