/* ==========================================================================
 * ZQM Bearings — Flagship X5 Swiss Precision Product Hero (v4.3.0)
 * Strictly scoped to body.zqm-pdp-x5 (0 bytes on non-canary & 8 frozen pages).
 * Approved Spec: X5-2 + P1 + M1 + Top-Right [2D] Only + Pure 5-Level Breadcrumb.
 * Palette: Cool-Steel Monochrome (#0f1d30 / #f6f8fb / #ffffff / #d5dde7)
 *          with brand gold (#ffbc28) reserved strictly for the sole primary CTA.
 * ========================================================================== */

/* --- 1. Pure 5-Level Native Breadcrumb ABOVE Hero Shell --- */
html body.zqm-pdp-x5 .zqm-x5-bc-wrap {
  width: 100%;
  max-width: 1144px;
  margin: 0 auto 12px !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  min-height: 22px;
}

html body.zqm-pdp-x5 .zqm-x5-bc-trail.woocommerce-breadcrumb {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  color: #64748b !important;
  background: transparent !important;
  border: 0 !important;
}

html body.zqm-pdp-x5 .zqm-x5-bc-trail a {
  color: #64748b !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: color 0.12s ease;
}

html body.zqm-pdp-x5 .zqm-x5-bc-trail a:hover {
  color: #0f1d30 !important;
  text-decoration: none !important;
}

html body.zqm-pdp-x5 .zqm-x5-bc-trail .zqm-bc-home-svg {
  display: block;
  flex: 0 0 auto;
  transform: translateY(-0.5px);
}

html body.zqm-pdp-x5 .zqm-x5-bc-trail .zqm-bc-chev {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

html body.zqm-pdp-x5 .zqm-x5-bc-trail .zqm-bc-cur {
  color: #475569 !important;
  font-weight: 400 !important;
  font-size: 12px !important;
  font-family: inherit !important;
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  white-space: nowrap;
}

/* --- 2. Single Hairline White Hero Shell (Zero Box-in-Box, 37.8% / 62.2%) --- */
html body.zqm-pdp-x5 .zqm-pdp-hero-card {
  display: grid !important;
  grid-template-columns: minmax(0, 38.5%) minmax(0, 61.5%) !important;
  align-items: stretch !important;
  gap: 0 !important;
  background: #ffffff !important;
  border: 1px solid #d5dde7 !important;
  border-radius: 8px !important;
  padding: 22px !important;
  margin: 0 auto 20px !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html body.zqm-pdp-x5 .zqm-pdp-hero-card::before,
html body.zqm-pdp-x5 .zqm-pdp-hero-card::after {
  display: none !important;
  content: none !important;
}

/* Left Gallery Column */
html body.zqm-pdp-x5 .zqm-pdp-hero-card > .woocommerce-product-gallery {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 24px 0 0 !important;
  border: 0 !important;
  border-right: 1px solid #e8eef5 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  position: relative !important;
  min-width: 0 !important;
}

/* Remove WooCommerce Magnifying-Glass Trigger Icon (Replaced by Hover-Zoom + Click-Lightbox) */
html body.zqm-pdp-x5 .zqm-pdp-hero-card .woocommerce-product-gallery__trigger {
  display: none !important;
}

/* Multi-Image FlexSlider Viewport: PRESERVE native horizontal slide track (NEVER flex-wrap slides vertically!) */
html body.zqm-pdp-x5 .zqm-pdp-hero-card .woocommerce-product-gallery > .flex-viewport {
  display: block !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: 312px !important;
  max-height: 312px !important;
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  cursor: zoom-in !important;
}

/* Single-Image Gallery (no FlexSlider track): clean flex center fills full hero height */
html body.zqm-pdp-x5.zqm-x5-single-img .zqm-pdp-hero-card .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
  flex: 1 1 auto !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  min-height: 310px !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  cursor: zoom-in !important;
}

html body.zqm-pdp-x5 .zqm-pdp-hero-card .woocommerce-product-gallery__image {
  background: #ffffff !important;
  height: 312px !important;
  max-height: 312px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

html body.zqm-pdp-x5.zqm-x5-single-img .zqm-pdp-hero-card .woocommerce-product-gallery__image {
  height: 326px !important;
  max-height: 326px !important;
}

html body.zqm-pdp-x5 .zqm-pdp-hero-card .woocommerce-product-gallery__image > a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 312px !important;
  max-height: 312px !important;
  box-sizing: border-box !important;
  padding: 10px !important;
  background: #ffffff !important;
}

html body.zqm-pdp-x5.zqm-x5-single-img .zqm-pdp-hero-card .woocommerce-product-gallery__image > a {
  height: 326px !important;
  max-height: 326px !important;
}

html body.zqm-pdp-x5 .zqm-pdp-hero-card .woocommerce-product-gallery__image img {
  max-width: 90% !important;
  max-height: 288px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  transition: transform 0.24s ease !important;
  transform-origin: center center;
}

@media (hover: hover) and (min-width: 1024px) {
  html body.zqm-pdp-x5 .zqm-pdp-hero-card .woocommerce-product-gallery__image.is-zooming img {
    transform: scale(1.58) !important;
  }
}

/* Single-Image Products: Zero empty thumb bar & clean tall vertical centering */
html body.zqm-pdp-x5.zqm-x5-single-img .zqm-pdp-hero-card .woocommerce-product-gallery .flex-control-thumbs,
html body.zqm-pdp-x5.zqm-x5-single-img .zqm-pdp-hero-card .woocommerce-product-gallery .ast-single-product-thumbnails {
  display: none !important;
}

/* Multi-Image Products: Pure Factory Photo Thumbnails ONLY (ZERO bottom 2D CAD tile!) */
html body.zqm-pdp-x5 .zqm-pdp-hero-card .woocommerce-product-gallery .flex-control-thumbs,
html body.zqm-pdp-x5 .zqm-pdp-hero-card .woocommerce-product-gallery .ast-single-product-thumbnails {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border: 0 !important;
  background: transparent !important;
}

html body.zqm-pdp-x5 .zqm-pdp-hero-card .woocommerce-product-gallery .flex-control-thumbs li {
  width: 52px !important;
  height: 52px !important;
  margin: 0 !important;
  padding: 3px !important;
  border: 1px solid #d5dde7 !important;
  border-radius: 5px !important;
  background: #ffffff !important;
  overflow: hidden !important;
  float: none !important;
  flex: 0 0 52px !important;
  transition: border-color 0.12s ease !important;
}

html body.zqm-pdp-x5 .zqm-pdp-hero-card .woocommerce-product-gallery .flex-control-thumbs li:hover {
  border-color: #94a3b8 !important;
}

html body.zqm-pdp-x5 .zqm-pdp-hero-card .woocommerce-product-gallery .flex-control-thumbs li:has(img.flex-active) {
  border-color: #e5a000 !important;
  box-shadow: 0 0 0 1px #e5a000 !important;
}

html body.zqm-pdp-x5 .zqm-pdp-hero-card .woocommerce-product-gallery .flex-control-thumbs li img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  opacity: 1 !important;
  border: 0 !important;
  border-radius: 2px !important;
}

