:root {
  --main-color: #01818a;
  --secondary-color: #015f61;
  --third-color: #018944;
  --forth-color: #01a744;
}

html {
  scroll-padding-top: 90px;
} /* يعوّض الهيدر لكل الأنكورز */
@media (max-width: 767px) {
  html {
    scroll-padding-top: 110px;
  }
}

body {
  font-family: "Almarai", sans-serif;
}

a {
  text-decoration: none;
}

/* Start Top Bar */
.top-bar {
  background-color: var(--secondary-color);
  padding: 5px;
  .topbar-txt {
    color: #ddd;
    font-size: 12px;
    font-weight: 100;
    display: flex;
    align-items: center;
  }
  .top-bar-social {
    ul {
      display: flex;
      align-items: center;
      justify-content: end;
      gap: 10px;
      margin: 0;
      a {
        color: #ddd;
      }
    }
  }
}
/* End Top Bar */

/* Start Navbar */
.navbar {
  .navbar-brand {
    img {
      width: 120px;
      max-height: 100px;
    }
  }
  .nav-item {
    padding-left: 10px;
    &:hover .nav-link {
      color: var(--main-color);
    }
    .nav-link {
      color: var(--secondary-color);
      font-weight: bold;
      &.active {
        color: var(--main-color);
      }
    }
  }
  .order-now-btn {
    background-color: var(--main-color);
    height: 36px;
    width: 150px;
    border-radius: 17px;
    color: #fff;
    text-align: center;
    border: none;
    font-size: 12px;
    transition: 0.3s;
    &:hover {
      background-color: var(--secondary-color);
    }
  }
  .add-to-cart {
    margin-inline: 20px;
    cursor: pointer;
    position: relative;
    .shopping-amount {
      width: 15px;
      height: 15px;
      border-radius: 50%;
      background-color: var(--secondary-color);
      color: #dee2e6;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      position: absolute;
      top: 5px;
      right: -10px;
    }
    svg {
      color: var(--main-color);
      font-size: 20px;
      margin-top: 20px;
    }
  }
}
/* End Navbar */

/* Start Slider */
.carousel-item img,
.carousel-item video {
  width: 100%;
  height: 600px;
}
.carousel-item video {
  max-height: 500px; /* Optional to limit video height */
}
.product img {
  width: 100%; /* تخلي الصورة تاخد عرض الشاشة */
  max-width: 100%; /* تمنع تجاوز العرض */
  height: auto; /* تحافظ على نسبة الطول/العرض */
  display: block; /* تمنع أي مسافات إضافية */
  border-radius: 20px; /* لو محتاج حواف ناعمة */
  object-fit: cover; /* تضمن أن الصورة تتغطى بشكل مناسب */
}
/* الموبايل */
@media (max-width: 576px) {
  .product {
    height: auto; /* سيب الارتفاع على قد المحتوى */
    padding: 0;
  }
  .product img {
    width: 100%;
    height: auto; /* منع القص نهائيًا */
    object-fit: contain; /* تعرض الصورة كاملة بدون قص */
    border-radius: 0;
    display: block;
  }
}

/* التابلت */
@media (min-width: 577px) and (max-width: 992px) {
  .product {
    height: 75vh;
  }
  .product img {
    border-radius: 10px;
  }
}

/* الديسكتوب والكبير */
@media (min-width: 993px) {
  .product {
    height: 100vh;
  } /* فول سكرين */
  .product img {
    border-radius: 20px;
  }
}

/* شاشات عريضة جداً (اختياري) */
@media (min-width: 1400px) {
  .product {
    height: 100vh;
  } /* يفضل تسيبها فول سكرين برضه */
}

.mute-button {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10;
  background-color: var(--main-color);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 15px;
  cursor: pointer;
}
.carousel-caption {
  top: 20%;
  bottom: auto;
  right: 50%;
  text-align: right;
}

.carousel-caption span {
  color: var(--secondary-color);
  margin-bottom: 30px;
  font-size: 50px;
}

.carousel-caption h2 {
  margin-top: 20px;
  background-color: #01818a;
  padding: 8px 15px;
  border-radius: 20px;
}

