/* ZQM Product Page v1.2.0 — Neutral Graphite, Brushed Steel & Brand Gold Industrial UI */
body.single-product {
  --zqm-ink: #181a1d;
  --zqm-heading: #141619;
  --zqm-body: #3c4046;
  --zqm-muted: #6c7178;
  --zqm-line: #e0e2e5;
  --zqm-line-soft: #eff0f2;
  --zqm-surface: #ffffff;
  --zqm-surface-steel: #f5f6f7;
  --zqm-surface-zebra: #fafbfb;
  --zqm-surface-hover: #fcfaf3;
  --zqm-accent: var(--ast-global-color-0, #ffbc28);
  --zqm-accent-hover: var(--ast-global-color-1, #ff9e01);
}

/* 1. Top Product Summary Refinements — Harmonized with Astra Charcoal & Gold */
body.single-product div.product .single-product-category a {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--zqm-ink) !important;
  background: rgba(255, 188, 40, 0.22);
  border-left: 3px solid var(--zqm-accent);
  padding: 4px 11px;
  border-radius: 2px 4px 4px 2px;
  text-decoration: none !important;
  transition: background-color 0.15s ease;
}

body.single-product div.product .single-product-category a:hover {
  background: rgba(255, 188, 40, 0.36);
}

body.single-product div.product .product_title {
  color: var(--zqm-heading) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.24;
}

body.single-product div.product .woocommerce-product-details__short-description p {
  color: var(--zqm-body);
  font-size: 15.5px;
  line-height: 1.8;
}

body.single-product div.product .product_meta {
  border-top: 1px solid var(--zqm-line) !important;
  padding-top: 14px !important;
  font-size: 13.5px;
  color: var(--zqm-muted);
}

body.single-product div.product .product_meta > span {
  display: block;
  margin-bottom: 6px;
}

body.single-product div.product .product_meta a {
  color: var(--zqm-body) !important;
  font-weight: 500;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

body.single-product div.product .product_meta a:hover {
  color: var(--zqm-accent-hover) !important;
  text-decoration: none !important;
}

/* 2. Hide WooCommerce Tab Bar & Unify Description Canvas */
body.single-product .woocommerce-tabs ul.tabs.wc-tabs {
  display: none !important;
}

body.single-product div.product .woocommerce-tabs {
  border-top: 1px solid var(--zqm-line);
  padding-top: 38px !important;
  margin-top: 20px !important;
  margin-bottom: 56px !important;
}

body.single-product .woocommerce-tabs .panel.entry-content {
  padding: 0 !important;
  margin: 0 !important;
  color: var(--zqm-body);
}

/* 3. Unified Section Spacing & Heading Hierarchy (All H2 aligned on x=0) */
body.single-product .woocommerce-Tabs-panel--description .zqm-module {
  margin: 0 0 40px 0;
}

body.single-product .woocommerce-Tabs-panel--description .zqm-module:last-child {
  margin-bottom: 0;
}

body.single-product .woocommerce-Tabs-panel--description h2,
body.single-product section.related.products > h2 {
  position: relative;
  font-size: clamp(19px, 1.85vw, 22px) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.015em;
  color: var(--zqm-heading) !important;
  margin: 0 0 16px 0 !important;
  padding: 0 0 0 15px !important;
  text-align: left;
}

body.single-product section.related.products > h2 {
  margin-bottom: 22px !important;
}

body.single-product .woocommerce-Tabs-panel--description h2::before,
body.single-product section.related.products > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 2px;
  background: var(--zqm-accent);
}

/* 4. Unified Borderless-Outer White Card Surface */
body.single-product .zqm-table-card,
body.single-product .zqm-overview-card,
body.single-product .zqm-faq-list {
  background: var(--zqm-surface);
  border-radius: 8px;
  border: 0 !important;
  box-shadow: 0 2px 10px rgba(20, 22, 25, 0.035);
  overflow: hidden;
}

/* 5. Module 1: Product Overview Card & Precision Recessed Metric Tiles */
body.single-product .zqm-overview-card {
  padding: 26px 30px;
}

body.single-product .zqm-overview-lead {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--zqm-body);
  margin: 0 !important;
}

