/* ==========================================================================
   EliteBlocc v2 — Product Hub Page
   File:    assets/css/pages/eb-product-hub.css
   Version: 3.2 — Full redesign + bug fixes.

   ROOT CAUSE FIXES IN THIS VERSION
   ─────────────────────────────────────────────────────────────────────
   FIX 1: eb-wide-layout.css (global, loads before this file) contains:
            .eb-ph-grid--3 { grid-template-columns: repeat(4, 1fr) !important; }
           inside @media (min-width: 1400px). At 1400px+ this was forcing 4 cols.
           Fix: use .eb-ph-range .eb-ph-grid--3 (higher specificity) + !important.
   FIX 2: Image placeholders were invisible — now full-area premium design.
   FIX 3: Card area background changed from #f2fcf7 to deep emerald + dot grid.
   FIX 4: Sidebar contrast improved — brighter series codes, active states.
   ========================================================================== */

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --ph-dark:      #020c06;
  --ph-dark-2:    #030f08;
  --ph-dark-3:    #041208;
  --ph-card-bg:   #041a0a;   /* deep emerald for card grid area */
  --ph-em:        #10b981;
  --ph-em-bright: #34d399;
  --ph-em-dk:     #059669;
  --ph-em-deep:   #064e3b;
  --ph-gold:      #f59e0b;
  --ph-blue:      #3b82f6;
  --ph-violet:    #8b5cf6;
  --ph-amber:     #d97706;
  --ph-nav-w:     224px;
  --ph-r:         12px;
  --ph-gap:       16px;
}

/* ── Layout constants ────────────────────────────────────────────────────── */
:root {
  --ph-max:      1360px;
  --ph-side-pad: clamp(16px, 3vw, 40px);
}

/*
   FULL-BLEED ARCHITECTURE
   ════════════════════════════════════════════════════════════
   Every SECTION is width:100% with no max-width — backgrounds
   always reach the page edges.

   Content INSIDE each section is constrained via one of:
     a) .eb-ph-inner  — generic inner wrapper class
     b) explicit selectors on child elements (hero__inner, etc.)

   The gap between Widget 1 / Widget 2 / Widget 3 is handled
   by section padding, not by .eb-ph-wrap gap.
   ════════════════════════════════════════════════════════════
*/

/* ── Base wrap — genuinely full width, zero constraint ──────────────────── */
.eb-ph-wrap {
  font-family: var(--font-sans, system-ui, sans-serif);
  display: flex;
  flex-direction: column;
  gap: 0;          /* sections control their own spacing */
  width: 100%;
  max-width: none; /* never constrain — sections do it themselves */
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* ── Elementor widget containers — full width, no padding ───────────────── */
.elementor-widget-shortcode > .elementor-widget-container,
.elementor-widget-html > .elementor-widget-container {
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

/* ── Inner content constraint ───────────────────────────────────────────── */
/* Add class .eb-ph-inner to any element that should be constrained          */
.eb-ph-inner {
  width: 100%;
  max-width: var(--ph-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--ph-side-pad);
  padding-right: var(--ph-side-pad);
  box-sizing: border-box;
}

/* ── Elementor column/section overrides ─────────────────────────────────── */
.elementor-column:has(.eb-ph-range-bg) > .elementor-column-wrap > .elementor-widget-wrap,
.elementor-column:has(.eb-ph-wrap)     > .elementor-column-wrap > .elementor-widget-wrap {
  padding: 0 !important;
}
.elementor-section:has(.eb-ph-range-bg),
.elementor-section:has(.eb-ph-wrap) {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Fallback class "eb-hub-section" on the Elementor section */
.eb-hub-section > .elementor-container { max-width: 100% !important; padding: 0 !important; }
.eb-hub-section .elementor-widget-container { padding: 0 !important; }
.eb-hub-section .elementor-column-wrap { padding: 0 !important; }

/* Kill old choose strip */
.eb-ph-choose-strip { display: none !important; }

/* ══════════════════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════════════════ */

.eb-ph-hero {
  background: var(--ph-dark);
  border-radius: 0;    /* full-bleed — bg reaches page edges */
  overflow: hidden;
  width: 100%;
}

.eb-ph-hero__inner {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 1.5rem;
  /* constrain content, not background */
  max-width: var(--ph-max);
  margin: 0 auto;
  padding: 1.75rem var(--ph-side-pad) 0;
  align-items: start;
  box-sizing: border-box;
}

@media (min-width: 1400px) {
  .eb-ph-hero__inner { grid-template-columns: 1fr 420px; padding-left: var(--ph-side-pad); padding-right: var(--ph-side-pad); }
}

.eb-ph-eyebrow {
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(16,185,129,.55);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: .5rem;
}

.eb-ph-eyebrow__bar { width: 12px; height: 1.5px; background: var(--ph-em); flex-shrink: 0; }

.eb-ph-h1 {
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  line-height: 1.17;
  margin-bottom: .5rem;
}

.eb-ph-h1 em { color: var(--ph-em); font-style: normal; }

.eb-ph-lead {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  line-height: 1.65;
  margin-bottom: 1rem;
}

/* Quick-start paths */
.eb-ph-qs-label { font-size: 11px; color: rgba(255,255,255,.22); margin-bottom: .5rem; display: block; }

.eb-ph-qs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 1.25rem;
}

.eb-ph-qs {
  background: rgba(255,255,255,.025);
  border: .5px solid rgba(255,255,255,.07);
  border-radius: 8px;
  padding: 9px 11px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: background .12s, border-color .12s;
}

.eb-ph-qs:hover { background: rgba(16,185,129,.07); border-color: rgba(16,185,129,.25); }
.eb-ph-qs__tag { font-size: 11px; color: rgba(16,185,129,.5); display: block; margin-bottom: 2px; }
.eb-ph-qs__title { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.8); display: block; }
.eb-ph-qs__sub { font-size: 11px; color: rgba(255,255,255,.28); display: block; margin-top: 2px; }
.eb-ph-qs__icon, .eb-ph-qs__arrow { display: none; }

/* Hero CTAs */
.eb-ph-hero__ctas { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1.5rem; }

/* Buttons */
.eb-ph-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  padding: 8px 16px;
  text-decoration: none;
  transition: opacity .15s, background .15s;
  min-height: 38px;
  white-space: nowrap;
  border: none;
}

.eb-ph-btn--primary { background: var(--ph-em); color: #022c16; }
.eb-ph-btn--primary:hover { opacity: .88; }
.eb-ph-btn--outline { background: rgba(255,255,255,.04); color: rgba(255,255,255,.55); border: .5px solid rgba(255,255,255,.12); }
.eb-ph-btn--outline:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.8); }
.eb-ph-btn--ghost { background: none; color: rgba(16,185,129,.6); border: none; padding: 4px 0; font-size: 11px; min-height: auto; }
.eb-ph-btn--ghost:hover { color: var(--ph-em); }

/* Hero right — performance snapshot */
.eb-ph-hero__right { display: flex; flex-direction: column; gap: 1rem; }

.eb-ph-snap {
  background: rgba(16,185,129,.04);
  border: .5px solid rgba(16,185,129,.1);
  border-radius: 8px;
  padding: 12px 14px;
}

