/* ── Single Product Page Styles ─────────────────────────────────────── */
/* Breadcrumb styles → single-am_product.css (bottom) via template-parts/breadcrumb.php */

.sp-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
  padding: 32px 0 60px;
}

/* ── Left: product image + info ───────────────── */
.sp-left {}

.sp-product-card {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 24px;
}

.sp-product-top {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: flex-start;
}

.sp-image-wrap {
  border: 1px solid var(--bd);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.sp-image-wrap img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

.sp-image-placeholder {
  width: 100%; aspect-ratio: 1;
  background: var(--cr);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
  border: 1px solid var(--bd);
}

.sp-info {}

.sp-product-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gr2);
  background: var(--cr);
  border: 1px solid var(--bd);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.sp-product-type::before {
  content: '★';
  font-size: 9px;
  color: var(--gr);
}

.sp-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dk);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 5px;
}

p.sp-short-desc {
    font-size: 12px;
    line-height: 1.2;
    margin-bottom: 10px;
	color: #163e2b;
}

.sp-meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sp-meta-table tr { border-bottom: 1px solid var(--bd); }
.sp-meta-table tr:last-child { border-bottom: none; }
.sp-meta-table td { padding: 8px 0; vertical-align: top; }
.sp-meta-table td:first-child {
  color: var(--txt3);
  font-weight: 600;
  width: 120px;
  font-size: 12px;
  padding-right: 12px;
}
.sp-meta-table td:last-child { color: var(--dk); font-weight: 500; }
.sp-meta-table a { color: var(--gr2); text-decoration: none; }
.sp-meta-table a:hover { text-decoration: underline; }

.sp-cta-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 4px;
}

.sp-cert-row img {
    max-width: 80px;
	margin-bottom: 20px;
}

.sp-btn-quote {
  background: var(--dk);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .2s;
  letter-spacing: .2px;
}
.sp-btn-quote:hover { background: var(--gr2); transform: translateY(-1px); }

.sp-btn-sample {
  background: transparent;
  color: var(--dk);
  border: 1.5px solid var(--bd2);
  padding: 10px 22px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .2s;
}
.sp-btn-sample:hover { border-color: var(--gr); background: var(--cr); }

/* ── Tabs ─────────────────────────────────────── */
.sp-tabs-wrap {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 14px;
  overflow: hidden;
}

.sp-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--bd);
  background: #fafaf8;
  overflow-x: auto;
}

.sp-tab-btn {
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--txt2);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  margin-bottom: -1px;
  letter-spacing: .1px;
}

.sp-tab-btn:hover { color: var(--dk); }

.sp-tab-btn.active {
  color: var(--dk);
  border-bottom-color: var(--dk);
  background: #fff;
}

.sp-tab-panel { display: none; padding: 28px; }
.sp-tab-panel.active { display: block; }

.sp-tab-panel .entry-content h3,
.sp-tab-panel h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dk);
  margin: 18px 0 8px;
}
.sp-tab-panel h3:first-child { margin-top: 0; }

.sp-tab-panel ul {
  list-style: disc;
  padding-left: 18px;
  font-size: 13px;
  color: var(--txt2);
  line-height: 1.75;
  margin-bottom:14px;
}

.sp-tab-panel p {
  font-size: 14px;
  color: var(--txt2);
  line-height: 1.8;
  margin-bottom: 14px;
}

/* ── Specification tab — table styling ───────────────────────────────
   Targets any <table> rendered inside the Specification WYSIWYG tab.
   ACF WYSIWYG outputs a plain <table>, so we style it via the
   tab panel context: #tab-specification table
   ------------------------------------------------------------------ */
 
/* Reset & base */
#tab-specification table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  border: 1px solid var(--bd);
  border-radius: 10px;
  overflow: hidden;          /* clip rounded corners */
  margin: 0 0 20px;
}
 
/* Header row */
#tab-specification table thead tr,
#tab-specification table tr:first-child th {
  background: var(--dk);
}
 
#tab-specification table th {
  background: var(--dk);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .8px;
  text-align: left;
  padding: 11px 16px;
  border-bottom: none;
  white-space: nowrap;
}
 
/* Body cells */
#tab-specification table td {
  padding: 10px 16px;
  color: var(--txt);
  font-size: 13px;
  border-bottom: 1px solid var(--bd);
  vertical-align: middle;
  line-height: 1.55;
}
 
/* First column = property label */
#tab-specification table td:first-child {
  font-weight: 600;
  color: var(--dk);
  width: 40%;
  background: var(--cr);
  border-right: 1px solid var(--bd);
}
 
