/* =========================================
   تعديل شامل لشريط البحث وتناسق المتجر
========================================= */

/* 1. تصغير شريط البحث وإزالة الحيز الكبير */
body .s-search-wrapper, 
body .header-search, 
body [class*="search-bar"] {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    background: transparent !important; /* إزالة الخلفية السوداء */
    min-height: auto !important;
}

/* تعديل شكل خانة الإدخال لتكون أنيقة ونحيفة */
body .s-search-input, 
body input[type="search"] {
    height: 38px !important; /* تقليل الارتفاع */
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(100, 149, 237, 0.2) !important;
    border-radius: 8px !important;
    margin: 5px 0 !important;
}

/* 2. الهيكل العام للمتجر (الكود الأصلي مع تحسينات) */
body {
    background-color: #0b0d26 !important; 
    color: #e2e8f0;
}

/* الهيدر الزجاجي */
body .main-nav-container {
    background: rgba(18, 16, 59, 0.9) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(100, 149, 237, 0.15);
}

/* 3. تنسيق بطاقات المنتجات */
body custom-salla-product-card,
body .product-block {
    background: linear-gradient(180deg, #16183f 0%, #0b0d26 100%) !important;
    border: 1px solid rgba(100, 149, 237, 0.15) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease-out !important;
}

body custom-salla-product-card:hover,
body .product-block:hover {
    transform: translateY(-4px) !important;
    border-color: #6495ed !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 4. التذييل (Footer) */
body .store-footer {
    background: linear-gradient(170deg, #3a2a96 0%, #1d106d 60%, #0f083e 100%) !important;
    padding-top: 2rem !important; /* تقليل الحشو العلوي */
    border-top: 1px solid rgba(100, 149, 237, 0.2);
}

/* ضبط الجوال */
@media (max-width: 991px) {
    body .s-search-wrapper {
        padding: 5px 15px !important;
    }
    body .s-products-list-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

/* =========================================
   1. لمسات شريط البحث (تنحيف وإزالة خلفية)
========================================= */
body .s-search-bar, 
body .search-wrapper,
body .header-search {
    background: transparent !important; /* إزالة اللون الأسود */
    padding-top: 4px !important; 
    padding-bottom: 4px !important;
    min-height: auto !important;
}

body .s-search-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(100, 149, 237, 0.2) !important;
    border-radius: 10px !important;
    height: 38px !important; /* تقليل الارتفاع فقط */
}

/* =========================================
   2. لمسات القائمة السفلية (تأثير زجاجي)
========================================= */
body .mobile-nav-inner ul#mobile-nav {
    background: rgba(18, 16, 59, 0.92) !important; /* كحلي شفاف */
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-top: 1px solid rgba(100, 149, 237, 0.25) !important;
    padding: 10px 0 !important;
}

/* ألوان الأيقونات والنصوص */
body .mobile-nav--item, 
body .mobile-nav--item i, 
body .mobile-nav--item span {
    color: #cbd5e0 !important; /* لون فضي */
    transition: all 0.3s ease;
}

/* تأثير التوهج عند الاختيار */
body .mob-n-li.active .mobile-nav--item,
body .mobile-nav--item:hover i,
body .mobile-nav--item:hover span {
    color: #6495ed !important; /* أزرق بريميوم */
    text-shadow: 0 0 10px rgba(100, 149, 237, 0.5);
}

/* لمسة خاصة لأيقونة السلة والعداد */
body .s-cart-summary-count {
    background-color: #fbbf24 !important; /* لون ذهبي للعدد */
    color: #0b0d26 !important;
    font-weight: bold;
}

body .s-cart-summary-icon svg {
    fill: #cbd5e0 !important; /* تناسق أيقونة السلة مع البقية */
}

body .mobile-nav--item:hover .s-cart-summary-icon svg {
    fill: #6495ed !important;
}