/* ============ PRODUCT DETAIL PAGE ============ */

.pd-hero {
  padding: 7rem 0 1.5rem;
  background: var(--bg-darker);
}

/* Main grid: gallery + info */
.pd-main { padding: 3rem 0 4rem; }
.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

/* Gallery */
.pd-gallery { position: sticky; top: 100px; }
.pd-gallery-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  margin-bottom: 1rem;
}
.pd-gallery-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.pd-gallery-main:hover img { transform: scale(1.05); }

.pd-gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.pd-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.25s;
  background: var(--bg-card);
  padding: 0.25rem;
}
.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pd-thumb:hover { border-color: var(--border-light); }
.pd-thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(19,139,193,0.15);
}

/* Info */
.pd-category {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.pd-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem) !important;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
.pd-description {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
.pd-applications {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(19,139,193,0.06);
  border: 1px solid rgba(19,139,193,0.15);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.pd-applications svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 3px;
}

.pd-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.pd-inquiry-btn {
  flex: 1;
  min-width: 200px;
  justify-content: center;
}

/* Features grid */
.pd-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.pd-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.pd-feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.pd-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  transform: scaleX(0);
  transition: transform 0.4s;
  transform-origin: left;
}
.pd-feature-card:hover::before { transform: scaleX(1); }
.pd-feature-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(19,139,193,0.2);
  margin-bottom: 0.5rem;
  line-height: 1;
}
.pd-feature-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* Specs */
.pd-specs-table tr:hover { background: rgba(19,139,193,0.04); }
.pd-spec-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pd-spec-image img {
  width: 100%;
  border-radius: var(--radius-lg);
}

/* Accessories */
.pd-accessory-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}
.pd-accessory-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.pd-accessory-image {
  height: 180px;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.pd-accessory-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.pd-accessory-body {
  padding: 1.25rem;
}
.pd-accessory-body h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.pd-accessory-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .pd-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .pd-gallery { position: static; }
  .pd-gallery-main { aspect-ratio: 4/3; }
  .pd-thumb { width: 56px; height: 56px; }
  .pd-actions { flex-direction: column; }
  .pd-inquiry-btn { min-width: unset; }
  .pd-features-grid { grid-template-columns: 1fr; }
}
