.slider-container {
  display: flex;
  max-width: 1600px;
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
  direction: ltr;
  margin-top: 25px;
  margin-bottom: 35px;
  aspect-ratio: 1428 / 553;
}

.slide-main {
  flex: 3;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  transition: all 0.3s ease;
  height: 100%;
}

.slide-main .slide {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
}

.slide-list .text {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  justify-content: flex-start;
  z-index: 1;
  padding: 10px 4px;
}

.slide-list .text .title {
  color: var(--text);
  font-family: "IRANYekanX VF";
}

.slide-list .text .price {
  margin-top: .5rem;
  color: var(--text);
  font-family: "IRANYekanX VF";
  font-feature-settings: "ss02";
}

.slide-main .slide.active {
  display: block;
}

.slide-text {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  left: auto;
  color: rgb(255 255 255);
  padding: .5rem;
  width: 450px;
  direction: rtl;
  gap: .75rem;
  display: flex;
  flex-direction: column;
  user-select: none;
  z-index: 2;
}

.slide-text h2 {
  margin-bottom: 10px;
  font-size: 24px;
  font-family: "IRANYekanX VF";
}

.slide-text p {
  font-size:.875rem;
  margin-bottom: 10px;
  font-family: "IRANYekanX VF";
  line-height: 1.25rem;
  text-align: justify;
}

.slide-text .price {
  margin-bottom: 10px;
  font-size: 16px;
  font-family: "IRANYekanX VF";
  font-feature-settings: "ss02";
}

.slide-text button {
  padding: 8px 15px;
  font-size: 14px;
  background: #00c8ff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: #fff;
  font-family: "IRANYekanX VF";
}

.slide-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 0 0 25px;
  max-width: 384px;
  user-select: none;
  row-gap: 0.3125rem;
  height: 100%;
}

.slide-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 4px 0px;
  padding-left: 10px;
  cursor: pointer;
  overflow: hidden;
  border-radius: 1rem !important;
  direction: rtl;
  background-color: var(--bg);
  gap: .5rem;
  flex: 1;
  min-height: 0;
}

.slide::before {
  content: "";
  position: absolute;
  top: 0;
  width: 110%;
  right: 0;
  height: 100%;
  background: linear-gradient(-270deg, rgba(11, 11, 11, 0), #0b0b0b 100%, #0b0b0b 0);
  pointer-events: none;
  z-index: 1;
}

.slide-item.active {
  background-color: var(--bg-slider-active);
}

.slide-item img {
  width: 60px;
  height: 80px;
  object-fit: cover;
  margin-right: 4px;
  border-radius: 10px;
  z-index: 1;
  position: relative;
}

.slide-item span {
  font-size: 13px;
}

/* Progress div داخل هر اسلاید کوچک */
.slide-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: var(--bg-slider-progress);
  z-index: 0;
  transition: width linear;
}

.heartbeat {
  animation: heartbeat 0.45s cubic-bezier(.4,0,.3,1);
}

@keyframes heartbeat {
  0%   { transform: scale(1); }
  20%  { transform: scale(1.13); }
  40%  { transform: scale(0.94); }
  60%  { transform: scale(1.10); }
  80%  { transform: scale(0.98); }
  100% { transform: scale(1); }
}

.bg-pic {
  width: 60px;
  height: 80px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  flex: 0 0 auto;
  margin-right: 4px;
  border-radius: 10px;
  z-index: 1;
}

/* ========== RESPONSIVE: تبلت و موبایل ========== */
@media (max-width: 1428px) {
  .slide-main{
    border-radius: 0;
  }
}
/* تبلت (عرض کمتر از 1024px) */
@media (max-width: 1024px) {
  .slider-container {
  aspect-ratio: 1305 / 740;
  margin-top: 0px;
}
 .slide-text {
    width:100%;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,1.7) 0%, rgba(0,0,0,0) 100%);
    /* border-radius: 12px; */
    padding: 1rem;
    padding-right: 50px;
    padding-left: 50px;
  }
  .slide::before {
    content: none !important;
  }
  .slide-text h2 {
    font-size: 20px;
  }
  
  .slide-text p {
    font-size: 14px;
  }
    /* مخفی کردن لیست اسلایدهای کوچک در موبایل */
  .slide-list {
    display: none;
  }
}

/* موبایل (عرض کمتر از 768px) */
@media (max-width: 768px) {
  .slider-container {
    flex-direction: column;
    aspect-ratio: auto;
  }
  
  
  /* اسلاید اصلی کل عرض رو بگیره */
  .slide-main {
    flex: auto;
    width: 100%;
    /* min-height: 100%; */
    aspect-ratio: 1305 / 740;
    height: auto;
  }
  
  .slide-text {
    width:100%;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    /* border-radius: 12px; */
    padding: 1rem;
    padding-right: 50px;
    padding-left: 50px;
  }
  
  .slide-text h2 {
    font-size: auto;
    margin-bottom: 5px;
  }
  
  .slide-text p {
    font-size: 12px;
    margin-bottom: 5px;
  }
  
  .slide-text .price {
    font-size: 14px;
    margin-bottom: 5px;
  }
  
  .slide-text button {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* موبایل خیلی کوچک (عرض کمتر از 480px) */
@media (max-width: 610px) {
  .slide-main {
    /* min-height: 350px; */
  }
   .slide-text {
    padding: 1rem;
  }
  .btn-slideshow{
    display: flex;
    flex-direction: row-reverse;
  }
  .slide-text h2 {
    font-size: 11px;
  }
  
  .slide-text p {
    font-size: 9px;
    line-height: 1.4;
  }
  .slide-text {
    gap: 0;
  }
  .slide-text .price {
    font-size: 10px;
  }
}

/* صفحه‌های خیلی بزرگ (بیشتر از 1600px) */
@media (min-width: 1601px) {
  .slider-container {
    max-width: 1600px;
    aspect-ratio: 1428 / 553;
  }
}