/* ============================================
   SSN ELITE — Product Detail Page Styles
   Shared across all four product detail pages
   ============================================ */

/* ── Product Hero ── */
.product-hero {
  padding: calc(var(--nav-height) + var(--space-12)) 0 var(--space-16);
  background: var(--surface-off-white);
  position: relative;
  overflow: hidden;
}

.product-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: radial-gradient(circle, var(--border-subtle) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.product-hero-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: relative;
  z-index: 2;
}

.product-hero-series {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--ssn-blue);
}

.product-hero-name {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.02;
}

.product-hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.product-spec-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  background: var(--surface-white);
}

.product-hero-price {
  font-family: var(--font-mono);
  font-size: var(--text-h2);
  font-weight: 900;
  color: var(--text-primary);
  display: inline-block;
  animation: priceBreathe 3s ease-in-out infinite;
  transform-origin: left center;
}

@keyframes priceBreathe {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 0 10px rgba(10, 47, 255, 0.1);
  }
  50% {
    transform: scale(1.04);
    text-shadow: 0 0 20px rgba(10, 47, 255, 0.5);
    color: var(--ssn-blue);
  }
}

.product-hero-price-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.product-hero-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.product-hero-image-wrap img {
  max-height: 520px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.10));
}

.product-hero-glow {
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
}

.product-hero-glow.blue {
  background: radial-gradient(ellipse, var(--ssn-blue-glow-strong) 0%, transparent 70%);
}

.product-hero-glow.purple {
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.20) 0%, transparent 70%);
}

.product-hero-glow.green {
  background: radial-gradient(ellipse, rgba(5, 150, 105, 0.20) 0%, transparent 70%);
}

.product-hero-glow.amber {
  background: radial-gradient(ellipse, rgba(217, 119, 6, 0.20) 0%, transparent 70%);
}


/* ── Product Content Sections ── */
.product-section {
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.product-section:last-child {
  border-bottom: none;
}

.product-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.product-section-number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  color: var(--text-quaternary);
  flex-shrink: 0;
  min-width: 32px;
}

.product-section-line {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
  max-width: 80px;
}

.product-section-title {
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
}


/* ── Big Stat Display ── */
.big-stat {
  text-align: center;
  padding: var(--space-16) 0;
}

.big-stat-value {
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: var(--weight-bold);
  color: var(--ssn-blue);
  line-height: 0.9;
  letter-spacing: var(--tracking-tight);
}

.big-stat-unit {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: var(--weight-bold);
  color: var(--ssn-blue);
  opacity: 0.5;
}

.big-stat-label {
  font-size: var(--text-h4);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  margin-top: var(--space-4);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.big-stat-sublabel {
  font-size: var(--text-small);
  color: var(--text-tertiary);
  margin-top: var(--space-2);
}


/* ── Ingredient Grid ── */
.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
}

.ingredient-item {
  padding: var(--space-4) var(--space-5);
  background: var(--surface-off-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  transition: border-color var(--duration-normal) var(--ease-out),
              background var(--duration-normal) var(--ease-out);
}

.ingredient-item:hover {
  border-color: var(--ssn-blue);
  background: var(--ssn-blue-surface);
}

.ingredient-item .ingredient-category {
  font-size: var(--text-label);
  color: var(--text-tertiary);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}


/* ── Flavour Display & Active Box ── */
.flavour-display {
  text-align: center;
  padding: var(--space-8);
}

.flavour-active-box {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-6);
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.flavour-active-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ssn-blue), #3b82f6, var(--ssn-blue));
}

.flavour-active-name {
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin-top: 0;
  transition: opacity var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-out);
}


/* ── Usage Card ── */
.usage-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.usage-step {
  padding: var(--space-8);
  background: var(--surface-off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.usage-step-number {
  font-family: var(--font-mono);
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  color: var(--ssn-blue);
  opacity: 0.3;
  margin-bottom: var(--space-4);
}

.usage-step-title {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-3);
}

.usage-step-text {
  font-size: var(--text-small);
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ── Who Is It For ── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.audience-item {
  padding: var(--space-6);
  text-align: center;
  background: var(--surface-off-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.audience-icon {
  font-size: var(--text-h2);
  margin-bottom: var(--space-3);
}

.audience-label {
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
}

/* ── Storage / Warning ── */
.warning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.warning-card {
  padding: var(--space-6);
  background: var(--surface-off-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.warning-card-title {
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.warning-card-text {
  font-size: var(--text-small);
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ── Label Distinction ── */
.label-source {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}

.label-source.from-packaging {
  background: rgba(5, 150, 105, 0.08);
  color: #059669;
}

.label-source.editorial {
  background: rgba(10, 47, 255, 0.06);
  color: var(--ssn-blue);
}


/* ── Responsive ── */
@media (max-width: 1024px) {
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .product-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .product-hero-info {
    align-items: center;
  }

  .product-hero-specs {
    justify-content: center;
  }

  .product-hero-image-wrap img {
    max-height: 380px;
  }

  .usage-steps {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    grid-template-columns: 1fr 1fr;
  }

  .warning-grid {
    grid-template-columns: 1fr;
  }
}
