/* تغيير لون الايقونات */
svg.text-foreground{
   color: #ff3b30 !important;
}

/*تغيير لون ايقونة القائمة */
button.text-foreground {
    color: #ffffff !important;
}
/*تغيير لون القائمة الى الابيضر */
a.text-foreground.text-sm {
    color: #5d4c0a !important;
}

/* تغيير لون زر تسجيل الدخول */
button#mobile-login-btn {
    color: #ff0000 !important;
}
/* تغيير لون خط السعر المخصص إلى الأحمر */
p.text-foreground.text-sm {
    color: #ff3b30 !important;
}

/*تغيير لون خط الذيل */
.text-foreground  {
    color: #00000 !important;
}
/*تغيير لون خط  المنتج */


/* ضبط أبعاد وحجم بانر الصفحة الرئيسية */
.section-hero.relative.flex.items-center.overflow-hidden {
    min-height: auto !important; /* إلغاء الارتفاع الأدنى الزائد */
    height: 200px !important;    /* تحديد ارتفاع متناسق للشاشات الكبيرة */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* إجبار الصورة على الاحتواء الكامل داخل البانر بدون قص */
.section-hero.relative.flex.items-center.overflow-hidden img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* يمنع قص أطراف الصورة ويحتويها بالكامل */
    object-position: center !important;
}

/* تحسين استجابة أبعاد البانر على الهواتف الذكية */
@media (max-width: 768px) {
    .section-hero.relative.flex.items-center.overflow-hidden {
        height: 150px !important; /* ارتفاع أصغر ومناسب لشاشات الجوال */
        padding-left: 1rem !important;  /* px-4 */
        padding-right: 1rem !important; /* px-4 */
    }
}
/* ==========================================================================
   3. تعديل وتأطير حاوية قسم التصنيفات وإلغاء الحشوات
   ========================================================================== */
/* تصفير الحشوات الجانبية للحاوية الرئيسية للقسم بالكامل للوصول للحد الأدنى */
.section-categories.px-4.py-6.md\:px-5.md\:py-16 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    padding-left: 4px !important;  
    padding-right: 4px !important; 
}

/* تحرير وتوزيع الحاوية الداخلية لمنع الفراغات الجانبية المزعجة */
.section-categories .theme-container.space-y-6 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
}

/* ضبط شريحة السلايدر لعرض الأيقونات متجاورة وبمسافات متناسقة */
.section-categories .embla__container {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important; /* تباعد ثابت ومحكم يمنع التصاق الأيقونات الدائرية */
    justify-content: center !important; /* توسيط الأيقونات بشكل احترافي على شاشات الكمبيوتر */
    transform: none !important;
}

/* قفل أبعاد شريحة الأيقونة لمنع التمدد العشوائي للثيم */
.section-categories .embla__slide {
    flex: 0 0 auto !important;
    width: 85px !important; 
    padding: 0 !important;
    margin: 0 !important;
}

/* ترتيب عناصر الرابط داخل الحاوية وتوسيطها */
.section-categories .embla__slide a.group {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
    text-decoration: none !important;
}

/* تصغير وتدوير إطار الصورة الخارجي إلى دائرة مثالية */
.section-categories .embla__slide .overflow-hidden.rounded {
    width: 70px !important;       /* الحجم الدائري الصغير المطلوب والمثالي */
    height: 70px !important;      /* تثبيت القطر لضمان كمال التدوير */
    border-radius: 50% !important; /* تحويل زوايا الثيم المربعة لدائرة 100% */
    border: 2px solid #e5e7eb !important; /* إطار رفيع لعزل تفاصيل الصورة */
    background-color: #ffffff !important;
    transition: all 0.3s ease-in-out !important;
}

/* معالجة الصورة المرفوعة داخل الدائرة وحمايتها من التشويه */
.section-categories .embla__slide img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important; /* كسر مستطيلات الثيم الافتراضية */
    object-fit: cover !important;     
}

/* تأثير حركي مرن (Hover Effect) للبراند مع تلوين الإطار بالأحمر الموحد */
.section-categories .embla__slide a.group:hover .overflow-hidden.rounded {
    transform: scale(1.05) !important;
    border-color: #ff3b30 !important; /* محاذاة تفاعلية مع لون السعر */
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.15) !important;
}

/* تنسيق خطوط أسماء التصنيفات لتلائم الأيقونة المحدثة */
.section-categories .embla__slide h3.text-foreground {
    font-size: 13px !important; 
    font-weight: 600 !important;
    color: #1f2937 !important;
    text-align: center !important; 
    margin: 0 !important;
    white-space: nowrap !important; /* إجبار العنوان على الظهور في سطر واحد مريح للعين */
}

/* إخفاء أشرطة التقدم والأسهم غير الضرورية للثيم */
.section-categories .embla-wrapper .invisible,
.section-categories .embla__progress {
    display: none !important;
}


/* ==========================================================================
   4. ملاءمة شاشات الجوال والهواتف المحمولة (Responsive)
   ========================================================================== */
@media (max-width: 768px) {
    /* تصفير هوامش الحاوية الجانبية تماماً على الهواتف */
    .section-categories.px-4.py-6.md\:px-16.md\:py-16 {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    /* جعل السلايدر مرناً وقابلاً للتمرير اللمسي من الحافة للحافة مباشرة */
    .section-categories .embla__viewport {
        overflow-x: auto !important; 
        -webkit-overflow-scrolling: touch; 
        padding-bottom: 8px !important; 
        padding-left: 8px !important;  /* هوامش حرة خفيفة لبدايات الشريط */
        padding-right: 8px !important; 
    }
    
    .section-categories .embla__container {
        justify-content: flex-start !important; /* محاذاة الأيقونات لليمين على الجوال */
        gap: 10px !important; /* تقريب مسافات العرض على الهواتف */
    }

    /* تصغير الأيقونات قليلاً لتتناسب ببراعة مع واجهة الجوال */
    .section-categories .embla__slide {
        width: 75px !important; 
    }
    
    .section-categories .embla__slide .overflow-hidden.rounded {
        width: 60px !important;  
        height: 60px !important;
    }
    
    .section-categories .embla__slide h3.text-foreground {
        font-size: 12px !important;
    }

    /* تحسين استجابة البانر الرئيسي على الجوال */
    .section-hero.relative.flex.items-center.overflow-hidden {
        height: 220px !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}