/* ========================================
   PASHA — Product Page (вариант 2 — cinematic)
   Подключается на /products/<code>/ через header.php
   ======================================== */

.product2-page {
  background: var(--bg-primary);
  color: var(--text-primary);
  padding-top: 120px;
  overflow: hidden;
}

.product2-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Хлебные крошки --- */
.product2-breadcrumbs {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 16px;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.product2-breadcrumbs a { color: var(--text-muted); transition: color var(--transition-fast); }
.product2-breadcrumbs a:hover { color: #c9a96e; opacity: 1; }
.product2-breadcrumbs .sep { margin: 0 10px; opacity: 0.5; }

/* ===== HERO ===== */
.product2-hero {
  position: relative;
  padding: 60px 40px 100px;
  text-align: center;
  overflow: hidden;
}
.product2-hero-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(201, 169, 110, 0.10), transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(201, 169, 110, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.product2-hero-brand-bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.product2-hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text-primary);
}
.product2-hero-brand img {
  height: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.product2-hero-brand span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.product2-hero-tagline {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.product2-hero-image-wrap {
  position: relative;
  z-index: 1;
  width: min(720px, 65vw);
  margin: 36px auto 32px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product2-hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 60%, rgba(201, 169, 110, 0.16), transparent 70%);
  filter: blur(20px);
}
.product2-hero-image {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product2-hero:hover .product2-hero-image {
  transform: scale(1.04);
}

.product2-hero-title-block {
  position: relative;
  z-index: 2;
}
.product2-title {
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 300;
  letter-spacing: 2px;
  line-height: 1.05;
  margin-bottom: 24px;
}
.product2-price-bar {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-weight: 300;
}
.product2-price {
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: 1px;
  background: linear-gradient(135deg, #c9a96e 0%, #f5d89a 50%, #c9a96e 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 4s ease infinite;
}
.product2-price-sep {
  width: 24px;
  height: 1px;
  background: rgba(201, 169, 110, 0.5);
}
.product2-price-label {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ===== Description columns ===== */
.product2-description {
  background: var(--bg-primary);
  padding: 80px 0 60px;
  position: relative;
}
.product2-description::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(60%, 1000px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.4), transparent);
}
.product2-desc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 56px;
}
.product2-h3 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 14px;
}
.product2-h3::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 32px;
  height: 1px;
  background: rgba(201, 169, 110, 0.5);
}
.product2-p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-secondary);
}

.product2-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.btn2-pasha {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 36px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: 1px solid #c9a96e;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease, border-color 0.4s ease;
}
.btn2-pasha::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #c9a96e, #f5d89a, #c9a96e);
  background-size: 200% 200%;
  transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}
.btn2-pasha:hover { color: #000; opacity: 1; border-color: #f5d89a; }
.btn2-pasha:hover::before { transform: translateY(0); }
.btn2-pasha--ghost {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-secondary);
}
.btn2-pasha--ghost:hover { color: #fff; border-color: #fff; }
.btn2-pasha--ghost::before { display: none; }
.product2-availability {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.product2-availability::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #c9a96e;
  box-shadow: 0 0 12px rgba(201, 169, 110, 0.6);
  animation: pulseGold 2.4s ease-in-out infinite;
}
@keyframes pulseGold {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

/* --- Section title (общий) --- */
.product2-section-title {
  text-align: center;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 300;
  letter-spacing: 1.5px;
  margin-bottom: 48px;
}

/* ===== Gallery strip ===== */
.product2-gallery-section {
  padding: 80px 0;
  background: var(--bg-primary);
}
.product2-gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.product2-gallery-item {
  position: relative;
  aspect-ratio: 1 / 1.1;
  background: var(--bg-card);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color 0.5s ease;
}
.product2-gallery-item:hover { border-color: rgba(201, 169, 110, 0.5); }
.product2-gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 14%;
  opacity: 0.78;
  transition: opacity 0.5s ease, transform 0.6s ease;
}
.product2-gallery-item:hover img { opacity: 1; transform: scale(1.05); }

/* ===== Specs grid 2x4 ===== */
.product2-specs-section {
  background: var(--bg-secondary);
  padding: 90px 0;
}
.product2-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.product2-spec-cell {
  background: var(--bg-secondary);
  padding: 28px 24px;
  min-height: 120px;
}
.product2-spec-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.product2-spec-value {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-primary);
}

