:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-muted: #eef2f4;
  --ink: #121820;
  --muted: #5c6875;
  --line: #d7dee4;
  --line-strong: #aab7c2;
  --brand: #0b4f5c;
  --brand-strong: #073842;
  --accent: #c9912c;
  --accent-soft: #fff2d7;
  --success: #246b4a;
  --shadow: 0 18px 48px rgba(20, 30, 40, 0.12);
  --radius: 8px;
  font-family: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: #2b3640;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-color: var(--accent);
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #101820;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 16, 24, 0.88) 0%, rgba(8, 16, 24, 0.58) 45%, rgba(8, 16, 24, 0.2) 100%),
    url("/static/images/busway-system-demo.png") center / cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 36px));
  padding: 132px clamp(18px, 5vw, 72px) 150px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: 96px;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 52px;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  width: min(680px, 100%);
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 22px;
}

.hero-actions,
.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
button {
  border: 0;
  border-radius: 6px;
  min-height: 44px;
  padding: 12px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
}

.button.primary,
button.primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 22px rgba(11, 79, 92, 0.24);
}

.button.primary:hover,
button.primary:hover {
  background: var(--brand-strong);
}

.button.secondary,
button.secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
}

.hero-strip {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: 28px;
  left: clamp(18px, 4vw, 56px);
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(11, 22, 32, 0.72);
  backdrop-filter: blur(12px);
}

.hero-strip span {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 14px 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-strip span:last-child {
  border-right: 0;
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 4vw, 56px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: start;
  background: #fff;
}

.intro-copy {
  color: var(--muted);
  font-size: 18px;
}

.metric-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.metric-row div {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.metric-row div:last-child {
  border-right: 0;
}

.metric-row strong,
.metric-row span {
  display: block;
}

.metric-row strong {
  color: var(--brand);
  font-size: 40px;
  line-height: 1;
}

.metric-row span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.product-section {
  background: var(--bg);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head p {
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(20, 30, 40, 0.05);
}

.product-card.featured {
  background: #10212a;
  color: #fff;
  border-color: #10212a;
}

.product-card.featured p,
.product-card.featured li {
  color: rgba(255, 255, 255, 0.78);
}

.product-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 22px;
  border-radius: 6px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.product-card.featured .product-image {
  border-color: rgba(255, 255, 255, 0.18);
}

.product-card p {
  color: var(--muted);
}

.product-card ul {
  margin: 8px 0 24px;
  padding-left: 18px;
  color: var(--muted);
}

.product-card li {
  margin: 8px 0;
}

.quote-select {
  width: 100%;
  margin-top: auto;
  color: var(--brand);
  background: transparent;
  border: 1px solid var(--line-strong);
}

.product-card.featured .quote-select {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}

.capability-band {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  min-height: 620px;
  padding: 0;
  background: #fff;
}

.capability-media {
  min-height: 520px;
  background:
    linear-gradient(180deg, rgba(7, 56, 66, 0.08), rgba(7, 56, 66, 0.08)),
    url("/static/images/electrical-enclosure-demo.png") center / cover;
}

.capability-copy {
  align-self: center;
  padding: clamp(48px, 7vw, 92px);
}

.capability-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.capability-list div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.capability-list strong,
.capability-list span {
  display: block;
}

.capability-list strong {
  margin-bottom: 6px;
  color: var(--brand);
}

.capability-list span {
  color: var(--muted);
}

.quote-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: 40px;
  align-items: start;
  background: #10212a;
  color: #fff;
}

.quote-copy p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
}

.contact-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
}

.contact-box span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.contact-box a {
  color: #fff;
  font-weight: 800;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  color: var(--ink);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row.full,
.quote-actions,
.form-note {
  grid-column: 1 / -1;
}

label {
  color: #2d3945;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(201, 145, 44, 0.25);
  border-color: var(--accent);
}

.form-note {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-note.success {
  color: var(--success);
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 56px);
  background: #071116;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: #fff;
}

.site-footer span {
  margin-top: 4px;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 980px) {
  h1 {
    font-size: 72px;
  }

  h2 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 20px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding-top: 100px;
    padding-bottom: 190px;
  }

  .hero-strip,
  .intro-grid,
  .section-head,
  .capability-band,
  .quote-section {
    grid-template-columns: 1fr;
  }

  .hero-strip {
    right: 18px;
    left: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .metric-row div,
  .hero-strip span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-row div:last-child,
  .hero-strip span:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .metric-row strong {
    font-size: 32px;
  }

  .site-header {
    position: static;
  }

  .site-nav {
    gap: 14px;
    font-size: 13px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    width: 100%;
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-strip,
  .product-grid,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .hero-strip span:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero-strip span:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 56px 18px;
  }

  .product-card {
    min-height: auto;
  }

  .contact-box {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

/* Subpage structure added for the separated navigation pages. */
.page-hero {
  padding-top: 7.5rem;
  padding-bottom: 2rem;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 4.75rem);
  line-height: 1.02;
}

.category-intro {
  max-width: 850px;
  margin-bottom: 2rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-category-card {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  padding: 1.4rem;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.product-category-card h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.product-category-card ul {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding-left: 1.1rem;
  color: #334155;
}

@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding-top: 6.25rem;
  }
}

/* Products directory layout: stacked families with clickable product tiles. */
.product-directory {
  padding-top: 7.5rem;
  display: grid;
  gap: 2rem;
}

.product-family-section {
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  padding: 1.4rem;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
}

.product-family-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
  color: #0f172a;
  text-decoration: none;
}

.product-family-heading span {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 800;
  line-height: 1;
}

.product-family-heading small {
  color: #2563eb;
  font-weight: 700;
}

.product-tile-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-tile {
  display: grid;
  gap: 0.9rem;
  min-height: 210px;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  color: #0f172a;
  text-decoration: none;
  background: #f8fafc;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.product-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.12);
}

.product-tile-title {
  font-weight: 800;
  font-size: 1.05rem;
}

.product-tile-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: #e2e8f0;
}

