/* Product hero — scroll-snap carousel with fixed price badge. */

.product-hero {
  margin: var(--space-lg) 0;
}

.product-hero__heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: 0 0 var(--space-md);
}

.product-hero__viewport {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.product-hero__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  height: 100%;
}

.product-hero__track::-webkit-scrollbar {
  display: none;
}

.product-hero__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: block;
  height: 100%;
}

.product-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  filter: blur(0);
  transition: filter 0.4s ease-out;
}

.product-hero__track.scrolling .product-hero__slide img {
  filter: blur(2px);
  transition: filter 0.2s ease-in;
}

.product-hero__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  background: linear-gradient(to top, #fff 0%, rgb(255 255 255 / 60%) 50%, transparent 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.product-hero__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  text-shadow: 1px 2px 2px rgb(255 255 255 / 90%);
}

[data-theme='dark'] .product-hero__name {
  text-shadow: 1px 2px 2px rgb(0 11 98);
}

.product-hero__price {
  position: absolute;
  top: 2rem;
  right: var(--space-md);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  width: 4.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / 20%));
  z-index: 2;
  transition: transform 0.3s ease;
}

.product-hero__price-bg {
  position: absolute;
  inset: 0;
  color: var(--color-primary);
}

.product-hero__price-bg svg {
  width: 100%;
  height: 100%;
}

.product-hero__price-text {
  position: relative;
  z-index: 1;
}

.product-hero__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-sm);
  flex-wrap: wrap;
}

.product-hero__dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.product-hero__dot--active {
  background: var(--color-primary);
  transform: scale(1.3);
}
