
:root {
  --color-primary: #701896;
  --color-primary-hover: #4f116a;
  --color-accent: #49c0ff;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f4fa;
  --color-header-bg: #ffffff;
  --color-footer-bg: #1d1230;
  --color-footer-band: #311c6b;
  --color-text: #1a1a1a;
  --color-text-2: #333333;
  --color-muted: #666666;
  --color-border: #dddddd;
  --color-link: #701896;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Inter', system-ui, 'Segoe UI', Arial, sans-serif; color: var(--color-text); background: var(--color-bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
h1, h2, h3, h4, h5 { font-family: 'Inter', system-ui, 'Segoe UI', Arial, sans-serif; font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--color-text); }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.35rem; color: var(--color-primary); }
p { margin: 0 0 1em; color: var(--color-text-2); }
a { color: var(--color-link); text-decoration: none; }
a:hover { color: var(--color-primary-hover); text-decoration: underline; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Header — fixed layout: logo (left, fixed) · nav (center, flex:1) · CTA (right, fixed) */
.site-header { background: var(--color-header-bg); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 50; }
.site-header .inner { display: flex; align-items: center; gap: 48px; padding: 16px 0; }
.site-header .logo { flex: 0 0 auto; display: flex; align-items: center; text-decoration: none; }
.site-header .logo:hover { text-decoration: none; }
.site-header .logo img { height: 44px; width: auto; display: block; }
.site-header nav { flex: 1 1 auto; min-width: 0; }
.site-header nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.site-header nav a { color: var(--color-text); font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; font-size: .95rem; }
.site-header nav a:hover { color: var(--color-primary); border-bottom-color: var(--color-primary); text-decoration: none; }

/* Products dropdown — opens on hover (desktop) or click (JS toggle) */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.nav-dropdown-trigger.nav-trigger-active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.nav-caret { font-size: .85em; line-height: 1; transition: transform .15s; }
.nav-dropdown:hover > .nav-dropdown-trigger > .nav-caret,
.nav-dropdown.nav-dropdown-open > .nav-dropdown-trigger > .nav-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%; left: -12px;
  display: none;
  list-style: none;
  margin: 0; padding: 8px 0;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  min-width: 230px;
  z-index: 60;
  border-radius: 4px;
}
.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown.nav-dropdown-open > .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li { display: block; margin: 0; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 0;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border-bottom: 0;
}
.nav-dropdown-menu a.nav-drop-active { color: var(--color-primary); background: var(--color-bg-alt); }