/* ONLY ONE 2D Trigger: Crisp Top-Right [2D] Pill inside Gallery */
html body.zqm-pdp-x5 .zqm-pdp-hero-card .zqm-v32-gal-sq {
  position: absolute !important;
  top: 6px !important;
  right: 30px !important;
  left: auto !important;
  bottom: auto !important;
  width: auto !important;
  min-width: 56px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding: 0 10px !important;
  border: 1px solid #d5dde7 !important;
  border-radius: 5px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: #0f1d30 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  box-shadow: 0 2px 6px rgba(15, 29, 48, 0.06) !important;
  z-index: 15 !important;
  cursor: pointer !important;
  transition: border-color 0.12s ease, background 0.12s ease !important;
}

html body.zqm-pdp-x5 .zqm-pdp-hero-card .zqm-v32-gal-sq:hover {
  border-color: #0f1d30 !important;
  background: #ffffff !important;
  transform: none !important;
}

html body.zqm-pdp-x5 .zqm-pdp-hero-card .zqm-v32-gal-sq svg {
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 14px !important;
}

html body.zqm-pdp-x5 .zqm-pdp-hero-card .zqm-v32-gal-sq .zqm-cad-sq-tip {
  display: none !important;
}

html body.zqm-pdp-x5 .zqm-pdp-hero-card .zqm-v32-gal-sq .zqm-x5-2d-txt {
  display: inline-block;
  letter-spacing: 0.02em;
}

