/* Fitberg — home in-stock carousel */
.fitberg-home-stock {
  margin: 22px auto 8px;
  padding: 0 16px 8px;
}

.fitberg-home-stock__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.fitberg-home-stock__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white_text_black, #222) !important;
}

.fitberg-home-stock__all {
  font-size: 13px;
  white-space: nowrap;
}

.fitberg-home-stock__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(148px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.fitberg-home-stock__card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 2px 0;
  border: none;
  border-radius: 0;
  text-decoration: none !important;
  color: #202223 !important;
  background: transparent !important;
  box-shadow: none !important;
  aspect-ratio: 1 / 1;
  min-height: 0;
  box-sizing: border-box;
}

.fitberg-home-stock__img {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: auto;
  max-height: none;
  background: transparent !important;
  border-radius: 0;
  overflow: hidden;
}

.fitberg-home-stock__img img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent !important;
}

.fitberg-home-stock__art {
  font-size: 13px;
  font-weight: 700;
  color: #3a3d40 !important;
  opacity: 1 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 0 auto;
}

.fitberg-home-stock__name {
  font-size: 13.5px;
  line-height: 1.3;
  color: #202223 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 0 0 auto;
  min-height: calc(1.3em * 2);
}

@media (min-width: 992px) {
  .fitberg-home-stock__track {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, 1fr);
    overflow: visible;
  }
}

@media (max-width: 600px) {
  .fitberg-home-stock__track {
    grid-auto-columns: minmax(140px, 1fr);
    gap: 10px;
  }

  .fitberg-home-stock__art {
    font-size: 12.5px;
  }

  .fitberg-home-stock__name {
    font-size: 13px;
  }
}
