/* ===== Heatvalley design tokens (blue & white, logo red accent) ===== */
:root {
  --blue: #1a5aa0;
  --blue-dark: #123f73;
  --navy: #0d2c4f;
  --red: #e4322b;
  --gold: #f5b942;
  --ink: #152536;
  --muted: #5b6b7e;
  --line: #e3eaf2;
  --bg: #ffffff;
  --bg-alt: #f4f8fc;
  --radius: 14px;
  --shadow: 0 8px 26px rgba(13, 44, 79, 0.08);
  --shadow-lg: 0 18px 44px rgba(13, 44, 79, 0.16);
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ===== Utility bar ===== */
.utility { background: var(--navy); color: #cfe0f3; font-size: 13px; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 7px 20px; flex-wrap: wrap; }
.utility-phone { color: #fff; font-weight: 600; }
.utility-phone:hover { color: var(--gold); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 999px; font-weight: 600;
  border: 1.5px solid transparent; cursor: pointer; transition: .2s ease; font-size: 15px;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(228, 50, 43, .3); }
.btn-primary:hover { background: #c92a24; transform: translateY(-1px); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(26, 90, 160, .3); }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 22px; height: 72px; }
.brand-logo { height: 46px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--ink); padding: 6px 0; border-bottom: 2.5px solid transparent; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); border-bottom-color: var(--red); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ===== Category nav strip ===== */
.catnav { background: var(--blue); position: sticky; top: 72px; z-index: 40; box-shadow: var(--shadow); }
.catnav-inner { display: flex; gap: 4px; overflow-x: auto; padding: 0 20px; }
.catnav-inner a { color: rgba(255,255,255,.92); font-weight: 600; font-size: 14px; padding: 13px 16px; white-space: nowrap; border-bottom: 3px solid transparent; }
.catnav-inner a:hover { color: #fff; border-bottom-color: var(--gold); background: rgba(255,255,255,.07); }
.header-refcom { display: flex; align-items: center; margin-left: -6px; cursor: default; user-select: none; flex-shrink: 0; }
.header-refcom img { height: 32px; width: auto; display: block; }

/* ===== Page banner (inner pages) ===== */
.page-banner {
  background: linear-gradient(150deg, var(--navy) 0%, var(--blue) 70%, #1e6cb5 100%);
  color: #fff; padding: 52px 0; position: relative; overflow: hidden;
}
.page-banner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 240px at 90% 120%, rgba(228,50,43,.25), transparent); pointer-events: none; }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { margin: 6px 0 8px; font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
.page-banner p { margin: 0; color: rgba(255,255,255,.88); max-width: 720px; }
.crumbs { font-size: 13px; color: rgba(255,255,255,.75); }
.crumbs a:hover { color: var(--gold); }

/* ===== Hero (home) ===== */
.hero {
  background:
    linear-gradient(90deg, rgba(3,24,76,.28) 0%, rgba(3,24,76,0) 45%),
    url("assets/img/hero-bg.jpg") right center / cover no-repeat,
    linear-gradient(90deg, #072a67 0%, #03184c 55%, #03184c 100%);
  color: #fff; overflow: hidden; position: relative;
}
@media (max-width: 1200px) {
  .hero {
    background:
      linear-gradient(90deg, rgba(3,24,76,.72) 0%, rgba(3,24,76,.35) 45%, rgba(3,24,76,0) 68%),
      url("assets/img/hero-bg.jpg") right center / cover no-repeat,
      linear-gradient(90deg, #072a67 0%, #03184c 55%, #03184c 100%);
  }
}
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 8% 120%, rgba(228,50,43,.25), transparent); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 0; align-items: center; padding: 84px 20px 96px; position: relative; z-index: 1; }
.hero-copy { max-width: 600px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.hero-copy h1 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.12; margin: 14px 0 16px; font-weight: 800; }
.lead { font-size: 18px; color: rgba(255,255,255,.9); max-width: 580px; }
.hero-cta { display: flex; gap: 14px; margin: 26px 0 22px; flex-wrap: wrap; }
.trust { list-style: none; display: flex; gap: 22px; padding: 0; margin: 0; flex-wrap: wrap; color: rgba(255,255,255,.92); font-weight: 500; }
.trust .tick { color: #5fe0a8; margin-right: 6px; }
@media (max-width: 700px) {
  .hero {
    background: linear-gradient(150deg, var(--navy) 0%, var(--blue) 62%, #1e6cb5 100%);
  }
  .hero-copy { max-width: 100%; }
}

/* ===== USP strip ===== */
.usp { background: #fff; border-bottom: 1px solid var(--line); }
.usp-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 20px; }
.usp-item { display: flex; align-items: center; gap: 12px; }
.usp-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--bg-alt); border-radius: 12px; font-size: 20px; }
.usp-item strong { display: block; font-size: 14.5px; }
.usp-item span { font-size: 12.5px; color: var(--muted); }

/* ===== Sections ===== */
.section { padding: 74px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(25px, 3vw, 36px); margin: 10px 0 12px; font-weight: 800; }
.section-head p { color: var(--muted); margin: 0; }

/* ===== Category tiles ===== */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: .2s ease; display: flex; flex-direction: column;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-tile img { width: 100%; height: 140px; object-fit: contain; background: #f6f9fc; }
.cat-tile .ct-emoji { height: 140px; display: grid; place-items: center; font-size: 46px; background: linear-gradient(160deg, #eaf3fc, #f7fbff); }
.cat-tile h3 { margin: 14px 16px 4px; font-size: 16.5px; }
.cat-tile p { margin: 0 16px 14px; font-size: 13.5px; color: var(--muted); flex: 1; }
.cat-tile .ct-link { display: block; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--blue); font-weight: 700; font-size: 13.5px; }
.cat-tile .ct-link:hover { color: var(--red); }

/* ===== Product cards ===== */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prod-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: .2s ease; display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
/* Image is absolutely positioned so its percentage box resolves against the
   fixed 170px container. (Inside the auto-sized grid row, height:100% could
   not resolve and the image rendered at intrinsic height, clipped by
   overflow:hidden — object-fit never applied.) */
.prod-img { position: relative; height: 170px; display: grid; place-items: center; background: #f8fbfe; border-bottom: 1px solid var(--line); overflow: hidden; }
.prod-img img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; }
.prod-img .ph-emoji { font-size: 46px; }
.prod-meta { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.prod-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.prod-brand { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; color: var(--blue); text-transform: uppercase; }
.prod-level { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eaf3fc; color: var(--blue); white-space: nowrap; }
.prod-level.svc { background: #fdeeee; color: var(--red); }
.prod-level.rec { background: #fff5e0; color: #a06a00; }
.prod-model { margin: 8px 0 2px; font-size: 15px; font-weight: 800; }
.prod-name { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); line-height: 1.45; flex: 1; }
.prod-specs { margin: 0 0 14px; padding: 0; list-style: none; }
.prod-specs li { font-size: 12.5px; color: var(--muted); padding-left: 14px; position: relative; margin-bottom: 4px; }
.prod-specs li::before { content: "•"; position: absolute; left: 0; color: var(--blue); }
.prod-actions { display: flex; gap: 8px; }
.prod-actions .btn { flex: 1; padding: 10px 12px; font-size: 13.5px; }

/* ===== Filter tabs ===== */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.filter-tabs button {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 9px 20px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; transition: .15s;
}
.filter-tabs button:hover { border-color: var(--blue); color: var(--blue); }
.filter-tabs button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.result-note { text-align: center; color: var(--muted); font-size: 14px; margin: 26px 0 0; }

/* ===== Coming soon panel (empty categories) ===== */
.coming-soon {
  grid-column: 1 / -1;
  max-width: 560px; margin: 24px auto 12px; padding: 38px 32px; text-align: center;
  background: linear-gradient(160deg, #eaf3fc, #f7fbff); border: 1.5px dashed #b9d6f2;
  border-radius: 18px;
}
.coming-soon .cs-badge {
  display: inline-block; padding: 5px 14px; margin-bottom: 14px; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}
.coming-soon h3 { margin: 0 0 10px; font-size: 21px; color: var(--ink); }
.coming-soon p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.coming-soon a { color: var(--blue); font-weight: 700; }

/* ===== Split / feature blocks ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split-img img { width: 100%; border-radius: 18px; box-shadow: var(--shadow-lg); background: #f6f9fc; }
.split-copy h2 { font-size: clamp(23px, 2.8vw, 32px); margin: 10px 0 14px; font-weight: 800; }
.split-copy p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.check-list li { padding-left: 28px; position: relative; font-size: 15px; }
.check-list li::before { content: "✔"; position: absolute; left: 0; color: #1a9e5c; font-weight: 700; }

/* ===== Features grid ===== */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.feature { text-align: center; padding: 12px; }
.feature-ic { font-size: 30px; display: block; margin-bottom: 10px; }
.feature h4 { margin: 0 0 6px; font-size: 16.5px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.step h4 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ===== Resource cards ===== */
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.res-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: .2s ease; }
.res-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.res-tag { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.res-card h3 { margin: 8px 0 8px; font-size: 17px; }
.res-card p { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.res-card a { color: var(--blue); font-weight: 700; font-size: 14px; }
.res-card a:hover { color: var(--red); }

/* ===== Guide table (featured resource) ===== */
.guide-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 14px; }
.guide-table th, .guide-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.guide-table th { background: var(--blue); color: #fff; font-size: 13.5px; letter-spacing: .02em; }
.guide-table tr:last-child td { border-bottom: 0; }
.guide-table tr:nth-child(even) td { background: #f8fbfe; }

/* ===== Brand blocks ===== */
.brand-block { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; }
.brand-block + .brand-block { margin-top: 60px; }
.brand-block.flip .bb-img { order: 2; }
.bb-img img { width: 100%; border-radius: 18px; box-shadow: var(--shadow-lg); background: #f6f9fc; }
.bb-copy .brand-pill { display: inline-block; background: var(--blue); color: #fff; font-weight: 800; letter-spacing: .04em; border-radius: 999px; padding: 6px 18px; font-size: 14px; }
.bb-copy h2 { font-size: clamp(23px, 2.8vw, 32px); margin: 14px 0 12px; font-weight: 800; }
.bb-copy p { color: var(--muted); }
.range-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0 22px; }
.range-chips span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 600; color: var(--blue); }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 15.5px; }
.faq details p { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin-bottom: 18px; }
.info-card h4 { margin: 0 0 12px; font-size: 16px; color: var(--blue); }
.info-card p { margin: 0; font-size: 14.5px; color: var(--muted); }
.info-card a { color: var(--blue); font-weight: 600; }
.info-card a:hover { color: var(--red); }
.map-ph { height: 220px; border-radius: var(--radius); background: linear-gradient(160deg, #eaf3fc, #f7fbff); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: 14px; }

.contact-form { background: #fff; color: var(--ink); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font: inherit; color: var(--ink); background: #fbfdff; transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.contact-form .btn-block { grid-column: 1 / -1; }
.form-note { grid-column: 1 / -1; margin: 4px 0 0; font-size: 14px; font-weight: 600; }
.form-note.ok { color: #1a9e5c; }
.form-note.err { color: #d8412f; }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(150deg, var(--navy), var(--blue)); color: #fff; padding: 54px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta-inner h2 { margin: 0 0 6px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
.cta-inner p { margin: 0; color: rgba(255,255,255,.85); }

/* ===== Quotes ===== */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 0; box-shadow: var(--shadow); font-size: 14.5px; }
.quote cite { display: block; margin-top: 14px; color: var(--blue); font-style: normal; font-weight: 700; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #c7d3e0; padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 28px; }
.footer-logo { height: 42px; width: auto; margin-bottom: 14px; }
.footer-tag { margin: 0; color: #8fa1b6; font-size: 14px; max-width: 300px; }
.site-footer h5 { color: #fff; margin: 4px 0 14px; font-size: 15px; }
.site-footer a { display: block; color: #9fb0c4; font-size: 14px; margin-bottom: 9px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #1c3260; margin-top: 34px; padding-top: 18px; color: #7e90a6; font-size: 13px; }

/* ===== Responsive ===== */
@media (max-width: 1020px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .usp-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-inner, .split, .brand-block, .contact-grid { grid-template-columns: 1fr; }
  .brand-block.flip .bb-img { order: 0; }
  .res-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px; display: none; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 0; }
  .nav-toggle { display: flex; }
  .header-refcom { margin-left: auto; }
  .header-refcom img { height: 28px; }
  /* Category strip: wrap into rows so no item is cut off at screen edge */
  .catnav { position: static; }
  .catnav-inner { flex-wrap: wrap; justify-content: center; row-gap: 0; padding: 4px 10px; }
  .catnav-inner a { padding: 9px 12px; font-size: 13px; }
  /* Images: show the FULL photo on phones instead of cropping */
  .prod-img { height: 220px; }
  .prod-img img { object-fit: contain; }
  .cat-tile img { height: 200px; object-fit: contain; }
  .hero-inner { padding: 52px 20px 64px; }
  .prod-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .grid-4, .steps, .grid-3, .res-grid, .usp-inner { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  /* Top utility bar: center + shrink so it never overflows on phones */
  .utility-inner { justify-content: center; gap: 6px 14px; text-align: center; }
  .utility-inner span, .utility-inner a { font-size: 12px; }
  /* Header: tighter so logo + Contact + burger fit comfortably */
  .header-inner { gap: 12px; }
  .brand-logo { height: 40px; }
  /* Tables: allow long cells to wrap instead of forcing page-wide overflow */
  .guide-table th, .guide-table td { word-break: break-word; font-size: 13px; padding: 9px 10px; }
  .page-banner { padding: 38px 0; }
}

/* ===== Product detail lightbox ===== */
.prod-card { cursor: pointer; }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; }
.lightbox.open { display: block; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(8,20,40,.6); backdrop-filter: blur(2px); }
.lb-panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(720px, 94vw); max-height: 92vh; background: #fff; border-radius: 16px;
  box-shadow: 0 24px 60px rgba(10,30,60,.35); overflow: hidden;
  display: flex; flex-direction: column;
}
.lb-close {
  position: absolute; top: 10px; right: 12px; z-index: 3; width: 38px; height: 38px;
  border: none; border-radius: 50%; background: rgba(255,255,255,.92); color: #14365f;
  font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.lb-close:hover { background: #fff; }
/* .lb-body is the panel's flex child that wraps img+info; it must pass the
   height constraint down (flex:1 + min-height:0) or .lb-info never scrolls. */
.lb-body {
  display: flex; flex-direction: column;
  flex: 1 1 auto; min-height: 0; overflow: hidden;
}
.lb-img {
  background: #f3f6fb; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 14px 18px 12px; flex: 0 0 auto;
}
.lb-img .lb-main-img { max-width: 100%; max-height: 20vh; object-fit: contain; }
.lb-thumbs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.lb-thumbs img {
  height: 46px; width: 60px; object-fit: cover; border-radius: 6px; cursor: pointer;
  border: 2px solid transparent; background: #fff; opacity: .75; transition: opacity .15s, border-color .15s;
}
.lb-thumbs img:hover { opacity: 1; }
.lb-thumbs img.active { border-color: #2f6fd0; opacity: 1; }
.lb-info {
  padding: 20px 26px 30px; overflow-y: auto; flex: 1 1 auto; min-height: 0;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: #b9c7da transparent;
}
.lb-info::-webkit-scrollbar { width: 8px; }
.lb-info::-webkit-scrollbar-thumb { background: #b9c7da; border-radius: 4px; }
.lb-info::-webkit-scrollbar-track { background: transparent; }
.lb-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.lb-model { font-size: 13px; letter-spacing: .04em; color: #5a6b80; font-weight: 600; }
.lb-name { font-size: 22px; margin: 4px 0 16px; color: #14365f; }
/* Single scroll container: spec table flows naturally inside .lb-info (no nested scroll) */
.lb-scroll { margin-bottom: 6px; border: 1px solid #e6ecf4; border-radius: 10px; }
.lb-spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.lb-spec th, .lb-spec td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #eef2f7; vertical-align: top; }
.lb-spec th { width: 42%; color: #14365f; font-weight: 600; background: #f7fafd; }
.lb-spec tr:last-child th, .lb-spec tr:last-child td { border-bottom: none; }
@media (max-width: 760px) {
  .lb-panel { width: 96vw; max-height: 94vh; }
  .lb-img { padding: 10px 12px; }
  .lb-img .lb-main-img { max-height: 16vh; }
  .lb-info { padding: 16px 18px 26px; }
}
/* Short viewports: shrink the hero image so the spec table gets room */
@media (max-height: 760px) {
  .lb-img { padding: 8px 14px; }
  .lb-img .lb-main-img { max-height: 15vh; }
}