.product-tile-image img,
.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-family {
  padding-top: 0;
}

.product-detail-head {
  padding-top: 7.5rem;
  padding-bottom: 1rem;
}

.product-detail-head h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
}

.breadcrumb-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 2rem;
  align-items: center;
  padding-top: 1rem;
}

.product-detail-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #e2e8f0;
}

@media (max-width: 980px) {
  .product-tile-row,
  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .product-directory,
  .product-detail-head {
    padding-top: 6.5rem;
  }

  .product-family-heading {
    display: grid;
  }
}

/* Tighten Products page after removing the top product hero. */
.product-directory {
  padding-top: 3.5rem;
}

.product-detail-head {
  padding-top: 4rem;
}

@media (max-width: 980px) {
  .product-directory,
  .product-detail-head {
    padding-top: 3rem;
  }
}

/* Product title and homepage product directory refinements. */
.product-page-title {
  padding-top: 4rem;
  padding-bottom: 0;
}

.product-page-title h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1;
}

.products-page .product-directory {
  padding-top: 1.5rem;
}

.home-product-directory {
  display: grid;
  gap: 1.5rem;
}

.home-product-directory .product-family-section {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.home-product-directory .product-family-heading span {
  font-size: clamp(1.4rem, 2.3vw, 2rem);
}

.home-product-directory .product-tile {
  min-height: 180px;
}

.home-product-directory .product-tile-image {
  aspect-ratio: 5 / 3;
}

@media (max-width: 980px) {
  .product-page-title {
    padding-top: 3rem;
  }
}

/* Simplified homepage product family cards. */
.compact-head {
  margin-bottom: 1.25rem;
}

.home-category-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-category-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.home-category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.12);
}

.home-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: saturate(0.85);
}

.panel-card .home-card-bg {
  background-image: url('/static/images/copper-busbar-main.jpg');
}

.busway-card .home-card-bg {
  background-image: url('/static/images/busway-system-demo.png');
}

.enclosure-card .home-card-bg {
  background-image: url('/static/images/electrical-enclosure-demo.png');
}

.home-card-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 1.5rem;
  min-height: 100%;
  padding: 1.6rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.72));
}

.home-card-content strong {
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.home-card-list {
  display: grid;
  gap: 0.7rem;
  font-weight: 700;
  color: #1e293b;
}

.home-card-list span {
  position: relative;
  display: block;
  padding-left: 1.1rem;
}

.home-card-list span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: #2563eb;
}

@media (max-width: 980px) {
  .home-category-cards {
    grid-template-columns: 1fr;
  }

  .home-category-card {
    min-height: 280px;
  }
}

/* Homepage product family cards link fixes. */
.home-category-card {
  display: block;
}

.home-card-title {
  color: #0f172a;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.05;
  text-decoration: none;
}

.home-card-title:hover,
.home-card-list a:hover {
  color: #2563eb;
}

.home-card-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-card-list li {
  position: relative;
  padding-left: 1.1rem;
}

.home-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: #2563eb;
}

.home-card-list a {
  color: #1e293b;
  text-decoration: none;
}

/* Homepage polish: compact hero and calmer product cards. */
.hero {
  min-height: 720px;
}

.hero-content {
  padding-top: clamp(6.5rem, 9vw, 8.5rem);
  padding-bottom: 7.5rem;
}

.hero-title-line {
  white-space: nowrap;
  max-width: 980px;
  font-size: clamp(4.2rem, 8vw, 7.6rem);
}

.hero-copy {
  max-width: 720px;
}

.hero-actions .secondary {
  min-width: 150px;
}

