/* Product detail — industrial, high-density layout */
.product-detail {
  background: var(--white);
  overflow-x: hidden;
}

.product-detail-shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 0;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px 40px;
  align-items: start;
  margin-bottom: 8px;
}

.product-hero.has-media {
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
  align-items: stretch;
}

.product-hero-media {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.product-gallery-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 420px;
  min-height: 420px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: zoom-in;
}

.product-gallery-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-gallery-caption {
  margin-top: 10px;
}

.product-gallery-caption-title {
  display: block;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.product-gallery-caption-text {
  display: -webkit-box;
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.product-gallery-thumb {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  padding: 4px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

.product-gallery-thumb.is-active {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
}

.product-gallery-thumb:hover,
.product-gallery-thumb:focus {
  border-color: var(--navy);
}

.product-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
}

.product-kicker {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-hero-title {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
}

.product-hero-excerpt {
  margin: 0;
  max-width: 40rem;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.parameter-summary {
  display: grid;
  margin: 0 0 20px;
  border-top: 1px solid var(--line);
}

.parameter-summary-row {
  display: grid;
  grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
  gap: 12px;
  min-height: 46px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.parameter-summary dt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.parameter-summary dd {
  margin: 0;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.product-hero-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 32px;
  width: 100%;
  margin-top: 24px;
  padding-right: 12px;
}

.product-hero.has-media .product-hero-actions {
  margin-top: auto;
  padding-top: 24px;
}

.product-hero-cta {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 180px;
  margin: 0;
}

.product-hero-social {
  flex: 0 1 auto;
  max-width: 220px;
  margin: 0;
  text-align: right;
}

.product-hero-social-label {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}

.product-hero-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.product-hero-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-muted);
  line-height: 0;
}

.product-hero-social-links a:hover,
.product-hero-social-links a:focus {
  color: var(--teal-dark);
}

.product-hero-social-links svg {
  display: block;
  width: 22px;
  height: 22px;
}

.teccera-product-body-box {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-top: 32px;
  margin-bottom: 32px;
  padding: 32px 36px;
  background: #fff;
  border: 1px solid #e1e5e9;
  border-radius: 2px;
}

.teccera-product-body-box > .product-section:first-child {
  margin-top: 0;
}

.teccera-product-body-box + .product-section {
  margin-top: 32px;
}

.product-section {
  margin-top: 64px;
  width: 100%;
  max-width: none;
}

.product-section-full,
.tech-specs-section,
.product-applications-section,
.related-articles-section,
.quote-process-section,
.product-features-section,
.product-joining-section,
.teccera-technical-resources {
  width: 100%;
  max-width: none;
}

.product-detail .teccera-technical-resources-lead {
  max-width: 880px;
  margin: 0 0 20px;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.product-section-title {
  margin: 0 0 20px;
  color: var(--navy);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
}

.product-gallery-stage,
.product-gallery-thumb,
.product-lightbox-close {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
}

.product-prose {
  width: 100%;
  max-width: none;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.product-prose > p {
  max-width: 880px;
}

.product-specs-notes {
  margin-top: 16px;
}

.product-specs-notes > p {
  max-width: 880px;
}

.product-prose > *:first-child {
  margin-top: 0;
}

.product-prose p {
  margin: 0 0 16px;
}

.product-prose h3 {
  margin: 24px 0 10px;
  color: var(--navy);
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.35;
}

.product-prose ul,
.product-prose ol {
  margin: 0 0 16px;
  padding-left: 1.35em;
}

.product-prose li {
  margin: 0 0 8px;
}

.product-prose table,
.product-prose figure,
.product-prose .wp-block-table,
.product-overview-tables,
.product-overview-tables table,
.product-section-wide,
.product-section-wide table,
.product-section-wide figure {
  width: 100%;
  max-width: none;
}

.product-prose table {
  min-width: 560px;
  margin: 0 0 16px;
  border-collapse: collapse;
}

.product-description-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px 40px;
  align-items: start;
  width: 100%;
}

.product-description-layout.has-sidebar {
  grid-template-columns: minmax(0, 68%) minmax(0, 32%);
}

.product-description-layout.has-sidebar .product-prose > p,
.product-description-layout.has-sidebar .product-prose > ul,
.product-description-layout.has-sidebar .product-prose > ol {
  max-width: none;
}

.product-description-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.product-sidebar-block {
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.product-sidebar-block h3 {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-sidebar-block ul {
  margin: 0;
  padding-left: 1.15em;
}

.product-sidebar-block li {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.product-sidebar-block li:last-child {
  margin-bottom: 0;
}

.product-section-wide {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.product-feature-grid,
.product-application-cards,
.product-plain-columns,
.related-articles-grid,
.quote-process-steps {
  width: 100%;
  max-width: none;
}

.product-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-feature-grid li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
}

.product-feature-icon {
  color: var(--teal-dark);
  margin-top: 2px;
}

.product-application-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-application-card {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  background: var(--white);
}

.product-application-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.125rem;
  font-weight: 600;
}

.product-application-card ul {
  margin: 0;
  padding-left: 1.15em;
}

.product-plain-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
  margin: 0;
  padding-left: 1.15em;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-article-card {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--white);
}

.related-article-title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  line-height: 1.35;
}

.related-article-title a {
  color: var(--navy);
}

.related-article-excerpt {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.related-article-link {
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.875rem;
}

.quote-process-lead {
  max-width: 880px;
  margin: 0 0 24px;
  color: var(--text);
  line-height: 1.7;
}

.quote-process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quote-process-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.quote-process-steps li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 18px;
  right: -10px;
  color: var(--teal-dark);
  font-size: 1rem;
  line-height: 1;
}

.quote-process-icon {
  color: var(--teal-dark);
}

.quote-process-label {
  color: var(--navy);
  font-weight: 600;
}

.product-final-cta {
  margin-top: 64px;
  padding: 40px 0 48px;
  background: var(--navy-deep);
  color: var(--white);
}

.product-final-cta .product-detail-shell {
  padding-top: 0;
}

.product-final-cta h2 {
  margin: 0 0 10px;
  font-size: 1.75rem;
  font-weight: 700;
}

.product-final-cta p {
  margin: 0 0 18px;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.product-lightbox {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(920px, 94vw);
}

.product-lightbox::backdrop {
  background: rgba(7, 24, 44, 0.72);
}

.product-lightbox img {
  display: block;
  max-width: 94vw;
  max-height: 86vh;
  object-fit: contain;
  background: var(--white);
}

.product-lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--navy);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.product-detail table,
.product-detail .tech-specs-table {
  width: 100% !important;
  max-width: none !important;
}

.product-detail .tech-specs-table {
  min-width: 0;
  table-layout: auto;
}

.product-detail .tech-specs-table-wrap {
  width: 100%;
  max-width: none;
}

.product-detail .tech-specs-table th,
.product-detail .tech-specs-table td {
  white-space: normal;
}

@media (max-width: 991.98px) {
  .product-description-layout,
  .product-description-layout.has-sidebar {
    grid-template-columns: 1fr;
  }

  .quote-process-steps li:not(:last-child)::after {
    display: none;
  }

  .product-hero-title {
    font-size: 2.125rem;
  }

  .product-feature-grid,
  .product-application-cards,
  .related-articles-grid,
  .quote-process-steps,
  .product-plain-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .product-hero,
  .product-hero.has-media {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
  }

  .product-hero-copy {
    align-items: flex-start;
  }

  .product-hero.has-media .product-hero-actions,
  .product-hero-actions {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 20px;
    padding-top: 0;
    padding-right: 0;
  }

  .product-hero-social {
    max-width: none;
    text-align: left;
  }

  .product-hero-social-links {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .product-detail-shell {
    padding: 16px 16px 0;
  }

  .teccera-product-body-box {
    padding: 20px;
  }

  .product-hero-title {
    font-size: 1.875rem;
  }

  .product-section {
    margin-top: 44px;
  }

  .product-section-title {
    font-size: 1.625rem;
  }

  .product-gallery-stage {
    height: 280px;
    min-height: 280px;
  }

  .product-gallery-thumbs {
    flex-wrap: nowrap;
    gap: 10px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .product-gallery-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
  }

  .parameter-summary-row {
    grid-template-columns: 1fr;
    gap: 2px;
    min-height: 0;
    padding: 10px 0;
  }

  .product-feature-grid,
  .product-application-cards,
  .related-articles-grid,
  .quote-process-steps,
  .product-plain-columns {
    grid-template-columns: 1fr;
  }

  .product-final-cta {
    margin-top: 44px;
    padding: 32px 0 40px;
  }
}
