/* ==========================================================================
   1. تخصيص الهيدر (Header) بالكامل - متجر الجليد
   ========================================================================== */

/* خلفية الهيدر بالكامل */
.top-navbar,
.main-nav-container {
    background: #000000 !important;
    color: #ffffff !important;
}

/* إزالة الخلفية البيضاء الافتراضية للثيم */
.main-nav-container.bg-white {
    background: #000000 !important;
}

/* التنسيق الأساسي لروابط الهيدر والنصوص */
.store-header a,
.store-header .s-user-menu-trigger-name,
.store-header .s-user-menu-trigger-hello,
.store-header .s-cart-summary-total {
    color: #ffffff !important;
    transition: all 0.3s ease;
}

/* تأثير التمرير على الروابط */
.store-header a:hover {
    color: #1E58B0 !important;
}

/* الأيقونات الأساسية في الهيدر */
.store-header svg,
.store-header i,
.store-header path {
    fill: #1E58B0 !important;
    color: #1E58B0 !important;
    transition: all 0.3s ease;
}

/* تأثير التمرير على الأيقونات التفاعلية */
.store-header a:hover svg,
.store-header a:hover i,
.store-header a:hover path {
    fill: #ffffff !important;
    color: #ffffff !important;
}

/* حقل البحث الذكي */
.store-header .s-search-input {
    background: #0a0a0a !important;
    color: #ffffff !important;
    border: 1px solid #1E58B0 !important;
    border-radius: 8px !important;
}

.store-header .s-search-input::placeholder {
    color: #a3a3a3 !important;
}

/* قائمة المستخدم والسلة */
.s-user-menu-trigger {
    background-color: #000000 !important;
}

.store-header .s-user-menu-login-btn {
    color: #1E58B0 !important;
}

.store-header .s-user-menu-login-btn:hover {
    color: #ffffff !important;
}

/* عداد السلة الداخلي */
.store-header .s-cart-summary-count {
    background: #1E58B0 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
    transition: all 0.3s ease;
}

/* تأثير التمرير على السلة */
.store-header .s-cart-summary-wrapper:hover .header-btn__icon {
    color: #ffffff !important;
}

.store-header .s-cart-summary-wrapper:hover .s-cart-summary-count {
    background: #ffffff !important;
    color: #1E58B0 !important;
}

/* عناصر القائمة المنسدلة (Dropdown Menu) لتظل مقروءة بوضوح */
.menu-item-has-children .sub-menu a,
.is-dropdown .sub-menu a,
.dropdown-menu a {
    color: #000000 !important; /* الأسود لضمان وضوحها إن كانت خلفية القائمة المنسدلة بيضاء */
}

.menu-item-has-children .sub-menu a:hover,
.is-dropdown .sub-menu a:hover,
.dropdown-menu a:hover {
    color: #1E58B0 !important;
}

/* القائمة المتجاوبة للجوال */
#mobile-menu {
    color: white !important;
    background-color: #000000 !important;
}

#mobile-menu a:hover,
#mobile-menu .menu-item:hover > a,
#mobile-menu li:hover > a {
    color: #ffffff !important;
}

@media only screen and (min-width: 1024px) {
    .main-menu .sub-menu {
        background-color: #000000 !important;
    }
    .main-menu .sub-menu a {
        color: #ffffff !important; /* لتتحول لبيضاء داخل خلفية منسدلة سوداء على المكتبي */
    }
}

/* زر الشراء العام في المتجر */
.s-button-element {
    background-color: #1E58B0 !important;
    color: #ffffff !important;
}


/* ==========================================================================
   2. تخصيص كارت المنتج (Product Card) - متجر الجليد
   ========================================================================== */

.s-product-card-entry {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid rgba(30, 88, 176, 0.08) !important;
    padding: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s ease-in-out !important;
    position: relative !important;
    overflow: hidden !important; 
}

.s-product-card-entry:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 30px rgba(30, 88, 176, 0.12) !important;
    border-color: #1E58B0 !important;
}

.s-product-card-image {
    background: #f8fafc !important;
    border-radius: 12px !important;
    padding: 10px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important; 
}

.s-product-card-image-cover {
    mix-blend-mode: multiply !important;
    transition: transform 0.4s ease-in-out !important;
    max-width: 100% !important;
    height: auto !important;
}

.s-product-card-entry:hover .s-product-card-image-cover {
    transform: scale(1.05) !important;
}

.s-product-card-promotion-title {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: #121212 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: bold !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    z-index: 2 !important;
}

.s-product-card-wishlist-btn button {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: blur(4px) !important;
    color: #121212 !important;
    border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
    z-index: 2 !important;
}

.s-product-card-wishlist-btn button:hover,
.s-product-card-wishlist-btn.s-api-is-loved button {
    background: #ffffff !important;
    color: #e11d48 !important;
    border-color: rgba(225, 29, 72, 0.2) !important;
    transform: scale(1.1) !important;
}

.s-product-card-content {
    padding: 12px 4px 4px 4px !important;
    text-align: right !important;
}

.s-product-card-content-title a {
    color: #121212 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.s-product-card-content-title a:hover {
    color: #1E58B0 !important;
}

.s-product-card-content-subtitle {
    color: #64748b !important;
    font-size: 12px !important;
    margin-top: 4px !important;
    margin-bottom: 12px !important;
}

.s-product-card-price {
    color: #1E58B0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-bottom: 14px !important;
}

.s-product-card-content-footer button {
    background: #1E58B0 !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 12px rgba(30, 88, 176, 0.2) !important;
}

.s-product-card-content-footer button:hover {
    background: #121212 !important;
    color: #ffffff !important;
}