.eb-ph-snap__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.eb-ph-snap__title { font-size: 11px; color: rgba(16,185,129,.5); display: flex; align-items: center; gap: 5px; letter-spacing: .04em; }
.eb-ph-snap__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ph-em); flex-shrink: 0; }
.eb-ph-snap__badge { font-size: 11px; color: rgba(16,185,129,.4); background: rgba(16,185,129,.07); border-radius: 8px; padding: 1px 6px; }
.eb-ph-snap__legend { display: flex; gap: 8px; margin-bottom: 9px; }
.eb-ph-snap__leg { display: flex; align-items: center; gap: 4px; font-size: 11px; color: rgba(255,255,255,.28); }
.eb-ph-snap__leg-bar { width: 8px; height: 3px; border-radius: 1px; }
.eb-ph-snap__row { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.eb-ph-snap__name { font-size: 11px; color: rgba(255,255,255,.3); width: 52px; flex-shrink: 0; }
.eb-ph-snap__bar-wrap { flex: 1; height: 7px; border-radius: 2px; overflow: hidden; display: flex; }
.eb-ph-snap__bar-wc  { background: #5c3d1a; }
.eb-ph-snap__bar-eps { background: rgba(16,185,129,.62); }
.eb-ph-snap__bar-rc  { background: rgba(59,130,246,.48); }
.eb-ph-snap__val { font-size: 11px; color: var(--ph-gold); width: 26px; text-align: right; flex-shrink: 0; }
.eb-ph-snap__footer { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; padding-top: 8px; border-top: .5px solid rgba(255,255,255,.06); }
.eb-ph-snap__link { font-size: 11px; color: rgba(16,185,129,.55); text-decoration: none; }
.eb-ph-snap__link:hover { color: var(--ph-em); }
.eb-ph-snap__count { font-size: 11px; color: rgba(255,255,255,.2); }

/* Old floating block links */
.eb-ph-blocks { display: flex; flex-direction: column; gap: 5px; }
.eb-ph-block { display: flex; align-items: center; gap: 8px; text-decoration: none; padding: 5px 8px; border-radius: 6px; border: .5px solid rgba(16,185,129,.08); background: rgba(16,185,129,.03); transition: background .12s; }
.eb-ph-block:hover { background: rgba(16,185,129,.07); }
.eb-ph-block__img-wrap { width: 36px; height: 36px; flex-shrink: 0; }
.eb-ph-block__img { width: 36px; height: 36px; object-fit: contain; }
.eb-ph-block__name { font-size: 12px; color: rgba(16,185,129,.7); font-weight: 500; }
.eb-ph-block__u { font-size: 11px; color: rgba(255,255,255,.3); margin-left: auto; }

/* Hero stat bar */
.eb-ph-hero__stats {
  display: flex;
  border-top: .5px solid rgba(16,185,129,.1);
  max-width: var(--ph-max);
  margin: 0 auto;
  padding: 0 var(--ph-side-pad);
  box-sizing: border-box;
  width: 100%;
}
.eb-ph-hstat { flex: 1; padding: .625rem 0; text-align: center; border-right: .5px solid rgba(16,185,129,.08); }
.eb-ph-hstat:last-child { border-right: none; }
.eb-ph-hstat__n { display: block; font-size: 14px; font-weight: 500; color: var(--ph-gold); }
.eb-ph-hstat__n em { font-style: normal; }
.eb-ph-hstat__l { display: block; font-size: 11px; color: rgba(255,255,255,.28); margin-top: 1px; }

/* ══════════════════════════════════════════════════════════════════════════
   CERTIFICATION MARQUEE
══════════════════════════════════════════════════════════════════════════ */

.eb-ph-marquee {
  overflow: hidden;
  padding: .45rem 0;
  background: var(--ph-dark-2);
  border-top: .5px solid rgba(16,185,129,.08);
  border-bottom: .5px solid rgba(16,185,129,.08);
}

.eb-ph-marquee__track {
  display: flex;
  animation: eb-scroll 26s linear infinite;
  white-space: nowrap;
}

.eb-ph-marquee__track:hover { animation-play-state: paused; }

@keyframes eb-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.eb-ph-marquee__item { display: inline-flex; align-items: center; gap: 5px; padding: 0 1.25rem; font-size: 11px; color: rgba(255,255,255,.32); }
.eb-ph-marquee__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ph-em); flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   RANGE — CORE LAYOUT
   box-shadow replaces border so overflow:visible works for hover scale.
══════════════════════════════════════════════════════════════════════════ */

/* Full-bleed emerald wrapper (output by PHP shortcode) */
.eb-ph-range-bg {
  width: 100%;
  background: var(--ph-card-bg);
  padding: var(--ph-gap) 0 calc(var(--ph-gap) * 1.5);
}

.eb-ph-range {
  display: grid;
  grid-template-columns: var(--ph-nav-w) minmax(0, 1fr);
  align-items: start;
  /* constrained inside full-bleed range-bg */
  width: 100%;
  max-width: var(--ph-max);
  margin: 0 auto;
  padding: 0 var(--ph-side-pad);
  box-sizing: border-box;
  box-shadow: 0 0 0 0.5px rgba(16,185,129,.2);
  border-radius: var(--ph-r);
  overflow: visible;
  min-height: 600px;
  position: relative;
}

/* ══════════════════════════════════════════════════════════════════════════
   SIDEBAR — STICKY NAV WITH STRONG COLOUR
   Vibrant emerald palette throughout for clear contrast.
══════════════════════════════════════════════════════════════════════════ */

.eb-ph-sidebar {
  background: var(--ph-dark);
  border-radius: var(--ph-r) 0 0 var(--ph-r);
  border-right: .5px solid rgba(16,185,129,.12);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(16,185,129,.25) transparent;
  z-index: 5;
}

.eb-ph-sidebar::-webkit-scrollbar { width: 3px; }
.eb-ph-sidebar::-webkit-scrollbar-track { background: transparent; }
.eb-ph-sidebar::-webkit-scrollbar-thumb { background: rgba(16,185,129,.25); border-radius: 2px; }

/* Sidebar header */
.eb-ph-sb-hd {
  padding: 1rem .875rem .75rem;
  border-bottom: .5px solid rgba(16,185,129,.1);
  background: rgba(16,185,129,.03);
  flex-shrink: 0;
}

.eb-ph-sb-title {
  font-size: 11px;
  color: var(--ph-em);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: .75rem;
}

/* Guided wizard toggle */
.eb-ph-wizard-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: rgba(16,185,129,.08);
  border: .5px solid rgba(16,185,129,.2);
  border-radius: 7px;
  cursor: pointer;
  transition: background .12s, border-color .12s;
  width: 100%;
  font-family: inherit;
  box-sizing: border-box;
}

.eb-ph-wizard-toggle:hover { background: rgba(16,185,129,.13); border-color: rgba(16,185,129,.3); }

.eb-ph-wizard-toggle__icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(16,185,129,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eb-ph-wizard-toggle__text { font-size: 12px; color: var(--ph-em-bright); flex: 1; text-align: left; font-weight: 500; }
.eb-ph-wizard-toggle__chev { font-size: 10px; color: rgba(16,185,129,.5); transition: transform .15s; display: inline-block; flex-shrink: 0; }
.eb-ph-wizard-toggle__chev.is-open { transform: rotate(180deg); }

/* Wizard */
.eb-ph-wizard { overflow: hidden; max-height: 0; transition: max-height .25s ease; }
.eb-ph-wizard.is-open { max-height: 260px; }
.eb-ph-wizard-inner { padding: .625rem 0 .25rem; }
.eb-ph-wstep { margin-bottom: .625rem; }
.eb-ph-wstep__label { font-size: 11px; color: rgba(16,185,129,.5); padding: 0 .875rem; margin-bottom: 5px; display: block; letter-spacing: .06em; text-transform: uppercase; }
.eb-ph-wstep__opts { display: flex; gap: 4px; flex-wrap: wrap; padding: 0 .875rem; }
.eb-ph-wopt {
  background: rgba(16,185,129,.06);
  border: .5px solid rgba(16,185,129,.15);
  border-radius: 10px;
  padding: 3px 10px;
  font-size: 11px;
  color: rgba(16,185,129,.65);
  cursor: pointer;
  transition: background .1s, border-color .1s, color .1s;
  font-family: inherit;
}

.eb-ph-wopt:hover { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.3); color: var(--ph-em-bright); }
.eb-ph-wopt.is-active { background: rgba(16,185,129,.18); border-color: rgba(16,185,129,.4); color: var(--ph-em); font-weight: 500; }

