:root {
    --max-content-width: 1440px;
}

.max-content-width {
    max-width: var(--max-content-width);
    margin-right: auto;
    margin-left: auto;
}

.header{
    height: 144px;
}
.navbar-brand, .nav-link {
    font-weight: bold;
}

.header-logo{
    width: 120px;
    top: 27.42px;
}

.headrt-search-bar{
    width: 787;
    height: 48;
    /* angle: -180 deg; */
    border-radius: 50px;
    padding: 10px;
    gap: 16px;
    background: #EDFEFF;
}

/* تنسيقات عنصر Select المخصص */
.custom-select {
    width: 154px;
    height: 32px;
    border-radius: 50px;
    padding: 3px 39px 8px 39px;
    border: 0px solid #ccc;
    background-color: white;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 15px;
    text-align: right;
    cursor: pointer;
    margin: 0px;
}

.custom-select:focus {
    outline: none;
    border-color: #4d90fe;
    box-shadow: 0 0 0 2px rgba(77, 144, 254, 0.2);
}

/* تنسيقات الـ options */
.custom-select option {
    padding: 8px;
    text-align: right;
}

/* حاوية لتجميع العنصر مع التسمية */
.select-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.select-label {
    font-size: 14px;
    color: #555;
    text-align: right;
}


/* تنسيق حقل البحث */
.search-input {
  width: 100%;
  border: none;
  background: none;
  padding-top: 4px;
  font-size: 16px;
  outline: none;
  direction: rtl; /* للنص العربي */
  position: relative;
  margin: 0px;
}

/* أيقونة البحث باستخدام Font Awesome */
.search-input-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.search-input-container .search-button {
  border: 0px;
  background-color: unset;
  font-weight: 900;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none; /* لا تمنع النقر على الحقل */
}

.menu{
    height: 46px;
    border-top: 1px solid #E7F5F6;
    border-bottom: 1px solid #E7F5F6;
}

.horizontal-menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    
    gap: 20px; /* المسافة بين العناصر */
    padding: 10px 15px;
    border-radius: 5px;
}

.horizontal-menu li {
    position: relative;
}

.horizontal-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.horizontal-menu li a:hover {
    color: #0d6efd;
}

.horizontal-menu li::after {
    content: "";
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: #0d6efd;
    transition: width 0.3s ease;
}

.horizontal-menu li:hover::after {
    width: 100%;
    left: 0; /* للغة العربية */
}

/*  slider-banner  */
.slider-banner-section{
  max-height: 200px;
  background-color: #E7F5F6;
}
.slider-banner {
  min-height: 400px;
  background-color: #E7F5F6;
;
  overflow: hidden;
}

.corner-img {
  position: absolute;
  width: 100px;
}

.top-left { top: 0; left: 0; }
.bottom-left { bottom: 0; left: 0; }
.top-right { top: 0; right: 0; }
.bottom-right { bottom: 0; right: 0; }

.decoration-img {
  position: absolute;
}
.decoration-img.one {
  height: 60%;
  margin-left: 150px;
}
.decoration-img.two {
  height: 80%;
  margin-left: 290px;
}

.text-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding-right: 70px;
  padding-top: 50px;
  padding-bottom: 50px;
}

.slider-title {
  font-size: 32px;
  font-weight: bold;
}
.slider-title.first {
  color: #8EBBC1;
}
.slider-title.second {
  color: #FAC3C6;
  margin-top: 20px;
}
.slider-subtitle {
  margin-top: 30px;
  max-width: 550px;
  color: #444;
}

/* زر مخصص */
.custom-button {
  background-color: #8EBBC1;
  color: #fff;
  border: none;
  padding: 10px 30px;
  border-radius: 25px;
  font-weight: bold;
}



/*section-container*/

