:root {
  color-scheme: light;
  --ink: #12253f;
  --muted: #718096;
  --line: #e4eaf2;
  --blue: #1769c2;
  --blue-dark: #104f9b;
  --blue-soft: #edf5ff;
  --surface: #ffffff;
  --canvas: #f5f8fc;
  --shadow: 0 12px 36px rgba(22, 52, 89, 0.07);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #8dc4ff; outline-offset: 3px; }

.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(28px, calc((100vw - 1200px) / 2));
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; }
.brand-mark {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px;
  color: white; background: linear-gradient(145deg, #2b92ec, #0756ac); font: 800 24px/1 Manrope, sans-serif;
}
.brand-name { font: 800 16px/1 Manrope, sans-serif; letter-spacing: .09em; color: #1769c2; }
.brand-divider { width: 1px; height: 22px; margin: 0 4px; background: #dce4ee; }
.brand-section { color: #50627a; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.header-note { display: inline-flex; align-items: center; gap: 9px; color: #64758c; font-size: 12px; font-weight: 600; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #28aa78; box-shadow: 0 0 0 4px #e4f6ee; }

.main-shell { min-height: calc(100vh - 132px); max-width: 1200px; margin: 0 auto; padding: 44px 28px 68px; }
.loading-state, .error-state { padding: 60px 20px; text-align: center; color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 15px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, "DM Sans", sans-serif; }
h1 { margin-bottom: 12px; font-size: clamp(32px, 5vw, 48px); line-height: 1.12; letter-spacing: -.045em; }
.hero-copy { max-width: 660px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.hero-row { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.search-box { width: min(100%, 340px); flex: 0 0 340px; position: relative; }
.search-box svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #7c8ba0; pointer-events: none; }
.search-input { width: 100%; height: 48px; padding: 0 16px 0 44px; border: 1px solid #dce5ef; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 3px 10px rgba(28, 55, 88, .03); }
.search-input::placeholder { color: #94a1b2; }

.category-bar { display: flex; gap: 9px; overflow-x: auto; padding: 3px 1px 18px; scrollbar-width: thin; }
.category-button { border: 1px solid #dfe7f1; border-radius: 999px; background: white; color: #55677e; padding: 9px 15px; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: .18s ease; }
.category-button:hover { border-color: #a9caec; color: var(--blue); }
.category-button.active { border-color: var(--blue); background: var(--blue); color: white; box-shadow: 0 5px 14px rgba(23,105,194,.2); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 20px 0 17px; }
.section-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.result-count { color: #8794a5; font-size: 12px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 4px 16px rgba(31, 56, 87, .035); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.product-card:hover { transform: translateY(-3px); border-color: #c6dbf0; box-shadow: var(--shadow); }
.product-card-link { display: block; height: 100%; }
.card-image-wrap { height: 210px; overflow: hidden; background: linear-gradient(140deg, #eaf3fd, #f5f8fc); }
.card-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .35s ease; }
.product-card:hover .card-image { transform: scale(1.025); }
.product-cutout { object-fit: contain; padding: 18px; }
.detail-image.product-cutout { height: 360px; object-fit: contain; padding: 28px; background: #f6faff; }
.card-body { padding: 19px 20px 20px; }
.product-type { margin-bottom: 8px; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.product-name { margin: 0 0 8px; font-size: 19px; letter-spacing: -.035em; }
.product-summary { min-height: 42px; margin: 0 0 17px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.card-meta { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #edf0f5; padding-top: 14px; color: #718096; font-size: 11px; }
.status-label { display: inline-flex; align-items: center; gap: 7px; color: #397b60; font-weight: 700; }
.status-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #39ac7e; }
.empty-state { grid-column: 1 / -1; border: 1px dashed #cfdae7; border-radius: 16px; padding: 48px 22px; text-align: center; background: rgba(255,255,255,.55); }
.empty-icon { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 13px; background: var(--blue-soft); color: var(--blue); }
.empty-state h3 { margin-bottom: 7px; font-size: 15px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }
.library-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 28px; padding: 15px 17px; border: 1px solid #e2ebf5; border-radius: 12px; background: #f9fbfe; color: #66778d; font-size: 11px; line-height: 1.6; }
.library-note strong { display: block; margin-bottom: 2px; color: #344962; font-size: 12px; }

.back-link { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; color: #61738b; font-size: 12px; font-weight: 700; }
.back-link:hover { color: var(--blue); }
.detail-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 42px; align-items: center; margin: 4px 0 36px; }
.detail-image-frame { overflow: hidden; min-height: 300px; border: 1px solid #e1eaf4; border-radius: 20px; background: white; box-shadow: var(--shadow); }
.detail-image { width: 100%; height: 100%; min-height: 300px; max-height: 390px; display: block; object-fit: cover; }
.detail-title { margin-bottom: 11px; }
.detail-description { margin-bottom: 22px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 7px 10px; border: 1px solid #dce8f5; border-radius: 7px; background: #f7fbff; color: #42678f; font-size: 10px; font-weight: 700; }
.detail-columns { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr); gap: 20px; }
.panel { border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 4px 16px rgba(31,56,87,.03); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #edf1f6; }
.panel-heading h2 { margin: 0; font-size: 15px; }
.panel-kicker { color: #8b98a8; font-size: 10px; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; padding: 4px 20px 16px; }
.spec-row { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid #f0f3f7; font-size: 11px; line-height: 1.45; }
.spec-label { color: #7a8899; }
.spec-value { color: #263d58; font-weight: 700; text-align: right; }
.download-list { padding: 3px 16px 13px; }
.download-item { display: flex; align-items: center; gap: 12px; padding: 13px 5px; border-bottom: 1px solid #f0f3f7; }
.download-item:last-child { border-bottom: 0; }
.file-icon { width: 36px; height: 40px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 7px; background: #fff0ef; color: #df4a40; font-size: 9px; font-weight: 800; }
.file-info { min-width: 0; flex: 1; }
.file-name { display: block; overflow: hidden; margin-bottom: 4px; color: #2a3c52; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { color: #8895a5; font-size: 10px; }
.download-button { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 32px; border: 1px solid #dce8f4; border-radius: 8px; background: white; color: var(--blue); }
.download-button:hover { border-color: var(--blue); background: var(--blue-soft); }
.detail-footnote { margin: 14px 2px 0; color: #8793a2; font-size: 10px; line-height: 1.55; }
.not-found { padding: 60px 0; text-align: center; }
.not-found p { color: var(--muted); }
.primary-button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 9px; background: var(--blue); color: white; font-size: 12px; font-weight: 700; }
.primary-button:hover { background: var(--blue-dark); }

.site-footer { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 max(28px, calc((100vw - 1200px) / 2)); border-top: 1px solid var(--line); background: white; color: #8b97a7; font-size: 9px; font-weight: 700; letter-spacing: .1em; }

@media (max-width: 820px) {
  .hero-row { align-items: flex-start; flex-direction: column; }
  .search-box { width: min(100%, 440px); flex-basis: auto; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-top { grid-template-columns: 1fr; gap: 24px; }
  .detail-image-frame, .detail-image { min-height: 260px; max-height: 380px; }
  .detail-columns { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-header { height: 64px; padding: 0 17px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 14px; }
  .brand-section { font-size: 9px; letter-spacing: .08em; }
  .brand-divider { margin: 0 1px; }
  .header-note { font-size: 0; }
  .header-note .status-dot { font-size: initial; }
  .main-shell { padding: 34px 17px 50px; }
  .product-grid { grid-template-columns: 1fr; }
  .card-image-wrap { height: 225px; }
  .spec-list { grid-template-columns: 1fr; }
  .site-footer { padding: 0 17px; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