/* ── Series nav ─────────────────────────────────────────────────────── */
.eb-ph-sb-series-hd {
  font-size: 11px;
  color: rgba(16,185,129,.4);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .75rem .875rem .25rem;
  font-weight: 500;
}

.eb-ph-series__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px .875rem;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background .1s;
}

.eb-ph-series__item:hover { background: rgba(16,185,129,.06); }

.eb-ph-series__item.is-active {
  background: rgba(16,185,129,.1);
  border-left-color: var(--ph-em);
}

.eb-ph-series__item:focus-visible { outline: 2px solid var(--ph-em); outline-offset: -2px; }

.eb-ph-series__left { display: flex; align-items: center; gap: 8px; }

.eb-ph-series__code {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: -.02em;
}

/* Series code colours — vibrant, strong contrast */
.eb-ph-series__code--44 { background: rgba(16,185,129,.25); color: #6ee7b7; box-shadow: inset 0 0 0 .5px rgba(16,185,129,.35); }
.eb-ph-series__code--38 { background: rgba(16,185,129,.2);  color: #34d399; box-shadow: inset 0 0 0 .5px rgba(16,185,129,.3); }
.eb-ph-series__code--hb { background: rgba(59,130,246,.22); color: #93c5fd; box-shadow: inset 0 0 0 .5px rgba(59,130,246,.35); }
.eb-ph-series__code--pt { background: rgba(139,92,246,.22); color: #c4b5fd; box-shadow: inset 0 0 0 .5px rgba(139,92,246,.35); }
.eb-ph-series__code--fl { background: rgba(217,119,6,.22);  color: #fcd34d; box-shadow: inset 0 0 0 .5px rgba(217,119,6,.35); }

.eb-ph-series__text-col { display: flex; flex-direction: column; min-width: 0; }
.eb-ph-series__name { font-size: 12px; color: rgba(255,255,255,.7); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eb-ph-series__item.is-active .eb-ph-series__name { color: var(--ph-em-bright); font-weight: 500; }
.eb-ph-series__sub { font-size: 11px; color: rgba(255,255,255,.3); line-height: 1.3; }
.eb-ph-series__item.is-active .eb-ph-series__sub { color: rgba(16,185,129,.55); }

.eb-ph-series__cnt {
  font-size: 11px;
  color: rgba(16,185,129,.5);
  background: rgba(16,185,129,.1);
  border-radius: 8px;
  padding: 1px 6px;
  flex-shrink: 0;
  min-width: 20px;
  text-align: center;
  transition: all .2s;
}

.eb-ph-series__item.is-active .eb-ph-series__cnt {
  background: rgba(16,185,129,.2);
  color: var(--ph-em-bright);
  font-weight: 500;
}

/* Series progress bar */
.eb-ph-series-prog { height: 2px; background: rgba(255,255,255,.05); margin: 1px .875rem 5px; border-radius: 1px; overflow: hidden; }
.eb-ph-series-prog__fill { height: 100%; border-radius: 1px; background: var(--ph-em); transition: width .35s ease; width: 100%; }

/* Dividers */
.eb-ph-sb-divider { height: .5px; background: rgba(16,185,129,.1); margin: .625rem .875rem; flex-shrink: 0; }

/* ── U-value slider ───────────────────────────────────────────────────── */
.eb-ph-uv-wrap { padding: .625rem .875rem .75rem; }
.eb-ph-uv-label { font-size: 11px; color: rgba(16,185,129,.5); margin-bottom: 7px; display: flex; justify-content: space-between; align-items: center; text-transform: uppercase; letter-spacing: .05em; }
.eb-ph-uv-label__val { color: var(--ph-em-bright); font-weight: 600; font-size: 12px; }
.eb-ph-uv-slider { width: 100%; accent-color: var(--ph-em); cursor: pointer; }
.eb-ph-uv-ticks { display: flex; justify-content: space-between; font-size: 11px; color: rgba(16,185,129,.28); margin-top: 4px; }

/* ── Quick presets ─────────────────────────────────────────────────────── */
.eb-ph-presets { padding: .375rem .875rem .625rem; }
.eb-ph-presets-label { font-size: 11px; color: rgba(16,185,129,.4); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5rem; display: block; font-weight: 500; }
.eb-ph-preset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }

.eb-ph-preset {
  background: rgba(16,185,129,.05);
  border: .5px solid rgba(16,185,129,.12);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 11px;
  color: rgba(16,185,129,.6);
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background .1s, border-color .1s, color .1s;
  text-align: left;
}

.eb-ph-preset:hover { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.25); color: var(--ph-em-bright); }
.eb-ph-preset.is-active { background: rgba(16,185,129,.15); border-color: rgba(16,185,129,.3); color: var(--ph-em); font-weight: 500; }

/* ── Filter sections ────────────────────────────────────────────────────── */
.eb-ph-sb-section { padding: .125rem 0; }

.eb-ph-sb-fhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px .875rem;
  cursor: pointer;
}

.eb-ph-sb-label {
  font-size: 11px;
  color: rgba(16,185,129,.45);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
}

.eb-ph-sb-chev { font-size: 10px; color: rgba(16,185,129,.3); transition: transform .15s; display: inline-block; flex-shrink: 0; }
.eb-ph-sb-chev.is-open { transform: rotate(180deg); }

.eb-ph-sb-fopts { padding: 2px .875rem .5rem; }

.eb-ph-sb-fopt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  cursor: pointer;
}

.eb-ph-sb-fopt input[type="checkbox"] {
  accent-color: var(--ph-em);
  width: 13px;
  height: 13px;
  cursor: pointer;
  flex-shrink: 0;
}

.eb-ph-sb-fopt span { font-size: 12px; color: rgba(255,255,255,.48); transition: color .1s; }
.eb-ph-sb-fopt:hover span { color: rgba(255,255,255,.82); }

/* Clear button */
.eb-ph-sb-req {
  display: block;
  margin: .875rem .875rem 1rem;
  background: rgba(16,185,129,.06);
  border: .5px solid rgba(16,185,129,.22);
  border-radius: 7px;
  padding: 7px;
  font-size: 11px;
  color: var(--ph-em);
  cursor: pointer;
  width: calc(100% - 1.75rem);
  font-family: inherit;
  transition: background .12s, border-color .12s;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 500;
  flex-shrink: 0;
}

.eb-ph-sb-req:hover { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.38); }

/* ══════════════════════════════════════════════════════════════════════════
   MAIN CONTENT — DARK EMERALD BACKGROUND WITH DOT GRID
   overflow: visible is CRITICAL — card-wrap children expand to 200% width
══════════════════════════════════════════════════════════════════════════ */

.eb-ph-range-content {
  display: flex;
  flex-direction: column;
  background: var(--ph-card-bg);  /* deep emerald — user request */
  border-radius: 0 var(--ph-r) var(--ph-r) 0;
  overflow: hidden;  /* SpecCard™ v4: cards do not expand beyond container */
  position: relative;
  z-index: 1;
  min-width: 0;
}

/* ── Search + sort bar ───────────────────────────────────────────────── */
.eb-ph-search-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: .625rem .875rem;
  background: rgba(5,25,12,.9);
  border-bottom: .5px solid rgba(16,185,129,.12);
  border-radius: 0 var(--ph-r) 0 0;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.eb-ph-search-input {
  flex: 1;
  background: rgba(16,185,129,.07);
  border: .5px solid rgba(16,185,129,.2);
  border-radius: 7px;
  padding: 7px 12px;
  font-size: 12px;
  color: rgba(255,255,255,.85);
  font-family: inherit;
  transition: border-color .12s;
  min-width: 0;
}

.eb-ph-search-input::placeholder { color: rgba(16,185,129,.35); }
.eb-ph-search-input:focus { outline: none; border-color: rgba(16,185,129,.45); background: rgba(16,185,129,.1); }

.eb-ph-sort-label { font-size: 11px; color: rgba(16,185,129,.45); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.eb-ph-sort-wrap { flex-shrink: 0; }

.eb-ph-sort-select {
  background: rgba(16,185,129,.07);
  border: .5px solid rgba(16,185,129,.2);
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 11px;
  color: rgba(255,255,255,.8);
  font-family: inherit;
  cursor: pointer;
}

/* ── Status bar ───────────────────────────────────────────────────────── */
.eb-ph-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .4rem .875rem;
  background: rgba(4,20,9,.8);
  border-bottom: .5px solid rgba(16,185,129,.08);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.eb-ph-status-text { font-size: 11px; color: rgba(16,185,129,.55); }
.eb-ph-status-live { display: flex; align-items: center; gap: 5px; font-size: 11px; color: rgba(16,185,129,.4); flex-shrink: 0; }
.eb-ph-status-live__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ph-em); flex-shrink: 0; }

