/* ==========================================================================
   ZG Product Detail — interactive technical page
   Namespace: .zgpd*   (design tokens mirror the site's .zg system)
   ========================================================================== */

.zgpd-wrap {
  --zgpd-blue: #0b3d64;
  --zgpd-blue2: #125a94;
  --zgpd-blue3: #1d7ac4;
  --zgpd-orange: #e8892b;
  --zgpd-line: #dce7f0;
  --zgpd-bg: #f5f9fc;
  --zgpd-text: #1c2b3a;
  --zgpd-mute: #5d7386;
  --zgpd-radius: 10px;
  color: var(--zgpd-text);
  margin: 0 0 10px;
}

/* ---------------------------------------------------------------- key spec */
.zgpd-keyspec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--zgpd-line);
  border: 1px solid var(--zgpd-line);
  border-radius: var(--zgpd-radius);
  overflow: hidden;
  margin: 0 0 22px;
}
.zgpd-key {
  background: var(--zgpd-bg);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.zgpd-key-k {
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--zgpd-mute);
  font-weight: 700;
}
.zgpd-key-v {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--zgpd-blue);
  line-height: 1.35;
  word-break: break-word;
}

/* ------------------------------------------------------------------ intro */
.zgpd-intro { margin: 0 0 20px; }
.zgpd-tagline {
  font-size: 15px;
  font-weight: 700;
  color: var(--zgpd-orange);
  margin: 0 0 8px;
  letter-spacing: .01em;
}
.zgpd-overview {
  font-size: 15px;
  line-height: 1.72;
  margin: 0;
  color: #33475b;
}

/* ------------------------------------------------------------------- tabs */
.zgpd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 2px solid var(--zgpd-line);
  margin: 0 0 22px;
  padding-bottom: 0;
}
.zgpd-tab {
  appearance: none;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  color: var(--zgpd-mute);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: color .16s, background .16s, border-color .16s;
  white-space: nowrap;
}
.zgpd-tab:hover { color: var(--zgpd-blue); background: var(--zgpd-bg); }
.zgpd-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--zgpd-blue), var(--zgpd-blue3));
  border-color: var(--zgpd-blue);
}
.zgpd-tab:focus-visible { outline: 2px solid var(--zgpd-orange); outline-offset: 2px; }

/* ----------------------------------------------------------------- panels */
.zgpd-panel { animation: zgpdFade .22s ease both; }
.zgpd-panel[hidden] { display: none; }
@keyframes zgpdFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.zgpd-h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--zgpd-blue);
  margin: 22px 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--zgpd-orange);
}
.zgpd-h4:first-child { margin-top: 0; }
.zgpd-lead {
  font-size: 14.5px;
  line-height: 1.7;
  color: #33475b;
  margin: 0 0 16px;
}
.zgpd-note {
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--zgpd-mute);
  background: var(--zgpd-bg);
  border-left: 3px solid var(--zgpd-blue3);
  padding: 12px 14px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0 0;
}

/* ------------------------------------------------------------------- list */
.zgpd-list { margin: 0; padding: 0; list-style: none; }
.zgpd-list li {
  position: relative;
  padding: 7px 0 7px 24px;
  font-size: 14.2px;
  line-height: 1.62;
  border-bottom: 1px dashed var(--zgpd-line);
}
.zgpd-list li:last-child { border-bottom: 0; }
.zgpd-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--zgpd-orange);
}

