.aviesa-search-container {
  position: relative;
  max-width: 600px;
  margin: 0;
  font-family: inherit;
  direction: rtl;
}

.aviesa-search-container .aviesa-search-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

.aviesa-search-container .aviesa-search-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  margin-top: 6px;
  padding: 20px;
  display: none;
  z-index: 9999;
}

.aviesa-search-container .aviesa-suggestion-title {
  font-weight: bold;
  margin-bottom: 8px;
  color: #555;
}

.aviesa-search-container .aviesa-suggestion-list {
  list-style: none;
  padding: 0;
  margin: 15px 0px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aviesa-search-container .aviesa-suggestion-list li {
  background: #f3f3f3;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

.aviesa-search-container .aviesa-suggestion-list li:hover {
  background: #e2e2e2;
}

.aviesa-search-container .results {
  margin-top: 16px;
}

.aviesa-search-container .result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.aviesa-search-container .result-item img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
}

.aviesa-search-container .result-item a {
display: -webkit-box;
  -webkit-line-clamp: 2;         /* حداکثر 2 خط */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  line-height: 1.4em;
  height: 2.8em;                  /* حدود دو خط */
  margin-top: 6px;
}

/* حالت دسکتاپ: نمایش عمودی */
.product-carousel {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* فاصله بین آیتم‌ها */
}

/* حالت موبایل: نمایش افقی با اسکرول */
@media (max-width: 768px) {
	.aviesa-search-container .aviesa-search-input{
		 width: 100%;
	}
	
  .product-carousel {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1rem;
  }

  .product-carousel::-webkit-scrollbar {
    display: none; /* مخفی‌سازی اسکرول‌بار در موبایل */
  }

  .result-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 70%; /* هر آیتم ۷۰٪ عرض موبایل */
  }
	.product-scroll-container {
    scroll-snap-type: none !important; 
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}



