/* ===== Custom Header & Mobile Adjustments ===== */

/* النص الأبيض */
.text-white {
  color: #fff !important;
}

/* مسافة بسيطة تحت العناصر ذات الخلفية الرمادية */
.bg-gray-300 {
  margin-bottom: 2px;
}

/* === Mobile Header Layout Fix === */
@media (max-width: 1024px) {
  .olla-header-navbar .inner {
    position: relative;
  }

  /* مركز الشعار */
  .olla-header-navbar .inner > div:first-child {
    position: relative;
  }

  .olla-header-navbar .w-32 {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  /* أيقونة القائمة (الهمبرغر) يسار */
  .olla-header-navbar .menu {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
  }

  /* عناصر الجهة اليمنى (السلة - الحساب) */
  .olla-header-navbar .lg\:w-3\/12 {
    justify-content: flex-end !important;
  }

  /* خلفية شفافة للهيدر */
  .olla-header-navbar .main-nav-container {
    background: transparent !important;
    box-shadow: none !important;
    z-index: 1001;
  }

  /* عكس ألوان الشعار على الخلفية الغامقة */
  .olla-header-navbar .w-32 img {
    filter: brightness(0) invert(1);
  }

  /* القائمة الجانبية للجوال */
  .olla-header-navbar .navbar.navbar_is_sidebar {
    background-color: #000 !important;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    opacity: 1 !important;
    visibility: visible;
    z-index: 1002;
  }

  /* إخفاء القائمة عند الإغلاق */
  .olla-header-navbar .navbar.navbar_is_sidebar:not(.show) {
    opacity: 0;
    visibility: hidden;
  }

  /* نصوص القائمة */
  .olla-header-navbar .navbar.navbar_is_sidebar ul li,
  .olla-header-navbar .navbar.navbar_is_sidebar .block.md\:hidden {
    color: #fff !important;
  }

  /* زر الإغلاق */
  .olla-header-navbar .navbar.navbar_is_sidebar .close-btn {
    color: #fff;
    font-size: 22px;
    position: absolute;
    right: 20px;
    top: 3px;
    background: transparent;
    z-index: 1003;
  }
}

/* حجم الشعار */
.olla-header-navbar .main-nav-container .w-32,
.olla-header-navbar .main-nav-container .w-32 a,
.olla-header-navbar .main-nav-container .w-32 img {
  width: 200px !important;
  max-width: 200px !important;
  height: auto !important;
  object-fit: contain !important;
}

/* إخفاء النصوص اللي لها هذا الكلاس */
.ai-style-change-1[data-aos][data-aos-delay="100"].aos-animate {
  display: none !important;
}
/* ====== HEADER EFFECTS (TRANSPARENT + SCROLL) ====== */

/* إخفاء الهيدر عند التمرير للأسفل */
.hidden-header {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

/* هيدر شفاف فوق الصورة الرئيسية */
.transparent-header {
  background: transparent !important;
  color: #fff !important;
  transition: background-color 0.4s ease, color 0.4s ease;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1000;
}

/* هيدر ثابت بخلفية سوداء بعد التمرير */
.scrolled-black {
  background-color: #000 !important;
  color: #fff !important;
  transition: background-color 0.4s ease, color 0.4s ease;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1001;
}

/* إذا تبغى اللوجو يتلون تلقائي حسب الخلفية (اختياري) */
.transparent-header .w-32 img {
  filter: brightness(0) invert(1);
}

.scrolled-black .w-32 img {
  filter: none; 
}
await setElementStyles($0, {
  display: 'none' !important;
});