/* Product detail pages - shared layout */
.product-header {
  padding: 100px 0 60px;
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(0, 212, 255, 0.05) 100%);
}

.product-header .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.product-main-image {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-main-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.15), transparent);
}

.product-main-image img {
  width: 100%;
  border-radius: 12px;
  position: relative;
  z-index: 10;
}

.product-main-image picture {
  display: block;
  width: 100%;
  position: relative;
  z-index: 10;
}

.product-info h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.product-tagline {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.product-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.spec-item {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.spec-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.spec-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 5px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

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

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.scenario-item {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.scenario-image {
  height: 200px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.scenario-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scenario-content {
  padding: 25px;
}

.scenario-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.scenario-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.tech-specs {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid var(--border-color);
}

.tech-specs table {
  width: 100%;
  border-collapse: collapse;
}

.tech-specs th,
.tech-specs td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.tech-specs th {
  color: var(--text-secondary);
  font-weight: 500;
  width: 30%;
}

.tech-specs td {
  color: var(--text-primary);
}

.tech-specs tr:last-child th,
.tech-specs tr:last-child td {
  border-bottom: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  margin-top: 40px;
}

.back-link:hover {
  color: var(--primary-dark);
}

/* Edge box - platform gallery */
.product-edge-box .product-main-image img {
  max-width: 400px;
}

.product-edge-box .product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.product-edge-box .gallery-item {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.product-edge-box .gallery-item.gallery-zoomable {
  cursor: zoom-in;
}

.product-edge-box .gallery-item.gallery-zoomable:hover {
  transform: scale(1.02);
  border-color: var(--primary-color);
}

.product-edge-box .gallery-zoom-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(0, 212, 255, 0.05);
}

.product-edge-box .gallery-zoom-hint i {
  color: var(--primary-color);
}

.product-edge-box .gallery-item picture {
  display: block;
  width: 100%;
}

.product-edge-box .gallery-item img {
  width: 100%;
  height: auto;
  min-height: 200px;
  object-fit: contain;
  background: #0d1117;
}

.product-edge-box .gallery-caption {
  text-align: center;
  padding: 12px 16px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

/* Safety watch */
.product-safety-watch .product-main-image img {
  max-width: 350px;
}

.product-safety-watch .product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.product-safety-watch .gallery-item {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
  background: #0d1117;
}

.product-safety-watch .gallery-item:hover {
  transform: scale(1.05);
}

.product-safety-watch .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-safety-watch .product-line-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.product-safety-watch .product-line-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-safety-watch .product-line-card-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d1117;
  border-bottom: 1px solid var(--border-color);
  padding: 16px;
}

.product-safety-watch .product-line-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-safety-watch .product-line-card-body {
  padding: 24px;
}

.product-safety-watch .product-line-card.featured {
  border-color: var(--border-color);
  box-shadow: none;
}

.product-safety-watch .product-line-card:hover,
.product-safety-watch .product-line-card.featured:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.12);
  transform: translateY(-4px);
}

.product-safety-watch .product-badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0, 212, 255, 0.12);
  color: var(--primary-color);
  margin-bottom: 12px;
}

.product-safety-watch .product-badge.danger {
  background: rgba(255, 136, 0, 0.15);
  color: #ff9800;
}

.product-safety-watch .product-badge.medical {
  background: rgba(0, 255, 136, 0.12);
  color: var(--accent-color);
}

.product-safety-watch .product-line-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.product-safety-watch .product-line-card .model-tag {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.product-safety-watch .product-line-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-safety-watch .product-line-card li {
  color: var(--text-secondary);
  font-size: 0.88rem;
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
}

.product-safety-watch .product-line-card li::before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

.product-safety-watch .compare-table-wrap {
  overflow-x: auto;
}

.product-safety-watch .compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
}

.product-safety-watch .compare-table th,
.product-safety-watch .compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.product-safety-watch .compare-table th {
  background: rgba(0, 212, 255, 0.08);
  color: var(--primary-color);
  font-weight: 600;
}

.product-safety-watch .compare-table td {
  color: var(--text-secondary);
}

.product-safety-watch .cta-banner {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}

.product-safety-watch .cta-banner h3 {
  margin-bottom: 12px;
}

.product-safety-watch .cta-banner p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.product-safety-watch .cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Inspection vehicle */
.product-inspection-vehicle .product-main-image img {
  max-width: 100%;
  object-fit: contain;
}

.product-inspection-vehicle .product-showcase-single {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.product-inspection-vehicle .product-showcase-single picture {
  display: block;
  width: 100%;
}

.product-inspection-vehicle .product-showcase-single img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.product-inspection-vehicle .gallery-caption {
  text-align: center;
  padding: 12px 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.product-inspection-vehicle .scenario-title {
  color: inherit;
}

.product-inspection-vehicle .tech-specs {
  padding: 40px;
}

.product-inspection-vehicle .tech-specs th {
  width: 35%;
}

.product-inspection-vehicle .back-link {
  gap: unset;
  margin-top: unset;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.product-inspection-vehicle .back-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.product-inspection-vehicle .back-link i {
  margin-right: 8px;
}

@media (max-width: 768px) {
  .product-edge-box .product-header .container,
  .product-safety-watch .product-header .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-edge-box .product-info h1,
  .product-safety-watch .product-info h1 {
    font-size: 1.8rem;
  }

  .product-edge-box .section-title,
  .product-safety-watch .section-title {
    font-size: 1.5rem;
  }

  .product-edge-box .tech-specs th,
  .product-safety-watch .tech-specs th {
    width: 40%;
  }

  .product-inspection-vehicle .product-header .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .product-inspection-vehicle .product-info h1 {
    font-size: 2rem;
  }

  .product-inspection-vehicle .tech-specs {
    padding: 20px;
  }

  .product-inspection-vehicle .tech-specs th,
  .product-inspection-vehicle .tech-specs td {
    padding: 10px;
    font-size: 0.9rem;
  }
}