/* Legacy product banner — shown at top of legacy product pages */
.legacy-banner {
  background: #fff8e1;
  border: 1px solid #f0c674;
  border-left: 4px solid #e69b00;
  color: #6e4f00;
  padding: 14px 18px;
  border-radius: 4px;
  margin: 0 0 24px;
  font-size: .95rem;
}
.legacy-banner strong { color: #5a4100; }
.legacy-banner a { color: #b07700; text-decoration: underline; font-weight: 600; }
.legacy-banner a:hover { color: #5a4100; }
.site-header .header-cta { flex: 0 0 auto; background: var(--color-primary); color: #fff; padding: 12px 22px; border-radius: 40px; font-weight: 600; white-space: nowrap; line-height: 1; font-size: .95rem; }
.site-header .header-cta:hover { background: var(--color-primary-hover); color: #fff; text-decoration: none; }
.site-header .menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; font-size: 1.5rem; color: var(--color-text); }

/* Hero */
.hero { background: #701896; color: #fff; padding: 90px 0 100px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; right: -10%; width: 70%; height: 100%; background: radial-gradient(ellipse at center, rgba(255,255,255,.10) 0%, transparent 60%); pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 60px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.08)); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: 20px; padding: 6px 14px; border: 1px solid rgba(255,255,255,.3); }
.hero h1 { color: #fff; font-size: 3rem; max-width: 900px; margin: 0 0 18px; line-height: 1.1; }
.hero p { color: rgba(255,255,255,.92); font-size: 1.15rem; max-width: 720px; }
.hero .cta-row { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 30px; margin-top: 60px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.2); }
.hero-stat strong { display: block; font-size: 2.1rem; color: #fff; line-height: 1; margin-bottom: 6px; }
.hero-stat span { color: rgba(255,255,255,.78); font-size: .9rem; }
.btn-primary, .btn-secondary { display: inline-block; padding: 13px 26px; border-radius: 40px; font-weight: 600; transition: background .15s, color .15s, transform .15s; white-space: nowrap; cursor: pointer; border: 0; font-size: 1rem; }
.btn-primary { background: #fff; color: var(--color-primary); }
.btn-primary:hover { background: var(--color-bg-alt); text-decoration: none; transform: translateY(-1px); }
.btn-secondary { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-secondary:hover { background: rgba(255,255,255,.22); color: #fff; text-decoration: none; }
.btn-solid { display: inline-block; padding: 13px 26px; border-radius: 40px; font-weight: 600; background: var(--color-primary); color: #fff; white-space: nowrap; transition: background .15s; }
.btn-solid:hover { background: var(--color-primary-hover); color: #fff; text-decoration: none; }
.btn-outline { display: inline-block; padding: 13px 26px; border-radius: 40px; font-weight: 600; color: var(--color-primary); border: 2px solid var(--color-primary); white-space: nowrap; background: transparent; transition: all .15s; }
.btn-outline:hover { background: var(--color-primary); color: #fff; text-decoration: none; }

/* Sections */
section { padding: 70px 0; }
section h2 { text-align: center; margin-bottom: 12px; }
section .lead { text-align: center; color: var(--color-muted); margin-bottom: 50px; max-width: 720px; margin-left: auto; margin-right: auto; }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.cat-card { background: #fff; border: 1px solid var(--color-border); padding: 28px; transition: all .2s; display: block; color: inherit; }
.cat-card:hover { border-color: var(--color-primary); box-shadow: 0 8px 24px rgba(112,24,150,.10); text-decoration: none; transform: translateY(-2px); }
.cat-card h3 { color: var(--color-primary); margin-bottom: 8px; }
.cat-card .count { color: var(--color-muted); font-size: .9rem; margin-bottom: 12px; }
.cat-card .preview { color: var(--color-text-2); font-size: .92rem; }
.cat-card .arrow { color: var(--color-primary); margin-top: 16px; font-weight: 600; }

/* Why-card grid (Why Olympian section) */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.why-card { background: #fff; padding: 30px; border: 1px solid var(--color-border); }
.why-card h3 { margin-top: 0; color: var(--color-primary); }
.why-card p { margin: 0; }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.product-card { background: #fff; border: 1px solid var(--color-border); padding: 0; transition: all .2s; display: block; color: inherit; overflow: hidden; }
.product-card:hover { border-color: var(--color-primary); box-shadow: 0 8px 24px rgba(112,24,150,.10); text-decoration: none; transform: translateY(-2px); }
.product-card .image { background: var(--color-bg-alt); height: 220px; display: flex; align-items: center; justify-content: center; padding: 16px; }
.product-card .image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-card .image .placeholder { color: var(--color-muted); font-size: 3rem; opacity: .3; }
.product-card .body { padding: 22px; }
.product-card h3 { color: var(--color-text); margin-bottom: 6px; }
.product-card .desc { color: var(--color-muted); font-size: .92rem; min-height: 3em; }
.product-card .more { color: var(--color-primary); font-weight: 600; margin-top: 14px; display: inline-block; }

/* Breadcrumb */
.crumbs { color: var(--color-muted); margin-bottom: 18px; font-size: .92rem; }

/* Page intros */
.page-intro { padding: 50px 0 30px; }
.page-intro h1 { margin-bottom: 12px; }
.page-intro .intro-lead { color: var(--color-text-2); font-size: 1.1rem; max-width: 800px; }

/* Product page */
.product-page { padding: 50px 0; }
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 50px; align-items: start; }
.product-hero .images img.main-img { width: 100%; max-height: 460px; object-fit: contain; background: var(--color-bg-alt); padding: 24px; border: 1px solid var(--color-border); }
.product-hero .thumbs { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.product-hero .thumb-btn { width: 78px; height: 78px; padding: 0; background: var(--color-bg-alt); border: 2px solid var(--color-border); cursor: pointer; overflow: hidden; transition: border-color .15s, transform .15s; display: flex; align-items: center; justify-content: center; }
.product-hero .thumb-btn img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 4px; pointer-events: none; }
.product-hero .thumb-btn:hover { border-color: var(--color-primary); }
.product-hero .thumb-btn.active { border-color: var(--color-primary); background: #fff; }
.product-hero .thumb-btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.product-hero .meta h1 { margin: 6px 0 12px; }
.product-hero .meta .series { color: var(--color-primary); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.product-hero .meta .short { color: var(--color-text-2); font-size: 1.1rem; margin: 18px 0 24px; }
.product-hero .actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.spec-table { width: 100%; border-collapse: collapse; margin: 30px 0; background: #fff; }
.spec-table th { background: var(--color-bg-alt); text-align: left; padding: 12px 16px; font-weight: 600; border: 1px solid var(--color-border); width: 32%; vertical-align: top; }
.spec-table td { padding: 12px 16px; border: 1px solid var(--color-border); color: var(--color-text-2); }
.long-desc { background: var(--color-bg-alt); padding: 30px; margin: 30px 0; border-left: 4px solid var(--color-primary); }
.long-desc h2 { text-align: left; margin-top: 0; }

/* Image lightbox — full-screen image preview triggered by clicking the
   product main image (handled in the brand ui.js). */
.pxh-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  cursor: zoom-out;
  animation: pxhFade .15s ease-out;
}
@keyframes pxhFade { from { opacity: 0; } to { opacity: 1; } }
.pxh-lightbox img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  cursor: default;
}
.pxh-lightbox-close {
  position: absolute; top: 16px; right: 20px;
  background: transparent; border: 0;
  color: #fff; font-size: 2.4rem;
  cursor: pointer; line-height: 1; padding: 8px 14px;
  opacity: .75;
}
.pxh-lightbox-close:hover { opacity: 1; }

/* Hardware Details accordion sections — manual-sourced reference */
.hw-section {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  margin: 10px 0;
  padding: 0;
}
.hw-section > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
  font-size: .98rem;
  list-style: none;
  padding: 14px 20px;
  user-select: none;
  display: flex;
  align-items: center;
}
.hw-section > summary::-webkit-details-marker { display: none; }
.hw-section > summary::before {
  content: "▶";
  display: inline-block;
  margin-right: 12px;
  font-size: .7em;
  color: var(--color-primary);
  transition: transform .15s;
}
.hw-section[open] > summary { border-bottom: 1px solid var(--color-border); }
.hw-section[open] > summary::before { transform: rotate(90deg); }
.hw-section-body { padding: 14px 22px 18px; }
.hw-section-body p { margin: 10px 0; color: var(--color-text-2); }
.hw-section-body ul { margin: 8px 0 12px; padding-left: 22px; color: var(--color-text-2); }
.hw-section-body li { margin: 4px 0; }
.hw-section-body strong { color: var(--color-text); }
.hw-section-body em { font-style: italic; color: var(--color-primary); font-weight: 500; }
.hw-section-body h4 { margin: 0 0 8px; font-size: .92rem; color: var(--color-primary); }

/* OPT routing tables — small two-column tables, side by side on desktop */
.hw-routing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 14px 0;
}
.hw-routing-block {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 12px 16px;
}
.hw-routing-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.hw-routing-table th {
  text-align: left;
  font-weight: 600;
  padding: 4px 8px 4px 0;
  color: var(--color-primary);
  white-space: nowrap;
  width: 70px;
}
.hw-routing-table td { padding: 4px 0; color: var(--color-text-2); }

/* Video spec tables (Input / Output specs) */
.hw-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.hw-spec-block {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 12px 16px;
}
.hw-spec-block h4 { color: var(--color-primary); margin: 0 0 6px; }
.hw-spec-block ul { font-size: .88rem; margin: 4px 0; padding-left: 18px; }
.hw-spec-block li { color: var(--color-text-2); margin: 2px 0; }

/* PGM / Copy explainer accordion below the chassis schematic */
.pxh-panel-explainer {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  padding: 14px 22px;
  margin: 16px 0 30px;
  border-radius: 4px;
}
.pxh-panel-explainer > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1rem;
  list-style: none;
  padding: 4px 0;
}
.pxh-panel-explainer > summary::-webkit-details-marker { display: none; }
.pxh-panel-explainer > summary::before {
  content: "▶";
  display: inline-block;
  margin-right: 8px;
  font-size: .72em;
  transition: transform .15s;
}
.pxh-panel-explainer[open] > summary::before { transform: rotate(90deg); }
.pxh-panel-explainer p { margin: 12px 0; color: var(--color-text-2); }
.pxh-panel-explainer ul { margin: 10px 0; padding-left: 20px; }
.pxh-panel-explainer li { margin: 4px 0; color: var(--color-text-2); }
.pxh-panel-explainer strong { color: var(--color-text); }
.pxh-panel-explainer em { color: var(--color-primary); font-style: normal; font-weight: 600; }

/* Footer */
.footer-band { background: var(--color-footer-band); color: #fff; padding: 36px 0; text-align: center; }
.footer-band h3 { color: #fff; margin-bottom: 8px; }
.footer-band p { color: rgba(255,255,255,.85); }
.footer-band a { color: #fff; text-decoration: underline; }
.site-footer { background: var(--color-footer-bg); color: #fff; padding: 50px 0 24px; }
.site-footer .grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; }
.site-footer a { color: #ccc; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; color: #888; font-size: .9rem; text-align: center; }

/* Compare pages */
.compare-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 0 0 50px; }
.compare-card { display: block; color: inherit; background: #fff; border: 1px solid var(--color-border); overflow: hidden; transition: all .15s; }
.compare-card:hover { border-color: var(--color-primary); box-shadow: 0 8px 24px rgba(112,24,150,.10); text-decoration: none; transform: translateY(-2px); }
.compare-card .image { background: var(--color-bg-alt); height: 240px; display: flex; align-items: center; justify-content: center; padding: 20px; }
.compare-card .image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.compare-card .body { padding: 24px; }
.compare-card .body h3 { color: var(--color-text); margin-bottom: 8px; }
.compare-card .body p { color: var(--color-muted); font-size: .92rem; min-height: 3em; }
.compare-card .more { color: var(--color-primary); font-weight: 600; }
.compare-table { width: 100%; border-collapse: collapse; margin: 0 0 50px; background: #fff; }
.compare-table thead th { background: var(--color-primary); color: #fff; text-align: left; padding: 14px 18px; font-weight: 600; border: 1px solid var(--color-primary); }
.compare-table tbody th { background: var(--color-bg-alt); text-align: left; padding: 12px 18px; font-weight: 600; border: 1px solid var(--color-border); width: 28%; vertical-align: top; }
.compare-table tbody td { padding: 12px 18px; border: 1px solid var(--color-border); color: var(--color-text-2); vertical-align: top; }

/* Multi-way (3+ model) compare table — emphasizes differences */
.compare-table-multi tbody tr.compare-row-same { background: var(--color-bg-alt); }
/* Merged cells (adjacent columns sharing a value) — center the text and
   give a subtle off-white tint so the merge reads visually. */
.compare-table-multi .compare-cell-merged {
  text-align: center;
  background: var(--color-bg-alt);
}
.compare-table-multi td.compare-cell-dim { color: var(--color-muted); }
.compare-hero-3 { grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .compare-hero-3 { grid-template-columns: 1fr; } }

/* Featured comparison card on the compare index */
.compare-feature {
  display: block;
  margin: 26px 0 36px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: #fff;
  padding: 32px 36px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(112,24,150, 0.18);
  transition: transform .15s, box-shadow .15s;
}
.compare-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(112,24,150, 0.25);
  text-decoration: none;
  color: #fff;
}
.compare-feature-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-weight: 600;
}
.compare-feature h2 { color: #fff; margin: 0 0 8px; font-size: 1.6rem; text-align: left; }
.compare-feature p { color: rgba(255, 255, 255, 0.92); margin: 0 0 10px; }
.compare-feature .more { color: #fff; font-weight: 600; }

/* Downloads table — used on product pages and /downloads/ index */
.downloads-table { width: 100%; border-collapse: collapse; margin: 14px 0 40px; background: #fff; }
.downloads-table thead th { background: var(--color-primary); color: #fff; text-align: left; padding: 12px 14px; font-weight: 600; }
.downloads-table tbody th, .downloads-table tbody td { padding: 12px 14px; border: 1px solid var(--color-border); vertical-align: middle; color: var(--color-text-2); }
.downloads-table tbody th { background: var(--color-bg-alt); text-align: left; font-weight: 600; color: var(--color-text); }
.downloads-table .btn-solid { display: inline-block; }

/* Generic table-scroll wrapper — wide tables (compare, downloads, spec)
   become horizontally scrollable inside this wrapper on mobile, and the
   page itself never horizontally scrolls. */
html, body { overflow-x: hidden; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.table-scroll table { margin: 0; }

/* CTA block — used inside <div class="container"> wrappers */
.cta-block { background: var(--color-primary); color: #fff; padding: 50px; text-align: center; margin: 50px 0; }
.cta-block h2 { color: #fff; margin-top: 0; }
.cta-block p { color: rgba(255,255,255,.92); }
.cta-block .btn-primary { background: #fff; color: var(--color-primary); margin-top: 6px; }
.cta-block .btn-primary:hover { background: var(--color-bg-alt); }
.cta-block a:not(.btn-primary) { color: #fff; text-decoration: underline; }

@media (max-width: 1100px) {
  .site-header .inner { gap: 28px; }
  .site-header nav ul { gap: 20px; }
  .site-header nav a { font-size: .92rem; }
}

@media (max-width: 800px) {
  .compare-hero { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .site-header nav { display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: #fff; padding: 24px; overflow-y: auto; z-index: 100; }
  .site-header nav.open { display: block; }
  .site-header nav > ul { flex-direction: column; gap: 0; }
  .site-header nav > ul > li { border-bottom: 1px solid var(--color-border); }
  .site-header nav a { display: block; padding: 16px 4px; font-size: 1.05rem; }
  /* On mobile the dropdown is flattened — render the menu inline so users
     can tap any category directly without a hover step. */
  .nav-dropdown-menu {
    position: static; display: block; border: 0; box-shadow: none;
    padding: 0; background: transparent; min-width: 0;
  }
  .nav-dropdown-menu li { border-bottom: 0; }
  .nav-dropdown-menu a { padding: 12px 4px 12px 24px; font-size: .98rem; }
  .nav-dropdown-trigger { pointer-events: none; }
  .nav-dropdown-trigger .nav-caret { display: none; }
  .nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 90; }
  .nav-backdrop.open { display: block; }
  body.nav-open { overflow: hidden; }
  .site-header .menu-toggle { display: block; order: -1; font-size: 1.6rem; padding: 6px 10px; min-width: 44px; min-height: 44px; line-height: 1; }
  .site-header .inner { position: relative; gap: 16px; }
  .hero { padding: 60px 0 70px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .product-hero { grid-template-columns: 1fr; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
  .cta-block { padding: 36px 24px; }
}

@media (max-width: 500px) {
  .site-header .logo img { height: 30px; }
  .site-header .header-cta { padding: 8px 14px; font-size: .9rem; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 28px; margin-top: 40px; }
  .hero-stat strong { font-size: 1.6rem; }
  .site-footer .grid { grid-template-columns: 1fr; }
}

/* ============ BrightSign Store design system ============ */
body { letter-spacing: -0.011em; }
h1, h2, h3 { letter-spacing: -0.022em; }
section h2 { font-size: 2rem; }

/* Wordmark */
.bs-wordmark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.bs-wordmark:hover { text-decoration: none; }
.bs-wordmark .wm-name { font-weight: 800; font-size: 1.42rem; letter-spacing: -0.03em; color: #311c6b; }
.bs-wordmark .wm-store { font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--color-primary); padding: 4px 9px 3px; border-radius: 6px; }
.bs-wordmark-footer .wm-name { color: #fff; }
.bs-wordmark-footer { margin-bottom: 14px; }

/* Header */
.site-header { background: rgba(255,255,255,.94); backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid #efeaf5; }
.site-header .inner { padding: 14px 0; gap: 40px; }
.site-header nav a { font-weight: 600; color: #3c3650; border-bottom: 0; padding: 8px 12px; border-radius: 8px; }
.site-header nav a:hover { color: var(--color-primary); background: #f6f1fb; border-bottom: 0; }
.nav-dropdown-trigger.nav-trigger-active { color: var(--color-primary); background: #f6f1fb; border-bottom: 0; }
.nav-dropdown-menu { border-radius: 12px; border-color: #efeaf5; box-shadow: 0 16px 40px rgba(49,28,107,.14); padding: 8px; }
.nav-dropdown-menu a { border-radius: 8px; }
.header-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.header-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .92rem; color: #311c6b; padding: 9px 14px; border-radius: 9px; border: 1.5px solid #e6dff0; white-space: nowrap; }
.header-phone:hover { border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; }
.header-cart { display: inline-flex; align-items: center; color: #311c6b; padding: 9px 10px; position: relative; border-radius: 9px; }
.header-cart:hover { color: var(--color-primary); background: #f6f1fb; text-decoration: none; }
.cart-count { display: none; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--color-primary); color: #fff; font-size: .68rem; font-weight: 700; position: absolute; top: 2px; right: 0; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-solid, .btn-outline { border-radius: 11px; font-weight: 700; padding: 13px 26px; }
.btn-solid { box-shadow: 0 2px 8px rgba(112,24,150,.28); }
.btn-solid:hover { box-shadow: 0 6px 18px rgba(112,24,150,.34); transform: translateY(-1px); }
.btn-outline { border-width: 1.5px; }

/* Custom hero */
.bs-hero { background: radial-gradient(1100px 520px at 82% -10%, rgba(115,55,200,.55) 0%, transparent 60%), linear-gradient(130deg, #1c0f38 0%, #311c6b 52%, #5a1582 100%); color: #fff; padding: 74px 0 78px; position: relative; overflow: hidden; }
.bs-hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 26px 26px; pointer-events: none; }
.bs-hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.bs-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #d9c8f5; margin-bottom: 22px; padding: 7px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.06); }
.bs-hero .eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.bs-hero h1 { color: #fff; font-size: 3.1rem; line-height: 1.06; margin: 0 0 18px; }
.bs-hero h1 em { font-style: normal; background: linear-gradient(90deg, #c084fc, #67d3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bs-hero p { color: rgba(255,255,255,.82); font-size: 1.13rem; max-width: 560px; }
.bs-hero .cta-row { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.bs-hero .btn-primary { background: #fff; color: #311c6b; }
.bs-hero .btn-secondary { border-radius: 11px; }
.bs-hero-media { position: relative; }
.bs-hero-media img { width: 100%; border-radius: 18px; box-shadow: 0 30px 70px rgba(0,0,0,.45); display: block; }
.bs-hero-media .media-chip { position: absolute; bottom: 16px; left: 16px; background: rgba(20,10,40,.78); backdrop-filter: blur(6px); color: #fff; font-size: .82rem; font-weight: 600; padding: 8px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); }
.bs-trustbar { border-bottom: 1px solid #efeaf5; background: #fff; }
.bs-trustbar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 22px; padding-bottom: 22px; }
.bs-trust { display: flex; align-items: center; gap: 12px; font-size: .94rem; color: #4b4361; font-weight: 600; }
.bs-trust svg { flex: 0 0 auto; color: var(--color-primary); }

/* Cards */
.cat-card, .product-card, .compare-card { border-radius: 16px; border-color: #ece6f3; box-shadow: 0 1px 2px rgba(28,15,56,.05); overflow: hidden; }
.cat-card:hover, .product-card:hover, .compare-card:hover { border-color: #ddd0ec; box-shadow: 0 16px 40px rgba(49,28,107,.13); }
.product-card .image { background: linear-gradient(180deg, #faf8fd 0%, #f3eef9 100%); }
.product-card .price-tag { display: block; color: #311c6b; font-weight: 800; font-size: 1.2rem; margin: 6px 0 10px; }
.product-card h3 { font-size: 1.18rem; }
.product-card .more { font-size: .95rem; }
.bs-series-card { display: grid; grid-template-columns: 1fr 116px; gap: 12px; align-items: center; background: #fff; border: 1px solid #ece6f3; border-radius: 16px; padding: 24px; color: inherit; transition: all .2s; box-shadow: 0 1px 2px rgba(28,15,56,.05); }
.bs-series-card:hover { border-color: #ddd0ec; box-shadow: 0 16px 40px rgba(49,28,107,.13); text-decoration: none; transform: translateY(-2px); }
.bs-series-card h3 { color: #1a1a1a; margin-bottom: 4px; font-size: 1.16rem; }
.bs-series-card .from { color: var(--color-primary); font-weight: 800; font-size: .98rem; margin-bottom: 6px; }
.bs-series-card .preview { color: var(--color-muted); font-size: .9rem; }
.bs-series-card .thumb { width: 116px; height: 96px; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #faf8fd, #f3eef9); border-radius: 12px; padding: 8px; }
.bs-series-card .thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Product page */
.product-hero .images img.main-img { border-radius: 18px; border-color: #ece6f3; background: linear-gradient(180deg, #faf8fd, #f3eef9); }
.product-hero .images > .image { height: 320px; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #faf8fd, #f3eef9); border: 1px solid #ece6f3; border-radius: 18px; }
.product-hero .images .placeholder { font-size: 4rem; opacity: .22; }
.product-hero .thumb-btn { border-radius: 10px; }
.bs-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.bs-badge { display: inline-flex; align-items: center; font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: #5b1380; background: #f4ebfa; border: 1px solid #e6d4f2; padding: 5px 11px; border-radius: 999px; }
.price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 12px 0 4px; }
.price-row .price { font-size: 2.3rem; font-weight: 800; color: #311c6b; letter-spacing: -0.03em; }
.price-row .price-note { color: #15803d; font-size: .92rem; font-weight: 600; }
.bs-stock-row { display: flex; align-items: center; gap: 8px; color: #15803d; font-weight: 600; font-size: .95rem; margin: 4px 0 2px; }
.bs-stock-row::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.buy-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; margin-top: 18px; }
.buy-row .qty-input { width: 76px; padding: 12px 8px; border: 1.5px solid #e2dbee; border-radius: 11px; font-size: 1.05rem; font-weight: 600; text-align: center; }
.buy-row .add-to-cart-btn { font-size: 1.05rem; padding: 14px 32px; }
.spec-table { border-radius: 12px; overflow: hidden; }
.spec-table th { background: #f8f5fc; border-color: #eee7f5; }
.spec-table td { border-color: #eee7f5; }
.long-desc { border-radius: 14px; border-left-width: 5px; }
.cta-block { border-radius: 20px; background: linear-gradient(130deg, #311c6b 0%, #701896 100%); }

/* Compare */
.compare-table { border-radius: 12px; overflow: hidden; }
.compare-table thead th { background: linear-gradient(130deg, #311c6b, #701896); border-color: #311c6b; }
.compare-table tbody th { background: #f8f5fc; border-color: #eee7f5; }
.compare-table tbody td { border-color: #eee7f5; }

/* Toast */
.bs-cart-toast { position: fixed; bottom: 24px; right: 24px; z-index: 9999; background: #1c0f38; color: #fff; padding: 14px 20px; border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.35); opacity: 0; transform: translateY(8px); transition: all .25s; max-width: 92vw; }
.bs-cart-toast.show { opacity: 1; transform: translateY(0); }
.bs-cart-toast a { color: #c8a6ee; text-decoration: underline; margin-left: 8px; }

/* Cart page */
.bs-cart-empty { text-align: center; padding: 60px 20px; }
.bs-cart-table td, .bs-cart-table th { vertical-align: middle; }
.bs-center { text-align: center; } .bs-right { text-align: right; }
.bs-price-cell { font-weight: 700; color: #311c6b; white-space: nowrap; }
.bs-qty { width: 70px; padding: 9px; border: 1.5px solid #e2dbee; border-radius: 9px; text-align: center; font-weight: 600; }
.bs-remove { background: none; border: 0; color: #b91c1c; font-size: 1.5rem; cursor: pointer; line-height: 1; padding: 4px 10px; border-radius: 8px; }
.bs-remove:hover { background: #fff1f2; }
.bs-cart-total { font-size: 1.5rem; font-weight: 800; margin: 18px 0; text-align: right; color: #311c6b; }
.bs-freeship { font-size: .9rem; color: #15803d; font-weight: 700; margin-left: 10px; }
.checkout-form { display: grid; gap: 14px; margin: 18px 0; text-align: left; }
.checkout-form h2 { margin: 0; font-size: 1.25rem; text-align: left; }
.checkout-form label { display: grid; gap: 5px; font-size: .95rem; font-weight: 600; color: #3c3650; }
.checkout-form input[type="text"], .checkout-form input[type="email"], .checkout-form input[type="tel"], .checkout-form input[type="file"] { width: 100%; padding: 11px 12px; border: 1.5px solid #e2dbee; border-radius: 10px; font-size: 1rem; font-weight: 400; }
.checkout-form input:focus { outline: 2px solid rgba(112,24,150,.35); border-color: var(--color-primary); }
.checkout-form fieldset { border: 1.5px solid #e9e3f2; border-radius: 14px; padding: 14px; min-width: 0; }
.checkout-form legend { font-weight: 700; font-size: .92rem; color: #311c6b; padding: 0 6px; }
.checkout-form fieldset input { margin-bottom: 8px; }
.bs-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.bs-form-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.bs-city-row { display: grid; grid-template-columns: 1fr 80px 110px; gap: 8px; }
.bs-check { display: flex !important; align-items: center; gap: 8px; flex-direction: row; }
.bs-check input { width: auto !important; margin: 0 !important; }
.bs-form-note { font-size: .86rem; color: var(--color-muted); margin-bottom: 8px; font-weight: 400; }
.bs-ups { background: #faf8fd; }
#customerUpsAccountFields { display: none; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.bs-taxexempt { display: grid; gap: 8px; max-width: 520px; }
.bs-po { max-width: 360px; }
.bs-shipping { display: grid; gap: 8px; border: 1.5px solid #e9e3f2; border-radius: 14px; padding: 14px; background: #faf8fd; }
.bs-shipping #shippingRates { display: grid; gap: 8px; }
.bs-shipping label { border-radius: 10px !important; }
.bs-promo { display: grid; gap: 8px; max-width: 280px; }
.bs-promo input { text-transform: uppercase; padding: 11px 12px; border: 1.5px solid #e2dbee; border-radius: 10px; }
.bs-cart-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 24px 0; }
.bs-checkout-btn { font-size: 1.12rem; padding: 15px 38px; }
.bs-clear { background: none; border: 0; color: #b91c1c; cursor: pointer; font-size: .95rem; text-decoration: underline; }
#checkoutError { width: 100%; color: #b91c1c; background: #fff1f2; border: 1px solid #fecdd3; border-radius: 10px; padding: 10px; font-size: .95rem; }

/* Footer */
.site-footer a:hover { color: #c8a6ee; }
.footer-band h3 { font-size: 1.45rem; }

@media (max-width: 980px) {
  .bs-hero .container { grid-template-columns: 1fr; gap: 36px; }
  .bs-hero h1 { font-size: 2.3rem; }
  .bs-trustbar .container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .price-row .price { font-size: 1.8rem; }
  .bs-cart-total { text-align: left; }
  .bs-trustbar .container { grid-template-columns: 1fr; gap: 10px; }
  .bs-hero h1 { font-size: 1.95rem; }
  .header-phone { display: none; }
}
