:root {
  --navy: #0b1b33;
  --navy-2: #132b49;
  --ink: #172033;
  --muted: #607086;
  --line: #d8e2ec;
  --soft: #f4f7fa;
  --soft-2: #eaf1f6;
  --white: #ffffff;
  --cyan: #168ec4;
  --green: #1a9d78;
  --warn: #9a5b06;
  --danger: #b42318;
  --radius: 8px;
  --shadow: 0 18px 42px rgba(11, 27, 51, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

img,
svg,
picture {
  max-width: 100%;
}

img {
  height: auto;
}

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

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--navy);
  line-height: 1.16;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  font-size: clamp(36px, 6vw, 60px);
}

h2 {
  font-size: clamp(26px, 4vw, 40px);
}

h3 {
  font-size: 21px;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.container-wide {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

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

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--navy);
  font-weight: 800;
}

.brand span:last-child {
  overflow-wrap: anywhere;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-size: 18px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--white);
  font-size: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--navy-2);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  padding: 10px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
}

.header-cta {
  padding: 10px 15px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--green);
}

.hero {
  color: var(--white);
  background: var(--navy);
}

.hero-grid,
.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 46px;
  align-items: center;
  padding: 68px 0;
}

.hero h1,
.hero h2,
.page-hero h1,
.page-hero h2 {
  color: var(--white);
}

.hero p,
.page-hero p {
  max-width: 760px;
  margin-top: 18px;
  color: #d8e6f2;
  font-size: 17px;
}

.page-hero {
  padding: 70px 0 52px;
  color: var(--white);
  background: var(--navy);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: #79d7bd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-media,
.detail-hero-media {
  display: grid;
  place-items: center;
  min-height: 380px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.hero-media img,
.detail-main-image {
  display: block;
  width: 100%;
  max-height: 350px;
  object-fit: contain;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--soft);
}

.section.dark {
  color: var(--white);
  background: var(--navy-2);
}

.section.dark h2,
.section.dark h3 {
  color: var(--white);
}

.section.dark p {
  color: #d9e6f1;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.section-head p {
  max-width: 690px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.card {
  min-width: 0;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(11, 27, 51, 0.05);
}

.dark-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.icon-box {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-weight: 800;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
}

.btn-primary {
  color: var(--white);
  background: var(--green);
}

.btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--white);
}

.btn-light {
  color: var(--navy);
  background: var(--white);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--soft-2);
  font-size: 12px;
  font-weight: 800;
}

.tag.green {
  color: #075f46;
  background: #dff6ef;
}

.clean-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.clean-list li::before {
  content: "";
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

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

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.filter-btn.active {
  color: var(--white);
  border-color: var(--cyan);
  background: var(--cyan);
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-media {
  display: grid;
  place-items: center;
  min-height: 210px;
  margin: -24px -24px 20px;
  padding: 18px;
  background: #f7fafc;
}

.product-card-image {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: contain;
}

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

.product-summary {
  color: var(--muted);
  font-size: 14px;
}

.product-points {
  margin: 12px 0 20px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.detail-shell {
  width: min(1280px, calc(100vw - 48px));
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 0;
}

.detail-page-layout,
.detail-hero-layout,
.detail-related-wrap {
  width: min(1280px, calc(100vw - 48px));
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.detail-layout,
.product-detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: start;
  width: 100%;
}

.detail-main {
  display: grid;
  gap: 26px;
  min-width: 0;
}

.product-detail-main .detail-main {
  width: 100%;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #c8d7e6;
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #79d7bd;
}

.detail-section {
  display: grid;
  gap: 14px;
}

.detail-sidebar,
.product-detail-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  align-self: start;
}

.spec-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.spec-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

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

.spec-table th {
  width: 34%;
  color: var(--navy);
  background: #eef4f8;
}

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

.image-section {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 22px;
  width: 100%;
}

.image-grid.has-many {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.image-tile {
  display: grid;
  place-items: center;
  min-height: 270px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fafc;
}

.image-section-single .image-grid {
  grid-template-columns: minmax(420px, 720px);
}

.image-section-single .image-tile,
.image-section-dimensions .image-tile {
  min-height: 380px;
}

.image-section-application .image-tile {
  min-height: 320px;
  aspect-ratio: 16 / 10;
}

.product-gallery-image {
  display: block;
  width: 100%;
  min-height: 260px;
  max-height: 460px;
  object-fit: contain;
  background: #f5f8fb;
  border-radius: var(--radius);
  padding: 18px;
}

.image-section-dimensions .product-gallery-image,
.image-section-application .product-gallery-image {
  min-height: 320px;
}

.image-zoom {
  border: 0;
  background: transparent;
  cursor: zoom-in;
  width: 100%;
  padding: 0;
}

.related-section,
.detail-related-wrap {
  display: block;
  width: min(1280px, calc(100vw - 48px));
  max-width: 1280px;
  margin: 56px auto 0;
  clear: both;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 28px;
  width: 100%;
}

.related-products-grid .product-card {
  width: 100%;
  max-width: none;
}

.cta-band {
  padding: 34px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--navy);
}

.cta-band h2 {
  color: var(--white);
}

.notice {
  padding: 14px 16px;
  border: 1px solid #f3cf84;
  border-radius: var(--radius);
  color: var(--warn);
  background: #fff8e8;
}

.rfq-context {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid #98dec6;
  border-radius: var(--radius);
  color: #075f46;
  background: #e8f8f2;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  background: var(--white);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.error-text {
  display: none;
  color: var(--danger);
  font-size: 12px;
}

.field.error input,
.field.error select,
.field.error textarea {
  border-color: var(--danger);
}

.field.error .error-text {
  display: block;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(5, 15, 28, 0.82);
}

.modal.open {
  display: grid;
}

.modal-inner {
  position: relative;
  max-width: min(1100px, 96vw);
  max-height: 92vh;
}

.modal img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  border-radius: var(--radius);
  background: var(--white);
}

.modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy);
  background: var(--white);
  font-size: 22px;
  cursor: pointer;
}

