:root {
  --slider-height-desktop: 520px;
  --slider-height-mobile: 210px;
  --slider-max-width: 1250px;
}

/* کانتینر اسلایدر */
.video-slider-container {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: var(--slider-max-width);
  height: var(--slider-height-desktop);
  margin: 30px auto 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #17212b;
  direction: rtl;
  font-family: 'Yekan', 'BYekan', 'iranyekan', Tahoma, sans-serif !important;
}

/* لایه اسلایدها */
.slider-wrapper,
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* هر اسلاید */
.slide {
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.slide.active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
}

/* ویدیو */
.slide-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* تیرگی ملایم روی ویدیو */
.video-overlay-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(30, 41, 59, 0.40);
  pointer-events: none;
}

/* متن وسط اسلاید */
.slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: transparent;
  color: #fff;
  pointer-events: none;
}

.slide-overlay h2 {
  margin: 0 0 14px;
  padding: 0;
  color: #fff;
  font-family: 'asghari Titr bold', 'Titr', Tahoma, sans-serif !important;
  font-size: clamp(26px, 4vw, 48px);
  font-weight: bold;
  line-height: 1.5;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.slide-overlay p {
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: 'Yekan', 'BYekan', 'iranyekan', Tahoma, sans-serif !important;
  font-size: clamp(15px, 2vw, 23px);
  line-height: 1.8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

/* ===================================================
   بارش قطرات شیشه‌ای باران از بالا به پایین (Falling Rain Drops)
   =================================================== */
.bubbles-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.bubble {
  position: absolute;
  top: -60px; /* شروع از بالای اسلایدر */
  border-radius: 50%;
  
  /* شیشه شفاف و زلال */
  background: transparent;
  backdrop-filter: blur(1.2px);
  -webkit-backdrop-filter: blur(1.2px);
  
  /* بازتاب نور شیشه‌ای در لبه‌ها */
  box-shadow: 
    inset 0 3px 4px -1px rgba(255, 255, 255, 0.85),
    inset 0 -2px 3px -1px rgba(255, 255, 255, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.2);
    
  border: 1px solid rgba(255, 255, 255, 0.4);
  animation: waterBubbleFall 7s infinite ease-in;
}

/* نقطه عطف بازتاب نور روی قطره شیشه‌ای */
.bubble::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 20%;
  width: 30%;
  height: 30%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 80%);
  border-radius: 50%;
  transform: rotate(-30deg);
}

/* تنوع در سرعت سقوط، سایز و مکان بارش ۱۵ قطره */
.bubble:nth-child(1)  { width: 14px; height: 14px; left: 5%;  animation-duration: 6.5s; animation-delay: 0s; }
.bubble:nth-child(2)  { width: 22px; height: 22px; left: 12%; animation-duration: 8.2s; animation-delay: 1.5s; }
.bubble:nth-child(3)  { width: 10px; height: 10px; left: 19%; animation-duration: 5.2s; animation-delay: 0.5s; }
.bubble:nth-child(4)  { width: 18px; height: 18px; left: 27%; animation-duration: 7.2s; animation-delay: 3.0s; }
.bubble:nth-child(5)  { width: 12px; height: 12px; left: 34%; animation-duration: 6.0s; animation-delay: 1.0s; }
.bubble:nth-child(6)  { width: 24px; height: 24px; left: 42%; animation-duration: 8.8s; animation-delay: 2.2s; }
.bubble:nth-child(7)  { width: 15px; height: 15px; left: 50%; animation-duration: 6.8s; animation-delay: 0.2s; }
.bubble:nth-child(8)  { width: 20px; height: 20px; left: 58%; animation-duration: 7.8s; animation-delay: 3.5s; }
.bubble:nth-child(9)  { width: 11px; height: 11px; left: 65%; animation-duration: 5.6s; animation-delay: 1.8s; }
.bubble:nth-child(10) { width: 23px; height: 23px; left: 72%; animation-duration: 8.5s; animation-delay: 0.8s; }
.bubble:nth-child(11) { width: 16px; height: 16px; left: 80%; animation-duration: 6.9s; animation-delay: 2.8s; }
.bubble:nth-child(12) { width: 9px;  height: 9px;  left: 86%; animation-duration: 5.0s; animation-delay: 4.0s; }
.bubble:nth-child(13) { width: 19px; height: 19px; left: 92%; animation-duration: 7.3s; animation-delay: 1.2s; }
.bubble:nth-child(14) { width: 13px; height: 13px; left: 46%; animation-duration: 6.2s; animation-delay: 2.5s; }
.bubble:nth-child(15) { width: 21px; height: 21px; left: 23%; animation-duration: 8.0s; animation-delay: 3.2s; }

/* حرکت بارش از بالا به پایین با شیب باد ملایم */
@keyframes waterBubbleFall {
  0% {
    transform: translateY(0) translateX(0) scale(0.85);
    opacity: 0;
  }
  15% {
    opacity: 0.95;
  }
  50% {
    transform: translateY(300px) translateX(8px) scale(1);
  }
  85% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(620px) translateX(15px) scale(1.05);
    opacity: 0;
  }
}


/* نقطه‌های انتخاب اسلاید */
.dots-wrapper {
  position: absolute;
  right: 50%;
  bottom: 20px;
  z-index: 5;
  display: flex;
  gap: 10px;
  transform: translateX(50%);
}

.dot {
  display: block;
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* PNG موجی زیر اسلایدر */
.slider-shape-divider {
  position: relative;
  z-index: 6;
  left: 50%;
  width: 100vw;
  margin-top: -65px;
  line-height: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.slider-shape-image {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: fill;
  object-position: center top;
}

/* نمایش تمام‌عرض در موبایل */
@media (max-width: 768px) {
  .video-slider-container {
    width: 100%;
    max-width: 100%;
    height: var(--slider-height-mobile);
    margin: 0 auto;
  }

  .slide-overlay {
    padding: 16px;
  }

  .slide-overlay h2 {
    margin-bottom: 8px;
  }

  .dots-wrapper {
    bottom: 12px;
  }

  .slider-shape-divider {
    margin-top: -38px;
  }

  .slider-shape-image {
    height: 75px;
  }
}
/* ==========================================================
   مشکی کردن قطعی عنوان و قیمت محصولات + هاور آبی
   ========================================================== */

/* ۱. عنوان محصولات در حالت عادی: مشکی */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3,
.woocommerce ul.products li.product a:not(:hover) .woocommerce-loop-product__title,
.woocommerce ul.products li.product a:not(:hover) h2,
.woocommerce ul.products li.product a:not(:hover) h3 {
    color: #1a1a1a !important; /* مشکی شیک و خوانا */
    transition: color 0.2s ease !important;
}

/* عنوان محصول وقتی ماوس روش رفت: آبی سرمه‌ای برند */
.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title,
.woocommerce ul.products li.product a:hover h2,
.woocommerce ul.products li.product a:hover h3,
.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
    color: #0079b3 !important;
}

/* ۲. قیمت و عبارت «تومان» در حالت عادی: کاملاً مشکی ثابت */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price *,
.woocommerce ul.products li.product .price .amount,
.woocommerce ul.products li.product .price .amount bdi,
.woocommerce ul.products li.product .price .woocommerce-Price-currencySymbol {
    color: #1a1a1a !important;
    font-weight: 700 !important;
}

/* قیمت خط خورده (تخفیف) برای خوانایی بیشتر خاکستری بمونه */
.woocommerce ul.products li.product .price del,
.woocommerce ul.products li.product .price del * {
    color: #888888 !important;
    font-weight: normal !important;
}
