
body {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', sans-serif;
  padding-top: 15px; /* إضافة مساحة للهيدر الثابت */
}
.navbar-custom {
  background-color: #f8f9fa;
  padding: 10px 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar-custom .navbar-brand {
  display: flex;
  align-items: center;
  z-index: 1;
}
.navbar-brand img {
  max-height: 70px;
  margin-left: 10px;
}
.btn-outline-primary {
    color: #ffffff; /* لون النص أبيض */
    background-color: #dc3545; /* خلفية الزر أحمر */
    border-color: #dc3545; /* إطار الزر أحمر */
}

.btn-outline-primary:hover {
    color: #ffffff; /* لون النص عند التمرير يبقى أبيض */
    background-color: #e57373; /* خلفية الزر عند التمرير أحمر فاتح */
    border-color: #e57373; /* إطار الزر عند التمرير أحمر فاتح */
}

/* تنسيق الجدول داخل السلة */
.modal-body .table {
    width: 100%;
    margin-bottom: 15px;
    border-collapse: collapse; /* إزالة المسافات بين الخلايا */
}

.modal-body .table th,
.modal-body .table td {
    text-align: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
}

/* صورة المنتج داخل السلة */
.modal-body .table img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px; /* حواف مستديرة */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* زر الرجوع */
.back-button {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #0056b3;
}
/* تنسيق الإجمالي والنقاط */
#total-price,
#total-points {
    font-weight: bold;
    font-size: 1.2rem;
    color: #dc3545;
}

/* الأزرار في التحكم */
.modal-body .table .btn {
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 5px;
    cursor: pointer;
}

.modal-body .table .btn-remove {
    background-color: #dc3545;
    color: white;
    border: none;
    transition: background-color 0.3s ease;
}

.modal-body .table .btn-remove:hover {
    background-color: #a71d2a;
}