body.single-product .zqm-overview-lead strong {
  color: var(--zqm-ink);
  font-weight: 600;
}

body.single-product .zqm-quick-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
  padding-top: 0;
  border-top: 0;
}

body.single-product .zqm-quick-item {
  background: var(--zqm-surface-steel);
  border-radius: 6px;
  padding: 14px 16px;
  border-left: 3px solid var(--zqm-accent);
}

body.single-product .zqm-quick-item span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--zqm-muted);
  letter-spacing: 0.01em;
  margin-bottom: 5px;
}

body.single-product .zqm-quick-item strong {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--zqm-ink);
  font-variant-numeric: tabular-nums;
}

/* 6. Unified Borderless-Outer Data Table (Modules 2, 3, 4, 5, 6) */
body.single-product .zqm-table-scroll {
  width: 100%;
  overflow-x: visible;
}

body.single-product table.zqm-data-table {
  width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  border: 0 !important;
  margin: 0 !important;
  background: var(--zqm-surface);
  font-size: 14.5px;
  line-height: 1.68;
  text-align: left;
  table-layout: fixed;
}

body.single-product table.zqm-data-table thead th {
  background: var(--zqm-surface-steel) !important;
  color: var(--zqm-ink) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  padding: 14px 22px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--zqm-line) !important;
  vertical-align: middle;
}

body.single-product table.zqm-data-table tbody th,
body.single-product table.zqm-data-table tbody td {
  padding: 13.5px 22px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--zqm-line-soft) !important;
  vertical-align: middle;
  color: var(--zqm-body);
  background: transparent !important;
  overflow-wrap: break-word;
  transition: background-color 0.12s ease;
}

body.single-product table.zqm-data-table tbody tr:nth-child(even) {
  background: var(--zqm-surface-zebra) !important;
}

body.single-product table.zqm-data-table tbody tr:hover {
  background: var(--zqm-surface-hover) !important;
}

body.single-product table.zqm-data-table tbody tr:last-child th,
body.single-product table.zqm-data-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

/* Consistent 3-Column Width Proportions Across All Data Tables */
body.single-product table.zqm-data-table thead th:nth-child(1),
body.single-product table.zqm-data-table tbody > tr > :nth-child(1) {
  width: 24%;
}

body.single-product table.zqm-data-table thead th:nth-child(2),
body.single-product table.zqm-data-table tbody > tr > :nth-child(2) {
  width: 34%;
}

body.single-product table.zqm-data-table thead th:nth-child(3),
body.single-product table.zqm-data-table tbody > tr > :nth-child(3) {
  width: 42%;
}

/* Specific Column Typography & Badges */
body.single-product table.zqm-data-table .zqm-col-group {
  color: var(--zqm-muted);
  font-size: 13px;
}

body.single-product table.zqm-data-table .zqm-cat-tag {
  display: inline-block;
  background: #f1f2f4;
  color: #4b5057;
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  line-height: 1.45;
}

body.single-product table.zqm-data-table .zqm-col-param,
body.single-product table.zqm-data-table tbody th[scope="row"] {
  color: var(--zqm-ink) !important;
  font-weight: 600 !important;
}

body.single-product table.zqm-data-table .zqm-param-sym {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #555a62;
  background: #f1f2f4;
  font-weight: 500;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  line-height: 1.4;
}

body.single-product table.zqm-data-table .zqm-col-val {
  color: var(--zqm-ink) !important;
  font-weight: 700 !important;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

body.single-product table.zqm-data-table strong {
  color: var(--zqm-ink);
  font-weight: 600;
}

/* 7. Table Footer Note & Neutral Charcoal + Brand Gold Links (Zero Blue) */
body.single-product .zqm-table-note {
  margin: 0 !important;
  padding: 14px 22px !important;
  background: var(--zqm-surface-steel);
  border-top: 1px solid var(--zqm-line-soft);
  font-size: 13px;
  line-height: 1.68;
  color: var(--zqm-muted);
}

body.single-product .woocommerce-Tabs-panel--description a:not(.zqm-cta-btn):not(.zqm-related-link) {
  color: var(--zqm-ink) !important;
  font-weight: 600;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

body.single-product .woocommerce-Tabs-panel--description a:not(.zqm-cta-btn):not(.zqm-related-link):hover {
  color: var(--zqm-accent-hover) !important;
  text-decoration: none !important;
}

body.single-product .zqm-table-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 22px;
  background: var(--zqm-surface-steel);
  border-top: 1px solid var(--zqm-line-soft);
}

body.single-product .zqm-table-cta-bar p {
  margin: 0 !important;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--zqm-body);
}

