:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #eef3f7;
  --ink: #17212b;
  --muted: #617080;
  --line: #dbe3ea;
  --accent: #0c6f78;
  --accent-dark: #084c55;
  --accent-soft: #e5f3f4;
  --navy: #132436;
  --green: #1f8a5f;
  --shadow: 0 18px 45px rgba(22, 34, 45, 0.09);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

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

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

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

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

.top-nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

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

.header-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.header-cta,
.primary-button {
  color: #fff;
  background: var(--accent);
}

.header-cta:hover,
.primary-button:hover {
  background: var(--accent-dark);
}

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

.secondary-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.full {
  width: 100%;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 42px;
  align-items: center;
  padding: 64px 32px 38px;
  max-width: 1440px;
  margin: 0 auto;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

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

.hero-panel,
.sku-card,
.inquiry-list,
.filter-rail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 22px;
}

.workflow-head,
.list-head,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.workflow-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.workflow-head span,
.section-head span,
.selectedCategory {
  color: var(--muted);
  font-size: 13px;
}

.workflow-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.workflow-row:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.workflow-row small,
.workflow-row strong {
  display: block;
}

.workflow-row small {
  margin-top: 4px;
  color: var(--muted);
}

.workflow-index {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 800;
}

.workflow-row.active .workflow-index {
  color: #fff;
  background: var(--accent);
}

.factory-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1376px;
  margin: 0 auto;
  padding: 0 32px 32px;
}

.factory-strip article {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-height: 112px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
}

.factory-strip article:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.factory-strip article:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.factory-strip small,
.product-card p,
.sku-title p,
.rail-note p,
.inquiry-item small {
  color: var(--muted);
  line-height: 1.55;
}

.strip-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 6px;
}

svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.catalog-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 360px;
  gap: 22px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px 42px;
  align-items: start;
}

.filter-rail,
.sku-panel {
  position: sticky;
  top: 88px;
}

.filter-rail {
  padding: 18px;
}

.rail-title strong,
.rail-title small {
  display: block;
}

.rail-title small {
  color: var(--muted);
  margin-top: 5px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 18px 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
}

.search-box svg {
  color: var(--muted);
  width: 17px;
  height: 17px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.category-list {
  display: grid;
  gap: 8px;
}

.category-list button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.category-list button:hover,
.category-list button.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: #c7e3e7;
}

.category-list small {
  color: inherit;
}

.rail-note {
  margin-top: 18px;
  padding: 14px;
  background: var(--surface-2);
  border-radius: 6px;
}