/* تعديل تصميم السلة على الجوال */
@media (max-width: 768px) {
    .modal-body .table thead {
        display: none; /* إخفاء الرأس */
    }

    .modal-body .table tr {
        display: flex;
        flex-direction: column;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 10px;
    }

    .modal-body .table td {
        display: flex;
        justify-content: space-between;
        padding: 5px 0;
        border: none; /* إزالة الحدود */
        font-size: 0.85rem;
    }

    .modal-body .table td img {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

    .modal-body .table td:first-child {
        font-weight: bold;
    }

    /* المجموع والنقاط */
    p, h5 {
        text-align: center;
    }
}


.cart-btn {
  padding: 10px 20px; /* توسيع الزر من الداخل */
  font-size: 1rem; /* ضبط حجم النص داخل الزر */
  line-height: 1.5; /* لضبط المسافة بين الأسطر (يؤثر على ارتفاع النص داخل الزر) */
  display: flex;
  align-items: center; /* توسيط العناصر عمودياً داخل الزر */
  justify-content: center; /* توسيط العناصر أفقياً داخل الزر */
}
/* إعدادات حاوية الماركات لتمكين التمرير الأفقي */
.brands-container {
    display: flex;
    overflow-x: auto;               /* تفعيل التمرير الأفقي */
    padding: 20px 10px;             /* مسافات داخلية أكبر */
    gap: 20px;                      /* مسافة بين العناصر */
    white-space: nowrap;            /* ضمان عرض العناصر أفقيًا */
    scroll-snap-type: x mandatory;  /* تمكين التمرير السلس */
    background: #395169;            /* خلفية فاتحة للحاوية */
    border-radius: 10px;            /* تقوس الحواف للحاوية */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* ظل خفيف */
    margin-top: 20px;               /* تحسين المسافة العليا */
}

/* إعدادات العناصر الفردية للماركات */
.brand-item {
    flex: 0 0 auto;                 /* تثبيت عرض العنصر */
    width: 115px;                   /* زيادة عرض العنصر */
    text-align: center;             /* محاذاة العناصر */
    scroll-snap-align: center;      /* ضبط العنصر في منتصف التمرير */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #ddd;         /* إطار خفيف حول العنصر */
    border-radius: 15px;            /* تقوس الحواف للعنصر */
    padding: 10px;                  /* مسافة داخلية للعنصر */
    background: #ffffff;            /* خلفية بيضاء للعناصر */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* ظل بسيط */
}

/* تأثيرات عند تمرير الماوس */
.brand-item:hover {
    transform: scale(1.1);          /* تكبير العنصر عند التحويم */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* ظل أكبر */
    background: linear-gradient(135deg, #f3f3f3, #ffffff); /* تدرج خلفية بسيط */
}
@media (max-width: 768px) {
    .brands-container {
        padding: 15px 5px; /* تقليل المسافة الداخلية */
        gap: 10px; /* تقليل المسافات بين العناصر */
        margin-top: 10px; /* تقليل المسافة العلوية */
    }

    .brand-item {
        width: 70px; /* تصغير عرض العنصر */
    }

    .brand-item img {
        width: 60px; /* تصغير عرض الشعار */
        height: 60px; /* تصغير ارتفاع الشعار */
    }
}

@media (max-width: 480px) {
    .brands-container {
        padding: 10px 5px; /* تقليل المسافات بشكل أكبر */
        gap: 8px; /* تقليل الفجوة بين العناصر */
        margin-top: -30px;
    }

    .brand-item {
        width: 90px; /* عرض أصغر للعناصر */
        height: 90px;
    }

    .brand-item img {
        width: 50px; /* تصغير الشعار أكثر */
        height: 50px;
    }
}
/* تنسيق إطار شعار الماركة */
.brand-logo-container {
    background-color: #fff;
    border-radius: 50%;             /* إطار دائري للشعار */
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 10px auto;              /* توسيط الشعار داخل العنصر */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* تأثيرات عند التمرير على الحاوية */
.brand-item:hover .brand-logo-container {
    background-color: #f8f9fa;
    transform: scale(1.2);          /* تكبير الحاوية */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* تعزيز الظل */
}

/* تنسيق صورة شعار الماركة */
.brand-icon {
    width: 50px;                    /* حجم أكبر للشعار */
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease; /* حركة سلسة للتكبير */
}

/* تكبير الصورة عند التمرير */
.brand-item:hover .brand-icon {
    transform: scale(1.15);         /* تكبير الشعار فقط */
}

/* تنسيق اسم الماركة */
.brand-name {
    font-size: 14px;                /* حجم خط أكبر قليلاً */
    font-weight: bold;
    color: #333;
    margin-top: 8px;                /* مسافة بين الشعار والنص */
    transition: color 0.3s ease, opacity 0.3s ease;
}

/* تأثيرات النص عند التمرير */
.brand-item:hover .brand-name {
    color: #007bff;                 /* تغيير لون النص */
    transform: scale(1.1);          /* تكبير النص */
}

/* إخفاء شريط التمرير الأفقي */
.brands-container::-webkit-scrollbar {
    display: none;
}



.cart-btn i {
  margin-right: 5px; /* إضافة مسافة صغيرة بين أيقونة السلة والنص */
}

.cart-btn .badge {
  font-size: 0.9rem; /* تصغير حجم الشارة قليلاً */
  padding: 5px 10px; /* ضبط حجم الشارة */
}
/* تعديل عرض السلة على الشاشات الكبيرة */
@media (min-width: 992px) {
    #cartModal .modal-dialog {
        max-width: 80%; /* زيادة عرض السلة إلى 80% من عرض الشاشة */
    }

    #cartModal .modal-content {
        border-radius: 10px; /* تحسين الحواف */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* تحسين الظلال */
    }

    #cartModal .modal-header,
    #cartModal .modal-footer {
        padding: 20px; /* توسيع المساحات داخل العناوين والأزرار */
    }

    #cartModal .modal-title {
        font-size: 1.5rem; /* تكبير العنوان */
    }

    #cartModal .table th,
    #cartModal .table td {
        font-size: 1rem; /* تكبير النصوص داخل الجدول */
    }

    #cartModal .table img {
        width: 60px; /* تكبير صور المنتجات قليلاً */
        height: 60px;
    }
}