/* ------------------------------------------------------------------ table */
.zgpd-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 14px;
  border: 1px solid var(--zgpd-line);
  border-radius: var(--zgpd-radius);
  overflow: hidden;
}
.zgpd-table th,
.zgpd-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--zgpd-line);
  text-align: left;
  vertical-align: top;
}
.zgpd-table th {
  width: 34%;
  background: var(--zgpd-bg);
  color: var(--zgpd-blue);
  font-weight: 700;
  font-size: 13.2px;
}
.zgpd-table td { color: #33475b; }
.zgpd-table tr:last-child th,
.zgpd-table tr:last-child td { border-bottom: 0; }
.zgpd-table tr:hover td { background: #fbfdff; }
.zgpd-table-alt th { background: #eef5fb; }

/* ------------------------------------------------------------------ cards */
.zgpd-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.zgpd-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--zgpd-line);
  border-radius: var(--zgpd-radius);
  padding: 14px;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.zgpd-card:hover {
  border-color: var(--zgpd-blue3);
  box-shadow: 0 6px 18px rgba(11, 61, 100, .09);
  transform: translateY(-2px);
}
.zgpd-card-n {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--zgpd-blue), var(--zgpd-blue3));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.zgpd-card-t { font-size: 13.8px; line-height: 1.55; color: #33475b; }

/* --------------------------------------------------------------- materials */
.zgpd-matgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.zgpd-mat {
  border: 1px solid var(--zgpd-line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--zgpd-bg);
}
.zgpd-mat-k {
  display: block;
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--zgpd-orange);
  font-weight: 700;
  margin-bottom: 4px;
}
.zgpd-mat-v { font-size: 13.4px; color: #33475b; line-height: 1.55; }

.zgpd-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; }
.zgpd-tags li {
  font-size: 12.4px;
  font-weight: 600;
  color: var(--zgpd-blue);
  background: #eaf3fb;
  border: 1px solid #cfe3f4;
  border-radius: 999px;
  padding: 5px 13px;
}

/* ------------------------------------------------------------ applications */
.zgpd-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.zgpd-app {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.6;
  color: #33475b;
  border-left: 3px solid var(--zgpd-blue3);
  background: var(--zgpd-bg);
  border-radius: 0 8px 8px 0;
  padding: 11px 14px;
}
.zgpd-app-ic { display: none; }

/* -------------------------------------------------------------------- faq */
.zgpd-faq {
  border: 1px solid var(--zgpd-line);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
}
.zgpd-faq summary {
  cursor: pointer;
  padding: 13px 16px;
  font-weight: 600;
  font-size: 14.4px;
  color: var(--zgpd-blue);
  list-style: none;
  position: relative;
  padding-right: 40px;
}
.zgpd-faq summary::-webkit-details-marker { display: none; }
.zgpd-faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--zgpd-orange);
  font-weight: 400;
}
.zgpd-faq[open] summary { border-bottom: 1px solid var(--zgpd-line); }
.zgpd-faq[open] summary::after { content: "\2212"; }
.zgpd-faq-a { padding: 13px 16px; font-size: 14px; line-height: 1.7; color: #33475b; }

/* ------------------------------------------------------------------- form */
.zgpd-form {
  background: var(--zgpd-bg);
  border: 1px solid var(--zgpd-line);
  border-radius: var(--zgpd-radius);
  padding: 18px;
}
.zgpd-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 12px; }
.zgpd-lbl { display: flex; flex-direction: column; gap: 5px; font-size: 12.4px; font-weight: 700; color: var(--zgpd-blue); }
.zgpd-lbl-full { grid-column: 1 / -1; }
.zgpd-lbl input,
.zgpd-lbl textarea {
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--zgpd-text);
  padding: 9px 12px;
  border: 1px solid var(--zgpd-line);
  border-radius: 7px;
  background: #fff;
  transition: border-color .16s, box-shadow .16s;
}
.zgpd-lbl input:focus,
.zgpd-lbl textarea:focus {
  outline: none;
  border-color: var(--zgpd-blue3);
  box-shadow: 0 0 0 3px rgba(29, 122, 196, .14);
}
.zgpd-formfoot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 4px; }
.zgpd-submit {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 14.5px;
  color: #fff;
  padding: 12px 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--zgpd-orange), #f2a154);
  transition: transform .16s, box-shadow .16s;
}
.zgpd-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(232, 137, 43, .3); }
.zgpd-submit:disabled { opacity: .6; cursor: progress; transform: none; }
.zgpd-formnote { font-size: 12.2px; color: var(--zgpd-mute); }
.zgpd-formmsg { font-size: 13.4px; margin-top: 12px; min-height: 20px; font-weight: 600; }
.zgpd-formmsg.is-ok { color: #1c7d4d; }
.zgpd-formmsg.is-err { color: #b3261e; }

/* ------------------------------------------------------------ sticky action */
.zgpd-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 11px 18px;
  background: rgba(11, 61, 100, .97);
  color: #fff;
  transform: translateY(110%);
  transition: transform .28s ease;
  box-shadow: 0 -6px 22px rgba(11, 61, 100, .22);
}
.zgpd-sticky.is-on { transform: none; }
.zgpd-sticky-t { font-size: 13.5px; font-weight: 600; }
.zgpd-sticky-t b { color: #f5b978; }
.zgpd-sticky button {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 13.5px;
  border-radius: 6px;
  padding: 9px 20px;
}
.zgpd-sticky-q { background: var(--zgpd-orange); color: #fff; }
.zgpd-sticky-s { background: rgba(255, 255, 255, .14); color: #fff; }
.zgpd-sticky button:hover { filter: brightness(1.08); }

/* -------------------------------------------------------------- responsive */
@media (max-width: 782px) {
  .zgpd-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .zgpd-tab { flex: 0 0 auto; font-size: 12.6px; padding: 9px 12px; }
  .zgpd-table th { width: 40%; }
  .zgpd-table th, .zgpd-table td { padding: 9px 10px; font-size: 13px; }
  .zgpd-keyspec { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
}
@media (max-width: 480px) {
  .zgpd-table, .zgpd-table tbody, .zgpd-table tr, .zgpd-table th, .zgpd-table td { display: block; width: 100%; }
  .zgpd-table th { border-bottom: 0; padding-bottom: 2px; }
}

/* ==========================================================================
   PRODUCT PAGE V2 — hero, jump nav, gallery, related
   ========================================================================== */

/* --------------------------------------------------------------- hero */
.zgh-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--zgpd-line);
  border-radius: 14px;
  padding: 24px;
  margin: 0 0 18px;
}
.zgh-media { position: relative; }
.zgh-stage {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--zgpd-bg);
  border: 1px solid var(--zgpd-line);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}
.zgh-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}
.zgh-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(11, 61, 100, .88);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  pointer-events: none;
}
.zgh-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.zgh-thumb {
  width: 74px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--zgpd-line);
  background: #fff;
  padding: 0;
  cursor: pointer;
  transition: border-color .16s, transform .16s;
}
.zgh-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zgh-thumb:hover { transform: translateY(-2px); border-color: var(--zgpd-blue3); }
.zgh-thumb.is-on { border-color: var(--zgpd-orange); }

