.rico-products-slider {
  position: relative;
  width: 100%;
  direction: rtl;
  color: #161616;
  font-family: inherit;
  contain: paint;
}

.rico-slider-heading {
  margin: 0 0 16px;
  color: inherit;
}

.rico-products-swiper {
  position: relative;
  width: 100%;
  overflow: hidden;
  direction: rtl;
  touch-action: pan-y;
  cursor: grab;
}

.rico-products-swiper:active {
  cursor: grabbing;
}

.rico-products-wrapper {
  display: flex !important;
  align-items: stretch;
  box-sizing: border-box;
  column-gap: var(--rico-slider-gap, 0px);
}

/* هماهنگی عرض و چینش اسلاید بدون تغییر در استایل کارت محصول */
.rico-products-slider .rico-product-slide {
  flex: 0 0 auto;
  width: var(--rico-card-width, 280px);
  border-bottom: 0;
}

.rico-products-slider .rico-product-slide:last-child {
  border-left: 0;
}

.rico-products-slider .rico-product-image img {
  pointer-events: none;
  -webkit-user-drag: none;
}

/* اولین کارت سفارشی (بنر) */
.rico-products-slider .rico-custom-banner-slide {
  box-sizing: border-box;
  min-width: 0;
  height: auto;
  padding: 8px 10px 14px;
  border: 0;
  border-left: 1px solid #e2e2e2;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  background: transparent;
}

.rico-custom-banner-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
}

.rico-custom-banner-link,
.rico-custom-banner-img {
  display: flex;
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  text-decoration: none;
  overflow: hidden;
}

.rico-custom-banner-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  transition: transform 0.3s ease;
  border-radius: 15px;
}

.rico-custom-banner-link:hover img {
  transform: scale(1.04);
}

.rico-slider-controls {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 10px;
}

.rico-slider-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.rico-slider-arrow:focus-visible {
  outline: 2px solid #176855;
  outline-offset: 2px;
}

.rico-slider-arrow.swiper-button-disabled {
  opacity: 0.4;
  cursor: default;
}

.rico-empty-state,
.rico-slider-notice {
  padding: 16px;
}

@media (max-width: 767px) {
  .rico-slider-controls {
    margin-top: 8px;
  }

  .rico-slider-arrow {
    width: 32px;
    height: 32px;
  }
}