/* ─── PRODUCTS PAGE ──────────────────────────────────
   Product card design matches homepage .prod / .prod-b
   Page-level layout via Bootstrap (container / row)   */


/* ══════════════════════════════════════════════════
   1. HERO — now the shared .ab-hero banner (about.css),
   kept in sync with Research / About / Services.
══════════════════════════════════════════════════ */

/* ── Products hero background image ──
   Scoped to this page only — the shared .ab-hero (about.css) used
   on About/Services/Blog/Research stays a plain gradient.        */
.ab-hero.ab-hero--products {
  background:
    linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,.72) 100%),
    linear-gradient(135deg, rgba(11,30,78,.55) 0%, rgba(22,56,131,.4) 50%, rgba(26,77,183,.5) 100%),
    url('../../../images/Products/banner.webp') center / cover no-repeat;
}

.pd-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--c-muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}


/* ══════════════════════════════════════════════════
   2. FILTER BAR
══════════════════════════════════════════════════ */
.pd-filter-bar {
  position: sticky;
  top: 0;
  margin-top: 50px;
  z-index: 100;
  background: #fff;
  border-top: 1px solid var(--c-line);
  padding: 0;
}
.pd-filter-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pd-filter-inner::-webkit-scrollbar { display: none; }

.pd-filter-btn {
  flex-shrink: 0;
  background: none;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-pill);
  padding: 8px 18px;
  font-family: var(--font);
  font-size: var(--tx-sm);
  font-weight: 500;
  color: var(--c-muted);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.pd-filter-btn:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.pd-filter-btn.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  font-weight: 600;
}
.pd-filter-count {
  margin-left: auto;
  flex-shrink: 0;
  font-size: var(--tx-sm);
  font-weight: 600;
  color: var(--c-muted);
  white-space: nowrap;
  padding-left: 12px;
}


/* ══════════════════════════════════════════════════
   3. PRODUCT CARDS — identical design to the homepage
   "Our Products" cards (.svc / .svc-b in home.css)
══════════════════════════════════════════════════ */
.pd-catalog {
  background: var(--c-bg);
  padding: clamp(40px, 7vh, 72px) 0;
}

/* Grid — Bootstrap row/col (3 per row on lg+, see HTML col classes) */
.prod {
  background: rgb(251, 251, 251);
  border-radius: var(--r);
  padding: 32px 26px 22px;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 480px;
  transition: .28s var(--ease);
  cursor: pointer;
}
.prod:hover {
  border-color: var(--c-accent);
  box-shadow: var(--sh-lg);
  transform: translateY(-4px);
}

/* Card body — matches .svc-b */
.prod-b {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}

/* Product title — matches .svc-b h4 */
.prod-b h4 {
  font-family: var(--font);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--c-primary);
}

/* Image container — matches .svc .si */
.prod .pi {
 
  margin: 18px 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.prod .pi img {
  width: 100%;
 
  transition: .45s;
}
.prod:hover .pi img {
  transform: translateY(-4px) scale(1.02);
}

/* Bottom row — matches .svc-b .meta */
.prod-b .meta {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}
.prod-b .pr {
  font-weight: 500;
  font-size: var(--tx-sm);
  color: var(--c-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.prod-b .arr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary);
  color: var(--c-white);
  font-size: var(--tx-sm);
  font-weight: 700;
  padding: 10px 26px;
  border-radius: var(--r-pill);
  min-width: 120px;
  transition: .2s;
}
.prod:hover .arr { background: var(--c-secondary); }

/* Empty state */
.pd-empty {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 20px;
  text-align: center;
}
.pd-empty i     { font-size: 3rem; color: var(--c-faint); }
.pd-empty p     { font-size: var(--tx-base); color: var(--c-muted); margin: 0; }


/* ══════════════════════════════════════════════════
   4. BOTTOM CTA
══════════════════════════════════════════════════ */
.pd-cta {
  background: var(--c-primary);
  padding: clamp(52px, 8vh, 80px) 0;
}
.pd-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.pd-cta .pd-eyebrow { color: rgba(255,255,255,.55); }
.pd-cta-heading {
  font-family: var(--font);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.3px;
  margin-bottom: 10px;
}
.pd-cta-sub {
  color: rgba(255,255,255,.7);
  font-size: var(--tx-sm);
  max-width: 460px;
  line-height: 1.7;
  margin: 0;
}
.pd-cta-btns {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.pd-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font);
  font-size: var(--tx-sm);
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .15s;
  white-space: nowrap;
}
.pd-cta-btn:hover { transform: translateY(-1px); }
.pd-cta-btn--primary {
  background: #fff;
  color: var(--c-primary);
}
.pd-cta-btn--primary:hover { background: var(--c-bg-soft); color: var(--c-primary); }
.pd-cta-btn--outline {
  border: 1.5px solid rgba(255,255,255,.45);
  color: #fff;
}
.pd-cta-btn--outline:hover { border-color: #fff; color: #fff; }


/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .pd-cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .prod { padding: 20px 14px 16px; min-height: 380px; }
  .prod .pi { height: 150px; }
  .prod-b h4 { font-size: 1.1rem; }
  .prod-b .arr { padding: 8px 16px; min-width: auto; }
}


