/* Focused PDP and interaction refinements, 1.0.2. */
.single-product .stock.in-stock,
.ehp-quick-dialog .stock.in-stock { display: none !important; }
.ehp-quick-dialog[open] { position: fixed; inset: 0; margin: auto; }

/* Keep a keyboard cue without the rectangular selection frame. */
body :is(a, button, summary, [role="button"]):focus,
body :is(a, button, summary, [role="button"]):focus-visible {
  outline: 0 !important;
  box-shadow: none !important;
}
body a:focus-visible { text-decoration: underline !important; text-underline-offset: 4px; }
body :is(button, summary, [role="button"]):focus-visible { filter: brightness(.82); }

/* WooCommerce inserts this link after AJAX add-to-cart; the bag count remains visible. */
.woocommerce li.wc-block-product .added_to_cart { display: none !important; }

.single-product .wp-block-post-excerpt__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.ehp-description-body.is-collapsed {
  max-height: 220px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 72%, transparent);
  mask-image: linear-gradient(#000 72%, transparent);
}
.ehp-description-toggle {
  display: inline-block;
  padding: 0;
  margin: 18px 0 24px;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.ehp-related-wrap { width: 100%; max-width: 1394px !important; margin: 55px auto 90px !important; }
.ehp-related-products { width: 100%; margin: 0 !important; }
.ehp-related-products .ehp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ehp-related-products .ehp-section-heading h2 { font-size: clamp(29px, 3vw, 42px); }

.ehp-product-assurance { width: 100%; margin: 22px 0 28px; }
.ehp-pdp-buy {
  width: 100%; min-height: 48px; display: block; cursor: pointer;
  background: #fff; border: 1px solid #17171b; border-radius: 0;
  color: #17171b; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.ehp-pdp-buy:hover { background: #17171b; color: #fff; }
.ehp-size-guide-trigger {
  display: inline-block; margin: 0 0 17px; padding: 0 0 4px;
  border: 0; border-bottom: 1px solid #17171b; border-radius: 0;
  background: transparent; color: #17171b; font-size: 12px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.ehp-assurance-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px; border: 1px solid #d9d9dd;
}
.ehp-assurance-grid > div { min-width: 0; padding: 15px 13px; }
.ehp-assurance-grid > div + div { border-left: 1px solid #d9d9dd; }
.ehp-assurance-grid strong, .ehp-payment-methods > strong {
  display: block; margin-bottom: 6px; font-size: 10px; line-height: 1.3;
  font-weight: 800; text-transform: uppercase;
}
.ehp-assurance-grid span, .ehp-payment-methods small { display: block; font-size: 10px; line-height: 1.4; color: #555; }
.ehp-assurance-grid a { color: inherit; text-decoration: underline; }
.ehp-payment-methods { border: 1px solid #d9d9dd; border-top: 0; padding: 14px; }
.ehp-payment-logos { width: 154px; height: 35px; overflow: hidden; margin: 6px 0 8px; }
.ehp-payment-logos img { display: block; width: 251px; max-width: none; height: 35px; object-fit: fill; }
.ehp-size-guide-dialog { width: min(860px, 94vw); max-height: 90vh; border: 0; padding: 24px; box-shadow: 0 24px 70px #0004; }
.ehp-size-guide-dialog[open] { position: fixed; inset: 0; margin: auto; }
.ehp-size-guide-dialog::backdrop { background: #0009; }
.ehp-size-guide-dialog h2 { margin: 0 44px 18px 0; font-size: 24px; }
.ehp-size-guide-dialog img { display: block; max-width: 100%; height: auto; margin: auto; }
.ehp-guide-close { position: absolute; right: 18px; top: 13px; border: 0; background: transparent; font-size: 30px; cursor: pointer; }

@media (max-width: 767px) {
  .ehp-related-wrap { width: calc(100% - 32px) !important; margin: 35px auto 65px !important; }
  .ehp-related-products .ehp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .ehp-related-products .ehp-section-heading h2 { font-size: 28px; }
  .ehp-assurance-grid { grid-template-columns: 1fr; }
  .ehp-assurance-grid > div { padding: 11px 14px; }
  .ehp-assurance-grid > div + div { border-left: 0; border-top: 1px solid #d9d9dd; }
}