/* الكود الحالي الخاص بالسلة */
/* تحسينات للسلة */
#cart {
    position: relative;
    top: 0; /* إزالة المسافة الرأسية */
    right: 0; /* التأكد من عدم تحريك السلة يمينًا */
    background-color: transparent;
    color: #fff; /* لون النص */
    border: none;
    font-size: 1.2rem; /* تكبير النص */
    display: inline-block; /* تأكد من عرض السلة */
    margin-left: auto; /* دفع السلة إلى اليمين */
}

#cart i {
    color: #fff; /* لون أيقونة السلة */
    font-size: 1.5rem;
}

#cart .badge {
    background-color: #dc3545; /* جعل لون الشارة أحمر */
    color: white;
    font-size: 0.9rem;
}

/* تأكد من أن السلة تظهر على الشاشات الكبيرة */
@media (min-width: 769px) {
  #cart {
    display: block; /* تأكد من عرض السلة */
    position: fixed; /* تثبيت السلة */
    top: 20px; /* تحديد موقع السلة في الأعلى */
    right: 20px; /* تحديد موقع السلة إلى اليمين */
    z-index: 1000; /* تأكد من بقاء السلة فوق جميع العناصر */
  }
}
/* الكلاس المخصص للسلة على الحاسوب */
/* الكلاس المخصص للسلة على الحاسوب */
.desktop-cart {
  display: block; /* عرض السلة على الشاشات الكبيرة */
}

/* الكلاس المخصص للسلة على الجوال */
.mobile-cart {
  display: none; /* إخفاء السلة على الشاشات الكبيرة */
}

/* عند استخدام الشاشات الصغيرة (أقل من 768px) */
@media (max-width: 768px) {
  .desktop-cart {
    display: none; /* إخفاء السلة على الحاسوب */
  }

  .mobile-cart {
    display: flex; /* إظهار السلة */
    background-color: transparent; /* إزالة الخلفية */
    border: none; /* إزالة الإطار */
    color: red; /* لون رمز السلة */
    align-items: center;
    justify-content: center;
  }

  .mobile-cart i {
    color: red; /* تغيير لون رمز السلة إلى الأحمر */
    font-size: 1.9rem; /* تكبير الأيقونة */
  }

  .mobile-cart .badge {
    background-color: red; /* جعل خلفية الشارة حمراء */
    color: white; /* لون النص داخل الشارة أبيض */
    font-size: 0.9rem; /* حجم النص داخل الشارة */
    padding: 5px 10px; /* تكبير الشارة قليلاً */
  }
}


/* تخصيص القائمة المنبثقة */
.navbar .dropdown-menu {
    background-color: #f8f9fa;
    border-radius: 0;
    border: 1px solid #ddd;
}

.dropdown-item {
    color: #333;
    padding: 8px 20px;
}

.dropdown-item:hover {
    background-color: #000;
    color: #000;
}

/* تخصيص القوائم الفرعية */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    display: none; /* إخفاء القوائم الفرعية افتراضياً */
}

.nav-item.dropdown:hover .submenu {
    display: block; /* إظهار القائمة الفرعية عند التمرير */
}




.social-icons {
  margin-left: 20px;
  text-align: center;
  margin-bottom: 10px;
}

.social-icons a {
  color: #343a40;
  margin-left: 10px;
  font-size: 1.5rem;
}

/* تحسينات للتصميم على الشاشات الأصغر */
@media (max-width: 768px) {
  .navbar-custom {
    flex-direction: column;
    align-items: center;
  }

  .search-box {
    display: none; /* إخفاء صندوق البحث على الشاشات الصغيرة */
  }

  .social-icons {
    justify-content: center;
    position: fixed; /* جعل الأيقونات معلقة فقط على الشاشات الصغيرة */
    top: 50%; /* لتكون في منتصف الشاشة عمودياً */
    right: 20px; /* لتكون على الجانب الأيمن من الشاشة */
    transform: translateY(-50%); /* لضبط المحاذاة العمودية بشكل دقيق */
    z-index: 1000; /* تأكد من بقاء الأيقونات فوق المحتوى */
  }

  .social-icons a {
    display: block;
    margin-bottom: 10px; /* إضافة مسافة بين الأيقونات */
    background-color: #f8f9fa; /* لون خلفية خفيف للأيقونات */
    padding: 10px;
    border-radius: 50%; /* جعل الأيقونات دائرية */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* إضافة ظل خفيف للأيقونات */
    transition: background-color 0.3s ease, transform 0.3s ease;
  }

  .social-icons a:hover {
    background-color: #007bff; /* تغيير لون الخلفية عند التمرير */
    transform: scale(1.1); /* تكبير الأيقونة قليلاً عند التمرير */
    color: #fff; /* تغيير لون الأيقونة للنص الأبيض عند التمرير */
  }

  .contact-info {
    text-align: center;
    margin-bottom: 10px;
  }
}