.hero-strip span {
  font-size: 0.95rem;
}

.home-category-card {
  min-height: 300px;
}

.home-card-bg {
  opacity: 0.08;
  filter: grayscale(0.15) saturate(0.75) brightness(1.12);
}

.home-card-content {
  align-content: center;
  justify-items: start;
  gap: 1.15rem;
  padding: 1.75rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.86));
}

.home-card-title {
  width: 100%;
  font-size: clamp(1.65rem, 2.35vw, 2.25rem);
}

.home-card-list {
  width: 100%;
  gap: 0.78rem;
  font-size: 1.04rem;
  line-height: 1.25;
}

.busway-card .home-card-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.15rem;
  row-gap: 0.82rem;
}

.home-card-list li {
  padding-left: 1rem;
}

.home-card-list li::before {
  top: 0.48em;
}

@media (max-width: 1180px) {
  .hero-title-line {
    font-size: clamp(3.4rem, 7vw, 5.8rem);
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: 680px;
  }

  .hero-title-line {
    white-space: normal;
  }

  .busway-card .home-card-list {
    grid-template-columns: 1fr;
  }

  .home-category-card {
    min-height: 250px;
  }
}

/* Home product cards: stronger background image and tighter card spacing. */
.home-category-card {
  min-height: 255px;
}

.home-card-bg {
  opacity: 0.7;
  filter: saturate(0.9) brightness(1.02);
}

.home-card-content {
  min-height: 255px;
  gap: 1.3rem;
  padding: 1.45rem 1.6rem;
  background: linear-gradient(90deg, rgba(255,255,255,0.92), rgba(255,255,255,0.72));
}

.home-card-list {
  gap: 1rem;
  font-size: 1.08rem;
  line-height: 1.35;
}

.busway-card .home-card-list {
  row-gap: 1rem;
  column-gap: 1.35rem;
}

.home-card-list li::before {
  top: 0.56em;
}

@media (max-width: 980px) {
  .home-category-card,
  .home-card-content {
    min-height: 230px;
  }
}

/* Homepage fuller hero and product cards. */
.hero-content {
  padding-top: clamp(4.8rem, 6.8vw, 6.4rem);
  padding-bottom: 8.4rem;
}

.hero-title-line {
  font-size: clamp(4.4rem, 8.4vw, 7.9rem);
}

.home-category-card {
  min-height: 310px;
}

.home-card-bg {
  opacity: 0.86;
  filter: saturate(0.95) brightness(1.0);
}

.home-card-content {
  min-height: 310px;
  gap: 1.55rem;
  padding: 1.9rem 1.85rem;
  background: linear-gradient(90deg, rgba(255,255,255,0.84), rgba(255,255,255,0.58));
}

.home-card-title {
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
}

.home-card-list {
  gap: 1.12rem;
  font-size: 1.18rem;
  line-height: 1.42;
}

.busway-card .home-card-list {
  row-gap: 1.12rem;
  column-gap: 1.5rem;
}

.home-card-list li {
  padding-left: 1.15rem;
}

.home-card-list li::before {
  width: 0.46rem;
  height: 0.46rem;
  top: 0.6em;
}

@media (max-width: 980px) {
  .hero-content {
    padding-top: 4.75rem;
  }

  .home-category-card,
  .home-card-content {
    min-height: 280px;
  }
}

/* Homepage final position and product card tuning. */
.hero {
  min-height: 680px;
}

.hero-content {
  padding-top: clamp(2.3rem, 3.5vw, 3.7rem);
  padding-bottom: 10.5rem;
}

.hero-title-line {
  font-size: clamp(4.25rem, 8.1vw, 7.6rem);
}

.home-card-bg {
  opacity: 0.91;
  filter: saturate(0.98) brightness(1.0);
}

.home-card-content {
  background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0.48));
}

.home-card-title {
  white-space: nowrap;
  font-size: clamp(1.65rem, 2.35vw, 2.28rem);
}

.home-card-list {
  font-size: 1.24rem;
  line-height: 1.42;
}

@media (max-width: 1180px) {
  .home-card-title {
    font-size: clamp(1.45rem, 2vw, 1.9rem);
  }
}

@media (max-width: 980px) {
  .hero-content {
    padding-top: 3.25rem;
    padding-bottom: 8rem;
  }

  .home-card-title {
    white-space: normal;
  }
}

/* Deep MI-color hero bands for subpage headers. */
.subpage .page-hero,
.products-page .page-hero {
  margin: 0;
  max-width: none;
  width: 100%;
  padding: 7.2rem max(3.5rem, calc((100vw - 1400px) / 2 + 3.5rem)) 4.8rem;
  background: #064f5b;
  color: #ffffff;
}

.subpage .page-hero .section-kicker,
.products-page .page-hero .section-kicker {
  color: #d6a642;
}