/* Zebra stripe on value column */
#tab-specification table tbody tr:nth-child(even) td:last-child {
  background: #f7fbf8;
}
 
/* Remove bottom border on last row */
#tab-specification table tr:last-child td {
  border-bottom: none;
}
 
/* Hover highlight */
#tab-specification table tbody tr:hover td {
  background: #eef6f1;
}
#tab-specification table tbody tr:hover td:first-child {
  background: #e3f0e8;
}

/* Specification table in tab */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.spec-table th {
  background: var(--cr);
  color: var(--dk);
  font-weight: 700;
  text-align: left;
  padding: 9px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--bd);
}
.spec-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--bd);
  color: var(--txt);
  vertical-align: top;
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table tr:nth-child(even) td { background: #fafaf8; }

/* Certificate icons */
.cert-area { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 8px 0; }
.cert-area img { max-height: 52px; width: auto; }

/* TDS download box */
.tds-download-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--cr);
  border: 1px solid var(--bd);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.tds-icon {
  width: 40px; height: 40px;
  background: var(--dk);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.tds-info { flex: 1; }
.tds-label { font-size: 11px; font-weight: 600; color: var(--txt3); text-transform: uppercase; letter-spacing: .5px; }
.tds-filename { font-size: 13px; font-weight: 600; color: var(--dk); margin-top: 2px; }
.tds-dl-btn {
  background: var(--dk); color: #fff;
  padding: 8px 16px; border-radius: 6px;
  font-size: 12px; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  transition: background .15s;
}
.tds-dl-btn:hover { background: var(--gr2); }

/* Related article card in tab */
.related-article-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fafaf8;
  border: 1px solid var(--bd);
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  transition: all .2s;
  margin-bottom: 10px;
}
.related-article-card:hover { border-color: var(--gr); box-shadow: 0 4px 16px rgba(22,62,43,.07); }
.rac-thumb { width: 80px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: var(--cr); }
.rac-body {}
.rac-cat { font-size: 10px; font-weight: 700; color: var(--gr); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 4px; }
.rac-title { font-size: 13px; font-weight: 700; color: var(--dk); line-height: 1.4; }
.rac-meta { font-size: 11px; color: var(--txt3); margin-top: 4px; }


/* ── Right: Sidebar ───────────────────────────── */
.sp-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sp-sidebar-card {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 12px;
  overflow: hidden;
}

.sp-sidebar-card-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--txt3);
  padding: 12px 16px;
  background: #fafaf8;
  border-bottom: 1px solid var(--bd);
}

.similar-product-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bd);
  text-decoration: none;
  transition: background .15s;
}
.similar-product-item:last-child { border-bottom: none; }
.similar-product-item:hover { background: var(--cr); }

.spi-img {
  width: 52px; height: 52px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--bd);
  background: var(--cr);
  flex-shrink: 0;
  padding: 4px;
}
.spi-placeholder {
  width: 52px; height: 52px;
  background: var(--cr);
  border-radius: 6px;
  border: 1px solid var(--bd);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.spi-body {}
.spi-title { font-size: 13px; font-weight: 600; color: var(--dk); line-height: 1.35; margin-bottom: 3px; }
.spi-cat { font-size: 11px; color: var(--txt3); }
.spi-arrow {
  margin-left: auto;
  font-size: 11px;
  color: var(--txt3);
  align-self: center;
  flex-shrink: 0;
}

/* Contact CTA card */
.sp-cta-card {
  background: var(--dk);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.sp-cta-card .cta-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.sp-cta-card .cta-sub { font-size: 12px; color: rgba(255,255,255,.55); margin-bottom: 16px; line-height: 1.6; }
.sp-cta-card .cta-btn {
  display: block;
  background: var(--yw);
  color: var(--dk);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 7px;
  text-decoration: none;
  transition: all .15s;
  margin-bottom: 8px;
}
.sp-cta-card .cta-btn:hover { opacity: .9; transform: translateY(-1px); }
.sp-cta-card .cta-btn-ghost {
  display: block;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.8);
  font-size: 12px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 7px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.12);
  transition: all .15s;
}
.sp-cta-card .cta-btn-ghost:hover { background: rgba(255,255,255,.13); }

/* Industries & Tags sidebar */
.sp-tag-list { padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
  .sp-layout { grid-template-columns: 1fr; }
  .sp-sidebar { position: static; }
}
@media (max-width: 640px) {
  .sp-product-top { grid-template-columns: 1fr; }
  .sp-image-wrap, .sp-image-placeholder { max-width: 260px; }
  .sp-cta-row { flex-direction: column; }
  .sp-btn-quote, .sp-btn-sample { text-align: center; justify-content: center; }
}