body.single-product .zqm-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 5px;
  background: var(--zqm-accent);
  color: #141619 !important;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

body.single-product .zqm-cta-btn:hover {
  background: var(--zqm-accent-hover);
  color: #000000 !important;
  transform: translateY(-1px);
}

/* 8. Module 7: Unified Borderless-Outer FAQ Card */
body.single-product .zqm-faq-list {
  margin: 0 !important;
}

body.single-product .zqm-faq-item {
  padding: 20px 24px;
  border: 0 !important;
  border-bottom: 1px solid var(--zqm-line-soft) !important;
  background: transparent;
  transition: background-color 0.12s ease;
}

body.single-product .zqm-faq-item:hover {
  background: var(--zqm-surface-zebra);
}

body.single-product .zqm-faq-item:last-child {
  border-bottom: 0 !important;
}

body.single-product .zqm-faq-item h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  color: var(--zqm-ink) !important;
  margin: 0 0 8px 0 !important;
}

body.single-product .zqm-faq-item h3::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: rgba(255, 188, 40, 0.25);
  color: var(--zqm-ink);
  font-size: 12px;
  font-weight: 800;
}

body.single-product .zqm-faq-item p {
  font-size: 14.5px !important;
  line-height: 1.78 !important;
  color: var(--zqm-body) !important;
  margin: 0 !important;
  padding-left: 32px;
}

/* 9. Module 8: Symmetrical 5x2 Related Models Grid */
body.single-product .zqm-related-block {
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body.single-product .zqm-related-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 14px 0 !important;
}

body.single-product .zqm-related-grid li {
  margin: 0 !important;
  min-width: 0;
}

body.single-product .zqm-related-grid a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 15px 18px;
  background: var(--zqm-surface);
  border-radius: 6px;
  border: 1px solid transparent !important;
  box-shadow: 0 2px 8px rgba(20, 22, 25, 0.035);
  text-decoration: none !important;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

body.single-product .zqm-related-grid a::after {
  content: "→";
  position: absolute;
  right: 14px;
  top: 14px;
  font-size: 13px;
  color: #b5bac2;
  transition: color 0.15s ease, transform 0.15s ease;
}

body.single-product .zqm-related-grid a:hover {
  border-color: var(--zqm-accent) !important;
  box-shadow: 0 4px 12px rgba(20, 22, 25, 0.06);
  transform: translateY(-1px);
}

body.single-product .zqm-related-grid a:hover::after {
  color: var(--zqm-accent-hover);
  transform: translateX(2px);
}

body.single-product .zqm-related-grid strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--zqm-ink) !important;
  line-height: 1.35;
  padding-right: 16px;
}

body.single-product .zqm-related-grid span {
  display: block;
  font-size: 12.5px;
  color: var(--zqm-muted) !important;
  font-weight: 400;
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}

body.single-product .zqm-resource-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  background: var(--zqm-surface);
  border-radius: 6px;
  padding: 14px 22px;
  font-size: 13.5px;
  color: var(--zqm-muted);
  box-shadow: 0 2px 8px rgba(20, 22, 25, 0.035);
}

body.single-product .zqm-resource-label {
  font-weight: 700;
  color: var(--zqm-ink);
}

body.single-product .zqm-sep {
  color: #d0d4da;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  body.single-product .zqm-related-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  body.single-product .zqm-quick-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.single-product .zqm-overview-card {
    padding: 18px;
  }
  body.single-product .zqm-quick-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  body.single-product .zqm-table-scroll {
    overflow-x: auto;
  }
  body.single-product table.zqm-data-table {
    min-width: 580px;
    table-layout: auto;
  }
  body.single-product table.zqm-data-table thead th,
  body.single-product table.zqm-data-table tbody th,
  body.single-product table.zqm-data-table tbody td {
    padding: 11px 14px !important;
    font-size: 13.5px;
  }
  body.single-product .zqm-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.single-product .zqm-faq-item {
    padding: 16px;
  }
  body.single-product .zqm-faq-item p {
    padding-left: 0;
  }
}