/* --- 3. Right Column Clean Vertical Rhythm --- */
html body.zqm-pdp-x5 .zqm-pdp-hero-card > .summary.entry-summary {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 0 0 26px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 11px !important;
  min-width: 0 !important;
}

html body.zqm-pdp-x5 .zqm-pdp-hero-card .summary h1.product_title {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1.26 !important;
  color: #0f1d30 !important;
  letter-spacing: -0.015em !important;
  word-break: break-word;
}

/* Designation Nameplate + Share Row */
html body.zqm-pdp-x5 .zqm-x5-plate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 !important;
}

html body.zqm-pdp-x5 .zqm-x5-plate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  min-height: 30px;
  border: 1px solid #d5dde7;
  border-radius: 5px;
  background: #fafcfe;
  color: #0f1d30;
  max-width: 100%;
}

html body.zqm-pdp-x5 .zqm-x5-ptag {
  font-size: 11.4px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

html body.zqm-pdp-x5 .zqm-x5-ptag.is-en {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html body.zqm-pdp-x5 .zqm-x5-psep {
  width: 1px;
  height: 12px;
  background: #cbd5e1;
  flex: 0 0 1px;
}

html body.zqm-pdp-x5 .zqm-x5-pcode {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  color: #0f1d30;
  letter-spacing: 0.01em;
  word-break: break-all;
}

html body.zqm-pdp-x5 .zqm-x5-pcopy {
  appearance: none;
  border: 0 !important;
  background: transparent !important;
  color: #64748b !important;
  padding: 2px 3px !important;
  min-height: 0 !important;
  height: 22px !important;
  width: 22px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  cursor: pointer;
  transition: color 0.12s ease, background 0.12s ease;
}

html body.zqm-pdp-x5 .zqm-x5-pcopy:hover {
  color: #0f1d30 !important;
  background: #e2e8f0 !important;
}

html body.zqm-pdp-x5 .zqm-x5-pcopy.is-copied {
  color: #047857 !important;
  background: #ecfdf5 !important;
}

html body.zqm-pdp-x5 .zqm-x5-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

html body.zqm-pdp-x5 .zqm-x5-sbtn {
  appearance: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 0 9px !important;
  border: 1px solid #d5dde7 !important;
  border-radius: 5px !important;
  background: #ffffff !important;
  color: #475569 !important;
  font-size: 11.6px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}

html body.zqm-pdp-x5 .zqm-x5-sbtn:hover {
  border-color: #94a3b8 !important;
  color: #0f1d30 !important;
  background: #f8fafc !important;
}

html body.zqm-pdp-x5 .zqm-x5-sbtn.is-copied {
  border-color: #10b981 !important;
  color: #047857 !important;
  background: #ecfdf5 !important;
}

/* Clean 2-Line Zero-Stuffing Hero Lead */
html body.zqm-pdp-x5 .zqm-pdp-hero-card .woocommerce-product-details__short-description {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13.2px !important;
  line-height: 1.62 !important;
  color: #475569 !important;
}

html body.zqm-pdp-x5 .zqm-pdp-hero-card .woocommerce-product-details__short-description p {
  margin: 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
}

html body.zqm-pdp-x5 .zqm-pdp-hero-card .woocommerce-product-details__short-description p + p {
  margin-top: 6px !important;
}

/* --- 4. Approved X5-2 + P1 Pure Cool-Steel Native HTML <table> --- */
html body.zqm-pdp-x5 .zqm-x5-specbox {
  position: relative;
  border: 1px solid #d5dde7 !important;
  border-radius: 6px !important;
  overflow: hidden;
  background: #ffffff !important;
  margin: 0 !important;
}

/* Optional Frameless Swiss Architectural Ruler Mode (Admin Toggle) */
html body.zqm-pdp-x5.zqm-x5-frameless .zqm-x5-specbox,
html body.zqm-pdp-x5 .zqm-x5-specbox.is-frameless {
  border: 0 !important;
  border-top: 1.5px solid #0f1d30 !important;
  border-bottom: 1.5px solid #0f1d30 !important;
  border-radius: 0 !important;
  overflow: visible;
}

html body.zqm-pdp-x5.zqm-x5-frameless .zqm-x5-specbox::before,
html body.zqm-pdp-x5 .zqm-x5-specbox.is-frameless::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1.5px;
  width: 32px;
  height: 2px;
  background: #ffbc28;
  z-index: 2;
}

html body.zqm-pdp-x5 table.zqm-x5-tbl {
  display: block !important;
  width: 100% !important;
  border-collapse: collapse !important;
  border: 0 !important;
  margin: 0 !important;
  background: #ffffff !important;
}

html body.zqm-pdp-x5 table.zqm-x5-tbl tbody {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: 100% !important;
}

/* Top 50:50 Dual Load Cockpit (100% identical cool-steel #f6f8fb, ZERO yellow stripe!) */
html body.zqm-pdp-x5 table.zqm-x5-tbl tr.zqm-x5-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto !important;
  row-gap: 4px !important;
  padding: 11px 15px 12px !important;
  background: #f6f8fb !important;
  border: 0 !important;
  border-bottom: 1px solid #d5dde7 !important;
  min-width: 0 !important;
}

