/* protected/modules/abcdirectory/resources/css/categoryAds.css */

.csb-category-ad-container {
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.cat-ads-wrapper-horizontal {
  display: flex;
  align-items: center;
}

.cat-ads-wrapper-horizontal .arrow {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0 8px;
}

.ads-list-horizontal {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: scroll;
  scroll-behavior: smooth;
  flex-wrap: nowrap;
  flex: 1; /* let it expand between arrows */
}

.ad-card-horizontal {
  flex: 0 0 auto;
  margin-right: 16px; /* spacing between cards */
  width: 300px;       /* your fixed ad width */
  height: 250px;      /* your fixed ad height */
}

.ad-card-horizontal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Hide default scrollbar (optional) */
.ads-list-horizontal::-webkit-scrollbar {
  display: none;
}
.ads-list-horizontal {
  -ms-overflow-style: none; /* IE/Edge */
  scrollbar-width: none;     /* Firefox */
}
