/* Electro HUB — PDP interactive scene banners (RoboUP-style) */
.eh-pdp-scenes {
  margin: 0;
  padding: 2.75rem 0 2.75rem;
  background: #0a0a0a;
  color: #fff;
}
.eh-pdp-scene-active-hint {
  display: none;
}

.eh-pdp-scene {
  margin: 0 0 3.25rem;
}

.eh-pdp-scene:last-child {
  margin-bottom: 0;
}

.eh-pdp-scene-head.container {
  width: min(100% - 2.5rem, var(--eh-max, 1200px));
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
  text-align: center;
}
.eh-pdp-scene-head .eh-pdp-scene-pills {
  justify-content: center;
}
.eh-pdp-scene-head .eh-pdp-scene-title,
.eh-pdp-scene-title {
  margin: 0 0 0.85rem;
  padding: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
  text-align: center;
}
.eh-pdp-scene-head .eh-pdp-scene-pills {
  padding: 0 0 0.85rem;
  margin: 0;
  max-width: none;
}
.eh-pdp-scene-title {
  margin: 0 0 0.85rem;
  padding-inline: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
}

.eh-pdp-scene-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: #0a0a0a;
}

.eh-pdp-scene-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.55rem;
  padding: 0;
  max-width: none;
  margin: 0;
  position: relative;
  z-index: 3;
  box-sizing: border-box;
}

.eh-pdp-scene-pill {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(10, 10, 10, 0.55);
  color: #fff;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 550;
  line-height: 1.2;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.eh-pdp-scene-pill:hover {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(20, 20, 20, 0.7);
}

.eh-pdp-scene-pill.is-active,
.eh-pdp-scene-pill[aria-selected="true"] {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

.eh-pdp-scene-pill:focus-visible {
  outline: 2px solid #C41E3A;
  outline-offset: 2px;
}

.eh-pdp-scene-stage {
  position: relative;
  min-height: max(560px, 70vh);
  background: #0a0a0a;
}

.eh-pdp-scene-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
}

.eh-pdp-scene-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  position: relative;
}

.eh-pdp-scene-slide[hidden] {
  display: block !important; /* keep for absolute layering; visibility handled above */
}

.eh-pdp-scene-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.eh-pdp-scene-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: clamp(1.25rem, 4vw, 3rem);
  padding-left: 1.25rem;
  max-width: min(34rem, 92vw);
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.55) 42%,
    rgba(0, 0, 0, 0.12) 72%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  box-sizing: border-box;
}

/* Desktop: text mid-frame, away from pills, not glued to left edge */
@media (min-width: 768px) {
  .eh-pdp-scene-copy {
    justify-content: center;
    align-items: center;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    padding: 4.5rem 10% 3rem;
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.28) 48%,
      rgba(0, 0, 0, 0.06) 72%,
      rgba(0, 0, 0, 0) 100%
    );
  }
  .eh-pdp-scene-headline,
  .eh-pdp-scene-text {
    max-width: 30rem;
    width: 100%;
    margin-left: clamp(0px, 8vw, 6rem);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
  }
}

.eh-pdp-scene-headline {
  margin: 0 0 0.55rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.eh-pdp-scene-text {
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

@media (max-width: 767px) {
  .eh-pdp-scenes {
    padding-bottom: 1.75rem;
  }

  .eh-pdp-scene {
    margin-bottom: 2rem;
  }

  .eh-pdp-scene-title {
    padding: 0 0.35rem;
    margin-bottom: 0.75rem;
  }

  .eh-pdp-scene .container {
    width: min(100% - 2rem, 1200px);
  }

  .eh-pdp-scene-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.55) rgba(255, 255, 255, 0.12);
    padding: 0.15rem 0 0;
    gap: 0.45rem;
    margin-bottom: 0;
  }

  .eh-pdp-scene-pills::-webkit-scrollbar {
    height: 3px;
  }

  .eh-pdp-scene-pills::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    margin: 0 0.85rem;
  }

  .eh-pdp-scene-pills::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 999px;
  }

  /* spacer between pill row and scrollbar strip */
  .eh-pdp-scene-pills {
    padding-bottom: 0.85rem;
    padding-left: 0;
    padding-right: 0;
  }

  .eh-pdp-scene-pill {
    flex: 0 0 auto;
    font-size: 0.78rem;
    padding: 0.4rem 0.75rem;
  }

  .eh-pdp-scene-stage {
    min-height: 0;
  }

  .eh-pdp-scene-slide.is-active {
    display: flex;
    flex-direction: column;
  }

  .eh-pdp-scene-img {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 52vw;
    max-height: 62vh;
    aspect-ratio: 16 / 10;
  }

  .eh-pdp-scene-copy {
    position: relative;
    inset: auto;
    max-width: none;
    padding: 1.1rem 1rem 1.25rem;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.2) 0%, #0a0a0a 28%);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .eh-pdp-scene-stage {
    min-height: max(480px, 58vh);
  }

  .eh-pdp-scene-copy {
    max-width: 28rem;
  }
}


/* —— Mobile: thin red card, white copy, centered title —— */
@media (max-width: 767px) {
  .eh-pdp-scenes {
    padding: 2.25rem 0.85rem 2rem;
  }

  .eh-pdp-scene {
    margin: 0 0 1.85rem;
    border: 1px solid rgba(196, 30, 58, 0.85);
    border-radius: 16px;
    overflow: hidden;
    background: #0b0b0b;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  }

  .eh-pdp-scene:last-child {
    margin-bottom: 0.25rem;
  }

  .eh-pdp-scene-head.container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 1rem 1rem 0.7rem !important;
    box-sizing: border-box !important;
    text-align: center;
  }

  .eh-pdp-scene-head .eh-pdp-scene-title,
  .eh-pdp-scene-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff !important;
    margin: 0 0 0.85rem !important;
    text-align: center;
  }

  .eh-pdp-scene-head .eh-pdp-scene-pills {
    padding: 0 0.85rem 0.85rem 0.85rem !important;
    gap: 0.4rem;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    scroll-padding-inline: 0.85rem;
  }

  .eh-pdp-scene-pill {
    font-size: 0.76rem;
    padding: 0.4rem 0.72rem;
  }

  .eh-pdp-scene-pill.is-active,
  .eh-pdp-scene-pill[aria-selected="true"] {
    background: #fff;
    color: #0a0a0a;
    border-color: #fff;
    box-shadow: none;
  }

  .eh-pdp-scene-frame {
    background: #0a0a0a;
  }

  .eh-pdp-scene-copy {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    justify-content: flex-start !important;
    padding: 0.95rem 1rem 1.15rem !important;
    background: #0c0c0c !important;
    border-top: 1px solid rgba(196, 30, 58, 0.55);
    box-shadow: none;
  }

  /* Hide chip echo label — keep white title + white body only */
  .eh-pdp-scene-active-hint {
    display: none !important;
  }

  .eh-pdp-scene-headline {
    color: #fff !important;
    font-weight: 700;
  }

  .eh-pdp-scene-text {
    font-size: 0.92rem;
    line-height: 1.5;
    color: #fff !important;
    font-weight: 400;
  }
}
