:root {
  --vtrending-timing: 27s;
  --vtrending-max-width: 660px;
  --vtrending-head-size: 104px;
  --vtrending-accent: var(--store-accent, #C21C34);
}

.trending.trending--vtrending {
  background: linear-gradient(60deg, #420285, #08BDBD);
  border-radius: 14px;
  padding: 18px;
}

.trending.trending--vtrending .trending__head {
  padding: 0;
}

.trending.trending--vtrending .trending__title {
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.vtrending-wrapper {
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vtrending-carousel {
  position: relative;
  width: 100%;
  max-width: var(--vtrending-max-width);
  height: 206px;
  margin-top: 18px;
}

.vtrending-item {
  display: flex;
  align-items: center;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  padding: 0 8px;
  opacity: 0;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
  will-change: transform, opacity;
  animation: vtrending-animate-vertical var(--vtrending-timing) linear infinite;
  animation-delay: calc((var(--vtrending-timing) / var(--carousel-items)) * (var(--i) - 2));
  text-decoration: none;
  color: inherit;
}

.vtrending-item:focus {
  outline: none;
}

.vtrending-item:focus-visible .vtrending-item__body {
  box-shadow: 0 0 0 3px rgba(8, 189, 189, 0.35);
}

.vtrending-item:hover .vtrending-item__body {
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.16);
}

.vtrending-item:last-child {
  animation-delay: calc(-1 * (var(--vtrending-timing) / var(--carousel-items)) * 2);
}

.vtrending-item__head {
  border-radius: 50%;
  background: #d7f7fc;
  width: var(--vtrending-head-size);
  height: var(--vtrending-head-size);
  padding: 14px;
  position: relative;
  margin-right: calc(var(--vtrending-head-size) / -2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vtrending-item__head img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.vtrending-item__fallback {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.10);
}

.vtrending-item__body {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px 18px calc((var(--vtrending-head-size) / 2) + 22px);
  transition: box-shadow 160ms ease;
}

.vtrending-item__title {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-size: 15px;
  line-height: 1.2;
  color: #1C1C1C;
  text-decoration: none;
}

.vtrending-item__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.vtrending-item__price {
  font-weight: 900;
  color: var(--vtrending-accent);
}

.vtrending-item__sku {
  font-size: 11px;
  color: rgba(17, 24, 39, 0.55);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes vtrending-animate-vertical {
  0% {
    transform: translateY(100%) scale(0.5);
    opacity: 0;
    visibility: hidden;
  }

  3.333%,
  11.111% {
    transform: translateY(100%) scale(0.7);
    opacity: 0.4;
    visibility: visible;
  }

  14.444%,
  22.222% {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
  }

  25.555%,
  33.333% {
    transform: translateY(-100%) scale(0.7);
    opacity: 0.4;
    visibility: visible;
  }

  36.666% {
    transform: translateY(-100%) scale(0.5);
    opacity: 0;
    visibility: visible;
  }

  100% {
    transform: translateY(-100%) scale(0.5);
    opacity: 0;
    visibility: hidden;
  }
}

@media (max-width: 575.98px) {
  :root {
    --vtrending-head-size: 88px;
  }

  .vtrending-carousel {
    height: 198px;
  }
}
