:root {
  --brand: #004990;
  --brand-dark: #00275b;
  --brand-bright: #084af3;
  --heading: #004990;
  --text: #494b51;
  --text-muted: #4b4f58;
  --white: #ffffff;
  --bg-soft: #f3f5f5;
  --bg-alt: #f6f7f8;
  --line: #dddddd;
  --line-strong: #c2cbd2;
  --brand-tint: rgba(0, 73, 144, 0.08);
  --brand-dark-tint: rgba(0, 39, 91, 0.08);
  --shadow: 0 18px 38px rgba(0, 39, 91, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shell: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-soft);
  color: var(--text);
  font-family: "Ubuntu", sans-serif;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--heading);
  font-family: "Ubuntu", sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

p,
ul,
ol,
dl {
  margin: 0;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.eyebrow,
.footer-eyebrow,
.product-card-kicker,
.focus-card > p:first-child {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header-inner,
.site-nav,
.brand,
.hero-actions,
.catalog-toolbar-actions,
.chip-row,
.detail-actions,
.gallery-rail,
.meta-list,
.product-card-meta,
.pill-list,
.breadcrumbs,
.footer-stats {
  display: flex;
  align-items: center;
}

.site-header-inner {
  justify-content: space-between;
  min-height: 82px;
  gap: 18px;
}

.brand {
  gap: 14px;
}

.brand-logo {
  width: auto;
  height: 42px;
}

.brand-badge {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav {
  gap: 8px;
}

.site-nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-nav-link:hover,
.site-nav-link.is-active {
  color: var(--brand-dark);
  background: var(--brand-tint);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--brand-dark);
}

.hero,
.detail-hero {
  background: linear-gradient(180deg, var(--brand-dark) 0%, var(--brand) 100%);
}

.hero {
  padding: 88px 0 58px;
}

.detail-hero {
  padding: 52px 0 38px;
}

.hero-grid,
.detail-hero-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.12fr 0.88fr;
}

.hero-copy,
.detail-summary {
  color: var(--white);
}

.hero-copy .eyebrow,
.detail-summary .eyebrow,
.detail-hero .breadcrumbs {
  color: rgba(255, 255, 255, 0.82);
}

.hero-copy h1,
.detail-summary h1 {
  color: var(--white);
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 5vw, 5rem);
}

.detail-summary h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.hero-lead {
  max-width: 62ch;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.04rem;
}

.hero-actions,
.detail-actions {
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--white);
  border-color: var(--white);
  color: var(--brand-dark);
}

.button-primary:hover {
  background: var(--bg-soft);
  border-color: var(--bg-soft);
}

.button-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--white);
}

.catalog-shell .button-secondary,
.detail-content .button-secondary,
.site-footer .button-secondary {
  border-color: var(--line-strong);
  color: var(--brand-dark);
}

.catalog-shell .button-secondary:hover,
.detail-content .button-secondary:hover,
.site-footer .button-secondary:hover {
  background: var(--brand-tint);
}

.stat-grid,
.focus-grid,
.product-grid,
.variant-grid,
.doc-grid,
.video-grid,
.footer-grid {
  display: grid;
  gap: 18px;
}

.stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card,
.focus-card,
.catalog-toolbar,
.filter-group,
.gallery-card,
.detail-summary,
.detail-section,
.footer-grid {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stat-card,
.focus-card,
.catalog-toolbar,
.filter-group,
.gallery-card,
.detail-section {
  background: var(--white);
}

.stat-card,
.focus-card,
.gallery-card,
.detail-section {
  border-radius: var(--radius-lg);
}

.stat-card {
  min-height: 146px;
  padding: 22px;
  display: grid;
  align-content: space-between;
}

.stat-card span {
  color: var(--text-muted);
}

.stat-card strong {
  color: var(--brand-dark);
  font-size: 1.6rem;
  font-weight: 700;
}

.focus-section,
.catalog-shell,
.detail-content {
  padding: 24px 0 64px;
}

.focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.focus-card,
.catalog-toolbar,
.filter-group,
.detail-section {
  padding: 24px;
}

.focus-card h3,
.catalog-toolbar h2,
.section-heading h2 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.focus-card p:last-child,
.catalog-toolbar p:last-child,
.filter-group p,
.catalog-count {
  color: var(--text-muted);
}

.catalog-toolbar,
.filter-group {
  margin-bottom: 16px;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
}

.catalog-toolbar-actions {
  gap: 14px;
}

.catalog-search {
  width: min(360px, 100%);
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  background: var(--white);
}

.catalog-search:focus {
  outline: 2px solid rgba(8, 74, 243, 0.16);
  outline-offset: 2px;
}

.chip-row,
.pill-list {
  gap: 10px;
  flex-wrap: wrap;
}

.filter-group p {
  margin-bottom: 14px;
}

.filter-chip,
.pill-list li {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.filter-chip {
  padding: 10px 14px;
  background: var(--white);
  color: var(--brand-dark);
  cursor: pointer;
}

.filter-chip span {
  color: var(--brand);
}

.filter-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.filter-chip.is-active span {
  color: var(--white);
}

.pill-list {
  list-style: none;
  padding: 0;
  margin-top: 18px;
}

.pill-list li {
  padding: 7px 12px;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: 0.9rem;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.product-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  color: var(--text);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card.is-hidden {
  display: none;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 20px 36px rgba(0, 39, 91, 0.1);
}

.product-card-link {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  min-width: 0;
}

.product-card-media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 5 / 4;
  min-height: 300px;
  padding: 18px 18px 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}

.product-card-media img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 20px 22px 24px;
}

.product-card h3 {
  font-size: 1.18rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.product-card-copy {
  flex: 1 1 auto;
  color: var(--text-muted);
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.product-card-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--brand-dark);
  font-size: 0.95rem;
}

.product-card-price,
.product-card-sku,
.product-card-kicker {
  min-width: 0;
}

.product-card-price {
  overflow-wrap: anywhere;
}

.product-card-sku {
  justify-self: end;
  text-align: right;
  overflow-wrap: anywhere;
}

.product-card-tags {
  margin-top: 0;
}

.load-more-wrap {
  padding-top: 28px;
  text-align: center;
}

.load-more-wrap.is-hidden {
  display: none;
}

.detail-main {
  background: var(--bg-soft);
}

.breadcrumbs {
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.gallery-card {
  padding: 18px;
}

.gallery-main {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-alt);
}

.gallery-main img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  padding: 20px 20px 0;
}

