.need-finder{
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 16px;
}

/* خیلی مهم برای اینکه ستون اسکرولی داخل grid درست overflow بشه */
.need-finder__side,
.need-finder__recs{
  min-width: 0;
}

.need-finder__side{
  padding: 6px 6px 6px 12px;
}

.need-finder__title{
  font-weight: 900;
  font-size: 18px;
  margin: 0 0 6px;
}

.need-finder__desc{
  margin: 0 0 12px;
  color: rgba(0,0,0,.65);
  font-size: 13px;
}

.need-finder__chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.need-chip{
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  background: #fff;
  color: rgba(0,0,0,.8);
  text-decoration: none;
}

.need-chip.is-active{
  border-color: #E91E63;
  color: #E91E63;
  font-weight: 700;
}

.need-finder__hint{
  font-size: 12px;
  color: rgba(0,0,0,.7);
  margin: 10px 0 12px;
}

.need-finder__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: #E91E63;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}

.need-finder__cta:hover{
  color: #fafafa !important;
  opacity: 0.7;
}

/* =========================
   اسکرول افقی محصولات
   ========================= */
.need-finder__recs.scroll-x{
  min-width: 0;

  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 260px; /* عرض ثابت هر کارت */

  gap: 12px;

  overflow-x: auto;     /* کلید دسکتاپ همین است */
  overflow-y: hidden;

  padding-bottom: 10px;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  direction: ltr; /* برای رفتار طبیعی اسکرول در RTL */
}

/* هر کارت روی اسنپ */
.need-finder__recs.scroll-x .need-card{
  scroll-snap-align: start;
  direction: rtl;   /* متن فارسی داخل کارت */
  width: 260px;     /* مطمئن */
}

/* کارت */
.need-card{
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.need-card__img{
  height: 160px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.need-card__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.need-card__body{
  padding: 10px;
}

.need-card__title{
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;

  /* جلوگیری از کش آمدن متن و بهم ریختن */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.need-card__price{
  font-size: 12px;
  color: rgba(0,0,0,.7);
  margin-bottom: 10px;
}

.need-card__btn{
  display: inline-flex;
  width: 100%;
  height: 36px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 90, 95, .12);
  color: #ff5a5f;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
}

/* اسکرول‌بار (اختیاری) */
.need-finder__recs.scroll-x::-webkit-scrollbar{
  height: 8px;
}
.need-finder__recs.scroll-x::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.12);
  border-radius: 999px;
}

/* Responsive */
@media (max-width: 992px){
  .need-finder{ grid-template-columns: 1fr; }
}

@media (max-width: 576px){
  .need-finder__recs.scroll-x{
    grid-auto-columns: 80%;
  }
  .need-finder__recs.scroll-x .need-card{
    width: auto;
  }
  .need-card__img{
    height: 200px;
  }
}

.need-finder__recs.scroll-x{
  cursor: grab;
  user-select: none;
}

.need-finder__recs.scroll-x.is-dragging{
  cursor: grabbing;
}

.need-card{
  pointer-events: auto;
}
