/* Add custom CSS styles below */ 
/* حجز ارتفاع السلايدر لمنع القفز */
.advanced-slider {
  min-height: 500px; /* عدّل الرقم حسب ارتفاع صورك */
}

/* إصلاح القفز في عداد العروض */
.promo_with_countdown {
  min-height: 100px;
}

/* إصلاح القفز الخاص بالخطوط */
@font-face {
  font-family: 'Cairo';
  font-display: swap;
}

/* ND BAnner
.nd96-gallery {
  position: relative;
  height: 420vh;
  min-height: 2200px;
  direction: rtl;
  isolation: isolate;
}

.nd96-gallery__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: #043526;
}

.nd96-gallery__background,
.nd96-gallery__overlay {
  position: absolute;
  inset: 0;
}

.nd96-gallery__background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.nd96-gallery__overlay {
  z-index: 1;
  background:
    radial-gradient(circle at 68% 55%, transparent 0%, rgba(1, 25, 18, .08) 38%, rgba(1, 25, 18, .5) 100%),
    linear-gradient(90deg, rgba(1, 24, 17, .76), rgba(1, 24, 17, .08) 57%, rgba(1, 24, 17, .16));
}

.nd96-gallery__inner {
  position: relative;
  z-index: 2;
  width: min(1500px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: clamp(26px, 4.5vw, 72px);
}

.nd96-gallery__logo {
  position: absolute;
  top: clamp(28px, 5vh, 58px);
  left: clamp(26px, 4.5vw, 72px);
  width: clamp(180px, 20vw, 315px);
  height: auto;
  filter: brightness(0) invert(1);
}

.nd96-gallery__campaign {
  position: absolute;
  top: clamp(30px, 5vh, 62px);
  right: clamp(26px, 4.5vw, 72px);
  max-width: min(42vw, 540px);
  color: #fffaf0;
}

.nd96-gallery__kicker {
  margin: 0 0 10px;
  color: #d9bc78;
  font-size: clamp(14px, 1.2vw, 19px);
  font-weight: 800;
}

.nd96-gallery__headline {
  margin: 0;
  color: #fffaf0;
  font-size: clamp(35px, 4.4vw, 70px);
  font-weight: 800;
  line-height: 1.08;
  text-wrap: balance;
}

.nd96-gallery__stage {
  position: absolute;
  inset: 15% 0 12%;
  z-index: 2;
}

.nd96-gallery__product {
  position: absolute;
  top: 50%;
  right: clamp(35px, 6vw, 110px);
  width: min(48vw, 720px);
  height: auto;
  aspect-ratio: 1;
  padding: clamp(18px, 2.5vw, 42px);
  object-fit: contain;
  border: 1px solid rgba(223, 192, 120, .55);
  border-radius: clamp(22px, 3vw, 42px);
  background: #fffdf8;
  opacity: 0;
  transform: translate3d(90px, -45%, 0) scale(.9);
  transform-origin: center;
  box-shadow: 0 38px 80px rgba(0, 0, 0, .3);
  will-change: transform, opacity;
  pointer-events: none;
}

.nd96-gallery__details-wrap {
  position: absolute;
  z-index: 4;
  bottom: clamp(45px, 8vh, 90px);
  left: clamp(26px, 4.5vw, 72px);
  width: min(36vw, 460px);
  min-height: 150px;
  color: #fffaf0;
  text-align: right;
}

.nd96-gallery__details {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
}

.nd96-gallery__number {
  display: block;
  margin-bottom: 7px;
  color: #d9bc78;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .18em;
}

.nd96-gallery__name {
  margin: 0 0 7px;
  color: #fffaf0;
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 800;
  line-height: 1.1;
}

.nd96-gallery__description {
  margin: 0;
  color: rgba(255, 250, 240, .82);
  font-size: clamp(15px, 1.3vw, 20px);
}

.nd96-gallery__footer {
  position: absolute;
  right: clamp(26px, 4.5vw, 72px);
  bottom: clamp(32px, 5vh, 60px);
  left: clamp(26px, 4.5vw, 72px);
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.nd96-gallery__offer {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fffaf0;
  font-size: clamp(14px, 1.15vw, 18px);
}

.nd96-gallery__code {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid #d9bc78;
  border-radius: 999px;
  color: #d9bc78;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .08em;
}

.nd96-gallery__progress {
  width: min(38vw, 430px);
}

.nd96-gallery__steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, .55);
  font-family: Arial, sans-serif;
  font-size: 11px;
  letter-spacing: .08em;
}

.nd96-gallery__track {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, .22);
}

.nd96-gallery__fill {
  width: 0;
  height: 100%;
  background: #d9bc78;
  transform-origin: right center;
  will-change: width;
}

.nd96-gallery__scroll-label {
  position: absolute;
  right: 50%;
  bottom: 17px;
  z-index: 6;
  color: rgba(255, 255, 255, .68);
  font-size: 11px;
  transform: translateX(50%);
}

@media (max-width: 767px) {
  .nd96-gallery {
    height: 360vh;
    min-height: 2100px;
  }

  .nd96-gallery__background {
    object-position: 60% center;
  }

  .nd96-gallery__overlay {
    background: linear-gradient(0deg, rgba(1, 24, 17, .78), rgba(1, 24, 17, .15) 64%, rgba(1, 24, 17, .36));
  }

  .nd96-gallery__logo {
    top: 24px;
    left: 22px;
    width: min(48vw, 205px);
  }

  .nd96-gallery__campaign {
    top: 100px;
    right: 22px;
    left: 22px;
    max-width: none;
    text-align: center;
  }

  .nd96-gallery__headline {
    font-size: clamp(33px, 10vw, 48px);
  }

  .nd96-gallery__stage {
    inset: 22% 0 20%;
  }

  .nd96-gallery__product {
    top: 53%;
    right: 6vw;
    width: 88vw;
    max-width: none;
    padding: 16px;
    border-radius: 24px;
  }

  .nd96-gallery__details-wrap {
    right: 22px;
    bottom: 112px;
    left: 22px;
    width: auto;
    min-height: 105px;
    text-align: center;
  }

  .nd96-gallery__name {
    font-size: 30px;
  }

  .nd96-gallery__footer {
    right: 22px;
    bottom: 38px;
    left: 22px;
    align-items: center;
  }

  .nd96-gallery__offer > span:first-child {
    display: none;
  }

  .nd96-gallery__progress {
    width: 48vw;
  }

  .nd96-gallery__scroll-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nd96-gallery {
    height: 100vh;
    min-height: 620px;
  }

  .nd96-gallery__product:first-child,
  .nd96-gallery__details:first-child {
    opacity: 1 !important;
    transform: translate3d(0, -50%, 0) scale(1) !important;
  }

  .nd96-gallery__details:first-child {
    transform: none !important;
  }
}