/* =====================================
   🎠 PayUP – קרוסלת תמונות (Hero Slider)
   ===================================== */

/* ===== עוטף ראשי ===== */
.hero-slider {
  width: 100%;
  max-width: 520px;          /* מוגדל – היה 420px */
  margin: 0 auto 24px;
  overflow: hidden;
  direction: ltr;
  position: relative;
}

/* ===== מסלול הסליידים ===== */
.hero-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding: 8px 0 4px;
}

.hero-track::-webkit-scrollbar {
  display: none;
}

/* ===== סלייד יחיד ===== */
.hero-slide {
  flex: 0 0 330px;           /* היה 230px */
  max-width: 330px;
  scroll-snap-align: center;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  height: 260px;             /* היה 180px */
  position: relative;
  transition: transform 0.4s ease, opacity 0.4s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ===== נקודות מעבר ===== */
.hero-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  width: 22px;
  background: #ffffff;
}

.hero-slide:not(.active) {
  opacity: 0.85;
  transform: scale(0.99);
}

/* =====================================
   📱 מובייל
   ===================================== */
@media (max-width: 540px) {
  .hero-slider {
    margin: 0 0 20px;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-track {
    gap: 0;
    padding: 8px 0 4px;
  }

  .hero-slide {
    flex: 0 0 330px;          /* היה 230px */
    max-width: 330px;
    height: 260px;            /* היה 180px */
    background: transparent;
    border-radius: 0;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }

  .hero-slide img {
    width: 100%;
    max-width: 330px;
    height: auto;
    max-height: 260px;
    object-fit: contain;
    display: block;
  }

  .hero-dots {
    margin-top: 14px;
  }

  .hero-dot {
    width: 8px;
    height: 8px;
  }

  .hero-dot.active {
    width: 18px;
  }
}

/* =====================================
   💻 דסקטופ רחב
   ===================================== */
@media (min-width: 900px) {
  .hero-slide {
    flex: 0 0 350px;          /* היה 240px */
    max-width: 350px;
    height: 280px;            /* היה 185px */
  }

  .hero-dots {
    margin-top: 18px;
  }
}
