.bestsellers {
  direction: rtl;
  border: 1px solid #e0e0e2;
  border-radius: 24px;
  background: #fff;
  margin: 20px;
  padding: 30px 24px 29px;
}
.bestsellers h2 {
  font-size: 27px;
  color: #0b0b0b;
  font-weight: 850;
  margin: 0 12px 30px;
}
.bestsellers-slider {
  position: relative;
}
.bestsellers-track {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}
.bestsellers-track::-webkit-scrollbar {
  display: none;
}
.bestseller-column {
  flex: 0 0 calc((100% - 90px) / 4);
  min-width: 260px;
  scroll-snap-align: start;
}
.bestseller-item {
  height: 140px;
  display: flex;
  direction: rtl;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #ececef;
  text-decoration: none;
  color: #27334e;
  padding: 8px 2px;
}
.bestseller-item:last-child {
  border-bottom: 0;
}
.bestseller-item img {
  width: 104px;
  height: 112px;
  object-fit: contain;
  flex-shrink: 0;
}
.bestseller-rank {
  font:
    800 22px Arial,
    sans-serif;
  background: #ef3855;
  color: #fff;
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bestseller-name {
  font-size: 15px;
  line-height: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
}
.bestseller-item:hover .bestseller-name {
  color: #00b7d2;
}
.bestsellers-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid #e0e0e2;
  background: #fff;
  color: #77818c;
  font-size: 38px;
  cursor: pointer;
  box-shadow: 0 2px 6px #0001;
}
.bestsellers-prev {
  right: -17px;
}
.bestsellers-next {
  left: -17px;
}
@media (max-width: 1100px) {
  .bestseller-column {
    flex-basis: calc((100% - 30px) / 2);
  }
}
@media (max-width: 650px) {
  .bestsellers {
    margin: 10px;
    padding: 18px 12px;
  }
  .bestsellers h2 {
    font-size: 21px;
    margin-bottom: 16px;
  }
  .bestseller-column {
    flex-basis: 90%;
    min-width: 235px;
  }
  .bestseller-item {
    height: 120px;
  }
  .bestseller-item img {
    width: 85px;
    height: 96px;
  }
  .bestseller-name {
    font-size: 13px;
  }
  .bestsellers-arrow {
    width: 43px;
    height: 43px;
    font-size: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bestsellers-track {
    scroll-behavior: auto;
  }
}
