/* Shared product hero studio — stage + feature grid */

.pd-hero--curtains .pd-hero__media,
.pd-hero--doorbell .pd-hero__media,
.pd-hero--locks .pd-hero__media {
  max-width: min(100%, 680px);
}

.ph-studio {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.25rem);
  width: 100%;
}

.ph-studio__stage {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(110, 181, 255, 0.18);
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.42),
    0 0 40px rgba(59, 139, 255, 0.08);
  background: #06080e;
}

.ph-studio__stage--product {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  background:
    radial-gradient(circle at 50% 20%, rgba(59, 139, 255, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(10, 14, 22, 0.96), rgba(4, 6, 10, 0.98));
}

.ph-studio__stage--product img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.35));
}

.ph-studio__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ph-studio__badge,
.ph-studio__live {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(6, 8, 14, 0.72);
  border: 1px solid rgba(110, 181, 255, 0.28);
  backdrop-filter: blur(8px);
}

.ph-studio__live {
  left: auto;
  right: 0.85rem;
  color: #fff;
  background: rgba(220, 50, 50, 0.82);
  border-color: rgba(255, 120, 120, 0.35);
}

.ph-studio__live::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.ph-studio__toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ph-studio__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 0.95rem);
}

.ph-feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: clamp(0.8rem, 1.4vw, 0.95rem);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(6, 8, 14, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: inherit;
  width: 100%;
  transition:
    transform 0.35s var(--ease, ease),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.ph-feature:hover {
  transform: translateY(-5px);
  border-color: rgba(110, 181, 255, 0.28);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.ph-feature.is-active,
.ph-feature[aria-pressed="true"] {
  border-color: rgba(110, 181, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(110, 181, 255, 0.18),
    0 12px 28px rgba(59, 139, 255, 0.14);
  transform: translateY(-2px);
}

.ph-feature.is-active .ph-feature__icon,
.ph-feature[aria-pressed="true"] .ph-feature__icon {
  background: rgba(59, 139, 255, 0.2);
  border-color: rgba(110, 181, 255, 0.5);
  box-shadow: 0 0 16px rgba(59, 139, 255, 0.2);
}

.ph-feature__icon {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 11px;
  flex-shrink: 0;
  font-size: 1.05rem;
  color: var(--blue-bright);
  background: rgba(59, 139, 255, 0.1);
  border: 1px solid rgba(110, 181, 255, 0.24);
}

.ph-feature__copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.ph-feature__copy strong {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.2;
}

.ph-feature__copy span {
  font-size: 0.68rem;
  font-weight: 300;
  line-height: 1.35;
  color: var(--silver-dim);
}

.ph-studio__hint {
  margin: 0;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver-dim);
}

html[data-theme="light"] .ph-studio__stage {
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .ph-feature {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 255, 0.9)),
    rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .ph-feature__copy strong {
  color: #1a1a1e;
}

html[data-theme="light"] .ph-feature__icon {
  background: rgba(59, 139, 255, 0.08);
  border-color: rgba(59, 139, 255, 0.22);
}

@media (min-width: 640px) {
  .ph-studio__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ph-feature {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 0.85rem 0.65rem 0.95rem;
  }

  .ph-feature__copy {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .pd-hero--curtains .pd-hero__media,
  .pd-hero--doorbell .pd-hero__media,
  .pd-hero--locks .pd-hero__media {
    max-width: 100%;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
  }

  .ph-studio {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .ph-studio__stage {
    width: 100%;
  }

  .ph-studio--doorbell .ph-studio__stage,
  .ph-studio--locks .ph-studio__stage {
    aspect-ratio: 4 / 5;
    min-height: min(58vh, 420px);
    max-height: min(62vh, 460px);
  }

  .ph-studio--curtain .ph-studio__stage {
    aspect-ratio: 16 / 11;
    min-height: 220px;
  }

  .ph-studio__stage--product {
    padding: clamp(1rem, 4vw, 1.35rem);
  }

  .ph-studio__stage--product img {
    width: 100%;
    max-width: min(100%, 340px);
    height: auto;
    max-height: min(50vh, 380px);
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
  }

  .ph-studio__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .ph-feature {
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
    padding: 0.75rem 0.65rem;
  }

  .ph-feature__copy {
    align-items: flex-start;
  }

  .ph-feature__icon {
    width: 2.15rem;
    height: 2.15rem;
    font-size: 0.95rem;
  }
}
