/* BLANKOM – new single product page. Everything is scoped to .bh-p. */

.bh-p {
  --p-ink: #14181D;
  --p-ink2: #3C4651;
  --p-muted: #5B6673;
  --p-bg: #F3F5F7;
  --p-paper: #FCFDFD;
  --p-line: #DCE1E6;
  --p-blue: #1560B0;
  --p-blue-dark: #0E4A8A;
  --p-tint: #EEF3F9;
  --p-tline: #D3DEEA;
  --p-night: #14181D;
  --p-disp: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --p-body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --p-mono: "IBM Plex Mono", Consolas, "Courier New", monospace;

  /* break out of whatever container Avada puts the content in */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--p-bg);
  color: var(--p-ink);
  font-family: var(--p-body);
  font-size: 16px;
  line-height: 1.6;
}
.bh-p *, .bh-p *::before, .bh-p *::after { box-sizing: border-box; }
.bh-p img { max-width: 100%; height: auto; }
.bh-p h1, .bh-p h2, .bh-p h3 { font-family: var(--p-disp); color: var(--p-ink); margin: 0; text-wrap: balance; }
.bh-p p { margin: 0 0 1em; }
.bh-p p:last-child { margin-bottom: 0; }
.bh-p a { color: var(--p-blue); }

/* ---------------- buttons ---------------- */
.bh-p-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--p-blue); color: #fff !important; border-radius: 4px;
  padding: 0 26px; height: 52px; font-weight: 600; font-size: 16px;
  font-family: var(--p-body); text-decoration: none !important; text-transform: none;
  transition: background .15s ease;
}
.bh-p-btn:hover { background: var(--p-blue-dark); color: #fff !important; }
.bh-p-btn--ghost { background: transparent; color: var(--p-ink) !important; border: 1px solid #B8C2CC; font-weight: 500; }
.bh-p-btn--ghost:hover { background: #fff; color: var(--p-ink) !important; border-color: var(--p-blue); }
.bh-p-btn--sm { height: 38px; padding: 0 18px; font-size: 13.5px; border-radius: 3px; }
.bh-p-btn--lg { height: 56px; padding: 0 32px; font-size: 17px; }

/* ---------------- hero ---------------- */
.bh-p-hero {
  display: grid; grid-template-columns: 560px minmax(0, 1fr); gap: 56px;
  padding: 52px 64px 48px; background: var(--p-paper); border-bottom: 1px solid var(--p-line);
  align-items: start;
}
.bh-p-hero__media { background: linear-gradient(180deg, #F1F4F6 0%, #E6EBEF 100%); border-radius: 6px; padding: 28px; display: flex; align-items: center; justify-content: center; min-height: 340px; }
.bh-p-hero__img { display: block; max-height: 420px; width: auto; }
.bh-p-ph { width: 100%; height: 300px; border: 1px dashed #9AA6B2; border-radius: 4px; }
.bh-p-hero__body { display: flex; flex-direction: column; gap: 20px; padding-top: 6px; }
.bh-p-eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--p-mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--p-ink2); }
.bh-p-dot { width: 4px; height: 4px; border-radius: 50%; background: #A8B2BC; }
.bh-p-model { color: var(--p-blue); letter-spacing: .05em; }
.bh-p-h1 { font-size: 48px; line-height: 1.05; font-weight: 700; letter-spacing: -.01em; }
.bh-p-lede { font-size: 17.5px; line-height: 1.6; color: var(--p-ink2); max-width: 640px; }
.bh-p-lede p { margin-bottom: .7em; }
.bh-p-cta { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.bh-p-meta { display: flex; flex-wrap: wrap; gap: 34px; border-top: 1px solid var(--p-line); padding-top: 18px; margin-top: 4px; }
.bh-p-meta > div { display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; color: var(--p-ink2); }
.bh-p-metak { font-family: var(--p-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--p-muted); }

/* ---------------- sticky sub-nav ---------------- */
.bh-p { --p-hdr: 81px; }
.bh-p-nav { position: sticky; top: var(--p-hdr); z-index: 90; background: var(--p-night); }
.bh-p-sec, .bh-p-rfq { scroll-margin-top: calc(var(--p-hdr) + 62px); }
.bh-p-nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 64px; height: 56px; }
.bh-p-nav__links { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.bh-p-nav__links::-webkit-scrollbar { display: none; }
.bh-p-nav__links a { color: #C6CDD5 !important; font-size: 14px; text-decoration: none !important; white-space: nowrap; padding: 18px 0 16px; border-bottom: 2px solid transparent; }
.bh-p-nav__links a:hover { color: #fff !important; border-bottom-color: var(--p-blue); }
.bh-p-nav__cta { display: flex; align-items: center; gap: 14px; }
.bh-p-nav__model { font-family: var(--p-mono); font-size: 12.5px; color: #8E99A4; }

/* ---------------- sections ---------------- */
.bh-p-sec { padding: 64px; background: var(--p-bg); border-bottom: 1px solid var(--p-line); }
.bh-p-sec--alt { background: var(--p-paper); }
.bh-p-sec__head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.bh-p-sec__head h2 { font-size: 30px; font-weight: 600; }
.bh-p-sec__head span { font-size: 14px; color: var(--p-muted); }

/* at a glance */
.bh-p-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.bh-p-tile { background: var(--p-bg); border: 1px solid var(--p-line); border-radius: 5px; padding: 18px 20px; }
.bh-p-sec--alt .bh-p-tile { background: var(--p-bg); }
.bh-p-tile__k { font-family: var(--p-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--p-muted); margin-bottom: 8px; }
.bh-p-tile__v { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.bh-p-tile__v li { font-size: 15px; line-height: 1.45; color: var(--p-ink); font-weight: 500; position: relative; padding-left: 14px; }
.bh-p-tile__v li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--p-blue); }
.bh-p-tile__v li:only-child { padding-left: 0; }
.bh-p-tile__v li:only-child::before { display: none; }

/* prose blocks that come from the old tab content */
.bh-p-prose { font-size: 16px; line-height: 1.7; color: var(--p-ink2); max-width: 1000px; }
.bh-p-prose h1, .bh-p-prose h2 { font-size: 24px; font-weight: 600; color: var(--p-ink); margin: 28px 0 12px; }
.bh-p-prose h3, .bh-p-prose h4 { font-size: 19px; font-weight: 600; color: var(--p-ink); margin: 24px 0 10px; font-family: var(--p-disp); }
.bh-p-prose ul, .bh-p-prose ol { margin: 0 0 1em; padding-left: 22px; }
.bh-p-prose li { margin-bottom: 8px; }
.bh-p-prose strong { color: var(--p-ink); }
.bh-p-prose > *:first-child { margin-top: 0; }

/* application examples: turn the long paragraph list into readable blocks */
.bh-p-apps p { border-left: 2px solid var(--p-tline); padding-left: 18px; }

/* media blocks (panels, diagram) */
.bh-p-media { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.bh-p-media img { border: 1px solid var(--p-line); border-radius: 5px; background: #fff; }
.bh-p-media p { text-align: center; }

/* specifications */
.bh-p-specs { background: var(--p-paper); border: 1px solid var(--p-line); border-radius: 6px; padding: 8px 0; font-size: 15px; line-height: 1.6; color: var(--p-ink2); }
.bh-p-sec--alt .bh-p-specs { background: var(--p-bg); }
.bh-p-specs p { margin: 0; padding: 11px 22px; border-bottom: 1px solid var(--p-line); }
.bh-p-specs p:last-child { border-bottom: 0; }
.bh-p-specs ul, .bh-p-specs ol { margin: 0; padding: 4px 22px 12px 42px; }
.bh-p-specs li { padding: 5px 0; border-bottom: 1px solid var(--p-line); }
.bh-p-specs li:last-child { border-bottom: 0; }
.bh-p-grp {
  font-family: var(--p-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--p-blue); font-weight: 600; margin: 0; padding: 20px 22px 9px;
  border-bottom: 1px solid var(--p-line); border-top: 1px solid var(--p-line); background: #F7F9FA;
}
.bh-p-specs > .bh-p-grp:first-child { border-top: 0; }

/* ordering guide */
.bh-p-order { background: var(--p-bg); border: 1px solid var(--p-line); border-radius: 6px; overflow: hidden; }
.bh-p-sec--alt .bh-p-order { background: var(--p-bg); }
.bh-p-order__row { padding: 13px 20px; border-bottom: 1px solid var(--p-line); font-size: 15px; color: var(--p-ink2); }
.bh-p-order__row:last-child { border-bottom: 0; }

/* FAQ */
.bh-p-faqwrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.bh-p-faq details { border-bottom: 1px solid var(--p-line); }
.bh-p-faq summary { list-style: none; cursor: pointer; padding: 20px 0 20px 36px; position: relative; font-size: 16.5px; font-weight: 600; line-height: 1.45; color: var(--p-ink); }
.bh-p-faq summary::-webkit-details-marker { display: none; }
.bh-p-faq summary::before { content: "+"; position: absolute; left: 0; top: 17px; color: var(--p-blue); font-family: var(--p-mono); font-size: 19px; }
.bh-p-faq details[open] summary { padding-bottom: 12px; }
.bh-p-faq details[open] summary::before { content: "\2212"; }
.bh-p-faq details p { padding: 0 0 22px 36px; margin: 0; font-size: 15px; line-height: 1.65; color: var(--p-ink2); max-width: 900px; }
.bh-p-ask { background: var(--p-tint); border: 1px solid var(--p-tline); border-radius: 6px; padding: 26px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--p-hdr) + 76px); }
.bh-p-ask h3 { font-size: 22px; font-weight: 600; line-height: 1.15; }
.bh-p-ask p { font-size: 14.5px; line-height: 1.6; color: var(--p-ink2); margin: 0; }
.bh-p-ask .bh-p-btn { align-self: flex-start; height: 46px; font-size: 14.5px; padding: 0 20px; }

/* downloads */
.bh-p-dl { font-size: 16px; line-height: 2; }
.bh-p-dl a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; font-weight: 500; }
/* the product content already carries its own PDF icon image — no extra badge */
/* the tab title is repeated inside the block by the theme; the section already has one */
.bh-p-dl .bh-p-entry__title,
.bh-p-dl > h3:first-child,
.bh-p-dl .fusion-title:first-child { display: none; }
.bh-p-dl a:hover { text-decoration: underline !important; }

/* RFQ band */
.bh-p-rfq { background: var(--p-night); color: #fff; padding: 60px 64px; }
.bh-p-rfq__in { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: center; }
.bh-p .bh-p-rfq h2 { font-size: 36px; font-weight: 600; line-height: 1.1; color: #fff !important; margin-bottom: 16px; }
.bh-p .bh-p-rfq p, .bh-p .bh-p-rfq li { color: #B9C2CC !important; }
.bh-p .bh-p-rfq a:not(.bh-p-btn) { color: #8FC4F5 !important; }
.bh-p .bh-p-nav__links a { color: #C6CDD5 !important; }
.bh-p .bh-p-nav__model { color: #8E99A4 !important; }
.bh-p-rfq p { font-size: 17px; line-height: 1.6; color: #B9C2CC; max-width: 620px; }
.bh-p-steps { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 22px; }
.bh-p-steps > div { display: flex; flex-direction: column; gap: 5px; font-size: 14.5px; color: #DDE3E9; }
.bh-p-steps span { font-family: var(--p-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #7E8A96; }
.bh-p-rfq__cta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.bh-p-rfq__cta span { font-size: 13px; color: #8E99A4; }

/* related */
.bh-p-rel { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.bh-p-rel__card { background: var(--p-paper); border: 1px solid var(--p-line); border-radius: 5px; padding: 18px; display: flex; flex-direction: column; gap: 10px; text-decoration: none !important; transition: border-color .15s ease; }
.bh-p-rel__card:hover { border-color: var(--p-blue); }
.bh-p-rel__img { display: flex; align-items: center; justify-content: center; height: 120px; overflow: hidden; }
.bh-p-rel__img img { max-height: 120px; width: auto; }
.bh-p-rel__model { font-family: var(--p-mono); font-size: 12.5px; color: var(--p-blue); letter-spacing: .04em; }
.bh-p-rel__t { font-size: 13.5px; line-height: 1.45; color: var(--p-ink2); }

/* Avada page furniture we do not want on this template */
body.single-product .bh-p ~ .woocommerce-tabs,
body.single-product .bh-p ~ .related.products { display: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 1100px) {
  .bh-p { --p-hdr: 0px; }
  .bh-p-hero { grid-template-columns: 1fr; gap: 32px; padding: 40px 32px; }
  .bh-p-h1 { font-size: 38px; }
  .bh-p-sec { padding: 48px 32px; }
  .bh-p-nav__in { padding: 0 32px; }
  .bh-p-faqwrap { grid-template-columns: 1fr; gap: 32px; }
  .bh-p-ask { position: static; }
  .bh-p-rfq { padding: 48px 32px; }
  .bh-p-rfq__in { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 700px) {
  .bh-p-hero { padding: 28px 18px; }
  .bh-p-sec { padding: 36px 18px; }
  .bh-p-nav__in { padding: 0 18px; height: 50px; }
  .bh-p-nav__cta .bh-p-nav__model { display: none; }
  .bh-p-h1 { font-size: 30px; }
  .bh-p-lede { font-size: 16px; }
  .bh-p-sec__head h2 { font-size: 24px; }
  .bh-p-rfq { padding: 36px 18px; }
  .bh-p-rfq h2 { font-size: 27px; }
  .bh-p-btn { width: 100%; }
  .bh-p-nav__cta .bh-p-btn { width: auto; }
}

/* neutralise inline colours and stray empty paragraphs coming from old tab content */
.bh-p .fusion-text { color: inherit !important; }
.bh-p p:empty, .bh-p .fusion-text > p:empty { display: none; }
.bh-p .fusion-text > br:first-child { display: none; }