.gallery-rail {
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
}

.gallery-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  min-width: 86px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  cursor: pointer;
}

.gallery-thumb img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.gallery-thumb.is-active {
  border-color: var(--brand);
  background: var(--brand-tint);
}

.detail-summary {
  position: sticky;
  top: 98px;
  align-self: start;
  padding: 28px;
  border-color: rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(0, 39, 91, 0.22);
}

.detail-price {
  margin-top: 16px;
  color: var(--white);
  font-size: 1.72rem;
  font-weight: 700;
}

.compact-text,
.detail-summary .rich-text {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.88);
}

.compact-text img,
.detail-summary .rich-text img {
  max-width: 100%;
  height: auto;
}

.detail-summary .rich-text h3,
.detail-summary .rich-text h4,
.detail-summary .rich-text h5,
.detail-summary .rich-text a {
  color: var(--white);
}

.compact-text h3 img,
.compact-text h4 img,
.compact-text h5 img {
  width: auto;
  max-width: 220px;
  max-height: 42px;
}

.compact-text img[src*="ISO"],
.compact-text img[src*="iso"],
.compact-text img[src*="epa"],
.compact-text img[src*="EPA"],
.compact-text img[src*="CE"],
.compact-text img[src*="RohS"],
.detail-summary .rich-text img[src*="ISO"],
.detail-summary .rich-text img[src*="iso"],
.detail-summary .rich-text img[src*="epa"],
.detail-summary .rich-text img[src*="EPA"],
.detail-summary .rich-text img[src*="CE"],
.detail-summary .rich-text img[src*="RohS"] {
  display: inline-block;
  width: auto;
  max-width: 72px;
  max-height: 52px;
  margin: 10px 10px 0 0;
  vertical-align: middle;
}

.meta-list {
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.meta-list div {
  min-width: 120px;
}

.meta-list dt {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-list dd {
  margin: 5px 0 0;
  color: var(--white);
  font-weight: 500;
}

.detail-summary .pill-list li {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.section-heading {
  margin-bottom: 18px;
}

.variant-grid,
.doc-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.variant-card,
.doc-card,
.video-link {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
}

.variant-card,
.doc-card,
.video-link {
  padding: 18px;
}

.variant-card p:first-child,
.doc-card span {
  color: var(--brand);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.variant-card h3 {
  margin-top: 6px;
  color: var(--brand-dark);
  font-size: 1.35rem;
}

.variant-card span {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
}

.variant-card p:last-child,
.doc-card small {
  margin-top: 10px;
  color: var(--text-muted);
}

.doc-card {
  display: grid;
  gap: 8px;
}

.video-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.video-embed,
.video-link {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.video-embed {
  border: 1px solid var(--line);
  background: var(--bg-alt);
}

.video-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.video-link {
  display: block;
  color: var(--brand-dark);
}

.spec-card {
  background: var(--bg-alt);
}

.rich-text {
  color: var(--text);
}

.rich-text p,
.rich-text ul,
.rich-text ol,
.rich-text table,
.rich-text h4,
.rich-text h5 {
  margin-top: 14px;
}

.rich-text h4,
.rich-text h5 {
  color: var(--brand);
}

.rich-text a {
  color: var(--brand);
  text-decoration: underline;
}

.rich-text table {
  width: 100%;
  border-collapse: collapse;
}

.rich-text td,
.rich-text th {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.site-footer {
  padding: 24px 0 52px;
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr;
  padding: 28px;
  border-color: var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--text);
}

.footer-logo {
  width: auto;
  height: 42px;
  margin-bottom: 14px;
}

.footer-grid h2,
.footer-grid .footer-eyebrow {
  color: var(--brand);
}

.footer-grid p:last-child {
  margin-top: 14px;
  color: var(--text-muted);
}

.footer-stats {
  justify-content: space-between;
  gap: 14px;
}

.footer-stat {
  flex: 1;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-alt);
}

.footer-stat strong {
  display: block;
  color: var(--brand-dark);
  font-size: 1.5rem;
}

.footer-stat span {
  color: var(--text-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.65s ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 0.08s;
}

.reveal:nth-child(3) {
  animation-delay: 0.16s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  .hero-grid,
  .detail-hero-grid,
  .catalog-toolbar,
  .footer-grid,
  .focus-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .detail-summary {
    position: static;
  }

  .footer-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .brand-badge {
    display: none;
  }

  .stat-grid,
  .footer-stats {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-toolbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-search {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .stat-grid,
  .footer-stats {
    grid-template-columns: 1fr;
  }

  .focus-card,
  .catalog-toolbar,
  .filter-group,
  .detail-section,
  .detail-summary,
  .gallery-card,
  .footer-grid {
    padding: 20px;
  }

  .hero {
    padding-top: 60px;
  }

  .detail-hero {
    padding-top: 42px;
  }

  .hero-copy h1,
  .detail-summary h1 {
    max-width: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card-media {
    min-height: 260px;
  }

  .gallery-thumb {
    width: 72px;
    height: 72px;
    min-width: 72px;
  }
}