.zgh-info { padding-top: 4px; }
.zgh-cat {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--zgpd-orange);
  margin-bottom: 10px;
}
.zgh-title {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -.4px;
  color: var(--zgpd-text);
}
.zgh-tag {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.65;
  color: #4a6076;
}
.zgh-keys {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--zgpd-line);
  border: 1px solid var(--zgpd-line);
  border-radius: 10px;
  overflow: hidden;
}
.zgh-keys li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 14px;
  padding: 10px 14px;
  background: #fff;
  font-size: 13.4px;
}
.zgh-key-k { color: var(--zgpd-mute); font-weight: 600; }
.zgh-key-v { color: var(--zgpd-text); font-weight: 600; }
.zgh-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.zgh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13.6px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 9px;
  text-decoration: none;
  transition: transform .16s, filter .16s, box-shadow .16s;
}
.zgh-btn-p {
  background: linear-gradient(120deg, var(--zgpd-blue2), var(--zgpd-blue3));
  color: #fff;
  box-shadow: 0 8px 20px rgba(18, 90, 148, .22);
}
.zgh-btn-p:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.07); }
.zgh-btn-s {
  background: #fff;
  border: 1px solid var(--zgpd-line);
  color: var(--zgpd-blue);
}
.zgh-btn-s:hover { border-color: var(--zgpd-blue3); color: var(--zgpd-blue3); transform: translateY(-2px); }
.zgh-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.zgh-badges li {
  font-size: 11.8px;
  font-weight: 600;
  color: var(--zgpd-blue2);
  background: var(--zgpd-bg);
  border: 1px solid var(--zgpd-line);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ----------------------------------------------------------- jump nav */
.zgh-nav {
  position: sticky;
  top: 84px;
  z-index: 30;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  border: 1px solid var(--zgpd-line);
  border-radius: 999px;
  padding: 5px;
  margin: 0 0 18px;
  box-shadow: 0 4px 16px rgba(11, 61, 100, .08);
}
.zgh-nav a {
  font-size: 12.8px;
  font-weight: 600;
  color: var(--zgpd-mute);
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 999px;
  transition: all .16s;
  white-space: nowrap;
}
.zgh-nav a:hover { background: var(--zgpd-bg); color: var(--zgpd-blue3); }
.zgh-nav a.is-on { background: var(--zgpd-blue); color: #fff; }

/* ------------------------------------------------------------ gallery */
.zgh-gallery { margin: 26px 0 0; }
.zgh-h3 {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.2px;
  color: var(--zgpd-text);
}
.zgh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.zgh-shot {
  border: 1px solid var(--zgpd-line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  padding: 0;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  transition: transform .18s, box-shadow .18s;
}
.zgh-shot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.zgh-shot:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(11, 61, 100, .13); }

/* ------------------------------------------------------------ related */
.zgh-related { margin: 30px 0 0; }
.zgh-relgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 14px;
}
.zgh-rel {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--zgpd-line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.zgh-rel:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(11, 61, 100, .13);
  border-color: var(--zgpd-blue3);
}
.zgh-rel-img {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--zgpd-bg);
  overflow: hidden;
}
.zgh-rel-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.zgh-rel:hover .zgh-rel-img img { transform: scale(1.06); }
.zgh-rel-cat {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 700;
  color: var(--zgpd-orange);
  padding: 11px 14px 0;
}
.zgh-rel-t {
  font-size: 14px;
  font-weight: 700;
  color: var(--zgpd-text);
  line-height: 1.4;
  padding: 5px 14px 0;
}
.zgh-rel-go {
  font-size: 12.2px;
  font-weight: 700;
  color: var(--zgpd-blue3);
  padding: 8px 14px 13px;
}

