/* =========================================
   ثيم أركان برو - ARKAN PRO THEME
   تصميم: يركز على تجربة المستخدم والتحويل
   ========================================= */

/* 1. استيراد الخطوط (كايرو) */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');

:root {
    --main-font: 'Cairo', sans-serif;
    --primary-color: #0F172A; /* كحلي غامق */
    --accent-color: #2563EB; /* أزرق ساطع */
    --bg-color: #F8FAFC;
    --card-bg: #FFFFFF;
}

/* 2. تحسينات عامة على الصفحة */
body {
    font-family: var(--main-font) !important;
    background-color: var(--bg-color) !important;
    color: #334155 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800 !important;
    color: var(--primary-color) !important;
}

/* 3. الهيدر (القائمة العلوية) - تحويلها لستايل "Clean" */
.site-header {
    background: #fff !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03) !important;
    border-bottom: none !important;
}

.site-header .header-top {
    border-bottom: 1px solid #f1f5f9 !important;
}

/* 4. تحسين بطاقات المنتجات (Product Cards) - الشكل الأهم */
.product-entry, .s-product-card-entry {
    background: var(--card-bg) !important;
    border: 1px solid #e2e8f0 !important; /* إطار خفيف جداً */
    border-radius: 16px !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; /* حركة فيزيائية ناعمة */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

/* تأثير الرفع عند مرور الماوس */
.product-entry:hover, .s-product-card-entry:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    border-color: var(--accent-color) !important;
}

/* عنوان المنتج */
.product-entry__title a, .s-product-card-title {
    color: #1e293b !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin-top: 10px !important;
}

/* السعر */
.product-entry__price, .s-product-card-price {
    color: var(--accent-color) !important;
    font-weight: 900 !important;
    font-size: 16px !important;
}

/* 5. أزرار "أضف للسلة" (تحويلها لأزرار عريضة وجذابة) */
.btn-add-to-cart, .s-add-to-cart-button {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
    color: #fff !important;
    border-radius: 50px !important; /* حواف دائرية بالكامل */
    border: none !important;
    font-weight: bold !important;
    padding: 10px 20px !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3) !important; /* ظل ملون بنفس لون الزر */
    width: 90% !important; /* جعل الزر عريض */
    margin: 10px auto !important;
    display: block !important;
}

.btn-add-to-cart:hover, .s-add-to-cart-button:hover {
    background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%) !important;
    transform: scale(1.05);
}

/* 6. تحسين صور الأقسام (Categories) لتصبح دائرية وعصرية */
.category-entry__image, .s-category-card-image {
    border-radius: 50% !important; /* جعل الصور دائرية */
    border: 3px solid #fff !important;
    box-shadow: 0 0 0 2px var(--accent-color) !important; /* حلقة ملونة حول الصورة */
    transition: transform 0.3s ease;
}

.category-entry:hover .category-entry__image {
    transform: rotate(5deg) scale(1.1);
}

/* 7. عناوين الأقسام الرئيسية (الأكثر مبيعاً، إلخ) */
.section-header .section-title, .s-block-title {
    position: relative;
    display: inline-block;
    margin-bottom: 30px !important;
    font-size: 24px !important;
}

/* إضافة خط تحت العنوان */
.section-header .section-title::after, .s-block-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}
/* 8. إصلاح الفوتر (تصميم فاتح ونظيف) */
footer, .site-footer {
    background-color: #ffffff !important; /* خلفية بيضاء */
    border-top: 1px solid #e2e8f0 !important; /* خط علوي فاصل خفيف */
    color: #334155 !important; /* لون النص رمادي غامق */
    padding-top: 40px !important;
    padding-bottom: 20px !important;
}

/* جعل جميع نصوص وروابط الفوتر واضحة */
footer h3, footer h4, footer .widget-title, footer strong {
    color: #0F172A !important; /* العناوين باللون الكحلي */
    font-weight: 700 !important;
}

footer a, footer li, footer p, footer span {
    color: #475569 !important; /* النصوص والروابط رمادي متوسط */
}

footer a:hover {
    color: #2563EB !important; /* لون أزرق عند مرور الماوس */
    text-decoration: none !important;
}

/* حقوق النشر في الأسفل */
.copyrights, .footer-bottom {
    background-color: #f8fafc !important; /* خلفية مختلفة قليلاً للحقوق */
    border-top: 1px solid #f1f5f9 !important;
    color: #64748b !important;
    margin-top: 30px !important;
    padding: 15px 0 !important;
}

/* 9. تحسينات للجوال فقط */
@media (max-width: 768px) {
    .product-entry, .s-product-card-entry {
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important; /* تخفيف الظل في الجوال */
    }
    
    .btn-add-to-cart, .s-add-to-cart-button {
        width: 100% !important; /* الزر يأخذ كامل العرض في الجوال */
        padding: 8px !important;
    }
}

/* 10. إخفاء العناصر المزعجة (اختياري) */
/* يخفي جملة "منتجات ربما تعجبك" إذا كانت مكررة */
.related-products-title { display: none; }