/* ── Filter chips row ─────────────────────────────────────────────────── */
.eb-ph-chips-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
  padding: .4rem .875rem;
  background: rgba(4,20,9,.8);
  border-bottom: .5px solid rgba(16,185,129,.08);
  min-height: 34px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.eb-ph-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(16,185,129,.12);
  border: .5px solid rgba(16,185,129,.3);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  color: var(--ph-em-bright);
}

.eb-ph-chip__rm { cursor: pointer; opacity: .5; font-size: 12px; line-height: 1; background: none; border: none; color: inherit; padding: 0; font-family: inherit; }
.eb-ph-chip__rm:hover { opacity: 1; }
.eb-ph-chips-empty { font-size: 11px; color: rgba(16,185,129,.3); }

/* ── Region bar ───────────────────────────────────────────────────────── */
.eb-ph-region-bar { display: flex; gap: 12px; align-items: flex-start; padding: .75rem .875rem; background: rgba(16,185,129,.06); border-bottom: .5px solid rgba(16,185,129,.12); flex-shrink: 0; }
.eb-ph-rb__left { display: flex; align-items: flex-start; gap: 8px; }
.eb-ph-rb__flag { font-size: 16px; line-height: 1; }
.eb-ph-rb__name { display: block; font-size: 12px; font-weight: 500; color: var(--ph-em-bright); }
.eb-ph-rb__note { display: block; font-size: 11px; color: rgba(16,185,129,.55); margin-top: 2px; }
.eb-ph-rb__why { font-size: 11px; color: rgba(255,255,255,.45); flex: 1; line-height: 1.5; }
.eb-ph-rb__close { font-size: 11px; color: rgba(16,185,129,.5); background: none; border: .5px solid rgba(16,185,129,.2); border-radius: 6px; padding: 3px 9px; cursor: pointer; font-family: inherit; white-space: nowrap; flex-shrink: 0; }
.eb-ph-rb__close:hover { color: var(--ph-em); border-color: rgba(16,185,129,.4); }

/* ══════════════════════════════════════════════════════════════════════════
   DOT GRID WRAPPER
   overflow: visible allows card-wrap children to expand 200% width
══════════════════════════════════════════════════════════════════════════ */

.eb-ph-grid-wrap {
  position: relative;
  flex: 1;
  padding: 1.125rem .875rem 1.375rem;
  overflow: hidden;  /* SpecCard™ v4 */
}

.eb-ph-dotbg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   CATEGORY SECTIONS — all overflow:visible for hover
══════════════════════════════════════════════════════════════════════════ */

.eb-ph-cat-section { position: relative; z-index: 1; }
.eb-ph-cat-block { margin-bottom: 1.75rem; }

.eb-ph-cat-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: .875rem;
  padding-bottom: .625rem;
  border-bottom: .5px solid rgba(16,185,129,.15);
  flex-wrap: wrap;
}