/* ==========================================================================
   3. تخصيص عناصر وعناوين السلايدر - متجر الجليد
   ========================================================================== */

.s-slider-block__title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 20px !important;
}

.s-slider-block__title-right h2 {
    color: #121212 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    position: relative !important;
    padding-bottom: 6px !important;
}

.s-slider-block__title-right h2::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 40px !important;
    height: 3px !important;
    background-color: #1E58B0 !important;
    border-radius: 2px !important;
}

.s-slider-block__display-all {
    color: #1E58B0 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
}

.s-slider-block__display-all:hover {
    color: #121212 !important;
}

.s-slider-nav-arrow {
    background: #ffffff !important;
    border: 1px solid rgba(30, 88, 176, 0.15) !important;
    color: #121212 !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.s-slider-button-icon svg {
    width: 18px !important;
    height: 18px !important;
    fill: currentColor !important;
}

.s-slider-nav-arrow:hover {
    background: #1E58B0 !important;
    color: #ffffff !important;
    border-color: #1E58B0 !important;
}


/* ==========================================================================
   4. ميزات المتجر والعلامات التجارية وآراء العملاء
   ========================================================================== */

.s-block--features {
    background: #f8fafc !important;
    border-radius: 16px !important;
    padding: 30px 20px !important;
}

.s-block--features__item {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 24px 16px !important;
}

.s-block--features__item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(30, 88, 176, 0.06) !important;
}

.s-block--features__item .feature-icon {
    background: rgba(30, 88, 176, 0.06) !important;
    color: #1E58B0 !important;
    width: 55px !important;
    height: 55px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.s-block--features__item:hover .feature-icon {
    background: #1E58B0 !important;
    color: #ffffff !important;
}

/* الماركات والشعارات */
.s-block--logos-slider .brand-item {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 12px !important;
    height: 90px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.s-block--logos-slider .brand-item:hover {
    border-color: #1E58B0 !important;
}

/* تقييمات العملاء */
.s-block--custom-testimonials .s-reviews-header::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 3px !important;
    background-color: #1E58B0 !important;
}

.s-block--custom-testimonials .s-rating-stars-selected svg {
    fill: #FBBF24 !important; /* النجوم الممتلئة بلون ذهبي وواضح */
}


/* ==========================================================================
   5. تخصيص تذييل الصفحة (Footer) - الثيم الداكن المنسجم
   ========================================================================== */

.store-footer {
    background-color: #111827 !important; /* لون الخلفية الداكن المريح للمتجر */
    color: #f3f4f6 !important;
    border-top: 1px solid #1f2937;
    padding-top: 3rem !important;
    padding-bottom: 2rem !important;
}

.store-footer h3, 
.s-contacts-title {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    position: relative;
    padding-bottom: 8px;
    text-align: right !important;
}

.store-footer h3::after,
.s-contacts-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0 !important;
    left: auto !important;
    width: 35px;
    height: 3px;
    background-color: #1E58B0 !important; /* تناسق الخط التجميلي للفوتر مع لون المتجر الأساسي */
    border-radius: 2px;
}

.store-footer p {
    color: #9ca3af !important;
    font-size: 0.9rem !important;
    line-height: 1.8 !important;
    text-align: right !important;
}

.s-menu-footer-item {
    color: #d1d5db !important;
    font-size: 0.9rem !important;
    padding: 8px 0 !important;
    display: block;
    text-align: right !important;
}

.s-menu-footer-item:hover {
    color: #60a5fa !important;
    padding-right: 6px !important;
}

.s-contacts-item {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    color: #d1d5db !important;
    font-size: 0.9rem !important;
    margin-bottom: 0.85rem !important;
}

/* تصحيح ألوان الأيقونات في الفوتر لتبتعد عن تعارض الهيدر */
.store-footer .s-contacts-icon svg, 
.store-footer .s-social-link a svg,
.store-footer .s-contacts-item svg {
    fill: #9ca3af !important;
    stroke: #9ca3af !important;
}

.store-footer .s-social-link a:hover svg,
.store-footer .s-contacts-item:hover svg {
    fill: #1E58B0 !important;
    stroke: #1E58B0 !important;
}

/* بطاقات التوثيق والسجل التجاري في الفوتر */
.s-trust-badges-wrapper, 
.store-footer .flex.items-end {
    background: #1f2937 !important;
    border: 1px solid #374151 !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
}

.s-trust-badges-number, .store-footer b {
    color: #ffffff !important;
}

/* بوابة الدفع والحقوق */
.store-footer .border-t {
    border-color: #374151 !important;
}

.copyright-text {
    color: #9ca3af !important;
}

.s-payments-list-item img {
    filter: brightness(0.9) contrast(1.1);
}





/* 1. إجبار البانر على الصعود للأعلى ليلتصق بالهيدر تماماً */
.main-banner-container {
    position: relative;
    width: 100%;
    display: block !important;
    overflow: hidden;
    clear: both;
    
    /* هذا هو السحر! إذا لم يختفِ الفراغ بالكامل، ارفع الرقم من -20px إلى -25px أو -30px حتى يضبط تماماً */
    margin-top: -20px !important; 
    padding-top: 0px !important;
}

/* 2. ضبط صورة البانر ومنع أي فراغات تحتها أو فوقها */
.banner-image {
    width: 100%;
    height: auto;
    display: block !important;
    margin: 0px !important;
    padding: 0px !important;
}

/* 3. تنظيف الهيدر من أي هوامش خفية تزيد الفراغ */
.store-header, 
.main-nav-container, 
#mainnav {
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
    height: auto !important; /* للسماح للهيدر بالانكماش على حجم محتواه فقط */
}