/* تحسينات للتصميم على الشاشات الصغيرة جدًا (الموبايلات الصغيرة) */
@media (max-width: 480px) {
  .social-icons a {
    font-size: 1.2rem; /* تقليل حجم الأيقونات أكثر */
  }

  .search-box {
    display: none; /* إخفاء صندوق البحث على الموبايلات الصغيرة جدًا */
  }

  .contact-info {
    font-size: 0.8rem; /* تقليل حجم النص لمعلومات الاتصال */
  }
}

.main-content {
  margin-top: 120px;
}
.category-menu {
  background: linear-gradient(135deg, #395169, #e0e5ec); /* خلفية متدرجة */
  padding: 15px 20px; /* لا تغيير في المسافات الداخلية */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* ظل */
  position: fixed;
  top: 100px;
  width: 100%;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* ضبط محاذاة القائمة عند العرض على الحاسوب */
@media (min-width: 768px) {
  .category-menu ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center; /* توسيط القائمة بالكامل */
  }
}

/* التصميم الافتراضي للأزرار */
.category-menu li {
  padding: 1px 2px;
  margin-right: 5px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  border-radius: 5px;
  background-color: #ffffff;
  color: #343a40;
  border: 1px solid #ddd;
}

.category-menu li:hover {
  background-color: #dc3545;
  color: white;
}

.category-menu a {
  text-decoration: none;
  color: #343a40;
  font-weight: bold;
}

.category-menu a:hover {
  color: white;
}
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse {
        display: flex !important; /* تفعيل Flexbox */
        justify-content: center; /* توسيط العناصر أفقياً */
        align-items: center; /* توسيط العناصر عمودياً */
        flex-basis: auto; /* الحفاظ على العرض الافتراضي */
    }
}

.category-menu .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 8px;
  white-space: nowrap;
  z-index: 1001;
  padding: 10px 0;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.category-menu li:hover .submenu {
  display: block;
}

.category-menu .submenu li {
  padding: 12px 20px;
  margin: 0;
  transition: background 0.3s ease, color 0.3s ease;
  border-bottom: 1px solid #eee;
  background-color: #f0f0f0;
  color: #333;
  font-weight: 500;
}

.category-menu .submenu li:hover {
  background: #007bff;
  color: #fff;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

/* القائمة الجانبية على الجوال */
@media (max-width: 768px) {
  /* إخفاء القائمة العادية على الجوال */
  .category-menu {
    display: none;
  }

  /* إظهار القائمة الجانبية فقط على الجوال */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100%;
  background-color: #f8f9fa;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
  z-index: 1100;
  transition: right 0.3s ease;
  display: block;
}



  .mobile-menu ul {
    list-style: none;
    padding: 20px;
    margin: 0;
  }

  .mobile-menu li {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
  }

  .mobile-menu a {
    text-decoration: none;
    color: #343a40;
    font-weight: bold;
  }

  .mobile-menu .submenu {
    display: none;
    padding-left: 20px;
  }

  .mobile-menu li.open .submenu {
    display: block;
  }

  /* تعديل زر القائمة الجانبية ليظهر أسفل اللوغو في أقصى اليمين */
  .menu-toggle {
    display: block;
    position: absolute;
    top: 80px; /* أسفل اللوغو */
    right: 15px; /* أقصى اليمين */
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1200;
  }

  /* تعديل زر السلة ليكون أسفل اللوغو في أقصى اليسار */
  .cart-btn {
    position: absolute;
    top: 85px; /* أسفل اللوغو */
    left: -10px; /* أقصى اليسار */
    transform: translateY(0); /* إزالة التأثيرات الأخرى */
    z-index: 1200;
  }

  /* إظهار القائمة الجانبية عند فتحها */
  .menu-open .mobile-menu {
    right: 0;
  }

  /* تغيير لون الزر عند فتح القائمة */
  .menu-open .menu-toggle {
    background-color: #dc3545;
  }
}

