/* إخفاء أسهم الصور المتحركة */
#main-slider-1 .s-slider-nav-arrow {
  display: none !important;
}

/* زر واتساب عائم أسفل اليمين */
footer a[href="https://wa.me/966505498422"] {
  position: fixed !important;
  left: auto !important;
  right: 16px !important;
  top: auto !important;
  bottom: calc(16px + env(safe-area-inset-bottom)) !important;
  z-index: 99;
  width: 58px;
  height: 58px;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 50%;
  background: #25d366 !important;
  color: white !important;
  animation: diwan-wa-pulse 2.4s infinite;
}

footer a[href="https://wa.me/966505498422"] .s-contacts-icon {
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

footer a[href="https://wa.me/966505498422"] svg {
  width: 30px;
  height: 30px;
  fill: white !important;
}

/* إخفاء الرقم بصريًا داخل الزر */
footer a[href="https://wa.me/966505498422"] .unicode {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* نبض زر الواتساب */
@keyframes diwan-wa-pulse {
  0%, 100% {
    box-shadow:
      0 4px 14px #0002,
      0 0 0 0 #25d36666;
  }

  70% {
    box-shadow:
      0 4px 14px #0002,
      0 0 0 15px #25d36600;
  }
}

/* احترام إعداد تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  footer a[href="https://wa.me/966505498422"] {
    animation: none;
  }
}

/* رفع الواتساب فوق شريط الشراء في الجوال */
@media (max-width: 767px) {
  body.product-single.is-sticky-product-bar
  footer a[href="https://wa.me/966505498422"] {
    bottom: calc(130px + env(safe-area-inset-bottom)) !important;
  }
}










/* شكل سلايدر العروض */
#main-slider-1 {
  display: block;
  overflow: hidden;
  --diwan-banner-background: #f4f1e9;
}

#main-slider-1 .swiper,
#main-slider-1 .swiper-container {
  overflow: visible !important;
}

#main-slider-1 .swiper-slide {
  position: relative;
  height: auto !important;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  box-sizing: border-box;
  background-color: var(--diwan-banner-background);
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

#main-slider-1 .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
}

#main-slider-1 .s-slider-nav-arrow,
#main-slider-1 .swiper-pagination {
  display: none !important;
}

/* نقاط عدد الصور داخل البطاقة */
#main-slider-1 .diwan-banner-dots {
  position: absolute;
  left: 14px;
  right: auto;
  bottom: 14px;
  z-index: 5;
  display: flex;
  gap: 8px;
  direction: ltr;
  pointer-events: none;
}

#main-slider-1 .diwan-banner-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
}

#main-slider-1 .diwan-banner-dot.is-active {
  background: #fff;
}





#main-slider-1 .diwan-banner-dots {
  direction: rtl;
  flex-direction: row;
}






#main-slider-1 {
  position: relative !important;
}

#main-slider-1 > .diwan-banner-dots {
  position: absolute !important;
  left: calc(9.35% + 14px) !important;
  right: auto !important;
  bottom: 14px !important;
  z-index: 10;
  direction: rtl;
  flex-direction: row;
  pointer-events: auto;
}

#main-slider-1 > .diwan-banner-dots .diwan-banner-dot {
  cursor: pointer;
}




#main-slider-1 > .diwan-banner-dots {
  left: calc(9.35% + 14px) !important;
  right: auto !important;
  bottom: 16px !important;

  width: max-content !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  translate: none !important;

  display: flex !important;
  justify-content: flex-start !important;
  direction: rtl;
  gap: 8px;
}





/* جعل إطار الصورة مربعًا */
#main-slider-1 .swiper-slide {
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
}

/* عرض الصورة الداخلية كاملة بدون قص */
#main-slider-1 .swiper-slide > [style*="background-image"] {
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* منع حاوية النص الفارغة من زيادة ارتفاع الصورة */
#main-slider-1 .swiper-slide > .home-slider__content {
  position: absolute !important;
  inset: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}





#main-slider-1 .diwan-banner-dots,
#main-slider-1 > .diwan-banner-dots,
#main-slider-1 .swiper-pagination,
#main-slider-1 .s-slider-pagination {
  display: none !important;
}