/* ------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .zgh-hero { grid-template-columns: 1fr; gap: 22px; padding: 18px; }
  .zgh-title { font-size: 25px; }
  .zgh-keys li { grid-template-columns: 140px 1fr; gap: 10px; font-size: 12.8px; }
  .zgh-nav { top: 70px; border-radius: 12px; }
  .zgh-nav a { padding: 7px 12px; font-size: 12.2px; }
}
@media (max-width: 620px) {
  .zgh-hero { padding: 14px; border-radius: 11px; }
  .zgh-title { font-size: 21px; }
  .zgh-tag { font-size: 14px; }
  .zgh-keys li { grid-template-columns: 1fr; gap: 2px; }
  .zgh-key-k { font-size: 11.5px; }
  .zgh-btn { flex: 1 1 100%; }
  .zgh-nav { overflow-x: auto; flex-wrap: nowrap; }
}

/* ==========================================================================
   PRODUCT PAGE — WooCommerce chrome cleanup + shared lightbox
   ========================================================================== */

/* The WooCommerce gallery is a 300px thumbnail in a narrow column; the new
   hero carries the full-resolution image instead, so the old one is hidden
   to avoid showing the same product twice at two different sizes. */
body.zgpd-page .woocommerce-product-gallery { display: none; }
/* WooCommerce floats the summary column to the right at 48% width.
   It has to become a full-width header above our hero instead, so the
   rule has to out-specify ".woocommerce div.product div.summary". */
body.zgpd-page div.product div.summary.entry-summary {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  display: block;
  margin: 0 0 18px;
}
body.zgpd-page .woocommerce-product-details__short-description { display: none; }
/* The technical block is lifted out of the WooCommerce tabs, so the
   leftover tab strip is empty - hide it once the move has happened.
   WooCommerce's own rule (.woocommerce-js div.product .woocommerce-tabs)
   has the SAME specificity, so !important is required to win.
   Without JavaScript the body never gets .zgpd-moved, so the content
   still shows inside the Description tab as a fallback. */
body.zgpd-moved .woocommerce-tabs.wc-tabs-wrapper { display: none !important; }
/* the stock "related products" grid is replaced by our own image-led one.
   WooCommerce's own rule (.woocommerce-js div.product .related.products)
   is more specific, so match it and win. */
