:root {
  --ink: #16212b;
  --muted: #5a6875;
  --line: #d9e0e4;
  --paper: #ffffff;
  --wash: #f3f6f7;
  --teal: #1f766e;
  --teal-dark: #14534e;
  --amber: #c9852b;
  --blue: #2a618f;
  --red: #9d4a40;
  --shadow: 0 18px 55px rgba(21, 34, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: block;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.utility-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 7px clamp(18px, 4vw, 56px);
  color: #d7e4e8;
  background: #1d2c35;
  font-size: 12px;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 162px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--teal);
  color: #fff;
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

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

.nav {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  font-size: 14px;
  color: #33424f;
}

.nav a {
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

select,
button,
.primary,
.secondary {
  font: inherit;
}

select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 8px;
}

.icon-button,
.icon-close {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  cursor: pointer;
}

.icon-button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.icon-button b {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 12px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  padding: clamp(46px, 7vw, 90px) clamp(18px, 5vw, 72px);
  min-height: calc(100vh - 72px);
}

.hero-v1 {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.7fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  padding: clamp(46px, 7vw, 86px) clamp(18px, 5vw, 72px);
  background: linear-gradient(180deg, #ffffff, #eef4f5);
  border-bottom: 1px solid var(--line);
}

.finder-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.finder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.finder-head span {
  color: var(--muted);
}

.search-box {
  display: grid;
  gap: 8px;
}

.search-box span {
  color: #30414f;
  font-weight: 700;
}

.search-box input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 13px;
  font: inherit;
}

.finder-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.finder-metrics div {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fa;
}

.finder-metrics strong,
.finder-metrics span {
  display: block;
}

.finder-metrics strong {
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 22px;
}

.finder-metrics span {
  color: var(--muted);
  font-size: 13px;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.category-strip article {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.category-strip article:last-child {
  border-right: 0;
}

.category-strip span {
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.category-strip strong {
  font-size: 18px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}

.lead,
.section-heading p,
.split p,
.download-band p,
.checkout-note p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.lead {
  max-width: 760px;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.primary {
  background: var(--teal);
  color: #fff;
}

.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.button-reset {
  border: 0;
}

.hero-panel {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 24px;
  min-height: 420px;
  background: #e8eeee;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: var(--shadow);
}

.sensor-visual {
  position: relative;
  min-height: 245px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 118, 110, 0.12), transparent 58%),
    linear-gradient(160deg, #fdfefe, #dce8ea);
  overflow: hidden;
}

.probe {
  position: absolute;
  left: 18%;
  top: 24%;
  width: 48%;
  height: 78px;
  background: linear-gradient(90deg, #eceff0, #ffffff 45%, #b9c7cd);
  border: 1px solid #a8b8be;
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(20, 40, 50, 0.18);
}

.probe::after {
  content: "";
  position: absolute;
  right: -76px;
  top: 29px;
  width: 76px;
  height: 18px;
  background: #9bacb3;
  border-radius: 0 12px 12px 0;
}

.display {
  position: absolute;
  left: 24%;
  top: 38%;
  width: 150px;
  height: 92px;
  display: grid;
  place-items: center;
  background: #13242d;
  color: #8ff1e6;
  border: 8px solid #d7dedf;
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
}

.cable {
  position: absolute;
  right: 14%;
  bottom: 23%;
  width: 44%;
  height: 9px;
  background: var(--amber);
  border-radius: 999px;
  transform: rotate(-12deg);
}

.quick-specs {
  display: grid;
  gap: 10px;
  margin: 0;
}

.quick-specs div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

dt {
  color: var(--teal-dark);
  font-weight: 800;
}

dd {
  margin: 0;
  color: #394957;
}

.category-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.category-band article {
  min-height: 210px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.category-band article:last-child {
  border-right: 0;
}

.category-band span {
  color: var(--amber);
  font-weight: 800;
}

.category-band h2 {
  margin-top: 32px;
  font-size: 22px;
}

.category-band p {
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.65fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 28px;
}

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

.catalog-section {
  background: #f7f9fa;
}

.catalog-heading {
  align-items: start;
}

.catalog-tools {
  display: grid;
  gap: 12px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #2b3b47;
  cursor: pointer;
}

.filter-chip.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.result-count {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  min-height: 390px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-art {
  aspect-ratio: 1 / 1;
  min-height: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e0e7e9;
  overflow: hidden;
  text-decoration: none;
}

.product-art span {
  width: 68%;
  height: 58px;
  border-radius: 8px;
  background: linear-gradient(90deg, #cbd6d9, #fff, #98abb1);
  border: 1px solid #aab8bd;
  box-shadow: 0 14px 24px rgba(33, 53, 62, 0.14);
}

.product-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.product-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

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

.spec-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #394957;
  font-size: 14px;
}

.card-category {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
}

.add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(26px, 5vw, 72px);
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.application-list {
  display: grid;
  gap: 12px;
}

.application-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.application-list span {
  color: var(--muted);
  text-align: right;
}

.download-band,
.resource-section,
.checkout-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: center;
}

.download-list {
  display: grid;
  gap: 10px;
}

.download-list a,
.resource-list a {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.resource-section {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.resource-section code {
  padding: 2px 5px;
  background: #eef3f4;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.resource-list {
  display: grid;
  gap: 10px;
}

.checkout-note {
  background: #20313a;
  color: #fff;
}

.checkout-note p {
  color: #d2dee3;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(420px, 100%);
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform: translateX(104%);
  transition: transform 180ms ease;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header,
.cart-footer {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h2 {
  font-size: 22px;
}

.icon-close {
  width: 36px;
  height: 36px;
  font-size: 24px;
}

.cart-items {
  overflow: auto;
  padding: 18px;
}

.cart-row {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-row strong {
  font-size: 15px;
}

.cart-row span {
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: #dbe5e9;
  background: #17242c;
}

.compact-link {
  min-height: 38px;
  padding: 0 12px;
  font-size: 14px;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(38px, 6vw, 80px) clamp(18px, 5vw, 72px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.product-media {
  display: grid;
  gap: 14px;
}

.product-media > img {
  width: 100%;
  max-height: 640px;
  object-fit: contain;
  background: #f7f9fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.thumb-row button {
  min-height: 86px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.thumb-row img {
  width: 100%;
  height: 86px;
  object-fit: contain;
}

.product-summary h1 {
  font-size: clamp(34px, 5vw, 62px);
}

.product-buy-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.product-buy-box > div {
  padding: 16px;
  background: #f6f8f9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.spec-table th,
.spec-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

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

.spec-table th {
  width: 32%;
  background: #f7f9fa;
  color: #263642;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-header-main {
  border-bottom: 1px solid var(--line);
}

.samplebook-section {
  background: #f7f9fa;
}

.samplebook-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}

.samplebook-heading p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.65;
}

.samplebook-flow {
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.samplebook-page {
  margin: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.samplebook-page img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.samplebook-page figcaption {
  padding: 10px 4px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 960px) {
  .header-main {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .utility-bar {
    display: none;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .hero-v1,
  .product-hero,
  .section-heading,
  .samplebook-heading,
  .split,
  .download-band,
  .checkout-note,
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

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

@media (max-width: 640px) {
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .category-band,
  .category-strip,
  .product-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .category-band article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-specs div,
  .product-bottom,
  .application-list div,
  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .application-list span {
    text-align: left;
  }
}