.carousel-caption p {
  margin-top: 20px;
  margin-bottom: 20px;
  background-color: #01818a;
}

@media (max-width: 767px) {
  .carousel-caption span {
    font-size: 16px; /* أصغر للموبايل */
    flex-direction: row-reverse;
    font-size: 16;
    display: block;
    font-size: 20px; /* أكبر عشان يبان */
    font-weight: bold; /* يخليه Bold */
    margin-bottom: 8px;
    color: #004d40; /* لون أوضح */
    text-align: center; /* ممكن تضبطها شمال لو حابب */
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    position: relative;
    top: -50px;
    right: -10px;
  }
  .carousel-caption h2 {
    background: none;
    color: #01818a;
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    position: relative;
    top: -70px;
  }
  @media (max-width: 767px) {
    .HH h2 {
      display: block;
      font-size: 18px;
      font-weight: bold;
      margin-bottom: 8px;
      position: relative;
      top: -100px;
    }
  }
}

.order {
  display: inline-block;
  text-decoration: none;
  background-color: #01818a;
  color: #fff;
  padding: 10px 25px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: bold;
  transition: 0.3s ease;
}

.order:hover {
  background-color: #026c73;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .order {
    display: inline-block !important;
    font-size: 14px;
    padding: 6px 14px;
    margin-top: 10px;
    position: relative;
    top: -130px;
    background-color: #01818a;
    text-decoration: none;
    color: white;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
    right: 80px;
  }
}

.main-slider .order-now-btn {
  float: left;
  position: relative;
  right: -240px;
  font-size: 18px;
}
@media only screen and (max-width: 767px) {
  .big-slider img {
    height: 200px;
    left: -51px;
  }
}
.feat {
  position: relative;
  z-index: 999;
  margin-top: -30px;
}

/* Start Services Section */
.services {
  .service {
    width: 90%;
    margin: 30px auto;
    padding: 15px;
    height: 220px;
    border-radius: 20px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    &:hover {
      transform: translateY(-5px);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
      h5 {
        color: var(--forth-color);
      }
      .image-container {
        background-color: var(--forth-color);
      }
    }
    .image-container {
      width: 65px;
      height: 65px;
      border-radius: 50%;
      background-color: var(--main-color);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-inline: auto;
      transition: 0.3s;
      img {
        width: 60%;
      }
    }
    h5 {
      color: var(--main-color);
      margin-top: 15px;
      font-weight: bold;
      transition: 0.3s;
    }
    p {
      color: var(--secondary-color);
      width: 80%;
      margin: 5px auto;
    }
  }
}
/* End Services Section */

.about-us {
  background-image: url(../img/about-bg.png);
  background-size: cover;
  background-repeat: no-repeat;
  height: auto;
  padding-bottom: 20px;
}
.about-cont {
  margin-top: 15%;
}
.about-cont {
  display: flex;
  flex-direction: column; /* يخلي العناصر فوق بعض */
  gap: 15px; /* مسافة بين كل بوكس */
}
.about-cont .p1 p {
  font-size: 20px;
  position: relative;
  top: -50px;
}
.about-cont h2 {
  font-size: 25px;
  font-weight: bold;
  text-align: center;
  color: #fff; /* نص أبيض عشان الكونتراست */
  background: #01818a; /* نفس لون المنتج */
  display: inline-block; /* على قدّ الكلام بس */
  padding: 0.45rem 0.9rem; /* مسافة داخلية بسيطة */
  border-radius: 10px; /* حواف دائرية */
  margin-bottom: 10px;
  position: relative;
  top: -50px; /* زي ما كنت عامل */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); /* اختياري: ظل خفيف */
}

.about-cont p {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 12px;
  border-left: 5px solid #01818a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.about-cont h5 {
  background: #f0f8ff; /* لون مميز */
  padding: 15px;
  border-radius: 12px;
  border-left: 5px solid #01818a;
  font-size: 16px;
  line-height: 1.6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin: 0;
  transition: 0.3s ease;
  position: relative;
  top: -50px;
}