.rail-note p {
  margin: 6px 0 0;
  font-size: 13px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-head span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  white-space: nowrap;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.product-card:hover,
.product-card.selected {
  transform: translateY(-2px);
  border-color: #80bac0;
  box-shadow: var(--shadow);
}

.product-image {
  display: grid;
  height: 210px;
  flex: 0 0 210px;
  place-items: center;
  background: linear-gradient(180deg, #f8fafc, #edf3f7);
  border-bottom: 1px solid var(--line);
}

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

.product-card-body {
  position: relative;
  z-index: 1;
  flex: 1;
  background: #fff;
  padding: 14px;
}

.product-card small,
.sku-title small,
.product-category-tags span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-category-tags {
  display: grid;
  align-items: start;
  justify-items: start;
  gap: 5px;
  min-height: 22px;
}

.product-category-tags span {
  display: inline-flex;
  max-width: 100%;
  padding: 2px 0;
  line-height: 1.2;
}

.product-card h3 {
  min-height: 46px;
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.35;
}

.product-card p {
  min-height: 64px;
  margin: 8px 0 12px;
  font-size: 13px;
}

.product-meta {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: var(--navy);
}

.product-meta span,
.sku-dimensions {
  padding: 8px;
  background: var(--surface-2);
  border-radius: 6px;
}

.sku-dimensions {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.sku-panel {
  display: grid;
  gap: 16px;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.sku-panel::-webkit-scrollbar {
  width: 8px;
}

.sku-panel::-webkit-scrollbar-track {
  background: transparent;
}

.sku-panel::-webkit-scrollbar-thumb {
  background: #c7d6df;
  border-radius: 999px;
}

.sku-panel::-webkit-scrollbar-thumb:hover {
  background: #9fb7c4;
}

.sku-card {
  padding: 16px;
}

.sku-media {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
}

.sku-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sku-title {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.sku-title small,
.sku-title p {
  display: none;
}

.sku-title h2 {
  margin: 7px 0 0;
  font-size: 19px;
  line-height: 1.25;
}

.sku-title p {
  margin: 8px 0 0;
  font-size: 14px;
}

.option-stack {
  display: grid;
  gap: 16px;
  padding: 16px 0;
}

.option-label {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.option-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-values button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.option-values button:hover,
.option-values button.selected {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.quote-box {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: #eef7f4;
  border: 1px solid #cfe8df;
  border-radius: 6px;
}

.quote-box span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.quote-box strong {
  font-size: 25px;
}

.quote-box small {
  color: #3f6b58;
  line-height: 1.45;
}

.inquiry-form {
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

.inquiry-form label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  outline: 0;
  padding: 10px 11px;
  font-size: 14px;
  font-weight: 500;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(12, 111, 120, 0.12);
}

.inquiry-list {
  padding: 16px;
}

.list-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.list-head button,
.inquiry-item button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.inquiry-items {
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

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

.inquiry-item {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 12px 34px 12px 12px;
  background: var(--surface-2);
  border-radius: 6px;
}

.inquiry-item button {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 18px;
}

.inquiry-item span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 32px 34px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

@media (max-width: 1180px) {
  .catalog-shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .sku-panel {
    position: static;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 320px;
  }

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

@media (max-width: 860px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    background: #f6f8fa;
  }

  .site-header {
    position: sticky;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .brand strong {
    font-size: 13px;
  }

  .brand small {
    font-size: 11px;
  }

  .header-cta {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .top-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
  }

  .hero-section,
  .catalog-shell,
  .factory-strip {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 22px;
    padding-bottom: 20px;
  }

  .hero-copy h1 {
    font-size: 30px;
    line-height: 1.08;
  }

  .hero-copy p {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-panel {
    display: none;
  }

  .factory-strip {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-bottom: 18px;
  }

  .factory-strip article,
  .factory-strip article:first-child,
  .factory-strip article:last-child {
    border-radius: var(--radius);
  }

  .factory-strip article {
    min-height: auto;
    padding: 14px;
  }

  .catalog-shell {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 26px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .catalog-shell > *,
  .filter-rail,
  .product-area,
  .sku-panel {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .filter-rail {
    order: 1;
    position: static;
    padding: 14px;
  }

  .rail-note {
    display: none;
  }

  .search-box {
    margin: 12px 0;
  }

  .category-list {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .category-list::-webkit-scrollbar {
    display: none;
  }

  .category-list button {
    min-width: max-content;
    min-height: 36px;
    padding: 0 12px;
    background: #fff;
    border-color: var(--line);
  }

  .product-area {
    order: 3;
  }

  .sku-panel {
    order: 2;
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    scroll-margin-top: 12px;
  }

  .sku-card {
    padding: 12px;
  }

  .sku-media {
    max-height: none;
  }

  .sku-title {
    padding: 12px 0;
  }

  .sku-title h2 {
    font-size: 18px;
  }

  .option-stack {
    gap: 12px;
    padding: 12px 0;
  }

  .option-values {
    gap: 7px;
  }

  .option-values button {
    min-height: 36px;
    padding: 0 11px;
  }

  .quote-box strong {
    font-size: 23px;
  }

  .inquiry-form {
    gap: 10px;
  }

  .section-head {
    align-items: flex-start;
    margin-bottom: 12px;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .section-head p {
    font-size: 14px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 156px;
  }

  .product-image {
    height: 100%;
    min-height: 156px;
    flex: none;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .product-image img {
    padding: 8px;
  }

  .product-card-body {
    padding: 12px;
  }

  .product-card h3 {
    min-height: 0;
    margin-top: 6px;
    font-size: 16px;
  }

  .product-card p {
    min-height: 0;
    margin: 7px 0 10px;
    font-size: 12px;
    line-height: 1.45;
  }

  .product-meta {
    gap: 6px;
  }

  .product-meta span,
  .sku-dimensions {
    padding: 7px;
  }

  .sku-dimensions {
    margin-top: 7px;
  }

  .site-footer {
    flex-direction: column;
    padding-left: 18px;
    padding-right: 18px;
  }
}
