.pps-page { max-width: 1080px; margin: 0 auto; overflow-wrap: anywhere; }
.pps-page img { max-width: 100%; height: auto; }
.pps-spec { width: 100%; border-collapse: collapse; }
.pps-spec th, .pps-spec td { text-align: left; padding: 8px; border-bottom: 1px solid #e5e7eb; }
.pps-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.pps-gallery figure { margin: 0; }
.pps-gallery figcaption { font-size: 14px; }
@media (max-width: 720px) {
  .pps-spec, .pps-spec tbody, .pps-spec tr, .pps-spec th, .pps-spec td { display: block; width: 100%; }
}

/* Applies to every WooCommerce product page. */
body.single-product div.product > .product-entry-wrapper {
  grid-column: 1 / -1;
  width: 100% !important;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
  gap: 40px;
  align-items: start;
}
body.single-product div.product > .product-entry-wrapper > .woocommerce-product-gallery,
body.single-product div.product > .woocommerce-product-gallery {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  float: none !important;
  margin: 0 !important;
}
body.single-product div.product > .product-entry-wrapper > .summary,
body.single-product div.product > .summary {
  width: auto !important;
  max-width: none;
  float: none !important;
}
body.single-product div.product:not(:has(> .product-entry-wrapper)) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
  gap: 40px;
  align-items: start;
}
body.single-product div.product:not(:has(> .product-entry-wrapper)) > :not(.woocommerce-product-gallery):not(.summary) {
  grid-column: 1 / -1;
}
body.single-product .waklab-pdp-nav {
  top: 88px;
  z-index: 30;
  background: #fff;
}
body.single-product {
  padding-bottom: 92px;
}
/* Every product section uses the same content width. Gray bands stay full width. */
body.single-product .waklab-pdp .waklab-wrap,
body.single-product .waklab-pdp .waklab-narrow {
  width: min(calc(100% - 48px), 1200px);
  max-width: 1200px;
  margin-inline: auto;
}
body.single-product .related.products,
body.single-product .pps-related {
  grid-column: 1 / -1;
  clear: both;
  width: min(calc(100% - 48px), 1200px);
  max-width: 1200px;
  margin: 48px auto 0;
}
body.single-product .pps-related-title {
  margin: 0 0 16px;
  font-size: 28px;
}
body.single-product .pps-related ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.single-product .pps-related ul.products > li {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
}
body.single-product .waklab-table-wrap,
body.single-product .waklab-specs {
  width: 100%;
}
body.single-product .waklab-specs th,
body.single-product .waklab-specs td {
  overflow-wrap: anywhere;
}

/* The step number occupies column 1. Title and text must stay in column 2.
   Auto-placement was wrapping the description into the 36px number column. */
body.single-product .waklab-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 8px 0 0;
}
body.single-product .waklab-steps > li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 6px 12px;
  align-items: start;
  margin: 0;
}
body.single-product .waklab-steps > li::before {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
}
body.single-product .waklab-steps > li > strong,
body.single-product .waklab-steps > li > span {
  grid-column: 2;
  width: auto;
  max-width: none;
}
body.single-product .waklab-steps > li > strong {
  grid-row: 1;
}
body.single-product .waklab-steps > li > span {
  grid-row: 2;
}

@media (max-width: 900px) {
  body.single-product div.product > .product-entry-wrapper,
  body.single-product div.product:not(:has(> .product-entry-wrapper)) {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  body.single-product .waklab-steps {
    grid-template-columns: 1fr;
  }
  body.single-product .pps-related ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