/* تأثير hover */
.about-cont h5:hover {
  background: #e6f7f9;
  transform: translateY(-3px);
}
.about-us h4 {
  font-weight: 700;
  color: var(--secondary-color);
}
.about-us h6 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--main-color);
}
.about-us p {
  width: 90%;
}
.main-slider .order-now-btn {
  float: left;
}
.about-img-slider {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2), 0 2px 5px 0 rgba(0, 0, 0, 0.19);
  border-radius: 10px;
  padding-bottom: 15px;
}

/* إصلاح تمدّد الصورة: نحافظ على النِّسب */
.about-img-slider img {
  width: 100%; /* متوافق مع w-100 في الـHTML */
  height: auto; /* أهم تعديل */
  display: block;
  margin: 10px auto;
}

/* مؤشرات السلايدر */
.about-img-slider .carousel-indicators {
  position: static;
}

.about-img-slider .carousel-indicators button.thumbnail {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--main-color);
  border: 1px solid #aaa;
}

/* ضبط صورة الـthumbnail لتناسب حجم الزر */
.about-img-slider .carousel-indicators button.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-slider .carousel-indicators button.thumbnail:not(.active) {
  opacity: 0.5;
}

@media screen and (min-width: 992px) {
  .about-img-slider .carousel {
    max-width: 70%;
    margin: 0 auto;
  }
}

/*about us styling End*/

/* Start How To Use Section */
.usability {
  .title {
    margin: 40px auto; /* يوسّط العنصر */
    width: 100%; /* على قدّ الكلمة */
    background: var(--main-color); /* نفس لون اللي فوق */
    color: #fff; /* تباين واضح */
    font-size: 30px;
    line-height: 1.2;
    padding: 0.8rem 0.9rem; /* مسافة داخلية بسيطة */
    border-radius: 10px; /* حواف ناعمة */
    text-align: center; /* لو العنوان طويل */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); /* اختياري: ظل خفيف */
  }
  .how-to-use {
    width: 45%;
    margin: auto;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;

    img {
      margin-inline: 10px;
      width: 35px;
      height: 35px;
      display: inline-block;
    }
  }

  .view-btn-container {
    width: 45%;
    margin: auto;
    .view-btn {
      width: 100%;
      font-size: 20px;
      color: white;
      background-color: var(--secondary-color);
      transition: 0.3s;
      &:hover {
        color: #eee;
        background-color: var(--main-color);
      }
    }
  }
}
/* End How To Use Section */

/* offer buttons start */
.offers-btns {
  .offers-btn {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: 0.3s;
    color: white;
    background-color: var(--main-color);
    font-size: 22px;
    width: 100%;
    display: block;
    text-align: center;
    &:hover {
      background-color: var(--secondary-color);
    }
  }
}
/* offer buttons end */

/* Start Testimonials Section*/
.testimonials {
  background: url("../img/why-buy-shape3.png");
  background-repeat: no-repeat;
  background-position: right;
  margin-bottom: 25px;
  .section-title {
    padding: 20px;
    text-align: center;
    h3 {
      color: var(--main-color);
      font-weight: bold;
    }
    p {
      color: #666666;
    }
  }
  .testimonial {
    text-align: center;
    padding: 20px;
    img {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      margin-bottom: 15px;
      border: 1px solid #c8cbce;
    }
    p {
      font-style: italic;
      color: var(--secondary-color);
    }
    h5 {
      color: var(--main-color);
    }
  }
}
/* End Testimonials Section*/

/*contact us start*/
.contact-us {
  background-image: url(../img/contact-shape1.png);
  background-repeat: no-repeat;
  margin-top: 50px;
  margin-bottom: 50px;
}
.contact-us-content {
  background-color: #f9fafc;
}
.contact-form {
  background-color: #fff;
  border-radius: 10px;
  margin: 25px auto;
  width: 90%;
}
.contact-form h4 {
  color: var(--secondary-color);
  padding: 10px;
  font-weight: 600;
  padding-right: 25px;
}
.contact-form .form-control {
  border-radius: 15px;
  width: 95%;
  margin: 10px auto;
  background-color: #f9fafc;
  border: none;
}
.contact-form select,
.contact-form textarea {
  border-radius: 15px;
  width: 95%;
  margin: 10px auto;
  background-color: #f9fafc;
  border: none;
}

