.eco-best-sell-slide {
  width: 100%;
  box-sizing: border-box;
  padding: var(--eco-best-sell-padding-top, 10px) var(--eco-best-sell-padding-x, 0) var(--eco-best-sell-padding-bottom, 18px);
  font-family: inherit !important;
  content-visibility: auto;
  contain-intrinsic-size: 430px;
  --eco-product-card-image-margin: 6px;
  --eco-product-card-title-size: 13px;
  --eco-product-card-title-min-height: 34px;
  --eco-product-card-title-margin: 4px;
  --eco-product-card-stars-size: 13px;
  --eco-product-card-stars-min-height: 14px;
  --eco-product-card-stars-margin: 4px;
  --eco-product-card-stars-spacing: 1px;
  --eco-product-card-price-size: 21px;
  --eco-product-card-regular-price-size: 12px;
  --eco-product-card-save-size: 12px;
  --eco-product-card-save-margin: 4px;
}

.eco-best-sell-slide,
.eco-best-sell-slide * {
  font-family: inherit !important;
  box-sizing: border-box;
}

.eco-best-sell-slide--boxed {
  max-width: var(--eco-best-sell-max-width, 1600px);
  margin-left: auto;
  margin-right: auto;
}

.eco-best-sell-slide--wide .eco-best-sell-slide__inner {
  max-width: var(--eco-best-sell-max-width, 1600px);
  margin-left: auto;
  margin-right: auto;
}

.eco-best-sell-slide--full .eco-best-sell-slide__inner {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.eco-best-sell-slide__inner {
  contain: layout paint;
}

.eco-best-sell-slide__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.eco-best-sell-slide__title-wrap {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: calc(var(--eco-best-sell-underline-height, 3px) + 3px);
}

.eco-best-sell-slide__title-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(var(--eco-best-sell-underline-width, 150px), 100%);
  height: var(--eco-best-sell-underline-height, 3px);
  border-radius: 999px;
  background: var(--eco-best-sell-underline-color, #f05a3b);
}

.eco-best-sell-slide__heading {
  margin: 0;
  color: var(--eco-best-sell-heading-color, #111111);
  font-size: var(--eco-best-sell-heading-size, 18px);
  font-weight: var(--eco-best-sell-heading-weight, 800);
  line-height: 1.15;
}

.eco-best-sell-slide__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--eco-best-sell-badge-bg, #ff6b4a);
  color: var(--eco-best-sell-badge-color, #fff);
  font-size: var(--eco-best-sell-badge-size, 13px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.eco-best-sell-slide__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.eco-best-sell-slide__nav-button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.14s ease, opacity 0.14s ease;
}

.eco-best-sell-slide__nav-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #e5e7eb;
}

.eco-best-sell-slide__nav-button:disabled {
  opacity: 0.42;
  cursor: default;
}

.eco-best-sell-slide__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.eco-best-sell-slide__viewport::-webkit-scrollbar {
  display: none;
}

.eco-best-sell-slide__track {
  --eco-best-sell-card-size: calc(
    (100% - ((var(--eco-best-sell-items-per-view, 7) - 1) * var(--eco-best-sell-gap, 12px))) /
    var(--eco-best-sell-items-per-view, 7)
  );
  display: flex;
  align-items: stretch;
  gap: var(--eco-best-sell-gap, 12px);
  min-width: 100%;
}

.eco-best-sell-slide__item {
  width: var(--eco-best-sell-card-size);
  flex: 0 0 var(--eco-best-sell-card-size);
  scroll-snap-align: start;
}

.eco-best-sell-slide .eco-product-card__link {
  display: block;
  height: 100%;
}

.eco-best-sell-slide__empty {
  width: 100%;
  margin: 18px 0;
  color: #64748b;
  text-align: center;
}

@media (max-width: 1024px) {
  .eco-best-sell-slide__track {
    --eco-best-sell-card-size: calc((100% - (3 * var(--eco-best-sell-gap, 12px))) / 4);
  }
}

@media (max-width: 767px) {
  .eco-best-sell-slide {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 8px;
    padding-right: 8px;
  }

  .eco-best-sell-slide__header {
    align-items: center;
    gap: 10px;
  }

  .eco-best-sell-slide__title-wrap {
    gap: 8px;
  }

  .eco-best-sell-slide__heading {
    font-size: min(var(--eco-best-sell-heading-size, 18px), 17px);
  }

  .eco-best-sell-slide__badge {
    min-height: 21px;
    padding: 3px 8px;
    font-size: min(var(--eco-best-sell-badge-size, 13px), 11px);
  }

  .eco-best-sell-slide__nav {
    gap: 5px;
  }

  .eco-best-sell-slide__nav-button {
    width: 24px;
    height: 24px;
    font-size: 19px;
  }

  .eco-best-sell-slide__track {
    --eco-best-sell-card-size: calc((100% - var(--eco-best-sell-gap, 10px)) / 2);
    gap: min(var(--eco-best-sell-gap, 12px), 10px);
  }

  .eco-best-sell-slide .eco-product-tabs__title {
    font-size: 11px;
  }
}
