﻿/* Korvanto — Product detail hero & shared product page shell */

.product-page {
  --pd-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ——— Hero ——— */
.product-hero-detail {
  position: relative;
  padding-top: clamp(160px, 14vw, 200px);
  padding-bottom: clamp(3.5rem, 7vw, 5rem);
  min-height: clamp(480px, 58vh, 560px);
  background: linear-gradient(145deg, #061a2e 0%, var(--navy) 45%, #0d2844 100%);
  overflow: hidden;
  isolation: isolate;
}

.pd-hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.pd-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  animation: pdOrbFloat 9s ease-in-out infinite;
}

.pd-hero-orb--1 {
  width: 300px;
  height: 300px;
  top: -8%;
  right: 8%;
  background: rgba(197, 154, 74, 0.2);
}

.pd-hero-orb--2 {
  width: 220px;
  height: 220px;
  bottom: 0;
  left: 4%;
  background: rgba(66, 165, 245, 0.14);
  animation-delay: -3s;
}

.pd-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  width: 100%;
  max-width: var(--site-max);
  margin-inline: auto;
}

.product-hero-detail::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 92%);
  pointer-events: none;
  z-index: 0;
}

.product-hero-copy {
  min-width: 0;
}

.product-hero-detail .breadcrumb {
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.product-hero-detail .breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}

.product-hero-detail .breadcrumb a:hover {
  text-decoration: underline;
}

.product-hero-detail .section-label {
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.product-hero-detail h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--white);
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
  line-height: 1.2;
  margin-bottom: 0;
}

.product-hero-detail .lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-top: 1.1rem;
  max-width: 52ch;
}

.product-hero-visual {
  position: relative;
  perspective: 1200px;
  min-height: clamp(280px, 32vw, 380px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-hero-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  transform-style: preserve-3d;
}

.product-hero-frame::before {
  content: "";
  position: absolute;
  inset: -12px -12px 12px 12px;
  border: 1px solid rgba(197, 154, 74, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  transform: translateZ(-20px);
  pointer-events: none;
}

.product-hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(240px, 28vw, 340px);
  object-fit: contain;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(197, 154, 74, 0.35);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(197, 154, 74, 0.08);
  transform: translate3d(0, 0, 0);
  transition: transform 0.55s var(--pd-ease), box-shadow 0.55s ease;
}

.product-hero-visual:hover .product-hero-frame img {
  transform: translate3d(0, 0, 12px) rotateY(-4deg);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(197, 154, 74, 0.15);
}

.pd-hero-badge-float {
  position: absolute;
  bottom: -0.5rem;
  left: -0.5rem;
  z-index: 4;
  padding: 0.65rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(9, 35, 61, 0.92);
  border: 1px solid rgba(197, 154, 74, 0.4);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  transform: translate3d(0, 0, 32px);
  pointer-events: none;
}

@keyframes pdOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10px, -14px) scale(1.05); }
}

/* Legacy alias */
.product-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  width: 100%;
  max-width: var(--site-max);
  margin-inline: auto;
}

.product-hero-layer {
  position: relative;
  align-self: center;
  perspective: 1100px;
}

@media (max-width: 991px) {
  .pd-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-hero-visual {
    order: -1;
    min-height: 240px;
  }

  .product-hero-detail .lead {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .product-hero-detail {
    min-height: auto;
    padding-bottom: 2.5rem;
  }
}
