/* EH Best Sellers — carousel row. Colours taken from the store theme:
   greens #009933 / #068041, blue accent #1f90bb, pale tints #f3fce4 / #d4f19d. */
.eh-bs {
  --eh-green: #009933;
  --eh-green-dark: #068041;
  --eh-blue: #1f90bb;
  --eh-tint: #f3fce4;
  --eh-tint-2: #d4f19d;
  --eh-ink: #222222;
  --eh-muted: #6b7a6e;
  --eh-gap: 14px;
  position: relative;
  clear: both;
  margin: 28px 0 24px;
  padding: 18px 18px 20px;
  background: linear-gradient(180deg, #ffffff 0%, var(--eh-tint) 100%);
  border: 1px solid #e3f0d6;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.eh-bs-wrap { clear: both; padding-left: 0; padding-right: 0; }
.eh-bs-wrap .eh-bs { margin: 6px 15px 26px; }

.eh-bs__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.eh-bs__title { margin: 0; font-size: 20px; line-height: 1.2; font-weight: 700; color: var(--eh-ink); display: flex; align-items: center; gap: 8px; }
.eh-bs__flame { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--eh-green); color: #fff; align-items: center; justify-content: center; flex: 0 0 28px; }
.eh-bs__sub { margin: 4px 0 0; font-size: 13px; color: var(--eh-muted); }
.eh-bs__tools { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.eh-bs__all { font-size: 13px; font-weight: 600; color: var(--eh-green-dark); text-decoration: none; margin-right: 6px; white-space: nowrap; }
.eh-bs__all:hover { color: var(--eh-green); text-decoration: underline; }
.eh-bs__nav { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #cfe3bf; background: #fff; color: var(--eh-green-dark); font-size: 22px; line-height: 1; cursor: pointer; display: none; align-items: center; justify-content: center; padding: 0 0 3px; transition: background .15s, color .15s; }
.eh-bs__nav:hover { background: var(--eh-green); color: #fff; border-color: var(--eh-green); }
.eh-bs__nav:disabled { opacity: .35; cursor: default; background: #fff; color: var(--eh-green-dark); border-color: #cfe3bf; }
.eh-bs--ready .eh-bs__nav { display: inline-flex; }

.eh-bs__viewport { margin: 0 -4px; }
.eh-bs__track {
  display: flex; gap: var(--eh-gap); padding: 4px 4px 8px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.eh-bs__track::-webkit-scrollbar { display: none; }

.eh-bs__item {
  flex: 0 0 calc((100% - 3 * var(--eh-gap)) / 4);
  scroll-snap-align: start;
  background: #fff; border: 1px solid #e6eee0; border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
.eh-bs__item:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(6, 128, 65, .12); }
.eh-bs__item--off { display: none; }

.eh-bs__img { position: relative; display: block; padding: 10px; background: #fff; }
.eh-bs__img img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.eh-bs__badge { position: absolute; top: 10px; left: 10px; background: var(--eh-green); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }

.eh-bs__body { padding: 8px 12px 12px; display: flex; flex-direction: column; flex: 1 1 auto; }
.eh-bs__name { margin: 0 0 6px; font-size: 13px; line-height: 1.35; font-weight: 600; min-height: 2.7em; }
.eh-bs__name a { color: var(--eh-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eh-bs__name a:hover { color: var(--eh-green-dark); }
.eh-bs__price { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--eh-blue); }
.eh-bs__new { color: #c8102e; }
.eh-bs__old { color: #999; font-weight: 400; font-size: 12px; margin-left: 4px; }
.eh-bs__cart { margin-top: auto; width: 100%; border: 0; border-radius: 8px; padding: 8px 10px; background: var(--eh-green); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s; }
.eh-bs__cart:hover { background: var(--eh-green-dark); }
.eh-bs__cart .fa { margin-right: 4px; }

@media (max-width: 991px) {
  .eh-bs__item { flex-basis: calc((100% - 2 * var(--eh-gap)) / 3); }
}
@media (max-width: 767px) {
  .eh-bs { padding: 14px 12px 16px; border-radius: 10px; }
  .eh-bs-wrap .eh-bs { margin: 6px 0 22px; }
  .eh-bs__head { align-items: flex-start; }
  .eh-bs__title { font-size: 17px; }
  .eh-bs__sub { font-size: 12px; }
  .eh-bs--ready .eh-bs__nav { display: none; } /* swipe on touch */
  .eh-bs__track { --eh-gap: 10px; }
  .eh-bs__item { flex-basis: 40%; } /* ~2.2 cards visible so the user sees there is more */
  .eh-bs__cart { font-size: 12px; padding: 7px 6px; }
  .eh-bs__name { font-size: 12px; }
}
@media (max-width: 360px) {
  .eh-bs__item { flex-basis: 44%; }
}