/* ══════════════════════════════════════════════════
   5. PRODUCT DETAIL PANEL — slides in from the right
══════════════════════════════════════════════════ */
.pd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 20, 44, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease);
  z-index: 1000;
}
.pd-overlay.show { opacity: 1; visibility: visible; }

.pd-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(560px, 100vw);
  height: 100vh;
  background: var(--c-white);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  box-shadow: -8px 0 40px rgba(0, 0, 0, .18);
  overflow-y: auto;
}
.pd-panel.show { transform: translateX(0); }

.pd-panel-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  color: var(--c-ink);
  cursor: pointer;
  z-index: 3;
  transition: background .2s;
}
.pd-panel-close:hover { background: #fff; }

.pd-panel-media {
  position: relative;
  height: 300px;
  flex-shrink: 0;
  background: var(--c-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pd-panel-media img { width: 78%; height: 78%; object-fit: contain; }

.pd-panel-body { padding: 28px 32px 8px; flex: 1; }

.pd-panel-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-secondary);
  margin-bottom: 12px;
}
.pd-panel-body h2 {
  font-family: var(--font);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.15;
  margin-bottom: 14px;
}
.pd-panel-desc {
  font-size: var(--tx-sm);
  color: var(--c-muted);
  line-height: 1.7;
  margin-bottom: 26px;
}

.pd-panel-section { margin-bottom: 28px; }
.pd-panel-section:last-child { margin-bottom: 0; }
.pd-panel-h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-ink);
  margin-bottom: 14px;
}

.pd-panel-specs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pd-panel-specs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: var(--tx-sm);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--c-line);
}
.pd-panel-specs li b { color: var(--c-ink); font-weight: 600; flex-shrink: 0; }
.pd-panel-specs li span { text-align: right; color: var(--c-muted); }

.pd-panel-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-panel-pill {
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-pill);
  padding: 7px 16px;
  font-size: var(--tx-xs);
  font-weight: 600;
  color: var(--c-primary);
}

.pd-panel-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 32px;
  background: #fff;
  border-top: 1px solid var(--c-line);
}
.pd-panel-cta {
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
  font-size: var(--tx-sm);
  padding: 12px 26px;
  border-radius: var(--r-pill);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .2s;
  white-space: nowrap;
}
.pd-panel-cta:hover { background: var(--c-accent-h); color: #fff; }

.pd-panel-nav { display: flex; gap: 8px; flex-shrink: 0; }
.pd-panel-nav button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--c-line);
  background: #fff;
  color: var(--c-primary);
  font-size: 15px;
  cursor: pointer;
  transition: .2s;
}
.pd-panel-nav button:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

body.pd-lock { overflow: hidden; }

@media (max-width: 640px) {
  .pd-panel { width: 100vw; }
  .pd-panel-media { height: 220px; }
  .pd-panel-body { padding: 24px 20px 8px; }
  .pd-panel-body h2 { font-size: 1.5rem; }
  .pd-panel-footer { padding: 14px 20px; }
  .pd-panel-cta { padding: 10px 20px; }
}
