/* == Container for Recent Items == */
#doosearchas_s-recent-items {
  width: 100%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* === Responsive: Hide recent items on extra small screens (phones) === */
@media (max-width: 575.98px) {
  #doosearchas_s-recent-items {
    grid-area: 2/2/3/3; /* Grid placement if using CSS grid */
    margin: 0;
    display: none !important; /* Hide on mobile */
  }
}

/* === Responsive: Layout tweaks for small screens (≥576px <768px) === */
@media (min-width: 576px) and (max-width: 767.98px) {
  #doosearchas_s-recent-items {
    grid-area: 2/2/3/3;
    margin: 0;
  }
}

/* === Responsive: Layout tweaks for medium screens (≥768px <992px) === */
@media (min-width: 768px) and (max-width: 991.98px) {
  #doosearchas_s-recent-items {
    grid-area: 2/2/3/3;
    margin: 0;
  }
}
.doosearchas_s-slider-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.doosearchas_s-slider {
  display: flex;
  transition: transform 0.4s ease-in-out; /* Smooth sliding */
  will-change: transform;
  gap: 10px;
  box-sizing: border-box;
  margin-left: 0;
  margin-right: 0;
}

/* === Adjust gap for small devices === */
@media (min-width: 576px) and (max-width: 767.98px) {
  .doosearchas_s-slider {
    gap: 9px;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .doosearchas_s-slider {
    gap: 9.3px;
  }
}
@media (min-width: 991.98px) and (max-width: 1111.98px) {
  .doosearchas_s-slider {
    gap: 9.5px;
  }
}
.doosearchas_s-slide-item {
  box-sizing: border-box;
  flex: 0 0 calc((100% - 21px) / 3); /* Show 3 items with gaps */
  box-shadow: rgba(0, 0, 0, 0.05) 11px 12px 20px 0px;
  border: 2px solid rgb(211 211 211);
  background: white;
}
.doosearchas_s-slide-item img {
  width: 100%;
  max-height: min-content;
  object-fit: contain;
  display: block;
}

/* == Slider arrow buttons (prev/next) == */
.doosearchas_s-slider-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}
.doosearchas_s-slider-btn.prev {
  left: 0;
}
.doosearchas_s-slider-btn.next {
  right: 0;
}

/* === Responsive: show 2 items per row on narrower screens === */
@media screen and (max-width: 1127px) {
  .doosearchas_s-slide-item {
    flex: 0 0 calc((100% - 10px) / 2);
  }
}

/* === Responsive: full-width slide (1 per row) on mobile === */
@media screen and (max-width: 889px) {
  .doosearchas_s-slide-item {
    flex: 0 0 100%;
  }
}
.doosearchas_s-slider-wrapper
  .doosearchas_s-slider
  .doosearchas_s-slide-item:hover {
  border: 2px solid #84b636;
}
.doosearchas_s-slider-wrapper
  .doosearchas_s-slider
  .doosearchas_s-slide-item
  a {
  font-family: "Bai Jamjuree", sans-serif;
  font-weight: 600 !important;
  font-size: 15.2px;
  color: #5a5a5a;
  text-decoration: none;
  line-height: 1.5rem;
}
.doosearchas_s-slider-wrapper
  .doosearchas_s-slider
  .doosearchas_s-slide-item
  a {
  text-decoration: none !important;
}
.doosearchas_s-slider-wrapper
  .doosearchas_s-slider
  .doosearchas_s-slide-item
  a
  p {
  padding: 0 30px;
  text-decoration: none;
}

/* == Price styling inside slide item == */
.doosearchas_s-slider-wrapper
  .doosearchas_s-slider
  .doosearchas_s-slide-item
  .doosearchas_s_rp_price {
  font-family: "Rubik", sans-serif;
  color: #b20808;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5rem;
}
.doosearchas_s-slider-wrapper
  .doosearchas_s-slider
  .doosearchas_s-slide-item
  .doosearchas_s_rp_price
  span {
  padding: 0 2px 0 14px;
}