html body.zqm-pdp-x5 table.zqm-x5-tbl tr.zqm-x5-hero.is-l {
  border-right: 1px solid #e2e8f0 !important;
}

html body.zqm-pdp-x5 .zqm-x5-specbox.is-frameless table.zqm-x5-tbl tr.zqm-x5-hero {
  background: #fafcfe !important;
}

html body.zqm-pdp-x5 .zqm-x5-specbox.is-frameless table.zqm-x5-tbl tr.zqm-x5-hero.is-l {
  padding-left: 2px !important;
}

html body.zqm-pdp-x5 .zqm-x5-specbox.is-frameless table.zqm-x5-tbl tr.zqm-x5-hero.is-r {
  padding-right: 2px !important;
  padding-left: 16px !important;
}

html body.zqm-pdp-x5 table.zqm-x5-tbl tr.zqm-x5-hero th {
  grid-column: 1;
  grid-row: 1;
  font-size: 11.6px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  text-align: left !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  white-space: nowrap;
}

html body.zqm-pdp-x5 table.zqm-x5-tbl tr.zqm-x5-hero td.zqm-x5-ts {
  grid-column: 2;
  grid-row: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: 11.2px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-align: right !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  white-space: nowrap;
}

html body.zqm-pdp-x5 table.zqm-x5-tbl tr.zqm-x5-hero td.zqm-x5-ts sub,
html body.zqm-pdp-x5 .zqm-lbl-sym sub,
html body.zqm-pdp-x5 .zqm-param-sym sub {
  font-size: 0.74em;
  line-height: 0;
  vertical-align: sub;
}

html body.zqm-pdp-x5 table.zqm-x5-tbl tr.zqm-x5-hero td.zqm-x5-tv {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: clamp(16.5px, 1.5vw, 19px) !important;
  line-height: 1.2 !important;
  text-align: left !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  white-space: nowrap;
}

html body.zqm-pdp-x5 table.zqm-x5-tbl tr.zqm-x5-hero td.zqm-x5-tv.is-txt {
  font-size: 14px !important;
  white-space: normal;
  line-height: 1.32 !important;
}

/* Lower 3 Two-Pole Pure-White Rows (Zero Floating Middle Column!) */
html body.zqm-pdp-x5 table.zqm-x5-tbl tr.zqm-x5-row {
  grid-column: 1 / -1 !important;
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 9px 15px !important;
  background: #ffffff !important;
  border: 0 !important;
  border-bottom: 1px solid #eef2f6 !important;
  transition: background 0.12s ease;
}

html body.zqm-pdp-x5 .zqm-x5-specbox.is-frameless table.zqm-x5-tbl tr.zqm-x5-row {
  padding-left: 2px !important;
  padding-right: 2px !important;
}

html body.zqm-pdp-x5 table.zqm-x5-tbl tr.zqm-x5-row:hover {
  background: #fafcfe !important;
}

html body.zqm-pdp-x5 table.zqm-x5-tbl tr.zqm-x5-row:last-child {
  border-bottom: 0 !important;
}

html body.zqm-pdp-x5 table.zqm-x5-tbl tr.zqm-x5-row th {
  font-size: 12.8px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  text-align: left !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  white-space: nowrap;
}

html body.zqm-pdp-x5 .zqm-lbl-sym {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-left: 4px;
  letter-spacing: 0;
}

html body.zqm-pdp-x5 table.zqm-x5-tbl tr.zqm-x5-row td.zqm-x5-tv {
  font-size: 13.6px !important;
  text-align: right !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  white-space: nowrap;
}

