/* === إعدادات عامة === */
body, html {
  margin: 0;
  padding: 0;
  font-family: "Cairo", sans-serif;
  background-color: #FFFFFF; /* أبيض ناصع */
  color: #111111; /* أسود لامع */
}

main {
  padding-top: 82px; /* مجموع ارتفاع top-bar-mobile + navbar */
}

/* === شريط موبايل مختصر مثبت === */
.top-bar-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  background-color: #FFD700; /* أصفر لامع */
  padding: 0.3rem 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.top-bar-mobile a {
  font-size: 1.2rem;
  transition: color 0.3s;
}

.top-bar-mobile a:hover {
  color: #111111; /* أسود لامع */
}

/* === Navbar مثبت === */
.navbar {
  position: fixed;
  top: 40px; /* أسفل top-bar-mobile */
  left: 0;
  width: 100%;
  z-index: 1040;
  background-color: #FFFFFF; /* أبيض ناصع */
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* تعديل padding-top للمحتوى */
@media (max-width: 768px) {
  main {
    padding-top: 82px; /* ارتفاع top-bar-mobile + navbar تقريبًا */
  }
}

/* Navbar Links */
.navbar-brand {
  font-size: 1.4rem;
  color: #FFD700 !important; /* أصفر لامع */
}

.navbar .nav-link {
  color: #FFD700;
  transition: 0.3s;
}

.navbar .nav-link:hover {
  text-decoration: underline;
  color: #000000; /* أسود لامع */
}

/* === سلايدر Swiper === */
.swiper {
  width: 100%;
  height: 400px;
  padding-bottom: 40px;
}

.swiper-slide {
  display: flex;
  justify-content: center;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.swiper-button-next,
.swiper-button-prev {
  color: #FFD700 !important; /* أصفر لامع */
}

.swiper-pagination-bullet-active {
  background-color: #F4A460 !important; /* عسلي */
}

/* === كروت المنتجات === */
.card {
  transition: all 0.3s ease-in-out;
  background-color: #FFFFFF;
  border: none;
  border-radius: 1rem;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2); /* أسود لامع */
}

.card img {
  height: 200px;
  object-fit: cover;
  border-radius: 1rem 1rem 0 0;
}

/* === أزرار عامة === */
.btn {
  border-radius: 30px;
  font-weight: 600;
}

/* === الفوتر === */
footer {
  background-color: #111111; /* أسود لامع */
}

footer a:hover {
  color: #FFD700 !important;
}

footer p, footer small {
  color: #FFFFFF;
}

/* لغات الهيدر */
.lang-en, .lang-ar {
  transition: all 0.3s ease;
}


/* <!-- منطقة مخفية للتحكم بظهور زر الدخول --> */

/* المنطقة الصغيرة التي عند الـ hover تظهر الزر */
.admin-trigger {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-block;
  vertical-align: middle;
  /* إذا أردت تكون شفافة تمامًا: */
  background: transparent;
}

/* الزر مخفي افتراضياً */
.admin-trigger .admin-btn {
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.18s ease;
}

/* عند المرور أو الوقوف فوق المنطقة يظهر الزر */
.admin-trigger:hover .admin-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translate(50%, -50%) scale(1);
}

/* --------------------------------------------
   شركاؤنا - تحسين تصميم الشعارات
-------------------------------------------- */
/* --------------------------------------------
   شركاؤنا - مع الاسم والرابط
-------------------------------------------- */
.partner-logo {
    max-height: 100%;
    max-width: 200px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background-color: #fff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.swiper.partnersSwiper .swiper-slide {
    width: auto !important;
    height: 100px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 12px;
    transition: transform 0.3s ease;
}

.swiper.partnersSwiper .swiper-slide:hover {
    transform: translateY(-5px);
}

/* تحسين التصميم على الموبايل */
@media (max-width: 575px) {
    .swiper.partnersSwiper .swiper-slide {
        width: 120px !important;
        height: 110px !important;
    }
    .partner-logo {
        max-height: 50px;
    }
    .swiper-slide small {
        font-size: 0.8rem;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .swiper.partnersSwiper .swiper-slide {
        width: 140px !important;
        height: 110px !important;
    }
}

@media (min-width: 992px) {
    .swiper.partnersSwiper .swiper-slide {
        width: 160px !important;
        height: 120px !important;
    }
}


/* ضبط التمرير للعناوين مع الهيدر المثبت */
section {
    scroll-margin-top: 90px; /* نفس ارتفاع الهيدر + مساحة صغيرة */
}

/* اختياري: إضافة هامش بصري فوق الأقسام عند التنقل */
[id] {
    scroll-margin-top: 90px;
}