.site-footer {
  padding: 52px 0 28px;
  color: #c8d7e6;
  background: var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 28px;
}

.site-footer h3,
.site-footer strong {
  color: var(--white);
}

.footer-links {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.footer-links a:hover {
  color: #79d7bd;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9fb4c7;
  font-size: 13px;
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--soft);
}

@media (min-width: 1320px) {
  .image-grid.has-many {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

@media (max-width: 1100px) {
  .detail-layout,
  .product-detail-main {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
  }

  .image-grid,
  .image-grid.has-many {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .related-products-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

  .nav-links.open {
    display: flex;
  }

  .header-cta {
    text-align: center;
  }

  .hero-grid,
  .detail-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .detail-hero-grid {
    padding: 48px 0;
  }

  .detail-sidebar {
    position: static;
  }

  .grid-4,
  .grid-3,
  .related-products-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .detail-shell,
  .detail-page-layout,
  .detail-hero-layout,
  .detail-related-wrap {
    width: min(100%, calc(100vw - 32px));
  }

  .detail-layout,
  .product-detail-main {
    grid-template-columns: 1fr;
  }

  .detail-sidebar,
  .product-detail-sidebar {
    position: static;
  }

  .image-section-single .image-grid,
  .image-grid,
  .image-grid.has-many,
  .related-products-grid {
    grid-template-columns: 1fr;
  }

  .product-gallery-image {
    min-height: 200px;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .container,
  .container-wide {
    width: min(100% - 24px, 1280px);
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .image-grid,
  .image-grid.has-many,
  .related-products-grid,
  .footer-grid,
  .rfq-form {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .detail-hero-media {
    min-height: 250px;
    padding: 14px;
  }

  .section {
    padding: 52px 0;
  }

  .page-hero {
    padding: 54px 0 40px;
  }

  .image-tile,
  .image-section-single .image-tile,
  .image-section-dimensions .image-tile,
  .image-section-application .image-tile {
    min-height: 210px;
    aspect-ratio: auto;
  }

  .product-gallery-image {
    max-height: none;
  }

  .btn,
  .form-actions .btn {
    width: 100%;
  }

  .spec-table {
    min-width: 520px;
  }

  .product-toolbar {
    align-items: stretch;
  }

  .filters,
  .filter-btn {
    width: 100%;
  }
}

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

.faq-list details {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.faq-list summary {
  color: var(--navy);
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
}

.btn:focus-visible,
.nav-links a:focus-visible,
.image-zoom:focus-visible,
.filter-btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid rgba(22, 142, 196, 0.35);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .detail-shell,
  .detail-page-layout,
  .detail-hero-layout,
  .detail-related-wrap {
    width: min(100%, calc(100vw - 24px));
  }

  .product-gallery-image {
    min-height: 160px;
    padding: 10px;
  }
}
