/* PEVLO — top-of-homepage trending carousel */
.pv-spot { padding: 28px 0 8px; }
.pv-spot__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: 16px;
}
.pv-spot__label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  color: #265dfa; background: rgba(38, 93, 250, .1);
}
html[data-theme="dark"] .pv-spot__label { color: #06acfa; background: rgba(6, 172, 250, .12); }
.pv-spot__title { margin: 8px 0 0; font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.25; }
.pv-spot__title span {
  background: linear-gradient(90deg, #06acfa, #265dfa 55%, #6d28d9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pv-spot__nav { display: flex; gap: 8px; flex: none; }
.pv-spot__btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-main);
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.pv-spot__btn:hover { background: #265dfa; border-color: #265dfa; color: #fff; }
.pv-spot__btn:active { transform: scale(.94); }

.pv-spot__viewport { position: relative; margin: 0 -6px; }
.pv-spot__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * 16px) / 5);
  gap: 16px;
  padding: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  outline: none;
}
.pv-spot__track::-webkit-scrollbar { display: none; }
.pv-spot__slide { position: relative; scroll-snap-align: start; min-width: 0; }
.pv-spot__slide .product-card { height: 100%; }
.pv-spot__seen {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  top: 46px; left: 12px;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  font-size: .72rem; font-weight: 700; color: #fff;
  background: linear-gradient(90deg, #265dfa, #6d28d9);
  box-shadow: 0 6px 14px rgba(38, 93, 250, .35);
  pointer-events: none;
}
.pv-spot__progress { height: 3px; margin-top: 14px; border-radius: 3px; background: var(--border); overflow: hidden; }
.pv-spot__progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #06acfa, #265dfa, #6d28d9);
}
.pv-spot.is-playing .pv-spot__progress i { animation: pv-spot-progress var(--pv-spot-ms, 3500ms) linear forwards; }
@keyframes pv-spot-progress { from { width: 0; } to { width: 100%; } }

@media (max-width: 1199px) { .pv-spot__track { grid-auto-columns: calc((100% - 3 * 16px) / 4); } }
@media (max-width: 991px)  { .pv-spot__track { grid-auto-columns: calc((100% - 2 * 14px) / 3); gap: 14px; } }
@media (max-width: 767px)  {
  .pv-spot { padding-top: 18px; }
  .pv-spot__track { grid-auto-columns: calc((100% - 12px) / 2.15); gap: 12px; }
  .pv-spot__btn { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .pv-spot__track { scroll-behavior: auto; }
  .pv-spot.is-playing .pv-spot__progress i { animation: none; }
}

/* v2 — no progress line, nicer label and arrows */
.pv-spot__progress { display: none !important; }

.pv-spot__label {
  gap: 6px;
  color: #fff !important;
  background: linear-gradient(135deg, #06acfa, #3b6cff 60%, #7c3aed) !important;
  box-shadow: 0 6px 16px rgba(59, 108, 255, .3);
}

.pv-spot__label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, .3);
  animation: pvSpotPulse 1.6s ease-in-out infinite;
}

@keyframes pvSpotPulse {
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.pv-spot__btn {
  width: 42px;
  height: 42px;
  border: 0 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #06acfa, #3b6cff) !important;
  box-shadow: 0 8px 18px rgba(59, 108, 255, .3);
}

.pv-spot__btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.pv-spot__btn[data-dir="-1"] {
  color: var(--text-main) !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none;
}

.pv-spot__track {
  scroll-snap-type: none;
}

@media (max-width: 767px) {
  .pv-spot__btn { width: 36px; height: 36px; }
}

/* No grey strip under the cards: give the shadows room inside the scroller
   (it clips anything that sticks out) and don't lift cards on hover here */
.pv-spot__viewport {
  margin: 0 -8px;
}

.pv-spot__track {
  padding: 10px 8px 26px !important;
  margin-bottom: -16px;
  align-items: stretch;
}

.pv-spot .product-card.pc2 {
  box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
}

.pv-spot .product-card.pc2:hover {
  transform: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}

html[data-theme="dark"] .pv-spot .product-card.pc2 {
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}

.pv-spot {
  padding-bottom: 0;
}