/* القائمة لا تظهر على الحواسيب */
@media (min-width: 769px) {
  .mobile-menu {
    display: none;
  }

  .menu-toggle {
    display: none;
  }
}
.close-menu {
  position: absolute;
  top: 10px;
  right: 15px;
  background-color: transparent;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
}







.product-modal-main-image {
  max-width: 100%;
  max-height: 400px; /* تكبير الصورة الرئيسية */
  object-fit: cover;
  margin: 20px auto;
  display: block;
  cursor: pointer; /* إضافة مؤشر لتكبير الصورة */
}

.product-modal-images {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.product-modal-images img {
  max-width: 80px;
  max-height: 80px;
  object-fit: cover;
  border-radius: 5px;
  margin: 5px;
  cursor: pointer; /* إضافة مؤشر لتكبير الصورة */
}

.product-modal-details {
  margin-top: 20px;
  text-align: center;
}

.product-modal-details h5 {
  margin-bottom: 10px;
}

.product-modal-details p {
  font-size: 1.1rem;
  color: green;
  margin-bottom: 10px;
}

.attribute-list {
  list-style-type: none;
  padding: 0;
  text-align: center;
}

.attribute-list li {
  padding: 5px 0;
}

.attribute-list li span {
  font-weight: bold;
}

/* إضافة التنسيقات المخصصة */
.category-container {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 30px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: 2px solid #ff0052;
  border-radius: 10px;
  padding: 10px;
  background-color: #333;
  color: white;
  font-size: 1.5em;
  margin-bottom: 20px;
  box-sizing: border-box;
  margin-top: 15px;
}

.category-title h3 {
  margin: 0;
}
.h3, h3 {
    font-size: 1.5rem;
}
/* إخفاء القوائم الفرعية بشكل افتراضي */
.mobile-menu .submenu {
  display: none;
  padding-right: 15px;
}

/* إظهار القائمة الفرعية عند تفعيل فئة 'show' */
.mobile-menu .submenu.show {
  display: block;
}

/* ضبط المؤشر للإشارة إلى إمكانية النقر */
.category-name {
  cursor: pointer;
}
/* زر القائمة الرئيسية (يظهر فقط على الأجهزة المحمولة) */
.open-navigation {
  display: none; /* إخفاء افتراضي */
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  position: fixed;
  top: 95px;
  right: 20px;
  z-index: 1100;
}

/* إظهار زر القائمة على الأجهزة ذات الشاشات الصغيرة فقط */
@media (max-width: 768px) {
  .open-navigation {
    display: block; /* إظهار الزر فقط للشاشات الصغيرة */
  }
}

/* إعدادات القائمة الجانبية */
.mobile-navigation {
    display: none; /* إخفاء القائمة افتراضياً */
    position: fixed;
    top: 0;
    right: 0;
    width: 70%; /* عرض أصغر للحصول على مظهر أكثر بساطة */
    height: 100%;
    background-color: #ffffff; /* خلفية بيضاء بسيطة */
    border-left: 1px solid #ddd; /* خط حدود بسيط */
    z-index: 1000;
    padding: 10px; /* مسافات داخلية صغيرة */
    overflow-y: auto; /* السماح بالتمرير عند زيادة المحتوى */
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1); /* ظل خفيف */
}

/* تعديل الروابط داخل القائمة */
.mobile-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-navigation li {
    margin-bottom: 15px; /* مسافة بين العناصر */
}

.mobile-navigation a {
    text-decoration: none;
    font-size: 1.1rem; /* حجم خط بسيط */
    color: #333; /* لون النص */
    display: block;
    padding: 8px 10px; /* مساحة داخلية للرابط */
    border-radius: 5px; /* زوايا مستديرة */
    transition: background 0.3s ease, color 0.3s ease; /* تأثير حركة سلس */
}