/* ==========================================================================
   ZQM CSS Watermark Demo — Only active on NJ326EM (EN: postid-3661 / ZH: postid-3662)
   ========================================================================== */
.postid-3661 .woocommerce-product-gallery__image,
.postid-3662 .woocommerce-product-gallery__image {
  position: relative !important;
}

.postid-3661 .woocommerce-product-gallery__image::after,
.postid-3662 .woocommerce-product-gallery__image::after {
  content: "" !important;
  position: absolute !important;
  top: 32px !important;
  left: 32px !important;
  width: 96px !important;
  height: 73px !important;
  background-image: url("https://www.zqmbearings.com/wp-content/uploads/ZQM_Logo_Black_4K_Transparent.png") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  opacity: 0.10 !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

/* ==========================================================================
   ZQM Product Image Ultimate Shield & Clean Presentation
   ========================================================================== */

/* 1. 彻底禁用 WooCommerce Lightbox 放大镜与触发按钮 */
.woocommerce-product-gallery__trigger,
.ast-quick-view-trigger {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 2. 彻底禁用主图及所有画廊缩略图的超链接点击放大功能（禁止弹出原图 URL） */
.single-product .woocommerce-product-gallery__image a,
.single-product .woocommerce-product-gallery a,
.single-product .flex-viewport a {
  pointer-events: none !important;
  cursor: default !important;
}

/* 3. 彻底禁用鼠标右键图片菜单、防拖拽保存 */
.single-product .woocommerce-product-gallery__image img,
.single-product .woocommerce-product-gallery img {
  -webkit-user-drag: none !important;
  user-select: none !important;
  pointer-events: none !important;
}

/* 4. 在整个图片展示框上方建立全透明拦截盾牌 (Transparent Shield) */
.single-product .woocommerce-product-gallery__image {
  position: relative !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
}

.single-product .woocommerce-product-gallery__image::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(255, 255, 255, 0.001) !important; /* 几乎不可见的透明层 */
  z-index: 8 !important;
  pointer-events: auto !important; /* 拦截所有右键与点击事件，让右键菜单失效或变成网页菜单 */
  cursor: default !important;
}

/* 5. 5% 超微暗纹防伪水印 (顶层浮现) */
.postid-3661 .woocommerce-product-gallery__image::after,
.postid-3662 .woocommerce-product-gallery__image::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: 20px !important;
  left: 20px !important;
  width: 64px !important;
  height: 48px !important;
  background-image: url("https://www.zqmbearings.com/wp-content/uploads/ZQM_Logo_Black_4K_Transparent.png") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  opacity: 0.05 !important;
  pointer-events: none !important;
  z-index: 10 !important;
}


/* ==========================================================================
   ZQM Typography & Section Spacing Polish (Design Aesthetics)
   ========================================================================== */

/* 保证每个主内容板块（概述、表格、选型、FAQ、相关产品等）之间有呼吸感 */
body.single-product section.zqm-section,
body.single-product .entry-content > section,
body.single-product .woocommerce-tabs section {
  margin-top: 48px !important;
  margin-bottom: 24px !important;
}

/* 标题上间距强化：标题绝不紧贴上方表格或模块 */
body.single-product h2.zqm-section-title,
body.single-product .entry-content h2,
body.single-product section > h2 {
  margin-top: 42px !important;
  margin-bottom: 20px !important;
  padding-top: 8px !important;
}

/* 保证表格容器与紧邻下方的标题或模块之间至少有 36px 缓冲 */
body.single-product .zqm-table-scroll,
body.single-product table.zqm-data-table {
  margin-bottom: 36px !important;
}

/* FAQ 常见问题板块专门优化：与上方内容间距加大，卡片之间微调 */
body.single-product .zqm-faq-list {
  margin-top: 20px !important;
  margin-bottom: 36px !important;
}