html body.zqm-pdp-x5 table.zqm-x5-tbl tr.zqm-x5-row td.zqm-x5-tv.is-txt {
  font-size: 12.6px !important;
  white-space: normal;
  line-height: 1.35 !important;
}

/* Swiss Watchmaking Numeric + Unit Hierarchy */
html body.zqm-pdp-x5 .zqm-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  color: #0f1d30;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

html body.zqm-pdp-x5 .zqm-unt {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 600;
  color: #64748b;
  font-size: 0.75em;
  letter-spacing: 0;
}

html body.zqm-pdp-x5 .zqm-txt {
  font-weight: 700;
  color: #0f1d30;
}

/* --- 5. CTA Row Flush Bottom Alignment (0px Dead White) --- */
html body.zqm-pdp-x5 .zqm-pdp-hero-card .zqm-rfq {
  margin: auto 0 0 !important;
  padding: 4px 0 0 !important;
  border: 0 !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

html body.zqm-pdp-x5 .zqm-pdp-hero-card .zqm-rfq a.button,
html body.zqm-pdp-x5 .zqm-pdp-hero-card .zqm-rfq .zqm-v32-gold {
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 5px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

html body.zqm-pdp-x5 .zqm-pdp-hero-card .zqm-rfq .zqm-hero-basket-btn,
html body.zqm-pdp-x5 .zqm-pdp-hero-card .zqm-rfq .zqm-v32-sq {
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 5px !important;
}

/* --- 6. Responsive Tablet (900px) & Mobile (<= 640px / 390px) --- */
@media (max-width: 1024px) {
  html body.zqm-pdp-x5 .zqm-pdp-hero-card {
    grid-template-columns: minmax(0, 41%) minmax(0, 59%) !important;
    padding: 18px !important;
  }
  html body.zqm-pdp-x5 .zqm-pdp-hero-card > .woocommerce-product-gallery {
    padding-right: 16px !important;
  }
  html body.zqm-pdp-x5 .zqm-pdp-hero-card > .summary.entry-summary {
    padding-left: 18px !important;
  }
  html body.zqm-pdp-x5 .zqm-pdp-hero-card .summary h1.product_title {
    font-size: 20px !important;
  }
  html body.zqm-pdp-x5 .zqm-pdp-hero-card .zqm-v32-gal-sq {
    right: 22px !important;
  }
}

@media (max-width: 767px) {
  /* Single-Line Horizontal Swipeable Breadcrumb on 390px (ZERO 3-Line Wrap, ZERO display:none!) */
  html body.zqm-pdp-x5 .zqm-x5-bc-wrap {
    margin-bottom: 10px !important;
    min-height: 20px;
  }
  html body.zqm-pdp-x5 .zqm-x5-bc-trail.woocommerce-breadcrumb {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
    font-size: 11.5px !important;
    gap: 4px !important;
    padding-right: 14px !important;
    width: 100%;
  }
  html body.zqm-pdp-x5 .zqm-x5-bc-trail.woocommerce-breadcrumb::-webkit-scrollbar {
    display: none;
  }
  html body.zqm-pdp-x5 .zqm-x5-bc-trail .zqm-bc-cur {
    font-size: 11.5px !important;
  }

  /* Single-Column Stacked Hero Shell */
  html body.zqm-pdp-x5 .zqm-pdp-hero-card {
    grid-template-columns: 1fr !important;
    padding: 14px !important;
    gap: 14px !important;
  }
  html body.zqm-pdp-x5 .zqm-pdp-hero-card > .woocommerce-product-gallery {
    padding: 0 0 14px 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #eef2f6 !important;
  }
  html body.zqm-pdp-x5 .zqm-pdp-hero-card .woocommerce-product-gallery__image > a,
  html body.zqm-pdp-x5.zqm-x5-single-img .zqm-pdp-hero-card .woocommerce-product-gallery__image > a {
    height: 244px !important;
    padding: 8px !important;
  }
  html body.zqm-pdp-x5.zqm-x5-single-img .zqm-pdp-hero-card .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
    min-height: 244px !important;
  }
  html body.zqm-pdp-x5 .zqm-pdp-hero-card .zqm-v32-gal-sq {
    top: 4px !important;
    right: 4px !important;
  }
  html body.zqm-pdp-x5 .zqm-pdp-hero-card > .summary.entry-summary {
    padding: 0 !important;
    gap: 10px !important;
  }
  html body.zqm-pdp-x5 .zqm-pdp-hero-card .summary h1.product_title {
    font-size: 19.5px !important;
    line-height: 1.28 !important;
  }
  html body.zqm-pdp-x5 .zqm-x5-sbtn {
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 0 !important;
  }
  html body.zqm-pdp-x5 .zqm-x5-sbtn span {
    display: none !important;
  }
  html body.zqm-pdp-x5 table.zqm-x5-tbl tr.zqm-x5-hero {
    padding: 9.5px 11px 10.5px !important;
  }
  html body.zqm-pdp-x5 table.zqm-x5-tbl tr.zqm-x5-hero td.zqm-x5-tv {
    font-size: 15px !important;
  }
  html body.zqm-pdp-x5 table.zqm-x5-tbl tr.zqm-x5-row {
    padding: 8.5px 11px !important;
    gap: 8px !important;
  }
  html body.zqm-pdp-x5 table.zqm-x5-tbl tr.zqm-x5-row th {
    font-size: 12px !important;
  }
  html body.zqm-pdp-x5 table.zqm-x5-tbl tr.zqm-x5-row td.zqm-x5-tv {
    font-size: 12.6px !important;
  }
  html body.zqm-pdp-x5 .zqm-pdp-hero-card .zqm-rfq {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  html body.zqm-pdp-x5 .zqm-pdp-hero-card .zqm-rfq a.button,
  html body.zqm-pdp-x5 .zqm-pdp-hero-card .zqm-rfq .zqm-v32-gold {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
  html body.zqm-pdp-x5 .zqm-pdp-hero-card .zqm-rfq .zqm-hero-basket-btn {
    flex: 1 1 auto !important;
  }
}

/* --- 7. v4.3.2 Polish: Borderless 02 Overview Prose + 2x2 Swiss Card Grid for 4-Item Lists --- */
html body.zqm-pdp-x5 #tab-description .zqm-overview-card,
html body.zqm-pdp-x5 #tab-description .zqm-auto-overview .zqm-overview-card,
html body.zqm-pdp-x5 .zqm-auto-overview .zqm-overview-card {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 2px 0 4px !important;
  padding-inline: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

html body.zqm-pdp-x5 #tab-description .zqm-overview-card > p,
html body.zqm-pdp-x5 #tab-description .zqm-auto-overview .zqm-overview-card > p,
html body.zqm-pdp-x5 .zqm-auto-overview .zqm-overview-card > p {
  font-size: 14.5px !important;
  line-height: 1.78 !important;
  color: #334155 !important;
  margin: 0 0 10px !important;
}

html body.zqm-pdp-x5 #tab-description .zqm-overview-card > p:last-child,
html body.zqm-pdp-x5 #tab-description .zqm-auto-overview .zqm-overview-card > p:last-child,
html body.zqm-pdp-x5 .zqm-auto-overview .zqm-overview-card > p:last-child {
  margin-bottom: 0 !important;
}

html body.zqm-pdp-x5 #tab-description ul:not([class]):has(> li:nth-child(4):last-child) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  list-style: none !important;
  margin: 12px 0 18px !important;
  padding: 0 !important;
}

html body.zqm-pdp-x5 #tab-description ul:not([class]):has(> li:nth-child(4):last-child) > li {
  background: #ffffff !important;
  border: 1px solid #d5dde7 !important;
  border-radius: 8px !important;
  padding: 13px 16px 13px 28px !important;
  margin: 0 !important;
  font-size: 13.5px !important;
  line-height: 1.66 !important;
  color: #334155 !important;
  position: relative !important;
  box-shadow: none !important;
}

html body.zqm-pdp-x5 #tab-description ul:not([class]):has(> li:nth-child(4):last-child) > li::before {
  content: "" !important;
  position: absolute !important;
  left: 14px !important;
  top: 21px !important;
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
  background: #e5a000 !important;
  transform: none !important;
}

html body.zqm-pdp-x5 #tab-description ul:not([class]):has(> li:nth-child(4):last-child) > li strong:first-child {
  color: #0f1d30 !important;
  font-weight: 800 !important;
}