.mobile-navigation a:hover {
    background-color: #f0f0f0; /* تغيير لون الخلفية عند التحويم */
    color: #007bff; /* لون النص عند التحويم */
}

/* زر إغلاق القائمة */
.close-navigation {
    position: absolute;
    top: 10px;
    left: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}


.main-categories {
  list-style: none;
  padding: 0;
}

.main-category {
  margin-bottom: 10px;
}

.category-title1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    background-color: #c51324;
    color: white;
    font-size: 1em;
    margin-bottom: 20px;
    box-sizing: border-box;
    margin-top: 15px;
}

.sub-categories {
  display: none;
  list-style: none;
  padding: 0;
  margin-top: 5px;
  margin-left: 15px;
}

.sub-categories.show {
  display: block;
}

.subcategory-link {
  text-decoration: none;
  color: #333;
  font-size: 16px;
}

.category-title a {
  color: white;
  font-size: 0.8em;
  background-color: #0062cc;
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.category-title a:hover {
  background-color: #0056b3;
}

/* الشبكة على الشاشات الكبيرة */
/* الشبكة على الشاشات الكبيرة */
/* الشبكة على الشاشات الكبيرة */
.category-products {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 أعمدة على الشاشات الكبيرة */
  gap: 20px;
  width: 100%;
}

/* الشبكة على الشاشات الصغيرة والمتوسطة */
@media (max-width: 768px) {
  .category-products {
    grid-template-columns: repeat(2, 1fr); /* صنفين في كل سطر */
    gap: 10px; /* فجوة بين الأعمدة */
  }
}

/* الشبكة على الشاشات الصغيرة جداً (أقل من 480px) */
@media (max-width: 480px) {
  .category-products {
    grid-template-columns: repeat(2, 1fr); /* صنفين في كل سطر */
    gap: 10px; /* فجوة بين الأعمدة */
  }
}

/* تحسين مظهر المنتجات */
.product {
  border: 1px solid #ddd;
  padding: 1px;
  text-align: center;
  transition: transform 0.3s, border-radius 0.3s;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.product img {
  max-width: 100%; /* تأكد أن الصورة لا تتجاوز حدود الكارت */
  height: 100px; /* تحديد ارتفاع ثابت للصورة */
  object-fit: contain; /* ضمان تناسب الصورة مع حجم الكارت بدون قص */
  border-radius: 10px; /* الحفاظ على الحواف الدائرية */
  background-color: #f8f8f8; /* إضافة خلفية خفيفة لضمان أن الصورة لا تبدو مقطوعة إذا كانت أصغر من المساحة المتاحة */
}
.card-body1 {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-height: 1px;
}

.product h5 {
  margin-top: 1px;
  font-size: 1rem;
}

.product button {
  margin-top: 10px;
}

/* التأثير عند تمرير الماوس على المنتج */
.product:hover {
  transform: scale(1.05);
  border-radius: 20px;
}




.product h5 {
  margin-top: 1px;
  font-size: 1rem;
}

.product .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product button {
  margin-top: 10px;
}

.card {
  height: 100%;
}

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: red;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9em;
  z-index: 1;
}

.unavailable {
  opacity: 0.5;
  pointer-events: none;
}

.unavailable .card-body::after {
  content: "غير متوفر";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  color: red;
  font-size: 1.5em;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
}

/* تصميم مميز لقسم عروض ساخنة */
.featured-category-container {
  border: 2px solid #dc3545;
  border-radius: 15px;
  padding: 5px;
  margin-bottom: 40px;
  background-color: #f1eeee;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.featured-category-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border: 2px solid #9d9697;
    border-radius: 15px;
    padding: 15px;
    background-color: #395169;
    color: white;
    font-size: 2em;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.bg-primary {
    background-color: #dc3545  !important;
}
/* تصميم السلايدر للحاسوب */
.custom-carousel {
  max-width: 100%; /* عرض السلايدر بالنسبة للشاشة */
  margin: 0 auto; /* توسيط السلايدر */
  overflow: hidden; /* إخفاء أي عناصر خارجة عن الإطار */
}

.custom-carousel-img {
  width: 100%; /* عرض الصورة بالنسبة للسلايدر */
  max-width: 1600px; /* الحد الأقصى للعرض */
  height: 400px; /* الحفاظ على ارتفاع الصورة الحقيقي */
  display: block; /* منع أي فراغ أسفل الصور */
  object-fit: cover; /* ملء الإطار دون تشويه */
  margin: 0 auto; /* توسيط الصورة أفقياً */
  margin-top: 40px;
}

/* تصميم النقاط (Indicators) */
.carousel-indicators li {
  width: 10px;
  height: 10px;
  margin: 5px;
  border-radius: 50%;
  background-color: #007bff; /* لون النقاط */
}

.carousel-indicators .active {
  background-color: #ff5722; /* لون النقطة النشطة */
}

/* أزرار التنقل */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5); /* خلفية شفافة */
  border-radius: 50%;
  padding: 10px;
}

