* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

body {
  background-color: #f4f4f4;
  font-family: 'DINNextLTArabic';
}


.contact-info {
  direction: rtl;
  background-color: #f9fafb;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  color: #333;
  display: flex;
}
.s-contacts{
  display: flex;
  direction: rtl;
  width: 35%;
  padding: 10px;
}

.s-contacts-topnav-link{

  border-left: 1px solid;
    padding-left: 10px;
    color: #000;
    text-decoration: none;
    padding-right: 10px;


}
.unicode{
    padding-right: 10px;
    color: #000;
    list-style: none;
    text-decoration: none;
}

.navbar {
  direction: rtl;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 10px 20px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease; /* انتقال سلس عند إضافة الفئة */

}
.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 70px;
  margin-right: 8px;
}

.menu {
  display: flex;
  list-style: none;
}

.menu li {
  margin: 0 15px;
}

.menu li a {
  text-decoration: none;
  color: #000;
  font-size: 16px;
  font-weight: 700;
}

.menu li a:hover {
  color: #b00;
}

.icons {
  display: flex;
  align-items: center;
}

.search-input {
  padding: 5px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 30%;
  width: 100%;
  background-color: rgba(229, 231, 235, 0.5);
  font-family: 'DINNextLTArabic';
  height: 36px ;
  
}

.fa-shopping-cart, .fa-user {
  font-size: 18px;
  color: #333;
  margin-left: 15px;
  cursor: pointer;
}

.fa-shopping-cart:hover, .fa-user:hover {
  color: #b00;
}
.flex-1 {
  flex: 1 1 0%;
}
.top-navbar .s-search-input {
  border-style: none;
  background-color: rgba(229, 231, 235, 0.5);
}

.s-search-input:where([dir="rtl"], [dir="rtl"] *) {
  padding-right: 2.5rem;
}
.search-container {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.search-container .fa-search {
  position: absolute;
  right: 10px; /* مكان الأيقونة */
  color: #4d4d4d;
  font-size: 16px;
  float: right;
  padding: 10px;

}

.search-input {
  padding-left: 30px; /* ترك مساحة للأيقونة */
  padding: 5px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;

}
.search-input {
  background-image: url('path-to-search-icon.png'); /* ضع مسار الصورة هنا */
  background-position: 10px center; /* مكان الأيقونة داخل المربع */
  background-repeat: no-repeat;
  padding-left: 30px; /* ترك مساحة للأيقونة */
  padding: 5px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 18px;
  direction: rtl;
  padding: 10px 38px;
  height: 36px;
}
.menu li a:hover {
  color: #b00;
}
.menu-toggle {
  color: #000000;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}


/* إخفاء القائمة وأيقونة الهامبرغر عند العرض أقل من 768 بكسل */
@media (max-width: 868px) {
  .menu {
    display: none; /* إخفاء القائمة */
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #fff;
    width: 100%;
    padding: 20px 0;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
  }

  .s-contacts{ 

    display: none; /* إخفاء العنصر عند تصغير الشاشة */

   }

  /* جعل أيقونة الهامبرغر ظاهرة */
  .menu-toggle {
    display: block;
    font-size: 24px;
    cursor: pointer;
  }

}

/* حالة ظهور القائمة */
.menu.show {
  display: flex;
}
.side-menu {
  position: fixed;
  top: 0;
  right: -250px; /* بداية خارج الشاشة */
  width: 250px;
  height: 100%;
  background-color: #f9fafb;
  color: rgb(43, 43, 43);
  transition: right 0.2s ease;
  padding: 20px;
  z-index: 1000; /* لظهور القائمة فوق العناصر الأخرى */
}

.side-menu.show {
  right: 0; /* يظهر عندما يتم إضافة الفئة 'show' */
}

.close-btn {
  cursor: pointer;
  font-size: 30px;
  margin-bottom: 20px;
}

ul {
  list-style-type: none;
  padding: 0;
}

ul li {
  margin: 10px 0;
}

ul li a {
  color: rgb(33, 33, 33);
  text-decoration: none;
  font-weight: 700;
}
.icons {
  display: flex;
  align-items: center;
}

.icon-wrapper {
  position: relative;
  margin-left: 10px;
  height: 50px; /* الارتفاع المطلوب للدائرة */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%; /* لجعل الحدود دائرية */
  transition: color 0.3s, border-color 0.3s;
}

.cart-icon i, .user-icon i {
  font-size: 24px;
  color: #4f4f4f;
  border: 2px solid #b8b8b8;
  padding: 6px;
  border-radius: 50%;
}

/* إعدادات لرقم المشتريات */
.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #b00;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 50%;
  min-width: 18px;
  text-align: center;
  border: 2px solid white; /* إضافة حدود للعداد */
}
@media(max-width:500px) {
  #slider {
      height: 100px;
  }

  #prev-button,
  #next-button {
      top: 40px !important;
  }
}

#slider {
  width: 100%;
  height: 350px;
  overflow: hidden;
  position: relative;

}

#slider img {
  width: 100%;
  height: 100%;
  display: none;
}

#slider img.active {
  display: block;
}

#slider-navigation {
  text-align: center;
  margin-top: 10px;
}

.slider-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ccc;
  margin: 0 5px;
  cursor: pointer;
}

.slider-dot.active {
  background-color: #555;
}

#slider-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  
}

#prev-button,
#next-button {
  padding: 8px 15px;
  margin: 0 10px;
  background-color: rgb(165 165 165 / 40%);
  color: #fff;
  border: none;
  cursor: pointer;
  top: 100px;
  border-radius: 200px;
}

#prev-button:hover,
#next-button:hover {
  background-color: blue;

}
@media(max-width:1000px) {
  #slider {
      height: 100px;
  }

  #prev-button,
  #next-button {
      top: 40px !important;
  }
}