body.zgpd-page div.product section.related.products,
body.zgpd-page div.product .related.products { display: none !important; }
/* The theme reserves ~200px inside the WooCommerce container for a
   left sidebar that this template does not actually render, which squeezed
   the product content down to 640px. Give the page the full width. */
body.zgpd-page .ast-container { max-width: 1400px; }
body.zgpd-page .content-area.primary,
body.zgpd-page #primary,
body.zgpd-page #main { width: 100% !important; max-width: none !important; float: none !important; }
body.zgpd-page .ast-woocommerce-container {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.zgpd-page .ast-woocommerce-container .ast-article-single {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.zgpd-page #secondary { display: none !important; }

/* The theme's entry header already shows the H1 and a short breadcrumb,
   so the WooCommerce summary only repeats them. Hide the duplicates and
   keep the category links, which are useful. */
body.zgpd-page .summary.entry-summary .product_title,
body.zgpd-page .summary.entry-summary .woocommerce-breadcrumb { display: none; }
body.zgpd-page .summary.entry-summary { margin-bottom: 14px; }
/* the page H1 keeps the site's dark heading colour, not the link purple */
body.zgpd-page .entry-header .entry-title,
body.zgpd-page h1.product_title,
body.zgpd-page h1.entry-title {
  color: var(--zgpd-text) !important;
  font-weight: 800;
  letter-spacing: -.3px;
}
body.zgpd-page .entry-header { margin-bottom: 14px; }
body.zgpd-page .summary.entry-summary .woocommerce-breadcrumb { margin-bottom: 2px; }
body.zgpd-page .summary.entry-summary .single-product-category { font-size: 12.5px; }

/* ---------------------------------------------------------- lightbox */
.zgx-lb {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.zgx-lb[hidden] { display: none; }
.zgx-lb-bg { position: absolute; inset: 0; background: rgba(8, 26, 43, .93); }
.zgx-lb-fig {
  position: relative;
  margin: 0;
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.zgx-lb-fig img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.zgx-lb-fig figcaption {
  color: rgba(255, 255, 255, .85);
  font-size: 13.5px;
  text-align: center;
}
.zgx-lb-x {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #12324c;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  z-index: 2;
}
.zgx-lb-x:hover { background: var(--zgpd-orange); color: #fff; }

/* ==========================================================================
   PRODUCT PAGE V3 — construction configurator, spec filter, actions
   ========================================================================== */

/* ghost buttons in the hero */
.zgh-btn-ghost {
  background: transparent;
  border: 1px dashed var(--zgpd-line);
  color: var(--zgpd-mute);
  cursor: pointer;
}
.zgh-btn-ghost:hover { border-color: var(--zgpd-blue3); color: var(--zgpd-blue3); }
.zgh-btn-ghost.is-done { border-color: #1c7a4a; color: #1c7a4a; border-style: solid; }

/* ---------------------------------------------------- construction block */
.zgpd-ctor {
  background: #fff;
  border: 1px solid var(--zgpd-line);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 0 0 22px;
}
.zgpd-ctor-h h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  color: var(--zgpd-text);
}
.zgpd-ctor-h p {
  margin: 0 0 16px;
  font-size: 13.4px;
  line-height: 1.6;
  color: var(--zgpd-mute);
  max-width: 760px;
}
.zgpd-mats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}
.zgpd-mat {
  text-transform: none;
  letter-spacing: normal;
  text-align: left;
  border: 1px solid var(--zgpd-line);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  transition: all .16s;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.zgpd-mat:hover { border-color: var(--zgpd-blue3); background: #f7fbfe; }
.zgpd-mat.is-on { border-color: var(--zgpd-orange); background: #fff6ea; }
.zgpd-mat-n { font-size: 13px; font-weight: 700; color: var(--zgpd-text); line-height: 1.3; }
.zgpd-mat-s { font-size: 11.2px; color: var(--zgpd-mute); }

.zgpd-matinfo {
  background: var(--zgpd-bg);
  border: 1px solid var(--zgpd-line);
  border-radius: 10px;
  padding: 14px 16px;
}
.zgpd-matinfo-g {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 9px;
  margin-bottom: 11px;
}
.zgpd-matinfo-g div {
  background: #fff;
  border: 1px solid var(--zgpd-line);
  border-radius: 8px;
  padding: 8px 11px;
}
.zgpd-matinfo-g span {
  display: block;
  font-size: 10.4px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--zgpd-mute);
  font-weight: 700;
  margin-bottom: 3px;
}
.zgpd-matinfo-g b { font-size: 12.8px; color: var(--zgpd-text); }
.zgpd-matinfo-note { font-size: 12.6px; line-height: 1.6; color: #4c6178; margin: 0 0 6px; }
.zgpd-matinfo-use { font-size: 12.4px; color: var(--zgpd-blue2); font-weight: 600; margin: 0; }
.zgpd-ctor-f {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}
.zgpd-linkbtn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--zgpd-blue3);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.zgpd-linkbtn:hover { color: var(--zgpd-orange); }
.zgpd-ctor-note { font-size: 12.2px; color: var(--zgpd-mute); }

/* rows that the chosen construction changes */
.zgpd-table-filterable tr.is-ctor { background: #fffaf3; }

/* --------------------------------------------------------- spec filter */
.zgpd-specfilter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.zgpd-specfilter input {
  flex: 1 1 280px;
  font: inherit;
  font-size: 13.4px;
  padding: 9px 13px;
  border: 1px solid var(--zgpd-line);
  border-radius: 999px;
  background: #fff;
  color: var(--zgpd-text);
  min-width: 0;
}
.zgpd-specfilter input:focus {
  outline: none;
  border-color: var(--zgpd-blue3);
  box-shadow: 0 0 0 3px rgba(29, 122, 196, .13);
}
.zgpd-specfilter-n {
  font-size: 12px;
  font-weight: 600;
  color: var(--zgpd-mute);
  white-space: nowrap;
}

/* ------------------------------------------------------- print spec sheet */
@media print {
  body.zgpd-page .site-header,
  body.zgpd-page .site-footer,
  body.zgpd-page .zgh-nav,
  body.zgpd-page .zgh-cta,
  body.zgpd-page .zgh-badges,
  body.zgpd-page .zgpd-sticky,
  body.zgpd-page .zgs-3d,
  body.zgpd-page .zgs-calc,
  body.zgpd-page .zgh-gallery,
  body.zgpd-page .zgh-related,
  body.zgpd-page .zgpd-tabs,
  body.zgpd-page .zgpd-form,
  body.zgpd-page .zgpd-ctor-f,
  body.zgpd-page .zgpd-specfilter {
    display: none !important;
  }
  body.zgpd-page .ast-container { max-width: 100% !important; }
  body.zgpd-page .entry-content { padding: 0 !important; }
  body.zgpd-page .zgpd-wrap { max-width: 100% !important; }
  body.zgpd-page .zgh-hero {
    grid-template-columns: 1fr;
    border: 0;
    padding: 0 0 14px;
  }
  body.zgpd-page .zgh-stage { max-width: 340px; }
  body.zgpd-page .zgpd-panel[hidden] { display: block !important; }
  body.zgpd-page .zgpd-panel {
    page-break-inside: avoid;
    border: 0;
    padding: 0;
  }
  body.zgpd-page .zgpd-table { font-size: 10.5pt; }
  body.zgpd-page a[href]::after { content: ""; }
}

/* ==========================================================================
   PRODUCT PAGE V4 — sectioned layout + new interactions
   The 3D viewer and the duty calculator now live on /sizing-tools/ only.
   ========================================================================== */

/* ------------------------------------------------------------ sections */
.zgpd-sec {
  background: #fff;
  border: 1px solid var(--zgpd-line);
  border-radius: 14px;
  padding: 26px 30px;
  margin: 0 0 20px;
  scroll-margin-top: 92px;
}
.zgpd-sec-h {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--zgpd-line);
}
.zgpd-sec-n {
  font-size: 12px;
  font-weight: 800;
  color: var(--zgpd-orange);
  letter-spacing: .08em;
  background: #fff6ea;
  border-radius: 6px;
  padding: 4px 8px;
  flex: 0 0 auto;
}
.zgpd-sec-t {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.3px;
  color: var(--zgpd-text);
}
.zgpd-sec-b > *:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- at a glance */
.zgpd-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.zgpd-glance-c {
  background: var(--zgpd-bg);
  border: 1px solid var(--zgpd-line);
  border-radius: 10px;
  padding: 13px 15px;
}
.zgpd-glance-k {
  display: block;
  font-size: 10.6px;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 700;
  color: var(--zgpd-mute);
  margin-bottom: 5px;
}
.zgpd-glance-v { font-size: 14px; font-weight: 700; color: var(--zgpd-text); line-height: 1.35; }

/* ---------------------------------------------- key spec copy affordance */
.zgh-keys li { position: relative; }
.zgh-key-copy {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid var(--zgpd-line);
  border-radius: 6px;
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--zgpd-mute);
  padding: 3px 8px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .16s, color .16s, border-color .16s;
}
.zgh-keys li:hover .zgh-key-copy { opacity: 1; }
.zgh-key-copy:hover { color: var(--zgpd-blue3); border-color: var(--zgpd-blue3); }
.zgh-key-copy.is-done { opacity: 1; color: #1c7a4a; border-color: #a8d8bf; }

/* ----------------------------------------------- application cross-link */
.zgpd-apps-link { display: flex; flex-wrap: wrap; gap: 9px; }
.zgpd-apps-link .zgpd-app {
  border: 1px solid var(--zgpd-line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #3d536b;
  transition: all .16s;
  text-align: left;
}
.zgpd-apps-link .zgpd-app:hover { border-color: var(--zgpd-blue3); color: var(--zgpd-blue3); transform: translateY(-1px); }
.zgpd-apps-link .zgpd-app.is-on {
  background: var(--zgpd-blue);
  border-color: var(--zgpd-blue);
  color: #fff;
}
.zgpd-apps-link .zgpd-app-ic { display: none; }

/* ------------------------------------------- material suitability states */
.zgpd-mat.is-fit {
  border-color: #8ec9a8;
  background: #f1faf4;
}
.zgpd-mat.is-fit::after {
  content: "\2713";
  position: absolute;
  top: 7px;
  right: 9px;
  font-size: 12px;
  color: #1c7a4a;
  font-weight: 800;
}
.zgpd-mat { position: relative; }
.zgpd-matinfo-use.is-ok { color: #1c7a4a; }
.zgpd-matinfo-use.is-warn { color: #b3461c; }

/* ----------------------------------------------- attach spec to enquiry */
.zgpd-attach {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.6px;
  color: var(--zgpd-mute);
  margin-bottom: 12px;
  cursor: pointer;
}
.zgpd-attach input { accent-color: var(--zgpd-blue3); width: 15px; height: 15px; cursor: pointer; }

/* --------------------------------------------- nav: scroll-spy chips */
.zgh-nav { overflow-x: auto; scrollbar-width: none; }
.zgh-nav::-webkit-scrollbar { display: none; }
.zgh-nav a { flex: 0 0 auto; }

/* -------------------------------------------------- print: all sections */
@media print {
  body.zgpd-page .zgpd-sec { border: 0; padding: 0 0 10px; page-break-inside: avoid; }
  body.zgpd-page .zgpd-sec-h { border-bottom: 1px solid #ccc; }
  body.zgpd-page .zgpd-key-copy { display: none !important; }
  body.zgpd-page .zgpd-apps-link .zgpd-app { border: 0; padding: 2px 0; }
  body.zgpd-page .zgh-thumbs { display: none !important; }
}

@media (max-width: 782px) {
  .zgpd-sec { padding: 20px 16px; }
  .zgpd-sec-t { font-size: 17px; }
  .zgh-key-copy { opacity: 1; }
}

/* ------------------------------------------- attached spec preview */
.zgpd-attachview {
  margin: -4px 0 14px;
}
.zgpd-attachview summary {
  font-size: 12.2px;
  font-weight: 600;
  color: var(--zgpd-blue3);
  cursor: pointer;
  list-style: none;
}
.zgpd-attachview summary::-webkit-details-marker { display: none; }
.zgpd-attachview summary::before { content: "▸ "; }
.zgpd-attachview[open] summary::before { content: "▾ "; }
.zgpd-attachview pre {
  margin: 9px 0 0;
  background: var(--zgpd-bg);
  border: 1px solid var(--zgpd-line);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  font-size: 11.8px;
  line-height: 1.6;
  color: #45596f;
  white-space: pre-wrap;
  max-height: 240px;
  overflow: auto;
}

/* --------------------------------- material states for the service pick */
.zgpd-mat.is-avoid {
  border-color: #e6bda8;
  background: #fdf5f1;
}
.zgpd-mat.is-avoid::after {
  content: "\2715";
  position: absolute;
  top: 7px;
  right: 9px;
  font-size: 12px;
  color: #b3461c;
  font-weight: 800;
}
.zgpd-matinfo-use.is-mid { color: var(--zgpd-mute); }
.zgpd-matinfo-use b { font-weight: 700; }

/* ==========================================================================
   PRODUCT PAGE V5 — the top of the page
   The theme printed the title, a breadcrumb, a 268px gap and a row of bare
   category links before the hero - and the title appeared twice. Everything
   is folded into one organised hero instead.
   ========================================================================== */

/* no gap under the header */
body.zgpd-page .content-area.primary,
body.zgpd-page #primary,
body.zgpd-page #main { margin-top: 0 !important; }
body.zgpd-page .ast-woocommerce-container { padding-top: 0 !important; }
body.zgpd-page .ast-article-single { padding-top: 0 !important; }
body.zgpd-page .entry-content { padding-top: 0 !important; }

/* the theme's own entry header is redundant - the hero carries the title */
body.zgpd-page .entry-header { display: none; }

/* the WooCommerce summary is reduced to the breadcrumb and the category
   links, both of which are moved into the hero by the script */
body.zgpd-page div.product div.summary.entry-summary {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  display: block;
  margin: 0;
}
body.zgpd-page .summary.entry-summary .product_title,
body.zgpd-page .summary.entry-summary .woocommerce-product-details__short-description {
  display: none;
}

/* ------------------------------------------------------ hero top block */
.zgh-crumbs {
  font-size: 12.4px;
  color: var(--zgpd-mute);
  margin-bottom: 12px;
  line-height: 1.5;
}
.zgh-crumbs:empty { display: none; }
.zgh-crumbs a { color: var(--zgpd-mute); text-decoration: none; }
.zgh-crumbs a:hover { color: var(--zgpd-blue3); text-decoration: underline; }
.zgh-crumbs .sep { opacity: .55; padding: 0 5px; }
.zgh-crumbs .cur { color: var(--zgpd-text); font-weight: 600; }

.zgh-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.zgh-chips:empty { display: none; }
.zgh-chips a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.6px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--zgpd-blue2);
  background: var(--zgpd-bg);
  border: 1px solid var(--zgpd-line);
  border-radius: 999px;
  padding: 5px 12px;
  text-decoration: none;
  transition: all .16s;
}
.zgh-chips a::before { content: "#"; opacity: .5; }
.zgh-chips a:hover {
  background: var(--zgpd-blue);
  border-color: var(--zgpd-blue);
  color: #fff;
  transform: translateY(-1px);
}
.zgh-chips a:hover::before { opacity: .8; }

/* the hero title is the page H1 */
.zgh-title { margin: 0 0 10px; }
.zgh-model {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--zgpd-mute);
  border: 1px solid var(--zgpd-line);
  border-radius: 6px;
  padding: 3px 9px;
  margin-bottom: 12px;
}

/* ------------------------------------------- zoom icon as an SVG */
.zgh-zoom svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  display: block;
}

/* Keep the four hero actions on one tidy row where there is room. */
.zgh-cta { gap: 8px; }
.zgh-btn { padding: 11px 18px; }
.zgh-btn-ghost { padding: 10px 15px; }
@media (max-width: 1400px) {
  .zgh-btn { padding: 11px 15px; font-size: 13px; }
}