.subpage .page-hero h1,
.products-page .page-hero h1 {
  color: #ffffff;
  max-width: 980px;
}

.products-page .product-directory {
  padding-top: 3rem;
}

.product-page-title {
  display: none;
}

@media (max-width: 900px) {
  .subpage .page-hero,
  .products-page .page-hero {
    padding: 6.5rem 1.25rem 3.5rem;
  }
}

/* Subpage headers using the homepage hero image treatment. */
.subpage .page-hero,
.products-page .page-hero {
  background:
    linear-gradient(90deg, rgba(8, 16, 24, 0.88) 0%, rgba(8, 16, 24, 0.62) 48%, rgba(8, 16, 24, 0.28) 100%),
    url('/static/images/busway-system-demo.png') center / cover no-repeat;
}

.subpage .page-hero .section-kicker,
.products-page .page-hero .section-kicker {
  color: #d6a642;
}

.subpage .page-hero h1,
.products-page .page-hero h1 {
  color: #ffffff;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

/* Flexible Connector detail page. */
.flexible-detail-head {
  padding-bottom: 1rem;
}

.flexible-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: 2rem;
  align-items: center;
  padding-top: 1.5rem;
}

.flexible-main-image,
.flexible-gallery-grid img,
.reference-chart img {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.flexible-main-image {
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.flexible-main-image img,
.flexible-gallery-grid img,
.reference-chart img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flexible-product-copy h2 {
  margin-top: 0.4rem;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.08;
}

.flexible-product-copy p {
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.7;
}

.flexible-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.flexible-feature-grid article {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  padding: 1.2rem;
  background: #ffffff;
}

.flexible-feature-grid strong,
.flexible-feature-grid span {
  display: block;
}

.flexible-feature-grid strong {
  margin-bottom: 0.55rem;
  color: #0f172a;
}

.flexible-feature-grid span {
  color: #475569;
  line-height: 1.55;
}

.flexible-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.flexible-gallery-grid img {
  aspect-ratio: 1 / 1;
}

.spec-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #fff;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 0.95rem;
}

.spec-table th,
.spec-table td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.65rem 0.8rem;
  text-align: center;
}

.spec-table th {
  background: #e8f4f8;
  color: #0f172a;
  font-weight: 800;
}

.spec-table td:last-child,
.spec-table th:last-child {
  border-right: 0;
}

.reference-chart {
  margin: 1.25rem 0 0;
}

.reference-chart img {
  height: auto;
  object-fit: contain;
}

.reference-chart figcaption {
  margin-top: 0.55rem;
  color: #64748b;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .flexible-product-hero,
  .flexible-feature-grid,
  .flexible-gallery-grid {
    grid-template-columns: 1fr;
  }
}


/* Flexible Connector detail tuning. */
.flex-detail-page .flex-detail-hero {
  padding-top: 34px;
  padding-bottom: 36px;
}

.flex-detail-page .flex-detail-container {
  gap: 32px;
}

.flex-detail-page .flex-detail-title {
  margin-bottom: 24px;
}

.flex-detail-page .flex-detail-media {
  min-height: 0;
}

.flex-detail-page .flex-detail-main-img {
  height: clamp(390px, 43vw, 560px);
  object-fit: contain;
  padding: 18px;
  background: #fff;
}

.flex-detail-page .flex-detail-section {
  padding-top: 46px;
  padding-bottom: 46px;
}

.flex-detail-page .flex-feature-grid {
  margin-top: 24px;
  gap: 18px;
}

.flex-detail-page .flex-gallery-grid {
  margin-top: 28px;
  gap: 18px;
}

.flex-detail-page .flex-spec-section {
  padding-top: 44px;
  padding-bottom: 54px;
}

.flex-detail-page .flex-spec-header {
  margin-bottom: 26px;
}

.flex-detail-page .flex-original-table {
  display: none !important;
}

@media (max-width: 780px) {
  .flex-detail-page .flex-detail-hero {
    padding-top: 24px;
    padding-bottom: 28px;
  }

  .flex-detail-page .flex-detail-main-img {
    height: clamp(300px, 78vw, 430px);
    padding: 12px;
  }

  .flex-detail-page .flex-detail-section,
  .flex-detail-page .flex-spec-section {
    padding-top: 34px;
    padding-bottom: 38px;
  }
}


/* Flexible Connector detail layout tuning - current template classes. */
.products-page .flexible-product-hero {
  padding-top: 34px !important;
  padding-bottom: 36px !important;
}

.products-page .flexible-product-hero .section-inner {
  gap: 30px !important;
}

.products-page .flexible-main-image {
  min-height: 0 !important;
}

.products-page .flexible-main-image img {
  width: 100% !important;
  height: clamp(390px, 43vw, 560px) !important;
  object-fit: contain !important;
  padding: 18px !important;
  background: #fff !important;
}