#slider {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  top: 40px;
}

#slider img {
  width: 80%;
  height: 80%;
  display: none;
  margin: auto;
  border-radius: 10px;

}

#slider img.active {
  display: block;
}

#slider-navigation {
  text-align: center;
  position: absolute;
   width: -webkit-fill-available;
  top: 80%;
  }

.slider-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ccc;
  margin: 0 5px;
  cursor: pointer;
}

.slider-dot.active {
  background-color: #555;
}

#slider-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

#prev-button,
#next-button {
  padding: 8px 15px;
  margin: 0 10px;
  background-color: rgb(165 165 165 / 0%);
  color: #fff;
  border: none;
  cursor: pointer;
  top: 100px;
  border-radius: 200px;
}

@media (min-width: 768px) {
header.masthead .masthead-subheading {
font-size: 2.25rem;
font-style: italic;
line-height: 2.25rem;
margin-bottom: 2rem;

}
}
.masthead-subheading {
font-size: 45px;
color: white;
text-align: center;
padding-top: 150px;
}
@media(max-width:500px) {
.masthead-subheading {
font-size: 20px;
color: white;
text-align: center;
padding-top: 50px;
  }
}
@media(max-width:700px) {
.masthead-subheading {
font-size: small;
color: white;
text-align: center;
padding-top: 50px;
  }
}
@media(max-width:1000px) {
.masthead-subheading {
font-size: 20px;
color: white;
text-align: center;
padding-top: 50px;
  }
}

@media(max-width:1400px) {
#slider-navigation{
text-align: center;
  position: absolute;
   width: -webkit-fill-available;
  top: 80%;
  display: none;
}
}
.prev-btn, .next-btn { margin: 0 10%; font-size: 10px; border: 1px solid #d3d3d3; color: #000; cursor: pointer; padding: 1%; margin-top: 20px; }
.slider-buttons { text-align: center; margin-bottom: 20px; }
.product-item { border: 1px solid #e7e7e7; border-radius: 10px; padding: 15px; background-color: #f9f9f9; }
.product-img img { width: 100%; object-fit: cover; }
.text-center { text-align: center; margin-bottom: 20px; }
#h6{
    text-decoration: none;
color: #000;
font-size: 16px;
font-weight: 700;
}
.container{
  width: 100%;
  display: flex;
}

.imag{
  width: 80%;
  height: 80%;
  margin: auto;
  border-radius: 10px;
}

@media (max-width: 1400px) {
  #slider img {
    width: 90%;
    height: 100%;
    display: none;
    margin: auto;
    border-radius: 10px;
  
  }
  .imag{
    width: 90%;
    height: 90%;
    margin: auto;
    border-radius: 10px;
  }
  
  
}
.products-section {
  padding: 20px;
  width: 100%;
}

.products-grid {
  width: 100%;
  margin: auto;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr); /* 4 منتجات في الصف في الشاشات الكبيرة */
}

/* تصميم البطاقة */
.product-card {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.product-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.product-info {
  padding: 10px;
}

.all{
  width: 80%;
  margin: auto;
}

/* شاشات الأجهزة اللوحية (عرض 3 بطاقات) */
@media (max-width: 992px) {
  .all{
    width: 90%;
  }
  .products-grid {
      grid-template-columns: repeat(3, 1fr); /* 3 منتجات في الصف */
      width: 100%;
  }

}

/* شاشات الجوالات (عرض 2 بطاقات) */
@media (max-width: 768px) {
  .all{
    width: 100%;
  }

  .products-grid {
      grid-template-columns: repeat(2, 1fr); /* 2 منتجات في الصف */
      width: 100%;
  }

}
.add-to-cart {
  width: 90%;
  background-color: #00000000;
  color: #000;
  position: relative;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: .75rem;
  padding-bottom: 0.625rem;
  padding-top: 0.5rem;
  line-height: 1.25rem;
  font-weight: 700;
  font-family: 'DINNextLTArabic';
  border: 1px solid #b00;
}
button.add-to-cart:hover {
  background-color: #b00; /* لون الخلفية عند التمرير */
  color: #ffffff; /* لون النص عند التمرير */
  transform: scale(1.05); /* تكبير الزر قليلاً */
}
.btn{
  width: 100%;
  margin-bottom: 15px;
}
.products-section .titl {
  display: flex;
  justify-content: space-between; /* توزيع العناصر بين بداية ونهاية السطر */
  align-items: center; /* توسيط العناصر عموديًا */
  margin-bottom: 20px;
  padding: 0 10px;
}

.products-section .titl h3 {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0; /* إزالة الهوامش الافتراضية */
}

.products-section .view-more {
  font-size: 16px;
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.products-section .view-more:hover {
  color: #0056b3; /* تغيير اللون عند التمرير */
}






/* إعدادات القسم الرئيسي */
.products-section-slider {
  padding: 20px;
  direction: rtl; /* لأجل اللغة العربية */
}

/* عنوان القسم ورابط عرض المزيد */
.titl-slider {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 10px;
}

.titl-slider h3 {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.view-more-slider {
  font-size: 16px;
  color: #007bff;
  text-decoration: none;
}

/* إعدادات السلايدر */
.swiper-container-slider {
  width: 100%;
  padding: 20px 0;
}

.product-card-slider {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-card-slider img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.product-info-slider h3 {
  font-size: 18px;
  color: #555;
}

.product-info-slider p {
  font-size: 16px;
  color: #888;
}

.add-to-cart-slider {
  background-color: #28a745;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  cursor: pointer;
}

.swiper-button-next, .swiper-button-prev {
  color: #333;
}

.swiper-pagination {
  position: relative;
  bottom: 10px;
}