.eb-ph-cat-hdr__series-label { font-size: 11px; letter-spacing: .09em; color: var(--ph-em); text-transform: uppercase; flex-shrink: 0; font-weight: 500; }
.eb-ph-cat-hdr__name { font-size: 15px; font-weight: 500; }
.eb-ph-cat-hdr__name--em { color: #6ee7b7; }
.eb-ph-cat-hdr__name--bl { color: #93c5fd; }
.eb-ph-cat-hdr__name--vt { color: #c4b5fd; }
.eb-ph-cat-hdr__name--gd { color: #fcd34d; }
.eb-ph-cat-hdr__meta { font-size: 11px; color: rgba(16,185,129,.4); margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ══════════════════════════════════════════════════════════════════════════
   PRODUCT GRIDS
   FIX 1: .eb-ph-range .eb-ph-grid--3 uses HIGHER SPECIFICITY + !important
   to override eb-wide-layout.css which sets repeat(4,1fr) !important at 1400px+
══════════════════════════════════════════════════════════════════════════ */

/* This must stay before the range-specific override */
.eb-ph-grid--3,
.eb-ph-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  overflow: hidden;  /* SpecCard™ v4 */
  position: relative;
  z-index: 1;
}

/* Card-wrap grid cells — standard overflow (SpecCard™ v4: no expansion) */
.eb-ph-grid--3 .eb-ph-card-wrap,
.eb-ph-grid .eb-ph-card-wrap {
  display: flex;
}

.eb-ph-grid--1 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  overflow: visible;
}

/*
   FIX 1 — Override eb-wide-layout.css repeat(4,1fr) !important at 1400px+
   Higher specificity (.eb-ph-range .eb-ph-grid--3 vs just .eb-ph-grid--3)
   + !important beats the global !important rule.
*/
.eb-ph-range .eb-ph-grid--3,
.eb-ph-range .eb-ph-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.eb-ph-range .eb-ph-grid--1 {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px !important;
}

/* No results */
.eb-ph-no-results { display: none; padding: 3rem 0; text-align: center; color: rgba(16,185,129,.4); font-size: 13px; }
.eb-ph-no-results__text { margin-bottom: .625rem; }
.eb-ph-no-results__btn { color: var(--ph-em); background: none; border: .5px solid rgba(16,185,129,.3); border-radius: 7px; padding: 7px 16px; cursor: pointer; font-size: 12px; font-family: inherit; }

/* ══════════════════════════════════════════════════════════════════════════
   SPECCARD v2 — PRODUCT CARD SYSTEM
   ──────────────────────────────────────────────────────────────────────────
   Visual direction: white/light product image cards. Old first-version feel.
   No dark media well. Product image is dominant and prominent.
   Hover: translateY lift + stronger shadow. Image floats slightly.
   All content always visible. No hover-only layout changes.
   New class names per spec:
     .eb-ph-card__media        – image zone (white bg)
     .eb-ph-card__metric-pill  – series key metric (top-right)
     .eb-ph-card__family       – series label
     .eb-ph-card__title        – product name
     .eb-ph-card__summary      – one-line description
     .eb-ph-card__stats        – 4-column technical strip
     .eb-ph-card__tags         – max 3 compliance/feature tags
     .eb-ph-card__actions      – View Product + Compare only
══════════════════════════════════════════════════════════════════════════ */

/* ── Grid cell wrapper ─────────────────────────────────────────────────── */
.eb-ph-card-wrap {
  position: relative;
  display: flex;            /* enables .eb-ph-card height:100% in grid rows */
}

/* Grid cells: display flex so card stretches full row height */
.eb-ph-grid--3 .eb-ph-card-wrap,
.eb-ph-grid .eb-ph-card-wrap,
.eb-ph-grid--1 .eb-ph-card-wrap {
  display: flex;
}

/* ── Card shell ────────────────────────────────────────────────────────── */
@keyframes eb-speccard-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.eb-ph-card {
  position: relative;
  width: 100%;
  flex: 1;                          /* fills card-wrap height in grid row */
  background: #fff;
  border-radius: 12px;
  border: 0.5px solid rgba(0,0,0,.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  animation: eb-speccard-in .32s ease both;
  /* Base shadow: card sits slightly above dark grid bg */
  box-shadow:
    0 1px 3px rgba(0,0,0,.07),
    0 1px 2px rgba(0,0,0,.04);
  transition:
    transform    .3s cubic-bezier(.4,0,.2,1),
    box-shadow   .3s ease,
    border-color .22s;
}

.eb-ph-card.is-hidden  { display: none !important; }
.eb-ph-card.is-faded   { opacity: .22; pointer-events: none; }

/* ── Hover lift — original first-version feel ──────────────────────────── */
.eb-ph-card:hover {
  transform: translateY(-8px) scale(1.012);
  border-color: rgba(16,185,129,.4);
  box-shadow:
    0 20px 40px rgba(0,0,0,.13),
    0 8px 16px rgba(0,0,0,.08),
    0 2px 4px rgba(0,0,0,.04);
}

/* Series-specific border tints on hover */
.eb-ph-card[data-series="44"]:hover,
.eb-ph-card[data-series="38"]:hover,
.eb-ph-card[data-series="33"]:hover,
.eb-ph-card[data-series="30"]:hover { border-color: rgba(16,185,129,.5); }
.eb-ph-card[data-series="hb"]:hover  { border-color: rgba(59,130,246,.5); }
.eb-ph-card[data-series="pt"]:hover  { border-color: rgba(139,92,246,.5); }
.eb-ph-card[data-series="fl"]:hover  { border-color: rgba(217,119,6,.5); }

/* Top-line sweep on hover — allowed: transform */
.eb-ph-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--ph-em) 50%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  z-index: 6;
}
.eb-ph-card[data-series="44"]::before,
.eb-ph-card[data-series="38"]::before,
.eb-ph-card[data-series="33"]::before,
.eb-ph-card[data-series="30"]::before { background: linear-gradient(90deg, transparent 0%, var(--ph-em) 50%, transparent 100%); }
.eb-ph-card[data-series="hb"]::before  { background: linear-gradient(90deg, transparent 0%, var(--ph-blue) 50%, transparent 100%); }
.eb-ph-card[data-series="pt"]::before  { background: linear-gradient(90deg, transparent 0%, var(--ph-violet) 50%, transparent 100%); }
.eb-ph-card[data-series="fl"]::before  { background: linear-gradient(90deg, transparent 0%, var(--ph-amber) 50%, transparent 100%); }

.eb-ph-card:hover::before { transform: scaleX(1); }

/* Keyboard focus */
.eb-ph-card:focus-visible {
  outline: 2px solid rgba(16,185,129,.7);
  outline-offset: 2px;
}

/* ── Media zone: white / very light — product image is dominant ────────── */
.eb-ph-card__media {
  position: relative;
  width: 100%;
  height: 220px;        /* approx 52–58% of target 430–470px card height */
  background: #f7f9f8;  /* very light warm grey — clean product display  */
  border-bottom: 1px solid rgba(0,0,0,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

/* Subtle inner vignette — adds depth without going dark */
.eb-ph-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(0,0,0,.04) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ── Status dot ────────────────────────────────────────────────────────── */
.eb-ph-card__status {
  position: absolute;
  top: 10px; left: 12px;
  width: 7px; height: 7px;
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 0 0 2px rgba(255,255,255,.8);
}

/* ── Metric pill: top-right — key series metric ────────────────────────── */
.eb-ph-card__metric-pill {
  position: absolute;
  top: 9px; right: 10px;
  background: #fff;
  border: 0.5px solid rgba(0,0,0,.14);
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono, monospace);
  letter-spacing: .02em;
  z-index: 3;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  transition: border-color .2s;
  white-space: nowrap;
}

.eb-ph-card__metric-pill--em   { color: #047857; border-color: rgba(16,185,129,.35); }
.eb-ph-card__metric-pill--blue { color: #1e3a8a; border-color: rgba(59,130,246,.35); }
.eb-ph-card__metric-pill--vt   { color: #4c1d95; border-color: rgba(139,92,246,.35); }
.eb-ph-card__metric-pill--gold { color: #92400e; border-color: rgba(245,158,11,.35); }

/* Pill brightens slightly on card hover */
.eb-ph-card:hover .eb-ph-card__metric-pill { border-color: rgba(16,185,129,.5); }

/* ── Product image — prominent, centred, object-fit: contain ───────────── */
.eb-ph-card__image {
  width: 82%;
  height: 82%;
  object-fit: contain;
  object-position: center;
  display: block;
  z-index: 2;
  position: relative;
  /* Allowed: transform */
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.1));
}

/* Image floats slightly on hover */
.eb-ph-card:hover .eb-ph-card__image {
  transform: translateY(-6px) scale(1.025);
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.14));
}

/* ── SVG cross-section fallback (when no product photo) ────────────────── */
.eb-ph-card__xsec-wrap {
  width: 78%;
  height: 78%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
  transition: transform .3s ease;
}

.eb-ph-card:hover .eb-ph-card__xsec-wrap {
  transform: translateY(-4px) scale(1.02);
}

.eb-ph-card__xsec {
  width: 100%;
  height: 100%;
}

/* ── Card body: white, flex-column ─────────────────────────────────────── */
.eb-ph-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;            /* fill remaining card height */
  padding: 12px 14px 0;
  min-height: 0;
}

/* ── Family / series label ──────────────────────────────────────────────── */
.eb-ph-card__family {
  display: block;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 3px;
  opacity: .42;
  flex-shrink: 0;
}

/* Series accent colours for family label */
.eb-ph-card[data-series="44"] .eb-ph-card__family,
.eb-ph-card[data-series="38"] .eb-ph-card__family,
.eb-ph-card[data-series="33"] .eb-ph-card__family,
.eb-ph-card[data-series="30"] .eb-ph-card__family { color: #059669; opacity: .7; }
.eb-ph-card[data-series="hb"] .eb-ph-card__family { color: #1d4ed8; opacity: .7; }
.eb-ph-card[data-series="pt"] .eb-ph-card__family { color: #6d28d9; opacity: .7; }
.eb-ph-card[data-series="fl"] .eb-ph-card__family { color: #b45309; opacity: .7; }

/* ── Product title ──────────────────────────────────────────────────────── */
.eb-ph-card__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.15;
  color: #0f1a12;
  margin-bottom: 5px;
  flex-shrink: 0;
}

/* ── Summary: one clear line ────────────────────────────────────────────── */
.eb-ph-card__summary {
  font-size: 11.5px;
  color: rgba(0,0,0,.48);
  line-height: 1.5;
  margin-bottom: 10px;
  flex-shrink: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Technical stats row: 4 columns ────────────────────────────────────── */
.eb-ph-card__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 0.5px solid rgba(0,0,0,.08);
  border-bottom: 0.5px solid rgba(0,0,0,.08);
  padding: 8px 0;
  margin-bottom: 9px;
  flex-shrink: 0;
}

.eb-ph-card__stat {
  padding: 0 7px;
  border-right: 0.5px solid rgba(0,0,0,.07);
  min-width: 0;
}

.eb-ph-card__stat:first-child { padding-left: 0; }
.eb-ph-card__stat:last-child  { border-right: none; }

.eb-ph-card__stat-value {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono, monospace);
  display: block;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1a2e1e;
}

.eb-ph-card__stat-label {
  font-size: 9.5px;
  color: rgba(0,0,0,.38);
  display: block;
  line-height: 1.2;
  letter-spacing: .02em;
}

/* ── Tags: max 3 ────────────────────────────────────────────────────────── */
.eb-ph-card__tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.eb-ph-card__tag {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: .02em;
}

.eb-ph-card__tag--em   { background: rgba(16,185,129,.1);  color: #065f46; border: .5px solid rgba(16,185,129,.2); }
.eb-ph-card__tag--gold { background: rgba(245,158,11,.1);  color: #92400e; border: .5px solid rgba(245,158,11,.2); }
.eb-ph-card__tag--blue { background: rgba(59,130,246,.1);  color: #1e40af; border: .5px solid rgba(59,130,246,.2); }
.eb-ph-card__tag--vt   { background: rgba(139,92,246,.1);  color: #4c1d95; border: .5px solid rgba(139,92,246,.2); }
.eb-ph-card__tag--sl   { background: rgba(0,0,0,.05);      color: rgba(0,0,0,.55); border: .5px solid rgba(0,0,0,.1); }

/* ── CTA footer ─────────────────────────────────────────────────────────── */
/* ONLY: View Product + Compare. No Spec Pack. No Download. No bare +.      */
.eb-ph-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 11px;
  margin-top: auto;             /* pin to card bottom */
  border-top: 0.5px solid rgba(0,0,0,.07);
  flex-shrink: 0;
  transition: border-color .2s;
}

.eb-ph-card:hover .eb-ph-card__actions {
  border-top-color: rgba(16,185,129,.18);
}

/* View Product link */
.eb-ph-card__view {
  flex: 1;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .15s, opacity .15s;
  min-width: 0;
}

.eb-ph-card__view:hover { color: #047857; }
.eb-ph-card__view:focus-visible {
  outline: 2px solid rgba(16,185,129,.6);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Series-tinted view links */
.eb-ph-card[data-series="hb"] .eb-ph-card__view { color: #1d4ed8; }
.eb-ph-card[data-series="pt"] .eb-ph-card__view { color: #6d28d9; }
.eb-ph-card[data-series="fl"] .eb-ph-card__view { color: #b45309; }

/* Compare button */
.eb-ph-card__compare {
  flex-shrink: 0;
  padding: 5px 11px;
  border-radius: 7px;
  border: 0.5px solid rgba(0,0,0,.14);
  font-size: 11.5px;
  font-family: inherit;
  cursor: pointer;
  background: none;
  color: rgba(0,0,0,.44);
  white-space: nowrap;
  letter-spacing: .01em;
  transition: background .15s, color .15s, border-color .15s;
}

.eb-ph-card__compare:hover {
  background: rgba(16,185,129,.07);
  border-color: rgba(16,185,129,.3);
  color: #047857;
}

/* Compare "Added" state */
.eb-ph-card__compare.is-pinned {
  background: rgba(16,185,129,.12);
  border-color: rgba(16,185,129,.38);
  color: #047857;
  font-weight: 500;
}

/* Disabled state (not compare-eligible or coming-soon) */
.eb-ph-card__compare[disabled],
.eb-ph-card__compare[aria-disabled="true"] {
  opacity: .28;
  cursor: not-allowed;
  pointer-events: none;
}

.eb-ph-card__compare:focus-visible {
  outline: 2px solid rgba(16,185,129,.6);
  outline-offset: 2px;
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .eb-ph-card,
  .eb-ph-card:hover { transition: none; transform: none !important; animation: none; }
  .eb-ph-card::before { display: none; }
  .eb-ph-card__image,
  .eb-ph-card:hover .eb-ph-card__image { transform: none !important; transition: none; filter: none; }
  .eb-ph-card__xsec-wrap,
  .eb-ph-card:hover .eb-ph-card__xsec-wrap { transform: none !important; transition: none; }
  .eb-ph-card__view,
  .eb-ph-card__compare { transition: none; }
  @keyframes eb-speccard-in { from {} to {} }
}

/* ── Tablet ≤ 960px — 2-col grid, gentle hover ─────────────────────────── */
@media (max-width: 960px) and (min-width: 601px) {
  .eb-ph-card:hover { transform: translateY(-5px) scale(1.008); }
  .eb-ph-card__media { height: 200px; }
}

/* ── Mobile ≤ 600px — 1-col, no hover, always-visible CTAs ─────────────── */
@media (max-width: 600px) {
  /* Disable all hover transforms on touch */
  .eb-ph-card:hover,
  .eb-ph-card:focus-within { transform: none !important; box-shadow: 0 1px 3px rgba(0,0,0,.07) !important; }
  .eb-ph-card::before { display: none; }
  .eb-ph-card:hover .eb-ph-card__image { transform: none !important; filter: none; }
  .eb-ph-card:hover .eb-ph-card__xsec-wrap { transform: none !important; }
  /* Larger touch targets for CTAs */
  .eb-ph-card__view  { font-size: 13px; }
  .eb-ph-card__compare { font-size: 12px; padding: 6px 12px; }
  .eb-ph-card__title { font-size: 15px; }
  .eb-ph-card__media { height: 180px; }
  .eb-ph-card__body  { padding: 10px 12px 0; }
  .eb-ph-card__actions { padding: 8px 12px 10px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   COMPARISON TRAY
══════════════════════════════════════════════════════════════════════════ */

.eb-ph-compare-tray {
  background: var(--ph-dark);
  box-shadow: 0 0 0 0.5px rgba(16,185,129,.25);
  border-radius: var(--ph-r);
  padding: .75rem 1.125rem;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  /* constrained — sits inside range-bg at full-bleed level */
  width: calc(100% - 2 * var(--ph-side-pad));
  max-width: calc(var(--ph-max) - 2 * var(--ph-side-pad));
  margin: var(--ph-gap) auto 0;
}

.eb-ph-compare-tray[hidden] { display: none !important; }
.eb-ph-compare-tray__label { font-size: 11px; color: rgba(16,185,129,.55); flex-shrink: 0; letter-spacing: .07em; text-transform: uppercase; font-weight: 500; }
.eb-ph-compare-tray__slots { display: flex; gap: 7px; flex: 1; min-width: 0; }
.eb-ph-compare-tray__slot { height: 32px; flex: 1; border: .5px dashed rgba(16,185,129,.22); border-radius: 7px; display: flex; align-items: center; padding: 0 10px; font-size: 11px; color: rgba(255,255,255,.22); gap: 4px; min-width: 0; }
.eb-ph-compare-tray__slot.is-filled { border-style: solid; border-color: rgba(16,185,129,.4); background: rgba(16,185,129,.08); color: var(--ph-em-bright); }
.eb-ph-compare-tray__slot-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eb-ph-compare-tray__slot-rm { cursor: pointer; color: rgba(16,185,129,.4); font-size: 14px; background: none; border: none; font-family: inherit; padding: 0; flex-shrink: 0; line-height: 1; }
.eb-ph-compare-tray__slot-rm:hover { color: var(--ph-em); }
.eb-ph-compare-tray__go { background: var(--ph-em); color: #022c16; border: none; border-radius: 7px; padding: 7px 14px; font-size: 11px; cursor: pointer; font-weight: 600; font-family: inherit; white-space: nowrap; opacity: .3; transition: opacity .15s; }
.eb-ph-compare-tray__go.is-ready { opacity: 1; }
.eb-ph-compare-tray__clear { font-size: 11px; color: rgba(16,185,129,.45); background: none; border: .5px solid rgba(16,185,129,.18); border-radius: 6px; padding: 6px 10px; cursor: pointer; font-family: inherit; flex-shrink: 0; }
.eb-ph-compare-tray__clear:hover { color: var(--ph-em); border-color: rgba(16,185,129,.4); }

/* ══════════════════════════════════════════════════════════════════════════
   COMPARISON BUILDER SECTION
══════════════════════════════════════════════════════════════════════════ */

.eb-ph-chart-section {
  background: var(--ph-dark, #020c06);
  border-top: .5px solid rgba(16,185,129,.1);
  border-bottom: .5px solid rgba(16,185,129,.1);
  border-radius: 0;
  width: 100%;
  padding: 3rem var(--ph-side-pad);
  box-sizing: border-box;
}

/* Constrain chart section inner content */
.eb-ph-chart-hdr,
.eb-ph-cmp-sels,
.eb-ph-chart-grid,
.eb-ph-cmp-footer {
  max-width: var(--ph-max);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.eb-ph-chart-hdr { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 1rem; flex-wrap: wrap; }
.eb-ph-chart-eyebrow { font-size: 11px; letter-spacing: .09em; color: var(--ph-em); display: flex; align-items: center; gap: 6px; margin-bottom: .25rem; text-transform: uppercase; font-weight: 500; }
.eb-ph-chart-eyebrow__bar { width: 12px; height: 1.5px; background: var(--ph-em); }
.eb-ph-chart-h2 { font-size: 16px; font-weight: 500; color: rgba(255,255,255,.88); margin-bottom: .2rem; }
.eb-ph-chart-sub { font-size: 12px; color: rgba(255,255,255,.42); }
.eb-ph-cmp-sels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 1rem; }
.eb-ph-cmp-sel-label { font-size: 12px; color: rgba(255,255,255,.42); margin-bottom: 4px; }
.eb-ph-chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.eb-ph-chart-wrap { position: relative; }
.eb-ph-chart-title { font-size: 12px; color: rgba(255,255,255,.42); margin-bottom: 7px; }
.eb-ph-table-wrap { overflow-x: auto; }
.eb-ph-chart-legend { display: flex; gap: 12px; margin-top: 9px; flex-wrap: wrap; }
.eb-ph-chart-leg { display: flex; align-items: center; gap: 5px; font-size: 11px; color: rgba(255,255,255,.4); }
.eb-ph-chart-leg__dot { width: 8px; height: 8px; border-radius: 50%; }

/* Table — dark version */
.eb-ph-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.eb-ph-table th { text-align: left; padding: 7px 10px; font-size: 11px; color: rgba(255,255,255,.45); font-weight: 500; border-bottom: .5px solid rgba(16,185,129,.15); background: rgba(16,185,129,.04); }
.eb-ph-table th.hd { color: var(--ph-em); }
.eb-ph-table td { padding: 7px 10px; border-bottom: .5px solid rgba(255,255,255,.06); color: rgba(255,255,255,.72); vertical-align: middle; }
.eb-ph-table .best { color: #34d399; font-weight: 600; }
.eb-ph-table .na { color: rgba(255,255,255,.28); }
.eb-ph-table .tick { color: #34d399; }
.eb-ph-table .hd { color: var(--ph-em); }

.eb-ph-cmp-footer { margin-top: 1rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.eb-ph-cmp-btn { background: var(--ph-em); color: #022c16; border: none; border-radius: 8px; padding: 9px 18px; font-size: 12px; cursor: pointer; font-weight: 600; font-family: inherit; }
.eb-ph-cmp-hint { font-size: 11px; color: rgba(255,255,255,.3); }

/* Download button in chart header — dark context */
.eb-ph-chart-hdr .eb-ph-btn--outline { color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.04); }
.eb-ph-chart-hdr .eb-ph-btn--outline:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.85); }

/* ══════════════════════════════════════════════════════════════════════════
   CERTIFICATION STRIP — dark
══════════════════════════════════════════════════════════════════════════ */

.eb-ph-cert-strip {
  background: rgba(16,185,129,.04);
  border-top: .5px solid rgba(16,185,129,.12);
  border-bottom: .5px solid rgba(16,185,129,.12);
  border-radius: 0;
  width: 100%;
  padding: 1.5rem var(--ph-side-pad);
  box-sizing: border-box;
}
.eb-ph-cert-strip__inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.eb-ph-cert-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.65); }
.eb-ph-cert-icon { width: 34px; height: 34px; border-radius: 7px; background: var(--ph-em-deep); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; letter-spacing: .02em; font-family: var(--font-mono, monospace); flex-shrink: 0; }
.eb-ph-cert-sep { width: .5px; height: 24px; background: rgba(16,185,129,.15); }

/* ══════════════════════════════════════════════════════════════════════════
   SPECIFICATION SUPPORT — dark
══════════════════════════════════════════════════════════════════════════ */

.eb-ph-support {
  background: var(--ph-dark, #020c06);
  border-top: .5px solid rgba(16,185,129,.1);
  width: 100%;
  padding: 3rem var(--ph-side-pad);
  box-sizing: border-box;
}

.eb-ph-support__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ph-gap);
  max-width: var(--ph-max);
  margin: 0 auto;
  box-sizing: border-box;
}
.eb-ph-sup-card { background: rgba(255,255,255,.04); border: .5px solid rgba(16,185,129,.15); border-radius: var(--ph-r); padding: 1.375rem; }
.eb-ph-sup-ey { font-size: 11px; letter-spacing: .07em; display: block; margin-bottom: .35rem; text-transform: uppercase; font-weight: 500; }
.eb-ph-sup-ey--em   { color: var(--ph-em); }
.eb-ph-sup-ey--gold { color: var(--ph-gold); }
.eb-ph-sup-h { font-size: 15px; font-weight: 500; color: rgba(255,255,255,.88); margin-bottom: .35rem; }
.eb-ph-sup-body { font-size: 12px; color: rgba(255,255,255,.45); line-height: 1.55; margin-bottom: .75rem; }
.eb-ph-sup-li { font-size: 12px; color: rgba(255,255,255,.45); padding: 3px 0; display: flex; align-items: center; gap: 7px; }
.eb-ph-sup-li::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--ph-em); flex-shrink: 0; }
.eb-ph-sup-ctas { display: flex; gap: 7px; margin-top: .875rem; flex-wrap: wrap; }
.eb-ph-sup-ctas .eb-ph-btn { font-size: 12px; min-height: 38px; padding: 8px 14px; }

/* Support buttons on dark bg */
.eb-ph-sup-ctas .eb-ph-btn--primary { background: var(--ph-em); color: #022c16; }
.eb-ph-sup-ctas .eb-ph-btn--outline { color: rgba(255,255,255,.6); border: .5px solid rgba(255,255,255,.15); background: rgba(255,255,255,.04); }
.eb-ph-sup-ctas .eb-ph-btn--outline:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.85); }

/* ══════════════════════════════════════════════════════════════════════════
   FINAL CTA
══════════════════════════════════════════════════════════════════════════ */

.eb-ph-final {
  background: var(--ph-dark);
  border-radius: 0;   /* full-bleed */
  width: 100%;
  padding: 3.5rem var(--ph-side-pad);
  box-sizing: border-box;
  text-align: center;
}
.eb-ph-final__inner { max-width: 540px; margin: 0 auto; }
.eb-ph-final__eyebrow { font-size: 11px; letter-spacing: .09em; color: rgba(16,185,129,.5); display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: .625rem; text-transform: uppercase; }
.eb-ph-final__h { font-size: 23px; font-weight: 500; color: #fff; line-height: 1.18; margin-bottom: .4rem; }
.eb-ph-final__lead { font-size: 12px; color: rgba(255,255,255,.35); line-height: 1.6; margin-bottom: 1.375rem; }
.eb-ph-final__stats { display: flex; justify-content: center; gap: 2.5rem; margin-bottom: 1.375rem; flex-wrap: wrap; }
.eb-ph-final__stat-n { display: block; font-size: 20px; font-weight: 500; color: var(--ph-gold); }
.eb-ph-final__stat-l { display: block; font-size: 11px; color: rgba(255,255,255,.35); margin-top: 2px; }
.eb-ph-final__ctas { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════════════════
   COMPARE MODAL
══════════════════════════════════════════════════════════════════════════ */

.eb-ph-compare-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.eb-ph-compare-modal[hidden] { display: none !important; }
.eb-ph-compare-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.eb-ph-compare-modal__panel { position: relative; background: var(--color-background-primary, #fff); border-radius: var(--ph-r); max-width: 820px; width: calc(100% - 2rem); max-height: 90vh; overflow-y: auto; display: flex; flex-direction: column; box-shadow: 0 24px 64px rgba(0,0,0,.3); }
.eb-ph-compare-modal__header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: .5px solid var(--color-border-tertiary, rgba(0,0,0,.1)); }
.eb-ph-compare-modal__title { font-size: 15px; font-weight: 500; }
.eb-ph-compare-modal__close { background: none; border: none; cursor: pointer; color: var(--color-text-secondary); font-size: 18px; padding: 4px 6px; border-radius: 4px; line-height: 1; }
.eb-ph-compare-modal__close:hover { background: var(--color-background-secondary); }
.eb-ph-compare-modal__body { padding: 1.25rem; flex: 1; overflow-x: auto; }
.eb-ph-compare-modal__footer { padding: 1rem 1.25rem; border-top: .5px solid var(--color-border-tertiary, rgba(0,0,0,.1)); display: flex; gap: 8px; align-items: center; }
.eb-ph-compare-modal__close-btn { background: none; border: .5px solid var(--color-border-secondary, rgba(0,0,0,.15)); border-radius: 7px; padding: 7px 14px; font-size: 12px; cursor: pointer; font-family: inherit; color: var(--color-text-secondary); }
.eb-ph-compare-table-wrap { overflow-x: auto; }
.eb-ph-cmp-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.eb-ph-cmp-table th, .eb-ph-cmp-table td { padding: 8px 12px; border-bottom: .5px solid var(--color-border-tertiary, rgba(0,0,0,.08)); text-align: left; }
.eb-ph-cmp-table th { background: var(--color-background-secondary, #f9fafb); font-weight: 500; color: var(--color-text-secondary); }
.eb-ph-cmp-table .eb-cmp-col { min-width: 150px; }
.eb-ph-cmp-table .eb-cmp-row-label { color: var(--color-text-secondary); width: 150px; }

/* ══════════════════════════════════════════════════════════════════════════
   MISC
══════════════════════════════════════════════════════════════════════════ */

#eb-ph-scatter { display: block; width: 100%; height: 220px; }
#eb-ph-scatter-tip { display: none; position: absolute; background: rgba(2,12,6,.92); border: .5px solid rgba(16,185,129,.25); border-radius: 7px; padding: 7px 12px; font-size: 11px; font-family: var(--font-mono, monospace); color: rgba(200,225,210,.9); pointer-events: none; z-index: 10; white-space: nowrap; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

.eb-ph-flag-badge { display: inline-block; font-size: 9px; font-weight: 700; padding: 1px 4px; border-radius: 3px; margin-right: 2px; font-family: var(--font-mono, monospace); }
.eb-ph-flag-badge--uk { background: rgba(59,130,246,.12); color: #1d4ed8; }
.eb-ph-flag-badge--dr { background: rgba(239,68,68,.12); color: #b91c1c; }

/* ══════════════════════════════════════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .eb-ph-card,
  .eb-ph-card:hover,
  .eb-ph-card:focus-within { transition: none; transform: none !important; animation: none; }
  .eb-ph-card::before { display: none; }
  /* img-wrap replaced by eb-ph-card__image in SpecCard v2 */
  .eb-ph-compare-btn { transition: none; }
  .eb-ph-marquee__track { animation: none; }
  @keyframes eb-card-in { from {} to {} }
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET ≤ 960px
══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 960px) {
  .eb-ph-hero__inner { grid-template-columns: 1fr; }
  .eb-ph-hero__right { display: none; }
  .eb-ph-range-bg { padding: 0; }
  .eb-ph-range { grid-template-columns: 1fr; padding: 0; border-radius: 0; }
  .eb-ph-sidebar { position: static; max-height: none; border-radius: 0; border-right: none; border-bottom: .5px solid rgba(16,185,129,.1); }
  .eb-ph-range-content { border-radius: 0; }
  /* Keep 3 cols on tablet where space allows */
  .eb-ph-range .eb-ph-grid--3,
  .eb-ph-range .eb-ph-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .eb-ph-chart-grid { grid-template-columns: 1fr; }
  .eb-ph-support__inner { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE ≤ 600px
══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
  /* Mobile hover handled in PASS 2 section below */
  .eb-ph-hero__inner { padding: 1.25rem 1rem 0; }
  .eb-ph-h1 { font-size: 20px; }
  .eb-ph-qs-list { grid-template-columns: 1fr; }
  .eb-ph-range .eb-ph-grid--3,
  .eb-ph-range .eb-ph-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .eb-ph-cmp-sels { grid-template-columns: 1fr; }
  .eb-ph-hstats { flex-wrap: wrap; }
  .eb-ph-hstat { flex-basis: 33.33%; border-bottom: .5px solid rgba(16,185,129,.08); }
  .eb-ph-compare-tray { flex-wrap: wrap; }
  .eb-ph-final__ctas { flex-direction: column; align-items: stretch; }
  .eb-ph-final__stats { gap: 1.25rem; }
}




/* ==========================================================================
   PATCH — Responsive hardening pass
   ─────────────────────────────────────────────────────────────────────────
   1. Chart/canvas overflow containment
   2. Compare modal mobile sizing
   3. ≤480px tray wrapping
   4. Filter sidebar full-width controls at ≤600px (already handled for grid;
      add explicit full-width for buttons and search at ≤480px)
   5. Note on compare-tray/modal duplication — see implementation notes
   ========================================================================== */


/* ── 1. Chart canvas overflow containment ────────────────────────────────── */
/*    canvas elements default to their pixel width which can exceed the
      container at narrow viewports. Wrap in overflow-x:auto with min-width:0.  */

.eb-ph-chart-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
}

#eb-ph-scatter {
  min-width: 0;
  max-width: 100%;
  display: block;
}

#eb-ph-scatter-tip {
  /* Tooltip must not overflow viewport */
  max-width: min(260px, 90vw);
  white-space: normal;
  word-break: break-word;
}


/* ── 2. Compare modal — mobile sizing ────────────────────────────────────── */

@media (max-width: 540px) {
  .eb-ph-compare-modal__panel {
    width: calc(100% - 1rem);
    max-height: 92vh;
    border-radius: var(--ph-r) var(--ph-r) 0 0;
  }

  .eb-ph-compare-modal {
    align-items: flex-end; /* sheet slides up from bottom */
    padding: 0;
  }
}


/* ── 3. ≤480px — tray and filter controls ────────────────────────────────── */

@media (max-width: 480px) {
  /* Compare tray — wrap to column */
  .eb-ph-compare-tray {
    flex-direction: column;
    align-items: stretch;
  }

  .eb-ph-compare-tray__slots {
    flex-wrap: wrap;
  }

  .eb-ph-compare-tray__slot {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }

  /* Search input + sort full width */
  .eb-ph-search-bar {
    flex-wrap: wrap;
  }

  .eb-ph-search-input {
    min-width: 0;
    width: 100%;
  }

  /* Sidebar wizard options — single column at very narrow */
  .eb-ph-qs-list {
    grid-template-columns: 1fr;
  }

  /* Hero stats band — 3-col to 2-col */
  .eb-ph-hero__stats {
    flex-wrap: wrap;
  }

  .eb-ph-hstat {
    flex-basis: 33.33%;
    min-width: 80px;
  }
}


/* ── 4. ≤320px — minimum viewport ────────────────────────────────────────── */

@media (max-width: 320px) {
  .eb-ph-h1 {
    font-size: 17px;
  }

  .eb-ph-card__stats {
    grid-template-columns: 1fr 1fr; /* 2-col stats strip at very narrow */
  }

  .eb-ph-card__stat:nth-child(2n) {
    border-right: none;
  }
}

/* END PATCH — eb-product-hub.css */