.products-page .flexible-feature-section,
.products-page .flexible-gallery-section {
  padding-top: 42px !important;
  padding-bottom: 42px !important;
}

.products-page .flexible-spec-section {
  padding-top: 40px !important;
  padding-bottom: 48px !important;
}

.products-page .flexible-gallery-grid,
.products-page .flexible-feature-grid {
  margin-top: 24px !important;
  gap: 18px !important;
}

.products-page .reference-chart,
.products-page .reference-chart img {
  display: none !important;
}

@media (max-width: 780px) {
  .products-page .flexible-product-hero {
    padding-top: 24px !important;
    padding-bottom: 28px !important;
  }

  .products-page .flexible-main-image img {
    height: clamp(300px, 78vw, 430px) !important;
    padding: 12px !important;
  }

  .products-page .flexible-feature-section,
  .products-page .flexible-gallery-section,
  .products-page .flexible-spec-section {
    padding-top: 32px !important;
    padding-bottom: 36px !important;
  }
}


/* Flexible Connector tighter hero and feature spacing. */
.products-page .flexible-product-hero {
  padding-top: 28px !important;
  padding-bottom: 12px !important;
}

.products-page .flexible-product-hero > .container,
.products-page .flexible-product-hero > .section-inner,
.products-page .flexible-product-hero .section-inner {
  align-items: flex-start !important;
  gap: 28px !important;
}

.products-page .flexible-main-image {
  width: min(100%, 560px) !important;
  max-width: 560px !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  align-self: flex-start !important;
}

.products-page .flexible-main-image img {
  width: 100% !important;
  height: 430px !important;
  max-height: 430px !important;
  object-fit: contain !important;
  padding: 14px !important;
}

.products-page .flexible-feature-grid {
  margin-top: 0 !important;
  padding-top: 8px !important;
  padding-bottom: 28px !important;
}

.products-page .flexible-feature-grid > * {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}

@media (max-width: 980px) {
  .products-page .flexible-main-image {
    max-width: 100% !important;
  }

  .products-page .flexible-main-image img {
    height: clamp(300px, 64vw, 420px) !important;
  }
}


/* Flexible Connector 480 detail image and outer card image fit. */
.products-page .flexible-product-hero {
  grid-template-columns: 480px minmax(0, 646px) !important;
  column-gap: 48px !important;
  justify-content: start !important;
  padding-bottom: 8px !important;
}

.products-page .flexible-main-image {
  width: 480px !important;
  max-width: 480px !important;
  height: 480px !important;
  max-height: 480px !important;
}

.products-page .flexible-main-image img {
  width: 480px !important;
  height: 480px !important;
  max-width: 480px !important;
  max-height: 480px !important;
  object-fit: contain !important;
  padding: 14px !important;
}

.products-page .flexible-feature-grid {
  padding-top: 10px !important;
  padding-bottom: 28px !important;
}

.products-page .product-tile img,
.products-page .product-card img,
.products-page .category-card img {
  object-fit: contain !important;
  background: #fff !important;
  padding: 12px !important;
}

.products-page .product-tile[href$="/flexibleconnector"] img,
.products-page a[href$="/flexibleconnector"] img {
  object-fit: contain !important;
  background: #fff !important;
  padding: 14px !important;
}

@media (max-width: 980px) {
  .products-page .flexible-product-hero {
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;
  }

  .products-page .flexible-main-image {
    width: min(100%, 480px) !important;
    max-width: 480px !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
  }

  .products-page .flexible-main-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
  }
}


/* Flexible Connector feature spacing and copy refinement. */
.products-page .flexible-feature-grid {
  padding-top: 20px !important;
}


/* Miyu Industrial final logo header. */
.brand-logo-lockup {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  text-decoration: none !important;
}

.brand-logo-icon {
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 auto !important;
  display: block !important;
}

.brand-logo-wordmark {
  width: 215px !important;
  height: auto !important;
  display: block !important;
  flex: 0 1 auto !important;
}

@media (max-width: 760px) {
  .brand-logo-lockup { gap: 9px !important; }
  .brand-logo-icon { width: 36px !important; height: 36px !important; }
  .brand-logo-wordmark { width: 168px !important; }
}

@media (max-width: 460px) {
  .brand-logo-wordmark { width: 142px !important; }
}


/* Header wordmark-only logo. */
.brand-wordmark-only {
  gap: 0 !important;
  align-items: center !important;
}

.brand-wordmark-only .brand-logo-icon {
  display: none !important;
}

.brand-wordmark-only .brand-logo-wordmark {
  width: 300px !important;
  max-width: 300px !important;
  height: auto !important;
}

@media (max-width: 760px) {
  .brand-wordmark-only .brand-logo-wordmark {
    width: 220px !important;
    max-width: 220px !important;
  }
}

