/**
 * Magasin-style hero — light stage, large product, thin title overlay, edge arrows
 */

.mg-hero {
  --mg-bg: #f3f3f3;
  --mg-ink: #1a1a1a;
  --mg-muted: #8a8a8a;
  --mg-line: #e6e6e6;
  background: var(--mg-bg);
  color: var(--mg-ink);
  position: relative;
  border-bottom: 1px solid var(--mg-line);
}

.mg-hero__viewport {
  position: relative;
  min-height: min(72vh, 720px);
  height: clamp(420px, 68vh, 760px);
  overflow: hidden;
  user-select: none;
}

.mg-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  pointer-events: none;
}

.mg-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.mg-hero__media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: inherit;
}

.mg-hero__media img,
.mg-hero__media video {
  width: min(70%, 860px);
  max-height: 78%;
  height: auto;
  object-fit: contain;
  display: block;
  transform: scale(0.97);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.12));
  background: transparent;
}

.mg-hero__slide.is-active .mg-hero__media img,
.mg-hero__slide.is-active .mg-hero__media video {
  transform: scale(1);
}

.mg-hero__title {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  z-index: 2;
  margin: 0;
  width: min(92vw, 1100px);
  text-align: center;
  font-family: "Manrope", var(--ss-body), sans-serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 5.2vw, 3.6rem);
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: rgba(90, 90, 90, 0.72);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mg-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 56px;
  height: 56px;
  border: 0;
  background: transparent;
  color: #222;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.mg-hero__arrow:hover {
  opacity: 1;
}

.mg-hero__arrow svg {
  width: 42px;
  height: 42px;
}

.mg-hero__arrow--prev {
  left: clamp(8px, 2vw, 28px);
}

.mg-hero__arrow--next {
  right: clamp(8px, 2vw, 28px);
}

.mg-hero__bar {
  background: #fff;
  border-top: 1px solid var(--mg-line);
}

.mg-hero__bar-inner {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 14px clamp(16px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mg-hero__dots {
  display: flex;
  gap: 8px;
}

.mg-hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid #bbb;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.mg-hero__dot.is-active {
  background: #222;
  border-color: #222;
}

.mg-hero__cta {
  font-family: "Manrope", var(--ss-body), sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #111;
  border-bottom: 1px solid #111;
  padding-bottom: 2px;
}

.mg-hero__cta:hover {
  color: var(--color-accent, #e4002b);
  border-bottom-color: var(--color-accent, #e4002b);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.search-desktop-form[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .mg-hero__viewport {
    height: clamp(360px, 62vh, 560px);
  }

  .mg-hero__media img,
  .mg-hero__media video {
    width: 88%;
    height: 70%;
  }

  .mg-hero__title {
    white-space: normal;
    font-size: clamp(1.35rem, 7vw, 2rem);
    padding: 0 48px;
  }

  .mg-hero__arrow {
    width: 40px;
    height: 40px;
  }

  .mg-hero__arrow svg {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mg-hero__slide,
  .mg-hero__media img,
  .mg-hero__media video {
    transition: none !important;
  }
}

/* Keep old class hook harmless if referenced */
.ss-story {
  display: none;
}
