/* ============================================
   Product Detail Page — Styles
   Namespace: .prd-detail-* / .prd-*
   Brand tokens from global-tokens.css
   ============================================ */

/* --- Container --- */
.prd-detail-page .prd-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   Section: Search Bar (full width in container)
   ============================================ */
.prd-detail-search {
  padding: 20px 0 10px;
  background: #ffffff;
}

.prd-detail-search .prd-search-bar {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid var(--brand-line, #e4e7ec);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.prd-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--brand-ink, #101722);
  background: transparent;
}

.prd-search-input::placeholder {
  color: var(--brand-muted, #667085);
}

.prd-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--brand-red, #0178DA);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.prd-search-btn:hover {
  background: var(--brand-red-dark, #0056A0);
}

.prd-search-btn svg {
  fill: #fff;
  width: 20px;
  height: 20px;
}

/* ============================================
   Section: Product Info (Left Image + Right Content)
   ============================================ */
.prd-detail-info {
  padding: 30px 0 40px;
}

.prd-detail-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.prd-detail-image-col {
  flex: 0 0 500px;
  max-width: 500px;
  position: sticky;
  top: 20px;
}

.prd-detail-image-wrap {
  width: 500px;
  height: 500px;
  max-width: 100%;
  border: 1px solid var(--brand-line, #e4e7ec);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prd-detail-image-wrap img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* --- Thumbnails --- */
.prd-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.prd-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border: 2px solid var(--brand-line, #e4e7ec);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
}

.prd-thumb:hover {
  border-color: var(--brand-muted, #667085);
}

.prd-thumb--active {
  border-color: var(--brand-red, #0178DA);
}

.prd-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prd-detail-content-col {
  flex: 1;
  min-width: 0;
}

.prd-detail-breadcrumb {
  font-size: 13px;
  color: var(--brand-muted, #667085);
  margin-bottom: 10px;
}

.prd-detail-breadcrumb a {
  color: var(--brand-red, #0178DA);
  text-decoration: none;
}

.prd-detail-breadcrumb a:hover {
  text-decoration: underline;
}

.prd-detail-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--brand-ink, #101722);
  margin: 0 0 6px;
  line-height: 1.3;
}

.prd-detail-model {
  font-size: 15px;
  color: var(--brand-muted, #667085);
  margin-bottom: 16px;
  font-weight: 500;
}

.prd-detail-intro {
  font-size: 14px;
  line-height: 1.7;
  color: var(--brand-ink, #101722);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--brand-line, #e4e7ec);
}

.prd-detail-intro p {
  margin: 0 0 8px;
}

.prd-detail-intro p:last-child {
  margin-bottom: 0;
}

/* --- Specs Table --- */
.prd-detail-specs {
  margin-bottom: 20px;
}

.prd-detail-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.prd-detail-specs-table tr {
  border-bottom: 1px solid var(--brand-line, #e4e7ec);
}

.prd-detail-specs-table tr:last-child {
  border-bottom: none;
}

.prd-detail-specs-table th {
  text-align: left;
  padding: 8px 12px 8px 0;
  font-weight: 600;
  color: var(--brand-ink, #101722);
  white-space: nowrap;
  width: 140px;
  vertical-align: top;
}

.prd-detail-specs-table td {
  padding: 8px 0;
  color: var(--brand-muted, #667085);
}

/* --- Action Buttons --- */
.prd-detail-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.prd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  border: none;
  line-height: 1.4;
}

.prd-btn--inquiry {
  background: var(--brand-red, #0178DA);
  color: #fff;
}

.prd-btn--inquiry:hover {
  background: var(--brand-red-dark, #0056A0);
  color: #fff;
}

.prd-btn--datasheet {
  background: transparent;
  color: var(--brand-red, #0178DA);
  border: 1px solid var(--brand-red, #0178DA);
}

.prd-btn--datasheet:hover {
  background: var(--brand-red, #0178DA);
  color: #fff;
}

/* --- Certifications --- */
.prd-detail-certs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.prd-cert-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-ink, #101722);
}

.prd-cert-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-red, #0178DA);
  background: rgba(1, 120, 218, 0.08);
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ============================================
   Section: Product Detail Body (ACF WYSIWYG)
   ============================================ */
.prd-detail-body {
  padding: 40px 0 50px;
  border-top: 1px solid var(--brand-line, #e4e7ec);
}

.prd-detail-body h2,
.prd-detail-body h3,
.prd-detail-body h4 {
  color: var(--brand-ink, #101722);
  margin-top: 28px;
  margin-bottom: 14px;
}

.prd-detail-body h2 {
  font-size: 22px;
}

.prd-detail-body h3 {
  font-size: 18px;
}

.prd-detail-body p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--brand-ink, #101722);
  margin-bottom: 14px;
}

.prd-detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 14px 0;
}

.prd-detail-body ul,
.prd-detail-body ol {
  margin-bottom: 14px;
  padding-left: 20px;
}

.prd-detail-body li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--brand-ink, #101722);
}

.prd-detail-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
}

.prd-detail-body table th,
.prd-detail-body table td {
  border: 1px solid var(--brand-line, #e4e7ec);
  padding: 10px 14px;
  font-size: 14px;
  text-align: left;
}

.prd-detail-body table th {
  background: #f9fafb;
  font-weight: 600;
}

.prd-detail-body blockquote {
  border-left: 4px solid var(--brand-red, #0178DA);
  padding: 12px 20px;
  margin: 14px 0;
  background: #f9fafb;
  font-style: italic;
  color: var(--brand-muted, #667085);
}

/* ============================================
   Prev / Next Navigation
   ============================================ */
.prd-nav {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  border-top: 1px solid var(--brand-line, #e4e7ec);
}

.prd-nav a {
  font-size: 14px;
  color: var(--brand-red, #0178DA);
  text-decoration: none;
}

.prd-nav a:hover {
  text-decoration: underline;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 989px) {
  .prd-detail-row {
    flex-direction: column;
    gap: 30px;
  }

  .prd-detail-image-col {
    flex: none;
    max-width: 100%;
    text-align: center;
    position: static;
  }

  .prd-detail-image-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 500px;
    margin: 0 auto;
  }

  .prd-thumbnails {
    justify-content: center;
  }

  .prd-detail-title {
    font-size: 22px;
  }

  .prd-detail-actions {
    flex-direction: column;
  }

  .prd-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .prd-detail-search .prd-search-bar {
    max-width: 100%;
  }

  .prd-detail-info {
    padding: 20px 0 30px;
  }

  .prd-detail-title {
    font-size: 20px;
  }

  .prd-detail-body {
    padding: 30px 0 40px;
  }
}