@media (max-width: 767px) {
  html body.zqm-pdp-x5 #tab-description ul:not([class]):has(> li:nth-child(4):last-child) {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

/* === ZQM_P0_ADV03_ADV06_V440 (Express RFQ Drawer + 390px Sticky Mobile Dock + Mobile Watermark Clearance) === */
html.zqm-xrfq-lock, html.zqm-xrfq-lock body {
  overflow: hidden !important;
}
.zqm-xrfq-bd {
  position: fixed;
  inset: 0;
  z-index: 99980;
  background: rgba(15, 29, 48, 0.56);
  backdrop-filter: blur(2px);
}
.zqm-xrfq-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  z-index: 99990;
  background: #ffffff;
  border-left: 1px solid #cbd5e1;
  box-shadow: -12px 0 36px rgba(15, 29, 48, 0.22);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: "Manrope", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.zqm-xrfq-drawer.is-open {
  transform: translateX(0);
}
.zqm-xrfq-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  background: #0f1d30;
  color: #ffffff;
}
.zqm-xrfq-eye {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffbc28;
  margin-bottom: 2px;
}
.zqm-xrfq-hd h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.zqm-xrfq-x {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  flex: 0 0 32px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent !important;
  color: #ffffff !important;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.zqm-xrfq-x:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}
.zqm-xrfq-form {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.zqm-xrfq-specbox {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px 14px;
  padding: 10px 12px;
  background: #f6f8fb;
  border: 1px solid #d5dde7;
  border-radius: 6px;
}
.zqm-xrfq-specbox span {
  display: block;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}
.zqm-xrfq-specbox strong {
  display: block;
  font-size: 12.6px;
  color: #0f1d30;
  font-weight: 800;
  font-family: ui-monospace, Consolas, monospace;
  margin-top: 2px;
  white-space: nowrap;
}
.zqm-xrfq-guard {
  padding: 7px 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 11.6px;
  line-height: 1.5;
  color: #334155;
}
.zqm-xrfq-row2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.zqm-xrfq-fld {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}
.zqm-xrfq-fld > span,
.zqm-xrfq-lbl {
  font-size: 11.8px;
  font-weight: 700;
  color: #334155;
}
.zqm-xrfq-fld input,
.zqm-xrfq-fld textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 13px;
  color: #0f1d30;
  background: #ffffff;
  font-family: inherit;
}
.zqm-xrfq-fld input:focus,
.zqm-xrfq-fld textarea:focus {
  outline: none;
  border-color: #0f1d30;
}
.zqm-xrfq-wt {
  background: #f6f8fb;
  border: 1px solid #d5dde7;
  border-radius: 4px;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.zqm-xrfq-wt span {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}
.zqm-xrfq-wt strong {
  font-size: 15px;
  font-weight: 800;
  color: #0f1d30;
  font-family: ui-monospace, Consolas, monospace;
  margin-top: 2px;
}
.zqm-xrfq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}
.zqm-xrfq-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  font-size: 11.6px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}
.zqm-xrfq-chip input {
  accent-color: #0f1d30;
  margin: 0;
}
.zqm-xrfq-status {
  font-size: 12.2px;
  font-weight: 700;
  min-height: 16px;
  color: #334155;
}
.zqm-xrfq-status.is-ok { color: #047857; }
.zqm-xrfq-status.is-err { color: #b91c1c; }
.zqm-xrfq-submit {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 5px;
  background: #ffbc28;
  color: #0f1d30;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.zqm-xrfq-submit:hover { background: #f3b11b; }
.zqm-xrfq-submit:disabled { opacity: 0.65; cursor: wait; }
.zqm-xrfq-ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #eef2f6;
  font-size: 12px;
}
.zqm-xrfq-ft a {
  color: #162a44;
  font-weight: 700;
  text-decoration: none;
}
.zqm-xrfq-ft a:hover { color: #0f1d30; }

/* ADV-06: 390px Sticky Mobile Single-Row RFQ Dock (0 bytes desktop, 0 CLS) */
.zqm-mob-dock {
  display: none;
}
@media (max-width: 767px) {
  .zqm-mob-dock {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9980;
    height: calc(54px + env(safe-area-inset-bottom, 0px));
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    border-top: 1px solid #d5dde7;
    box-shadow: 0 -4px 16px rgba(15, 29, 48, 0.09);
    transform: translateY(105%);
    transition: transform 0.2s ease;
  }
  .zqm-mob-dock.is-show {
    transform: translateY(0);
  }
  body.zqm-mob-dock-on #ast-scroll-top,
  body.zqm-mob-dock-on .zqm-btt,
  body.zqm-mob-dock-on .zqm-scroll-top {
    bottom: 68px !important;
  }
  .zqm-md-meta {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
  }
  .zqm-md-mod {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 13px;
    font-weight: 800;
    color: #0f1d30;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .zqm-md-dim {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .zqm-md-acts {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
  }
  .zqm-md-gold {
    height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 5px;
    background: #ffbc28;
    color: #0f1d30;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
  }
  .zqm-md-wa {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
  }

  /* ADV-06: Mobile 390px Watermark Safe Clearance (44x33px + top breathing padding, zero collision with bearing body) */
  html body.zqm-pdp-x5 .zqm-pdp-hero-card .woocommerce-product-gallery__image > a,
  html body.zqm-pdp-x5.zqm-x5-single-img .zqm-pdp-hero-card .woocommerce-product-gallery__image > a,
  html body.zqm-i18n-pdp-x5 .zqm-pdp-media .zqm-pdp-stage {
    padding-top: 34px !important;
  }
  html body.single-product.zqm-pdp-x5 .zqm-pdp-hero-card .woocommerce-product-gallery__image::after,
  html body.zqm-pdp-x5 .zqm-pdp-hero-card .woocommerce-product-gallery__image::after,
  html body.zqm-i18n-pdp-x5 .zqm-pdp-media .zqm-pdp-stage::after {
    width: 44px !important;
    height: 33px !important;
    max-width: 44px !important;
    max-height: 33px !important;
    top: 6px !important;
    left: 8px !important;
    opacity: 0.14 !important;
    background-size: contain !important;
  }
}

/* --- 8. v4.3.3 High-Specificity Gallery Override (Beats product-page.v4.css 8-class rule: ZERO bottom clip + 12px tight CTA!) --- */
@media (min-width: 1025px) {
  html body.single-product.zqm-pdp-v25.zqm-hero-v32.zqm-hero-gal-compact.zqm-pdp-x5 div.product .zqm-pdp-hero-card .woocommerce-product-gallery > .flex-viewport,
  html body.single-product.zqm-pdp-v25.zqm-hero-v32.zqm-hero-gal-compact.zqm-pdp-x5 div.product .zqm-pdp-hero-card .woocommerce-product-gallery .woocommerce-product-gallery__image,
  html body.single-product.zqm-pdp-v25.zqm-hero-v32.zqm-hero-gal-compact.zqm-pdp-x5 div.product .zqm-pdp-hero-card .woocommerce-product-gallery .woocommerce-product-gallery__image > a {
    height: 312px !important;
    min-height: 312px !important;
    max-height: 312px !important;
    box-sizing: border-box !important;
  }
  html body.single-product.zqm-pdp-v25.zqm-hero-v32.zqm-hero-gal-compact.zqm-pdp-x5 div.product .zqm-pdp-hero-card .woocommerce-product-gallery .woocommerce-product-gallery__image > a > img,
  html body.single-product.zqm-pdp-v25.zqm-hero-v32.zqm-hero-gal-compact.zqm-pdp-x5 div.product .zqm-pdp-hero-card .woocommerce-product-gallery .woocommerce-product-gallery__image img.wp-post-image {
    width: auto !important;
    height: auto !important;
    max-width: 90% !important;
    max-height: 290px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }
  html body.single-product.zqm-pdp-v25.zqm-hero-v32.zqm-hero-gal-compact.zqm-pdp-x5.zqm-x5-single-img div.product .zqm-pdp-hero-card .woocommerce-product-gallery .woocommerce-product-gallery__image,
  html body.single-product.zqm-pdp-v25.zqm-hero-v32.zqm-hero-gal-compact.zqm-pdp-x5.zqm-x5-single-img div.product .zqm-pdp-hero-card .woocommerce-product-gallery .woocommerce-product-gallery__image > a {
    height: 336px !important;
    min-height: 336px !important;
    max-height: 336px !important;
  }
  html body.single-product.zqm-pdp-v25.zqm-hero-v32.zqm-hero-gal-compact.zqm-pdp-x5.zqm-x5-single-img div.product .zqm-pdp-hero-card .woocommerce-product-gallery .woocommerce-product-gallery__image > a > img,
  html body.single-product.zqm-pdp-v25.zqm-hero-v32.zqm-hero-gal-compact.zqm-pdp-x5.zqm-x5-single-img div.product .zqm-pdp-hero-card .woocommerce-product-gallery .woocommerce-product-gallery__image img.wp-post-image {
    max-height: 312px !important;
  }
}