/* تصميم خاص للجوال */
@media (max-width: 768px) {
  .custom-carousel {
    max-width: 100%; /* عرض السلايدر كامل الشاشة */
    margin: 0; /* إزالة الهوامش */
  }

  .custom-carousel-img {
    width: 100%; /* عرض الصورة بالكامل */
    height: auto; /* الحفاظ على النسبة الأصلية */
    max-height: 400px; /* لضمان عدم تجاوز الصورة للطول */
    object-fit: contain; /* عرض الصورة بالكامل دون قص */
    margin: 0 auto; /* توسيط الصورة أفقياً */
    margin-top: 25px;
  }
}




/* التنسيقات الخاصة بالجوال */
@media (max-width: 768px) {
  .category-products {
    grid-template-columns: repeat(2, 1fr); /* تحديد عدد الأعمدة إلى 2 على الشاشات الصغيرة */
  }
}

@media (max-width: 480px) {
  .category-products {
    grid-template-columns: repeat(2, 1fr); /* تحديد عدد الأعمدة إلى 1 على الشاشات الصغيرة جدًا */
  }
}
 .filter-container {
        margin-bottom: 20px;
        padding: 15px;
        background-color: #f8f9fa;
        border: 1px solid #ddd;
        border-radius: 5px;
    }

    .filter-container label {
        font-weight: bold;
        margin-bottom: 5px;
        display: block;
    }

    .filter-container select,
    .filter-container button {
        width: 100%;
        padding: 10px;
        margin-bottom: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 14px;
    }

    .filter-container button {
        background-color: #007bff;
        color: white;
        cursor: pointer;
    }

    .filter-container button:hover {
        background-color: #0056b3;
    }

/* Product card styling */
.card.product {
    position: relative; /* Enables positioning of child elements like the points overlay */
    overflow: hidden;   /* Prevents content from spilling outside the card */
}

/* Points overlay styling */
.points-overlay {
    position: absolute;
    top: 10px; /* Slightly below the top edge of the card */
    left: 10px; /* Slightly from the left edge of the card */
    background-color: #cf1f30; /* Semi-transparent gold background */
    color: #fff; /* White text color */
    font-size: 14px; /* Font size for readability */
    font-weight: bold; /* Bold text for emphasis */
    padding: 5px 10px; /* Padding for a neat appearance */
    border-radius: 15px; /* Rounded corners for a modern look */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for a floating effect */
    z-index: 10; /* Ensures it appears above other elements */
}

/* Ensure product image is displayed below the overlay */
.card-img-top {
    margin-top: 20px; /* Add space to avoid overlapping with the points overlay */
}


.brand-grid .brand-scroll {
    display: flex;
    overflow-x: auto; /* Enable horizontal scrolling */
    white-space: nowrap;
    gap: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;

    /* Smooth touch scrolling */
    -webkit-overflow-scrolling: touch; /* Enable momentum scrolling for iOS devices */
    scroll-behavior: smooth;           /* Smooth scrolling */
}

/* Hide the scrollbar visually but keep functionality */
.brand-grid .brand-scroll::-webkit-scrollbar {
    display: none; /* Hide scrollbar for WebKit browsers */
}

.brand-grid .brand-scroll {
    -ms-overflow-style: none;  /* Hide scrollbar for Internet Explorer */
    scrollbar-width: none;     /* Hide scrollbar for Firefox */
}