.contact-form label {
  margin-right: 20px;
}
.contact-form .form-control {
  font-size: 12px;
  font-weight: normal;
  padding: 10px;
}
.payment-title {
  margin-top: -10px;
}
.contact-form .form-check {
  border-radius: 5px;
  height: 40px;
  border: 1px solid #f9fafc;
  width: 90%;
  color: var(--secondary-color);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2), 0 2px 3px 0 rgba(0, 0, 0, 0.19);
  margin: 0 auto;
}
.form-check-label img {
  display: inline-block;
  width: 35px;
}
.form-check-label1 img {
  display: inline-block;
  width: 20px;
}
.form-check-label2 img {
  display: inline-block;
  width: 25px;
}
.payment-btn {
  border: 1px solid #f9fafc;
  margin-right: 10px;
  width: 90%;
  height: 40px;
  color: var(--secondary-color);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2), 0 2px 3px 0 rgba(0, 0, 0, 0.19);
}
.payment-btn img {
  display: inline-block;
  width: 35px;
}
.payment-ways {
  margin-bottom: 15px;
}
.form-check-input[type="radio"] {
  border-radius: 50%;
  margin-top: 10px;
  margin-right: 10px;
}
hr {
  width: 85% !important;
  margin: 15px auto;
}

.offer-message {
  background-color: #01a7433c;
  color: var(--secondary-color);
  border: 1px solid var(--main-color);
  border-radius: 8px;
  padding: 5px 10px;
  width: 90%;
  margin: 10px auto;
  display: none;
}
.qty {
  width: 90%;
  margin: 10px auto;
}
.qty label {
  display: inline-block;
  width: 40%;
}
.qty input {
  display: inline-block;
  width: 50%;
}
.btn-checkout {
  background-color: var(--main-color);
  color: #fff;
  width: 90%;
  margin: 20px auto;
}
.btn-checkout:hover {
  background-color: #25d366;
  color: #fff;
}
.contact-info h4 {
  color: var(--secondary-color);
  margin-top: 20px;
  margin-bottom: 10px;
}
.contact-info p {
  color: var(--secondary-color);
}
/* .contact-field {
  display: flex;
  margin-bottom: 20px;
}
.contact-field h5 {
  color: var(--secondary-color);
}
.cont-icon {
  width: 60px;
  height: 60px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: inline-block;
}
.cont-txt {
  display: inline-block;
  width: 50%;
  margin-right: 10px;
  padding-top: 10px;
}
.cont-icon img {
  width: 70%;
  margin: 10px;
} */
.contact-field {
  display: flex;
  align-items: center;
  gap: 14px; /* المسافة بين الأيقونة والنص */
  margin-bottom: 20px;
}

.contact-field h5 {
  color: var(--secondary-color);
  margin: 0 0 4px;
}

.cont-icon {
  width: 60px;
  height: 60px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: grid; /* لمركزة الأيقونة */
  place-items: center;
  flex: 0 0 60px; /* ثبات الحجم */
}

.cont-icon img {
  width: 70%;
  height: auto;
}

.cont-txt {
  padding-top: 10px;
  flex: 1 1 auto; /* بدل width:50% و inline-block */
}

/* لو عندك قسم عربي وعايز الأيقونة يمين */
.section-ar .contact-field {
  flex-direction: row-reverse;
}

/* علشان الإيميل/الرقم يفضل LTR داخل العربي */
.cont-txt p[dir="ltr"] {
  direction: ltr;
  unicode-bidi: bidi-override;
}

/* بديل لو مش حابب gap:
.cont-txt{ margin-inline-start:12px; }
*/

.top-bar-social {
  float: left;
  padding-top: 6px;
  padding-bottom: 6px;
}
.contc-social li {
  float: left;
  padding-left: 12px;
}
.contc-social li a {
  text-decoration: none;
  color: var(--secondary-color);
}
.contc-social {
  float: right;
  margin-right: 10px;
}
.contc-social svg {
  font-size: 20px;
  opacity: 0.7;
}
.card-info {
  display: none;
}
.form-check-input:checked {
  .card-info {
    display: block;
  }
}
/* ====== Footer Block: HPI address ====== */
.adrees {
  text-align: center;
  padding: 8px 0;
}

