/* Add custom CSS styles below */

@media (max-width: 991px) {
  custom-salla-product-card {
    width: 200px !important;
    margin: 0 auto;
  }
  .one-product custom-salla-product-card {
    width: 60% !important;
    margin: 0 auto;
  }
  .simplified-products .s-products-slider-card,
  .simplified-products .offer-slide {
    width: 166px;
  }

  .s-block--about p,
  .s-block--about h2 {
    color: #fff;
    text-align: center !important;
  }
  .product-card__normal-cart__btn salla-button button,
  .product-card__mini-cart salla-button button {
    fill: var(--color-primary);
    background: #c63c51 !important;
    color: #fff !important;
  }
  .product-card__addToCart__btn salla-button button {
    fill: var(--color-primary);
    background: #c63c51 !important;
    color: #fff !important;
  }
  .product-card__addToCart__btn salla-button button:hover {
    border: 2px solid var(--color-primary) !important;
    background: #fff !important;
    color: var(--color-primary) !important;
  }
  .s-button-primary-outline:hover {
    border: 2px solid var(--color-primary) !important;
    background: #fff !important;
    color: var(--color-primary) !important;
  }
}
.branch-img-parent {
  position: relative;
}
.branch-img {
  width: 100%;
}
.branch {
  position: absolute;
  color: #fff !important;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
  border-radius: 5px;
  transform: translate(-50%, -100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

.branch-child {
  width: 180px;
  background: rgba(0, 0, 0, 0.6);
}
.riyadhBranch {
  top: 29%;
  left: 75%;
}
.tBranch {
  top: 26%;
  left: 53%;
}
.jaddahBranch {
  top: 61.5%;
  left: 20%;
}
.ngranBranch {
  top: 63%;
  left: 90%;
}
.khamesBranch {
  top: 72%;
  left: 74%;
}
.gezanBranch {
  top: 70%;
  left: 53%;
}
.makkaBranch {
  top: 84%;
  left: 30%;
}
.madinaBranch {
  top: 47%;
  left: 12%;
}

@media (max-width: 767px) {
  .branch {
    font-size: 10px;
    padding: 3px 5px;
  }
}

/* ✅ 2. تحسين تحميل الصورة الأساسية (LCP) */
.hero-banner {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
    max-height: 100%;
}

/* ✅ 3. ضبط استقرار الصور لمنع CLS */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ✅ 4. تثبيت أبعاد الصور اللي بتتحمل ببطء لتقليل CLS */
img.lazy-load {
    width: 100%;
    min-height: 400px;
    display: block;
    object-fit: contain; /* تأكد من أن الصورة لا تسبب تمدد */
}

/* ✅ 5. إزالة أي تأثير غير ضروري قد يسبب مسافات إضافية */
img.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img.lazy-load.loaded {
    opacity: 1;
}

/* ✅ 6. تعطيل أي أنيميشن ممكن يكون السبب في تغييرات غير طبيعية */
.animated, .fade-in, .slide-up {
    animation: none !important;
    transition: none !important;
}

/* ✅ 7. تحسين تحميل الخطوط لتقليل CLS */
@font-face {
    font-family: 'CustomFont';
    src: url('custom-font.woff2') format('woff2');
    font-display: swap;
}



/* ✅ 9. تحسين ظهور الأزرار والنصوص أثناء التحميل */
button, a {
    transition: none !important;
    font-display: swap;
}

/* ✅ 10. تحسين استجابة الموقع على الموبايل بدون فراغات */
@media (max-width: 768px) {
    .hero-banner {
        min-height: 300px;
    }

    .s-block--hero-slider {
        min-height: 250px;