/**
 * Bandes d'images produits défilantes — auth, portail marché
 */
.auth-body--showcase {
  overflow: hidden;
}
.auth-body.auth-body--showcase {
  background: var(--sm-blue-soft, #eef4fb) !important;
}
.auth-body--showcase .auth-wrap {
  position: relative;
  z-index: 2;
}
.auth-body--showcase .lv-prefs-auth {
  z-index: 20;
}
.auth-body--showcase .auth-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sm-product-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.sm-product-bg--panel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sm-product-bg-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.sm-product-bg--auth .sm-product-bg-shade {
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 199, 14, 0.08), transparent 42%),
    radial-gradient(circle at 88% 88%, rgba(45, 90, 146, 0.1), transparent 44%),
    radial-gradient(ellipse 55% 70% at 50% 50%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.72) 100%),
    linear-gradient(165deg, rgba(244, 247, 251, 0.62) 0%, rgba(255, 255, 255, 0.58) 100%);
}
.sm-product-bg--panel .sm-product-bg-shade {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.02) 0%,
    rgba(0, 0, 0, 0.12) 40%,
    rgba(0, 0, 0, 0.38) 100%
  );
}

.sm-product-bg-rows {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  justify-content: center;
  opacity: 0.82;
  transform: rotate(-5deg) scale(1.18);
  filter: saturate(1.08) contrast(1.04);
}
.sm-product-bg--panel .sm-product-bg-rows {
  opacity: 0.92;
  transform: rotate(-3deg) scale(1.28);
  gap: 0.65rem;
}

.sm-product-bg-row {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.sm-product-bg-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  will-change: transform;
  animation: sm-product-bg-scroll var(--sm-bg-duration, 48s) linear infinite;
}
.sm-product-bg-row--reverse .sm-product-bg-track {
  animation-direction: reverse;
}

.sm-product-bg-tile {
  margin: 0;
  flex: 0 0 auto;
  width: clamp(148px, 19vw, 240px);
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 40, 80, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.78);
}
.sm-product-bg--panel .sm-product-bg-tile {
  width: clamp(120px, 22vw, 200px);
  border-radius: 11px;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.sm-product-bg-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mg-panel:has(.sm-product-bg) .mg-panel-bg--fallback {
  display: none;
}

.mg-panel--ci .sm-product-bg-row:nth-child(1) .sm-product-bg-track {
  animation-delay: -14s;
}
.mg-panel--ci .sm-product-bg-row:nth-child(2) .sm-product-bg-track {
  animation-delay: -6s;
}

@keyframes sm-product-bg-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .sm-product-bg-track {
    animation: none;
  }
  .sm-product-bg-rows {
    opacity: 0.55;
    transform: none;
  }
  .sm-product-bg--panel .sm-product-bg-rows {
    opacity: 0.65;
  }
}

@media (max-width: 575.98px) {
  .sm-product-bg-tile {
    width: clamp(108px, 38vw, 150px);
  }
  .sm-product-bg--panel .sm-product-bg-tile {
    width: clamp(96px, 42vw, 140px);
  }
}