@media (max-width: 460px) {
  .brand-wordmark-only .brand-logo-wordmark {
    width: 180px !important;
    max-width: 180px !important;
  }
}


/* Larger transparent header wordmark. */
.brand-wordmark-only .brand-logo-wordmark {
  width: 500px !important;
  max-width: 500px !important;
  height: auto !important;
  background: transparent !important;
}

@media (max-width: 980px) {
  .brand-wordmark-only .brand-logo-wordmark {
    width: 360px !important;
    max-width: 360px !important;
  }
}

@media (max-width: 760px) {
  .brand-wordmark-only .brand-logo-wordmark {
    width: 260px !important;
    max-width: 260px !important;
  }
}

@media (max-width: 460px) {
  .brand-wordmark-only .brand-logo-wordmark {
    width: 190px !important;
    max-width: 190px !important;
  }
}


/* Narrower header with larger nav text. */
.site-header {
  min-height: 88px !important;
  height: 88px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  align-items: center !important;
}

.brand-wordmark-only {
  height: 72px !important;
  align-items: center !important;
}

.brand-wordmark-only .brand-logo-wordmark {
  width: 500px !important;
  max-width: 500px !important;
  height: 72px !important;
  max-height: 72px !important;
  object-fit: contain !important;
  object-position: left center !important;
  display: block !important;
}

.site-nav {
  align-items: center !important;
}