/* ===== Features ===== */
.product2-features {
  background: var(--bg-primary);
  padding: 90px 0;
}
.product2-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.product2-feature {
  background: var(--bg-primary);
  padding: 48px 28px;
  text-align: center;
  transition: background 0.5s ease;
}
.product2-feature:hover { background: rgba(201, 169, 110, 0.04); }
.product2-feature-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(201, 169, 110, 0.4);
  border-radius: 50%;
  color: #c9a96e;
  background: rgba(201, 169, 110, 0.04);
}
.product2-feature h4 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.product2-feature p {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ===== Story (brand block) ===== */
.product2-story {
  background: var(--bg-primary);
  padding: 80px 0 100px;
}
.product2-story-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.product2-story-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 20px;
}
.product2-story-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin-bottom: 24px;
}
.product2-story-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.product2-story-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #c9a96e;
  border-bottom: 1px solid rgba(201, 169, 110, 0.4);
  padding-bottom: 4px;
  transition: border-color var(--transition-base), color var(--transition-base);
}
.product2-story-link:hover { color: #f5d89a; border-color: #f5d89a; opacity: 1; }

/* ===== Related ===== */
.product2-related {
  background: var(--bg-primary);
  padding: 0 0 100px;
}
.product2-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.product2-related-card {
  display: block;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color 0.5s ease, transform 0.5s ease;
}
.product2-related-card:hover {
  border-color: rgba(201, 169, 110, 0.5);
  transform: translateY(-4px);
  opacity: 1;
}
.product2-related-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  overflow: hidden;
}
.product2-related-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 18%;
  transition: transform 0.6s ease;
}
.product2-related-card:hover .product2-related-img-wrap img {
  transform: scale(1.06);
}
.product2-related-meta {
  padding: 18px 22px 22px;
  background: var(--bg-card);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.product2-related-brand {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 6px;
}
.product2-related-name {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

/* ========== Адаптивность ========== */

/* Tablet */
@media (max-width: 1024px) {
  .product2-page { padding-top: 100px; }
  .product2-container { padding: 0 24px; }
  .product2-breadcrumbs { padding: 0 24px 14px; }
  .product2-hero { padding: 40px 24px 70px; }
  .product2-hero-image-wrap { width: min(560px, 80vw); }
  .product2-desc-grid { grid-template-columns: 1fr; gap: 40px; }
  .product2-actions { flex-direction: column; align-items: stretch; }
  .product2-availability { margin-left: 0; justify-content: center; }
  .btn2-pasha { width: 100%; }
  .product2-gallery-strip,
  .product2-specs-grid,
  .product2-features-grid,
  .product2-related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 640px) {
  .product2-page { padding-top: 84px; }
  .product2-breadcrumbs {
    padding: 0 16px 12px;
    font-size: 10px;
    letter-spacing: 1.5px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .product2-breadcrumbs::-webkit-scrollbar { display: none; }
  .product2-breadcrumbs .sep { margin: 0 8px; }

  /* HERO */
  .product2-hero { padding: 20px 16px 40px; }
  .product2-container { padding: 0 16px; }
  .product2-hero-image-wrap {
    width: 100%;
    margin: 16px auto 20px;
    aspect-ratio: 1 / 1;
  }
  .product2-hero-image { filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6)); }
  .product2-hero-brand img { height: 18px; }
  .product2-hero-brand span { font-size: 10px; letter-spacing: 3px; }
  .product2-hero-tagline { font-size: 11px; letter-spacing: 1.5px; }
  .product2-title {
    font-size: clamp(28px, 8vw, 40px);
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 18px;
    padding: 0 4px;
  }
  .product2-price { font-size: 22px; }
  .product2-price-label { font-size: 9px; letter-spacing: 2px; }

  /* Description */
  .product2-description { padding: 56px 0 40px; }
  .product2-desc-grid { gap: 32px; margin-bottom: 36px; }
  .product2-h3 { font-size: 12px; letter-spacing: 2px; margin-bottom: 14px; padding-bottom: 10px; }
  .product2-p { font-size: 13px; line-height: 1.75; }
  .product2-actions {
    padding-top: 28px;
    gap: 12px;
  }
  .btn2-pasha { padding: 16px 24px; font-size: 11px; letter-spacing: 2px; }
  .product2-availability { font-size: 11px; }

  /* Section title */
  .product2-section-title {
    font-size: 22px;
    letter-spacing: 0.5px;
    margin-bottom: 32px;
    line-height: 1.2;
  }

  /* Gallery */
  .product2-gallery-section,
  .product2-specs-section,
  .product2-features,
  .product2-story { padding: 56px 0; }
  .product2-gallery-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  /* Specs: 1 column on phone */
  .product2-specs-grid { grid-template-columns: 1fr; }
  .product2-spec-cell {
    min-height: 0;
    padding: 18px 18px;
  }
  .product2-spec-label { font-size: 9px; letter-spacing: 1.5px; margin-bottom: 10px; }
  .product2-spec-value { font-size: 13px; }

  /* Features */
  .product2-features-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .product2-feature { padding: 28px 16px; }
  .product2-feature-icon { width: 48px; height: 48px; margin-bottom: 14px; }
  .product2-feature h4 { font-size: 11px; letter-spacing: 1.5px; }
  .product2-feature p { font-size: 11px; line-height: 1.55; }

  /* Story */
  .product2-story-title { font-size: 22px; letter-spacing: 0; line-height: 1.25; }
  .product2-story-text { font-size: 13px; line-height: 1.7; }
  .product2-story-link { font-size: 11px; letter-spacing: 2px; }
  .product2-story-eyebrow { font-size: 10px; letter-spacing: 3px; }

  /* Related */
  .product2-related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .product2-related-meta { padding: 14px 14px 16px; border-top: 1px solid rgba(255,255,255,0.05); }
  .product2-related-brand { font-size: 9px; letter-spacing: 1.5px; }
  .product2-related-name { font-size: 12px; }
}

/* Small phones */
@media (max-width: 380px) {
  .product2-title { font-size: 24px; }
  .product2-related-grid { grid-template-columns: 1fr; }
}
