/* ============================================
   Product Detail Page Styles
   Chaoxiang New Energy
   ============================================ */

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 16px 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition);
}
.breadcrumb a:hover {
  color: var(--color-primary);
}
.breadcrumb span {
  color: var(--color-text-light);
  font-size: 14px;
}
.breadcrumb .current {
  color: var(--color-primary);
  font-weight: 600;
}

/* --- Product Hero --- */
.product-hero {
  padding: 60px 0;
  background: var(--color-bg);
}
.product-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.product-hero-image {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}
.product-hero-image img {
  max-width: 100%;
  max-height: 450px;
  object-fit: contain;
}
.product-hero-info h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: 12px;
  line-height: 1.3;
}
.product-hero-info .product-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-primary-bg);
  color: var(--color-primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.product-hero-info .product-subtitle {
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.product-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- Specs Table --- */
.product-specs {
  padding: 60px 0;
  background: var(--color-bg-alt);
}
.product-specs h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 32px;
}
.specs-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  font-size: 14px;
}
.specs-table thead th {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.specs-table tbody td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}
.specs-table tbody tr:nth-child(even) {
  background: var(--color-bg-alt);
}
.specs-table tbody tr:hover {
  background: #EEF2F7;
}
.specs-table tbody td:first-child {
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  min-width: 180px;
}

/* --- Features Section --- */
.product-features {
  padding: 60px 0;
  background: var(--color-bg);
}
.product-features h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 40px;
  text-align: center;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-card .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--color-white);
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Model Variants --- */
.product-variants {
  padding: 60px 0;
  background: var(--color-white);
}
.product-variants h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 12px;
  text-align: center;
}
.product-variants .section-desc {
  font-size: 16px;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 36px;
}
.variants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.variant-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}
.variant-card:hover {
  border-color: var(--color-primary);
}
.variant-card .variant-model {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.variant-card .variant-power {
  font-size: 14px;
  color: var(--color-text-muted);
}
.variant-card .variant-current {
  font-size: 13px;
  color: var(--color-accent);
  font-weight: 600;
  margin-top: 4px;
}

/* --- Compatible Plugs --- */
.plug-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}
.plug-badge {
  padding: 8px 18px;
  background: var(--color-white);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

/* --- Bottom CTA --- */
.product-cta {
  padding: 60px 0;
  background: linear-gradient(135deg, #1a3a5c 0%, #2E4F88 100%);
  text-align: center;
  color: var(--color-white);
}
.product-cta h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 16px;
}
.product-cta p {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .product-hero .container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .product-hero-image {
    min-height: 280px;
    padding: 20px;
  }
  .product-hero-info h1 {
    font-size: 26px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .variants-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-hero-actions {
    flex-direction: column;
  }
}