/* section-container */
.section-area {
    min-height: 275px;
    background: linear-gradient(to bottom, #EEFDFF 0px, #EEFDFF 275px, transparent 200px);
    position: relative;
    overflow-x: hidden; /* منع التمرير الأفقي */
}

.section-container {
    margin-top: 76px;
    width: 100%; /* تغيير من 367px إلى 100% */
    max-width: 367px; /* أقصى عرض للشاشات الكبيرة */
    height: 362px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.section-container .section-img {
    width: 100%; /* تغيير من 367px إلى 100% */
    max-width: 367px; /* أقصى عرض للشاشات الكبيرة */
    height: 295px;
    border-radius: 24px;
    top: 0;
    object-fit: cover;
}

.section-container .section-title {
    width: 200.40px;
    height: 47.57px;
    margin: auto;
    top: 210.57px;
    left: 0;
    right: 0;
    border-radius: 81.35px;
    position: absolute;
    color: #49787E;
    font-weight: 600;
    font-size: 26.87px;
    letter-spacing: 0%;
    text-align: center;
    padding-left: 15px;
    padding-right: 15px;
}

.section-container .color1 {
    background-color: #8EBBC1;
}

.section-container .color2 {
    background-color: #FAC3C6;
}

.section-container .section-shadow {
    margin: auto;
    bottom: 0px;
    width: 100%; /* تغيير من 373.09px إلى 100% */
    max-width: 373.09px; /* أقصى عرض للشاشات الكبيرة */
    height: 49.12px;
    background: radial-gradient(50% 50% at 50% 50%, #D9D9D9 0%, #FFFFFF 100%);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/*categorys*/
.categorys .title {
  font-weight: 600;
  font-size: 25px;
  color: #8EBBC1;
  text-align: right;
}

.categorys .sub-title {
  font-size: 15px;
  color: #2B2B2B;
  text-align: right;
}

.categorys .categorys-slider {
  scroll-behavior: smooth;
  white-space: nowrap;
  overflow-x: auto;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
}

.categorys .categorys-slider::-webkit-scrollbar {
  display: none;             /* Chrome, Safari */
}

.categorys .content-div {
  width: 124px;
  height: 160px;
  display: inline-block;
}

.categorys .content-div .img {
  width: 124px;
  height: 124px;
  border-radius: 4px;
  background-color: #ececec;
  overflow: hidden;
}

.categorys .content-div .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.categorys .content-div .title {
  font-size: 16px;
  margin-top: 5px;
  text-align: center;
}

.categorys .swap-btn {
  width: 41px;
  height: 41px;
  border-radius: 50%;
  border: none;
  background-color: #F5F6F8;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  z-index: 100;
}

/* الطبقة التي تخلق التلاشي يمين ويسار */
.categorys .fade-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none; /* حتى لا تمنع الضغط على الأزرار */
}

/* التلاشي من اليسار (جهة النهاية) */
.categorys .fade-left {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}

/* التلاشي من اليمين (جهة البداية) */
.categorys .fade-right {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}




.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: #f0f0f0;
  color: #444;
}


/* زر إضافة إلى العربة */
.add-cart-btn-mobile{display: none;}
.add-cart-btn {
  background-color: #8EBBC1;
  color: #fff;
  border-radius: 12px;
  border: none;
  display: block;
}


/* زر المفضلة */
.favorite-btn {
  background-color: #E3FAFD;
  color: #8EBBC1;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-size: 18px;
}

/*product-card*/

/* product-card */
/* .product-card {
  width: 268px;
  height: 486px;
  border-radius: 16px;
  border-width: 1px;
  background-color: #fff;
} */

.product-card-main {
  width: 100%;
  min-width: 250px;
  max-width: 270px;
  height: 486px;
  flex: 1 0 auto;
  background: #fff;
  border-radius: 10px;
  position: relative;
}

.product-card-main .img {
  max-height: 270px;
  
  min-height: 270px;
  overflow: hidden; 
}
.product-card-main .img img {
  max-height: 270px;
}

.product-card {
  width: 100%;
  min-width: 250px;
  max-width: 270px;
  height: 486px;
  flex: 1 0 auto;
  background: #fff;
  border-radius: 10px;
  position: relative;
}

.product-card .img {
  max-height: 270px;
  
  min-height: 270px;
  overflow: hidden; 
}
.product-card .img img {
  max-height: 270px;
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #a8d8e5;
  color: white;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 12px;
}

.product-description {
    font-size: 16px;
    color: #2B2B2B;
    margin-top: 5px;
    white-space: wrap;
    /* overflow: hidden;
    text-overflow: ellipsis; */
}




/* الحاوية الرئيسية */
#productSlider {
    display: flex;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}

/* عرض كل شريحة بحسب حجم العرض */
.slide {
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
}

  .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 5px;
    cursor: pointer;
  }

  .dot.active {
    background: #333;
  }

  .swap-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
  }










/* ✅ استجابة للجوال */
@media (max-width: 768px) {
  .slider-banner {
    min-height: 220px;
  }

  .decoration-img.one{
    margin-left: 30px;
    width: 80px;
  }

  .decoration-img.two{
    display: none;
  }

  .corner-img {
    width: 50px;
  }

  .decoration-img {
    width: 80px;
  }

  .text-content {
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .slider-title {
    font-size: 20px;
  }

  .slider-subtitle {
    font-size: 14px;
    max-width: 100%;
  }

  .custom-button {
    padding: 8px 20px;
    font-size: 14px;
  }

  .section-container{
    margin-top: 15px;
    }

    #productSlider {
        margin-left: -80px;
    }
  .more_space_to_bottom_tab{
    margin-bottom:60px;
  }

  
.product-card {
  min-width: 47%;
  max-width: 47%;
  height: 300px;
  flex: 1 0 auto;
  background: #fff;
  border-radius: 10px;
  position: relative;
}

.product-card .img {
  max-height: 150px;
  
  min-height: 130px;
  overflow: hidden; 
}
.product-card .img img {
  max-height: 150px;
}

.product-description {
    font-size: 13px;
    color: #2B2B2B;
    margin-top: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* عدد الأسطر */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* زر إضافة إلى العربة */
.add-cart-btn{display: none;}
.add-cart-btn-mobile {
  font-size: 14px;
  background-color: #8EBBC1;
  color: #fff;
  border-radius: 12px;
  height: 33px;
  border: none;
  display: block;
}

/* زر المفضلة */
.favorite-btn {
  background-color: #E3FAFD;
  color: #8EBBC1;
  border-radius: 12px;
  width: 33px;
  height: 33px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-size: 14px;
}


.section-container {
        margin-top: 40px;
    }
    
    .section-container .section-title {
        font-size: 24px; /* تعديل حجم الخط ليتناسب مع الشاشات الصغيرة */
    }
    
}

.items-card{
  cursor: pointer;
}

#alert_message{width: 93%; position: fixed; margin: auto; top: 20px; left: 0; right: 0; padding: 15px; color: white; z-index: 100; border-radius: 5px; font-size: 1.5em; text-align: center; display: none;}







