/* ============================================
   Product Detail Page — Premium Styles
   ============================================ */

/* --- Back Link --- */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-secondary); font-size: 0.9rem;
  margin-bottom: 32px; transition: color var(--transition);
}
.back-link:hover { color: var(--gold); }

/* --- Detail Hero --- */
.detail-hero {
  padding: 48px 0 64px;
  border-bottom: 1px solid var(--border);
}

.detail-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}

/* --- Hero Visual (Real Product Photo) --- */
.detail-hero-visual {
  display: flex; align-items: center; justify-content: center;
  min-height: 400px; position: relative;
}

.detail-spool-img {
  width: 280px; height: 280px;
  object-fit: cover;
  filter: drop-shadow(0 0 40px rgba(212,168,83,0.2));
  animation: spoolFloat 4s ease-in-out infinite;
  position: relative; z-index: 1;
}

@keyframes spoolFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Radial shine effect behind spool */
.detail-hero-visual::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,83,0.08) 0%, transparent 70%);
  z-index: 0;
}

/* --- Hero Info --- */
.detail-hero-info { position: relative; }

.material-badge {
  display: inline-block;
  background: rgba(212,168,83,0.12);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.detail-hero-info h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.detail-hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 480px;
}

/* Hero Meta */
.detail-hero-meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 20px;
}

.meta-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
}

.meta-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.meta-value.price {
  color: var(--gold-light);
  font-size: 1.15rem;
}

/* Color Swatches */
.detail-colors {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
}

.detail-colors .colors-label {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.color-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  transition: border-color var(--transition);
  cursor: default;
}

.color-swatch:hover {
  border-color: var(--gold);
}

/* Hero Actions */
.detail-hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* --- Specs Grid --- */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition);
}

.spec-card:hover {
  border-color: rgba(212,168,83,0.3);
  transform: translateY(-2px);
}

.spec-card .spec-icon {
  width: 40px; height: 40px;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
}

.spec-card .spec-icon svg {
  width: 28px; height: 28px;
  stroke: var(--gold);
}

.spec-card .spec-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.spec-card .spec-label {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Spec progress bar variant */
.spec-card .spec-bar-wrap {
  height: 4px; background: var(--border);
  border-radius: 2px; margin-top: 8px;
  overflow: hidden;
}

.spec-card .spec-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.feature-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.feature-item:hover {
  border-color: rgba(212,168,83,0.2);
}

.feature-check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  margin-top: 2px;
}

.feature-check svg {
  width: 24px; height: 24px;
}

.feature-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Pricing Table --- */
.pricing-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.pricing-table thead {
  background: rgba(212,168,83,0.06);
}

.pricing-table th {
  text-align: left;
  padding: 16px 20px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--border);
}

.pricing-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.pricing-table tbody tr:hover td {
  background: rgba(212,168,83,0.03);
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
  color: var(--gold-light);
  font-weight: 700;
}

.pricing-table .price-col {
  color: var(--gold-light);
  font-weight: 600;
}

.pricing-table tbody tr:last-child .price-col {
  font-size: 1.05rem;
}

/* --- Detail Section Shared --- */
.detail-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.detail-section.dark-bg {
  background: linear-gradient(180deg, rgba(212,168,83,0.03), rgba(10,10,10,0));
}

.detail-section .section-title {
  margin-bottom: 40px;
  font-size: 1.5rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .detail-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .detail-hero-visual {
    min-height: 300px;
    order: -1;
  }

  .detail-spool-img {
    width: 200px; height: 200px;
  }

  .detail-hero-visual::before {
    width: 240px; height: 240px;
  }

  .detail-hero-meta {
    grid-template-columns: 1fr 1fr;
  }

  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

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

  .detail-section {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .specs-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero-meta {
    grid-template-columns: 1fr;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