/* شريط السوشيال */
.adrees .social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  direction: ltr; /* يثبّت ترتيب الأيقونات */
  flex-direction: row; /* يمنع أي row-reverse جاي من ستايل خارجي */
  margin-bottom: 10px;
}

.adrees .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; /* مساحة موحّدة لأيكون */
  height: 28px;
  font-size: 20px; /* حجم الأيقونات */
  line-height: 1;
  text-decoration: none;
  color: var(--main-color, #0a6f6e); /* لون ثابت + بديل */
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.adrees .social a:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* صورة اللوجو */
.adrees .image img {
  display: block;
  margin: 12px auto 0;
  height: auto;
  max-width: 120px; /* تمنع الانتفاخ على الشاشات الصغيرة */
}

/* السطر النصي تحت اللوجو */
.hpi span {
  display: inline-block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.3;
  color: var(--secondary-color, #0a6f6e); /* بديل لو المتغيّر مش متعرّف */
  text-wrap: balance; /* توزيع سطور ألطف */
}

/* حمايات خفيفة من تعارضات خارجية */
.adrees a {
  outline: none;
}
.adrees * {
  box-sizing: border-box;
}

/* استجابة للموبايل */
@media (max-width: 480px) {
  .adrees .social a {
    width: 26px;
    height: 26px;
    font-size: 18px;
  }
  .adrees .image img {
    max-width: 100px;
  }
  .hpi span {
    font-size: 16px;
  }
}

/*contact Us Ends*/

/*Footer Start*/
.footer {
  background-color: var(--secondary-color);
  .footer-field {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0px;
    margin-bottom: 50px;

    h4 {
      color: var(--secondary-color);
    }

    .footer-icon {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      border: 1px solid #fff;
      margin: 10px;
      padding: 15px;
      display: flex;
      align-items: center;
      justify-content: center;

      img {
        width: 100%;
      }
    }
    .footer-txt {
      .footerlink {
        color: #fff;
        &:hover {
          color: var(--forth-color);
        }
      }
    }
  }
}
/*Footer End*/

/* Buy Now Button Start */
.call-now {
  position: fixed;
  left: 0;
  bottom: 0px;
  width: 100%;
  padding: 15px;
  background: #01818a;
  color: #fff;
  font-size: 22px;
  text-align: center;
  text-decoration: none;
  z-index: 1000;
}
/* Buy Now Button End */

/* ===== Confirm Modal ===== */
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  direction: rtl;
  font-family: inherit;
}
.confirm-modal.show {
  display: flex;
}
.confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.confirm-dialog {
  position: relative;
  width: min(680px, 92vw);
  max-height: 86vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 20px 20px 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.confirm-close {
  position: absolute;
  inset-inline-end: 10px;
  top: 6px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #444;
}
.confirm-title {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 20px;
  color: #111;
  text-align: center;
}
.confirm-body {
  padding: 6px 2px 2px;
}
.confirm-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.confirm-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fafafa;
  align-items: start;
}
.confirm-list .k {
  color: #555;
  font-weight: 600;
}
.confirm-list .v {
  color: #111;
  word-break: break-word;
}
.confirm-note {
  margin: 10px 2px 0;
  font-size: 13px;
  color: #666;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}
.confirm-actions .btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}
.confirm-actions .btn-edit {
  background: #f1f1f1;
  color: #111;
}
.confirm-actions .btn-confirm {
  background: #0d6efd;
  color: #fff;
}

/* اختياري: تحسين مظهر العناصر غير الصالحة */
.form-control.is-invalid {
  border-color: #dc3545;
}

/* Start Checkout Page */
.contact-us {
  .contact-us-content {
    #qty::placeholder {
      font-size: 14px;
    }
  }
}
/* End Checkout Page */

/* Loading state for buttons */
.btn.btn-checkout:disabled,
.btn.btn-confirm:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.btn.btn-checkout:disabled::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
