.product-slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem;
  direction: rtl;
}

.product-card {
  background: #e30048;
  color: #fff;
  border-radius: 15px;
  width: 100%;
  max-width: 500px;
  padding: 1rem;
  flex-shrink: 0;
  position: relative;
  text-align: right;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: row-reverse;
}

.product-card-left {
  flex: 1;
  padding-left: 15px;
}

.product-card-right {
  width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  /* ارتفاع ثابت برای باکس تصویر */
  flex-shrink: 0;
  /* مانع از کوچک‌شدن در فشار flex */
  margin-bottom: 15px;
}

.product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  display: block;
}

.product-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #fff;
  padding: 0 5px;
}

.product-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  flex-direction: row-reverse;
  padding: 0 5px;
}

.sale-price {
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
}

.discounted_price {
  text-decoration: line-through;
  opacity: 0.7;
  font-size: 0.9rem;
}

.discount {
  background: #fff;
  color: #e30048;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
}

.progress {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin: 0.8rem 0;
  flex-direction: row-reverse;
  padding: 0 5px;
}

.countdown {
  font-size: 0.9rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.5rem;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  gap: 10px;
  direction: rtl;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-unit span:first-child {
  font-weight: bold;
  font-size: 1rem;
}

.time-unit span:last-child {
  font-size: 0.7rem;
  opacity: 0.8;
}

/* نمایش نوار پیشرفت فروش */
.progress-bar-container {
  width: 100%;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  margin-top: 5px;
  overflow: hidden;
  position: relative;
  /* اضافه کردن position: relative */
}

.progress-bar {
  height: 100%;
  background-color: #fff;
  border-radius: 10px;
  position: absolute;
  /* استفاده از position: absolute به جای float */
  left: 0;
  top: 0;
}

/* استایل‌های اسلایدر محصول */
.product-cards-slider {
  position: relative;
  margin-bottom: 30px;
  direction: rtl;
  max-width: 520px;
  margin: 0 auto 30px;
}

.product-card-slide {
  padding: 10px;
  outline: none;
}

/* سفارشی‌سازی دکمه‌های اسلایدر */
.product-cards-slider .slick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  font-size: 0;
  /* حذف متن */
  line-height: 0;
  /* حذف متن */
  color: transparent;
  /* حذف متن */
  cursor: pointer;
  border: none;
  outline: none;
}

.product-cards-slider .slick-arrow:hover {
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.product-cards-slider .slick-prev {
  left: -20px;
}

.product-cards-slider .slick-next {
  right: -20px;
}

/* استفاده از آیکون به جای متن */
.product-cards-slider .slick-prev:before,
.product-cards-slider .slick-next:before {
  font-family: 'slick';
  font-size: 20px;
  line-height: 1;
  opacity: 0.75;
  color: #e30048;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.product-cards-slider .slick-prev:before {
  content: '←';
}

.product-cards-slider .slick-next:before {
  content: '→';
}

/* سفارشی‌سازی نقطه‌های اسلایدر */
.product-cards-slider .slick-dots {
  bottom: -25px;
}

.product-cards-slider .slick-dots li button:before {
  font-size: 12px;
}

/* تنظیمات برای نمایش موبایل */
@media (max-width: 768px) {

  .product-cards-slider .slick-prev,
  .product-cards-slider .slick-next {
    display: none !important;
  }

  .product-card {
    flex-direction: column;
  }

  .product-card-right {
    width: 100%;

  }

  .product-card-left {
    padding-left: 0;
  }
}

/* استایل‌های مخصوص اسلایدر عمودی */
.product-cards-slider {
  height: 400px;
  /* ارتفاع اسلایدر - مقدار را متناسب با نیاز خود تنظیم کنید */
  overflow: hidden;
  max-width: 520px;
  margin: 0 auto 30px;
  direction: rtl;
}

.product-cards-slider .swiper-slide {
  height: auto;
  /* اجازه می‌دهد اسلایدها بر اساس محتوا اندازه‌گیری شوند */
}

.swiper-container {
  width: 100%;
  height: 100%;
}

.swiper-button-next,
.swiper-button-prev {
  color: #e30048 !important;
  background-color: rgba(255, 255, 255, 0.8);
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
  /* چرخش دکمه‌ها برای اسلایدر عمودی */
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 18px !important;
}

.swiper-pagination-bullet-active {
  background-color: #e30048 !important;
}

/* تنظیم موقعیت دکمه‌های ناوبری برای اسلایدر عمودی */
.swiper-button-next {
  left: 50%;
  bottom: 10px;
  top: auto;
  transform: translateX(-50%) rotate(90deg);
}

.swiper-button-prev {
  left: 50%;
  top: 10px;
  transform: translateX(-50%) rotate(90deg);
}

/* تنظیم موقعیت pagination برای اسلایدر عمودی */
.swiper-pagination-vertical {
  right: 10px;
}

/* حذف استایل‌های اضافی Slick */
.product-cards-slider .slick-arrow,
.product-cards-slider .slick-prev,
.product-cards-slider .slick-next,
.product-cards-slider .slick-prev:before,
.product-cards-slider .slick-next:before,
.product-cards-slider .slick-dots {
  display: none !important;
}

/* تنظیمات برای نمایش موبایل */
@media (max-width: 768px) {
  .product-cards-slider {
    height: 350px;
    /* ارتفاع کمتر برای موبایل */
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
}

.swiper-slide {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-button-next,
.swiper-button-prev {
  color: #e30048 !important;
  background-color: rgba(255, 255, 255, 0.8);
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 18px !important;
}

.swiper-pagination-bullet-active {
  background-color: #e30048 !important;
}

/* حذف استایل‌های اضافی Slick */
.product-cards-slider .slick-arrow,
.product-cards-slider .slick-prev,
.product-cards-slider .slick-next,
.product-cards-slider .slick-prev:before,
.product-cards-slider .slick-next:before,
.product-cards-slider .slick-dots {
  display: none !important;
}