.site-nav a {
  font-size: 16px !important;
  line-height: 1.2 !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

@media (max-width: 980px) {
  .site-header {
    min-height: 76px !important;
    height: 76px !important;
  }

  .brand-wordmark-only {
    height: 58px !important;
  }

  .brand-wordmark-only .brand-logo-wordmark {
    width: 360px !important;
    max-width: 360px !important;
    height: 58px !important;
    max-height: 58px !important;
  }

  .site-nav a {
    font-size: 15px !important;
  }
}

@media (max-width: 760px) {
  .brand-wordmark-only .brand-logo-wordmark {
    width: 260px !important;
    max-width: 260px !important;
  }
}


/* Header final height tuning. */
.site-header {
  min-height: 80px !important;
  height: 80px !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

.brand-wordmark-only {
  transform: translateY(-3px) !important;
}


/* Header final height tuning v2. */
.site-header {
  min-height: 75px !important;
  height: 75px !important;
  padding-top: 3px !important;
  padding-bottom: 3px !important;
}

.brand-wordmark-only {
  transform: translateY(-2px) !important;
}


/* Header logo visual centering. */
.brand-wordmark-only {
  transform: translateY(-6px) !important;
}

/* Freestanding enclosure detail page */
.enclosure-detail-head { padding-bottom: 18px; }
.enclosure-product-hero { display: grid; grid-template-columns: minmax(360px, 480px) minmax(420px, 1fr); gap: 48px; align-items: center; padding-top: 18px; padding-bottom: 24px; }
.enclosure-main-image { width: 480px; max-width: 100%; aspect-ratio: 1 / 1; border: 1px solid rgba(15, 23, 42, 0.1); border-radius: 10px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.enclosure-main-image img { width: 92%; height: 92%; object-fit: contain; }
.enclosure-product-copy { max-width: 760px; margin-left: -18px; }
.enclosure-product-copy h2 { margin: 12px 0 20px; font-size: clamp(2.1rem, 3.7vw, 4.7rem); line-height: 0.98; color: #111827; }
.enclosure-product-copy p { margin: 0 0 18px; color: #475569; font-size: 1.05rem; line-height: 1.72; }
.enclosure-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding-top: 20px; padding-bottom: 30px; }
.enclosure-feature-grid article { border: 1px solid rgba(15, 23, 42, 0.12); border-radius: 8px; background: #fff; padding: 24px; min-height: 156px; }
.enclosure-feature-grid strong { display: block; color: #111827; font-size: 1.05rem; margin-bottom: 12px; }
.enclosure-feature-grid span { display: block; color: #526179; font-size: 0.98rem; line-height: 1.6; }
.enclosure-gallery-section { padding-top: 26px; }
.enclosure-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.enclosure-gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border: 1px solid rgba(15, 23, 42, 0.1); border-radius: 8px; }
.enclosure-detail-points { display: grid; gap: 26px; padding-top: 30px; }
.enclosure-detail-points article { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(280px, 0.72fr); gap: 28px; align-items: center; background: #f3f5f7; border-radius: 8px; padding: 24px; }
.enclosure-detail-points article:nth-child(even) img { order: 2; }
.enclosure-detail-points img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #fff; border-radius: 6px; }
.enclosure-detail-points span { display: block; color: #10253e; font-weight: 800; font-size: 1.6rem; margin-bottom: 12px; }
.enclosure-detail-points h3 { margin: 0 0 12px; font-size: clamp(1.5rem, 2.4vw, 2.4rem); color: #111827; }
.enclosure-detail-points p { margin: 0; color: #526179; font-size: 1.02rem; line-height: 1.7; }
@media (max-width: 980px) { .enclosure-product-hero, .enclosure-detail-points article { grid-template-columns: 1fr; } .enclosure-product-copy { margin-left: 0; } .enclosure-feature-grid, .enclosure-gallery-grid { grid-template-columns: 1fr; } .enclosure-detail-points article:nth-child(even) img { order: 0; } }
/* Freestanding enclosure size table */
.enclosure-size-section { padding-top: 28px; padding-bottom: 42px; }
.enclosure-size-note { margin: 0 0 16px; color: #526179; font-size: 1rem; line-height: 1.6; }
.enclosure-size-note strong { color: #111827; }
.enclosure-size-table-wrap { background: #fff; border-radius: 8px; border: 1px solid rgba(15, 23, 42, 0.1); overflow: auto; }
.enclosure-size-table th, .enclosure-size-table td { text-align: left; white-space: nowrap; }
.enclosure-size-table td:first-child { font-weight: 700; color: #10253e; }
/* Wall-mounted enclosure detail page */
.wall-main-image img { width: 86%; height: 92%; object-fit: contain; }
.wall-feature-grid { padding-top: 20px; }
.wall-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.wall-gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; border: 1px solid rgba(15, 23, 42, 0.1); border-radius: 8px; }
.wall-gallery-grid img:first-child, .wall-gallery-grid img:nth-child(2) { object-fit: cover; }
.wall-size-section { padding-top: 30px; padding-bottom: 42px; }
@media (max-width: 980px) { .wall-gallery-grid { grid-template-columns: 1fr; } }
/* Wall-mounted main image scale adjustment */
.wall-main-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}
/* Unified product detail gallery */
.flexible-gallery-section > .section-head,
.enclosure-gallery-section > .section-head { display: none; }
.flexible-gallery-section,
.enclosure-gallery-section { padding-top: 18px; }
.product-gallery {
  --gallery-size: min(500px, 68vw);
  position: relative;
  width: min(760px, 100%);
  margin: 8px auto 0;
  padding: 0 56px 34px;
}
.product-gallery-viewport {
  position: relative;
  width: var(--gallery-size);
  height: var(--gallery-size);
  margin: 0 auto;
  border-radius: 8px;
  overflow: visible;
}
.product-gallery-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  opacity: 0;
  transform: translateX(0) scale(0.66);
  pointer-events: none;
  transition: transform 240ms ease, opacity 240ms ease;
  z-index: 0;
}
.product-gallery-slide.is-active { opacity: 1; transform: translateX(0) scale(1); pointer-events: auto; z-index: 3; }
.product-gallery-slide.is-prev { opacity: 0.36; transform: translateX(-72%) scale(0.66); z-index: 1; }
.product-gallery-slide.is-next { opacity: 0.36; transform: translateX(72%) scale(0.66); z-index: 1; }
.product-gallery-slide img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center center; padding: 0; }
.product-gallery-button {
  position: absolute;
  top: calc(var(--gallery-size) / 2);
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #10253e;
  font-size: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  z-index: 5;
  padding: 0;
  transition: none;
}
.product-gallery-button:hover { border-color: rgba(15, 23, 42, 0.18); transform: translateY(-50%); }
.product-gallery-button::before { content: ""; width: 10px; height: 10px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; display: block; }
.product-gallery-prev { left: 12px; }
.product-gallery-next { right: 12px; }
.product-gallery-prev::before { transform: translateX(2px) rotate(45deg); }
.product-gallery-next::before { transform: translateX(-2px) rotate(225deg); }
.product-gallery-dots { position: absolute; left: 0; right: 0; bottom: -16px; display: flex; justify-content: center; gap: 7px; }
.product-gallery-dot { width: 6px; height: 6px; border: 0; border-radius: 999px; background: rgba(16, 37, 62, 0.26); cursor: pointer; padding: 0; }
.product-gallery-dot.is-active { width: 16px; background: #10253e; }
.flexible-gallery-grid, .enclosure-gallery-grid, .wall-gallery-grid { display: block; }
@media (max-width: 980px) {
  .product-gallery { --gallery-size: min(360px, 72vw); width: 100%; padding: 0 34px 32px; }
  .product-gallery-slide.is-prev { transform: translateX(-62%) scale(0.62); }
  .product-gallery-slide.is-next { transform: translateX(62%) scale(0.62); }
  .product-gallery-button { width: 30px; height: 30px; }
  .product-gallery-button::before { width: 8px; height: 8px; border-left-width: 2px; border-bottom-width: 2px; }
  .product-gallery-prev { left: 2px; }
  .product-gallery-next { right: 2px; }
}
/* Gallery compact control overrides */
.product-gallery .product-gallery-button {
  box-sizing: border-box !important;
  min-width: 0 !important;
  min-height: 0 !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  appearance: none;
}
.product-gallery .product-gallery-dot {
  box-sizing: border-box !important;
  min-width: 0 !important;
  min-height: 0 !important;
  width: 6px !important;
  height: 6px !important;
  padding: 0 !important;
  appearance: none;
}
.product-gallery .product-gallery-dot.is-active {
  width: 14px !important;
  height: 6px !important;
}
.product-gallery .product-gallery-dots {
  bottom: -22px !important;
}
/* Product details kicker restore and accessories page */
.flexible-gallery-section > .section-head,
.enclosure-gallery-section > .section-head {
  display: flex !important;
  margin-bottom: 10px;
}
.flexible-gallery-section > .section-head h2,
.enclosure-gallery-section > .section-head h2,
.flexible-gallery-section > .section-head > p,
.enclosure-gallery-section > .section-head > p {
  display: none !important;
}
.flexible-gallery-section > .section-head .section-kicker,
.enclosure-gallery-section > .section-head .section-kicker {
  display: block !important;
  margin-bottom: 0;
}
.accessories-main-image img {
  width: 94%;
  height: 94%;
  object-fit: contain;
}
.accessories-feature-grid {
  padding-top: 20px;
}


/* Busbar and grounding detail additions */
.busbar-main-image img { object-fit: contain; }
.busbar-size-image {
  width: min(760px, 100%);
  margin: 14px auto 0;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.busbar-size-image img {
  display: block;
  width: 100%;
  height: auto;
}
.busbar-feature-grid article { min-height: 0; }


/* Copper and grounding category image emphasis */
a[href="/products/panelcomponents/copperbusbar"] .product-tile-image img,
a[href="/products/panelcomponents/groundingbusbar"] .product-tile-image img {
  object-fit: cover;
  transform: scale(1.12);
}
.panel-card .home-card-bg {
  background-size: cover;
  background-position: center;
}




/* Match copper and grounding tile image ratio to flexible connector */
.product-family-section a.product-tile[href="/products/panelcomponents/copperbusbar"] .product-tile-image img,
.product-family-section a.product-tile[href="/products/panelcomponents/groundingbusbar"] .product-tile-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: scale(1.03) !important;
}


/* Busway product detail additions */
.busway-main-image img { object-fit: contain; }
.busway-parameter-image {
  width: min(760px, 100%);
  margin: 14px auto 0;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.busway-parameter-image img {
  display: block;
  width: 100%;
  height: auto;
}
.product-family-section a.product-tile[href="/products/buswaysystems/busway"] .product-tile-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: scale(1.02) !important;
}


/* Product specification table styles */
.responsive-spec-table {
  width: min(980px, 100%);
  margin: 18px auto 0;
  overflow-x: auto;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #fff;
}
.spec-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.35;
  color: #1f2937;
}
.spec-data-table th,
.spec-data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e9f0;
  border-right: 1px solid #e5e9f0;
  text-align: left;
  vertical-align: top;
}
.spec-data-table th {
  background: #172437;
  color: #fff;
  font-weight: 800;
}
.spec-data-table tr:nth-child(even) td { background: #f7f9fc; }
.spec-data-table th:last-child,
.spec-data-table td:last-child { border-right: 0; }
.spec-data-table tbody tr:last-child td { border-bottom: 0; }
.copper-size-table td:first-child,
.busway-size-table td:first-child,
.tapoff-size-table td:first-child {
  font-weight: 800;
  color: #102035;
  white-space: nowrap;
}
.tapoff-size-table { min-width: 1040px; }
.product-family-section a.product-tile[href="/products/buswaysystems/endfeedtapoffbox"] .product-tile-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: scale(1.02) !important;
}


/* Wide parameter table tuning */
.tapoff-spec-section .responsive-spec-table {
  width: min(1320px, 100%);
}
.tapoff-size-table {
  min-width: 1180px;
  font-size: 13px;
}
.tapoff-size-table th,
.tapoff-size-table td {
  padding: 9px 10px;
}
.busway-size-table {
  min-width: 760px;
}


/* Cable tray product detail additions */
.cabletray-main-image img { object-fit: contain; }
.cabletray-size-table {
  min-width: 760px;
}
.cabletray-size-table td {
  font-weight: 800;
  color: #102035;
  text-align: center;
}
.product-family-section a.product-tile[href="/products/buswaysystems/buswayaccessories"] .product-tile-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: scale(1.02) !important;
}

.busway-card .home-card-list {
  grid-template-columns: 1fr !important;
  align-content: center;
  justify-items: start;
  gap: 18px;
}