/* Brand item styling */
.brand-grid .brand-item label {
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

/* Brand images with uniform size */
.brand-grid .brand-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 5px;
    background: #fff;
    object-fit: contain;
    object-position: center;
    display: block;
}
.featured-category-title {
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 2px solid #ddd;
  margin-bottom: 20px;
}

.featured-category-title h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #007bff;
  margin-bottom: 5px;
}

.featured-category-title p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}

.featured-category-title .btn {
  font-size: 0.8rem;
  border-radius: 15px;
  padding: 5px 15px;
  transition: all 0.3s ease-in-out;
}

.featured-category-title .btn:hover {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}
/* الحاوية الرئيسية للمحتوى */
.main-content-wrapper {
    max-width: 1400px; /* العرض الأقصى للحاوية */
    margin: 0 auto; /* توسيط الحاوية أفقياً */
    padding: 20px; /* مسافات داخلية حول المحتوى */
    background-color: #ffffff; /* خلفية الحاوية */
    border-radius: 10px; /* حواف مستديرة */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* ظل خفيف حول الحاوية */
    box-sizing: border-box; /* تضمين الحواف والحدود في الحساب */
}

/* تخصيص عرض الكاروسيل */
.custom-carousel {
    border-radius: 10px; /* جعل الكاروسيل متناسقاً مع الحاوية */
    overflow: hidden; /* ضمان عدم خروج المحتوى */
}

/* تخصيصات إضافية للشاشات الصغيرة */
@media (max-width: 768px) {
    .main-content-wrapper {
        padding: 10px; /* تقليل المسافات الداخلية على الشاشات الصغيرة */
    }
}

/* Brand name text under each image */
.brand-grid .brand-name {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin-top: 5px;
    text-align: center;
}

/* Checkbox styling */
.brand-grid input[type="checkbox"] {
    display: none; /* Hide the actual checkbox */
}

.brand-grid input[type="checkbox"]:checked + img {
    border: 2px solid #007bff; /* Highlight selected images */
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .brand-grid .brand-scroll {
        overflow-x: auto; /* Keep horizontal scrolling active */
    }
}
/* حاوية البانر */
.banner-slider-container {
    width: 100%;
    max-width: 1400px;
    height: 120px; /* الارتفاع الافتراضي */
    margin: 20px auto;
    position: relative;
    border-radius: 8px;
    overflow: hidden; /* ضمان عدم تجاوز الصورة للحاوية */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* الصور داخل البانر */
.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* تغطية الإطار بشكل متناسق */
    opacity: 0; /* بدء الصور مخفية */
    transition: opacity 1s ease-in-out; /* تأثير التلاشي */
}

/* تفعيل الصورة النشطة */
.banner-image.active {
    opacity: 1; /* إظهار الصورة النشطة */
    z-index: 1;
}

/* تحسين التوافق مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .banner-slider-container {
        height: 50px; /* ارتفاع متوسط للشاشات الصغيرة */
    }

    .banner-image {
        object-fit: contain; /* الحفاظ على الصورة بالكامل */
    }
}

@media (max-width: 480px) {
    .banner-slider-container {
        height: 50px; /* ارتفاع أكبر للهواتف الصغيرة */
    }

    .banner-image {
        object-fit: contain; /* ضمان تناسب الصورة مع الحاوية */
    }
}
.whatsapp-float {
  position: fixed;
  bottom: 20px; /* المسافة من أسفل الصفحة */
  right: 20px; /* المسافة من يمين الصفحة */
  z-index: 9999; /* قيمة عالية لضمان ظهورها فوق العناصر الأخرى */
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.2);
}

.whatsapp-icon {
  font-size: 28px;
}


.col-12 {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0px;
    padding-left: 0px;
}


.quantity-container {
    display: flex;
    align-items: center;
    gap: 10px; /* مسافة صغيرة بين النص وحقل الإدخال */
}

.quantity-container label {
    font-size: 14px;
    font-weight: bold;
    padding: 10px;
}

.quantity-container input.quantity-input {
    width: 60px; /* عرض صغير */
    height: 30px; /* ارتفاع مناسب */
    font-size: 14px; /* خط صغير */
    text-align: center; /* جعل النص في الوسط */
    padding: 0;
}
