.catalog-page { min-height: 100vh; }
.catalog-shell { width: min(1160px, calc(100vw - 48px)); margin-inline: auto; }
.catalog-nav .active { color: var(--blue); font-weight: 600; }
.inquiry-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 0; border-radius: 18px; color: #fff; background: var(--ink); cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 600; white-space: nowrap; }
.inquiry-pill span { min-width: 17px; height: 17px; display: grid; place-items: center; border-radius: 9px; color: var(--ink); background: #fff; font-size: 10px; }

.catalog-hero { padding-top: 74px; padding-bottom: 42px; }
.catalog-title-wrap { display: grid; grid-template-columns: 1fr 340px; column-gap: 64px; align-items: end; }
.catalog-title-wrap .eyebrow { grid-column: 1 / -1; }
.catalog-title-wrap h1 { margin: 0; font-size: clamp(45px, 6vw, 70px); line-height: .98; letter-spacing: -.055em; }
.catalog-title-wrap h1 span { color: var(--muted); }
.catalog-title-wrap > p:last-child { margin: 0 0 6px; color: var(--muted); font-size: 16px; line-height: 1.55; }

.catalog-search { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; margin-top: 45px; padding: 10px; border-radius: 22px; background: #fff; box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.catalog-search-field { min-width: 0; display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 10px; padding: 0 12px; }
.catalog-search-field svg { width: 23px; fill: none; stroke: var(--ink); stroke-width: 1.7; }
.catalog-search input { width: 100%; height: 46px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.catalog-search input { font-size: 17px; }
.catalog-search input::placeholder { color: #929297; }
.catalog-submit { border: 0; border-radius: 14px; color: #fff; background: var(--blue); cursor: pointer; font-weight: 600; transition: background .2s, transform .2s; }
.catalog-submit:hover { background: #0077ed; transform: scale(1.02); }
.search-examples { display: flex; align-items: center; gap: 9px; margin: 14px 11px 0; color: var(--muted); font-size: 12px; }
.search-examples a { padding: 5px 9px; border-radius: 12px; background: #e8e8ed; transition: background .2s, color .2s; }
.search-examples a:hover { color: var(--blue); background: #e1e9f3; }

.category-showcase-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 44px 0 18px; }
.category-showcase-head > div > span { color: #b54708; font-size: 11px; font-weight: 700; }
.category-showcase-head h2 { margin: 6px 0 0; font-size: 25px; letter-spacing: -.03em; }
.show-all-categories { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 17px; color: var(--blue); background: #e6eef7; font-size: 12px; font-weight: 600; }
.show-all-categories small { min-width: 18px; height: 18px; display: grid; place-items: center; padding-inline: 4px; border-radius: 9px; background: #fff; font-size: 9px; }
.show-all-categories:hover, .show-all-categories.active { color: #fff; background: var(--ink); }
.show-all-categories.active small { color: var(--ink); }
.category-showcase { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; }
.category-showcase[data-expanded="false"] .category-tile:nth-child(n+7) { display: none; }
.category-tile { --tile-color: #147ce5; position: relative; min-width: 0; min-height: 96px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 21px 22px; overflow: hidden; border: 1px solid rgba(0,0,0,.055); border-radius: 20px; background: rgba(255,255,255,.92); box-shadow: 0 7px 20px rgba(0,0,0,.04); transition: transform .25s, box-shadow .25s, border-color .25s; }
.category-tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--tile-color); opacity: .72; }
.category-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tile-color) 32%, transparent); box-shadow: 0 12px 27px rgba(0,0,0,.08); }
.category-tile.active { border-color: var(--tile-color); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tile-color) 14%, transparent), 0 12px 27px rgba(0,0,0,.08); }
.category-tile-copy { min-width: 0; }
.category-tile-copy strong { display: block; overflow: hidden; font-size: 16px; letter-spacing: -.015em; text-overflow: ellipsis; white-space: nowrap; }
.category-tile-copy small { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.category-tile-action { display: inline-flex; align-items: center; gap: 5px; color: var(--tile-color); font-size: 11px; font-weight: 600; white-space: nowrap; }
.category-tile-action b { font-size: 15px; transition: transform .2s; }
.category-tile:hover .category-tile-action b { transform: translateX(3px); }
.category-tile.tone-1 { --tile-color: #8c52db; }.category-tile.tone-2 { --tile-color: #e25f2c; }.category-tile.tone-3 { --tile-color: #00a889; }.category-tile.tone-4 { --tile-color: #d99400; }.category-tile.tone-5 { --tile-color: #d63d77; }
.category-expand-button { min-height: 38px; display: flex; align-items: center; gap: 8px; margin: 15px auto 0; padding: 0 15px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: rgba(255,255,255,.82); cursor: pointer; font-size: 12px; font-weight: 600; transition: background .2s, border-color .2s, transform .2s; }
.category-expand-button small { color: var(--muted); font-size: 10px; font-weight: 400; }
.category-expand-button:hover { color: var(--blue); background: #fff; border-color: #b9d5ee; transform: translateY(-1px); }

.catalog-results { padding: 38px 0 80px; scroll-margin-top: 65px; }
.results-toolbar { min-height: 60px; display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.results-toolbar h2 { margin: 0 0 5px; font-size: 28px; letter-spacing: -.035em; }
.results-toolbar p { margin: 0; color: var(--muted); font-size: 13px; }
.clear-filter { color: var(--blue); font-size: 13px; }
.clear-filter:hover { text-decoration: underline; }

.catalog-list { overflow: hidden; border: 1px solid rgba(0,0,0,.05); border-radius: 24px; background: #fff; box-shadow: 0 9px 30px rgba(0,0,0,.055); }
.catalog-columns, .catalog-row { display: grid; grid-template-columns: minmax(330px, 2.5fr) minmax(150px, 1fr) 130px minmax(165px, 1fr) 112px; gap: 17px; align-items: center; }
.catalog-columns { min-height: 43px; padding: 0 22px; color: var(--muted); background: #fafafa; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 600; }
.catalog-row { min-height: 92px; padding: 10px 22px; border-bottom: 1px solid var(--line); transition: background .2s; }
.catalog-row:last-child { border-bottom: 0; }
.catalog-row:hover { background: #fafcff; }
.part-identity { min-width: 0; }
.model-copy { display: block; max-width: 100%; overflow: hidden; padding: 0; border: 0; color: var(--blue); background: none; cursor: pointer; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; font-weight: 700; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.model-copy:hover { text-decoration: underline; }
.part-identity p { overflow: hidden; margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.product-source-label { display: inline-block; margin-top: 6px; color: var(--muted); font-size: 10px; font-weight: 600; }
.part-spec strong, .quote-guidance strong { display: block; color: var(--ink); font-size: 13px; }
.part-spec span, .quote-guidance span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.part-category { color: #55555a; font-size: 12px; }
.part-category strong, .part-category span { display: block; }
.part-category span { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.3; }
.quote-guidance strong { color: var(--blue); }
.inquiry-button { min-height: 36px; padding: 0 13px; border: 1px solid var(--blue); border-radius: 18px; color: #fff; background: var(--blue); cursor: pointer; font-size: 12px; font-weight: 600; white-space: nowrap; transition: .2s; }
.inquiry-button:hover, .inquiry-button.added { color: #fff; background: var(--blue); border-color: var(--blue); }

.model-detail-dialog { width: min(780px, calc(100vw - 40px)); max-height: min(700px, calc(100dvh - 40px)); overflow: auto; border-radius: 26px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.model-detail-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 500px; }
.model-detail-media { display: grid; place-items: center; padding: 34px; border-radius: 26px 0 0 26px; background: linear-gradient(145deg, #f7f8fa, #eceff4); }
.model-detail-media img { width: 100%; max-height: 330px; object-fit: contain; border-radius: 20px; mix-blend-mode: multiply; }
.model-detail-content { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 46px 42px 36px; }
.model-detail-kicker { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.model-detail-content h2 { margin: 8px 36px 3px 0; overflow-wrap: anywhere; font-family: "SFMono-Regular", Consolas, monospace; font-size: 27px; line-height: 1.14; letter-spacing: -.035em; }
.model-detail-name { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.model-detail-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 0 0 22px; }
.model-detail-specs div { min-width: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.model-detail-specs dt { margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.model-detail-specs dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.4; }
.model-detail-summary { padding: 14px 15px; border-radius: 14px; background: #f6f6f8; }
.model-detail-summary strong { display: block; margin-bottom: 6px; font-size: 11px; }
.model-detail-summary p { max-height: 92px; margin: 0; overflow: auto; color: var(--muted); font-size: 12px; line-height: 1.55; }
.model-detail-quote { margin: 15px 0 12px; color: #07599f; font-size: 11px; line-height: 1.45; }
.model-detail-inquiry { width: 100%; min-height: 42px; border-radius: 21px; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; padding: 12px; border: 1px solid rgba(0,0,0,.06); border-radius: 24px; background: rgba(255,255,255,.9); box-shadow: 0 9px 30px rgba(0,0,0,.055); }
.pagination-pages { min-width: 0; display: flex; flex: 1; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.pagination-control, .page-number, .pagination-gap { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 19px; font-size: 13px; }
.pagination-control { min-width: 92px; gap: 6px; padding: 0 14px; border: 1px solid var(--line); color: var(--ink); background: #fff; font-weight: 600; transition: color .2s, background .2s, border-color .2s, transform .2s; }
.pagination-control:hover { color: var(--blue); background: #f5f9ff; border-color: #b9d5ee; transform: translateY(-1px); }
.pagination-control.disabled { color: #a5a5aa; background: #f5f5f7; cursor: not-allowed; }
.page-arrow-icon { font-size: 19px; line-height: 1; }
.page-number { width: 38px; color: #4d5159; transition: color .2s, background .2s, box-shadow .2s; }
.page-number:hover { color: var(--blue); background: #edf5ff; }
.page-number.active { color: #fff; background: var(--ink); box-shadow: 0 8px 18px rgba(0,0,0,.16); }
.pagination-gap { width: 24px; color: #a0a0a6; }

.empty-results { padding: 75px 24px; border-radius: 24px; background: #fff; text-align: center; box-shadow: 0 9px 30px rgba(0,0,0,.055); }
.empty-icon { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; color: #8a8a90; background: var(--surface); font-size: 38px; }
.empty-results h3 { margin: 0 0 9px; font-size: 22px; }
.empty-results p { margin: 0 auto 23px; color: var(--muted); font-size: 14px; }
.empty-results a { color: var(--blue); font-size: 14px; }

.catalog-help { min-height: 260px; display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 90px; padding: 50px 58px; border-radius: 30px; color: #fff; background: linear-gradient(125deg, #121e32, #184f7e); }
.catalog-help span { color: #71c7ff; font-size: 12px; font-weight: 700; }
.catalog-help h2 { margin: 8px 0 10px; font-size: 34px; letter-spacing: -.04em; }
.catalog-help p { max-width: 610px; margin: 0; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.55; }
.catalog-help > a { flex: 0 0 auto; padding: 12px 18px; border-radius: 22px; color: #10233c; background: #fff; font-size: 13px; font-weight: 600; }
.catalog-footer a:hover { text-decoration: underline; }

@media (max-width: 1000px) {
  .catalog-nav { gap: 18px; }
  .category-showcase { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-columns { display: none; }
  .catalog-row { grid-template-columns: minmax(280px, 2fr) minmax(140px, 1fr) minmax(165px, 1fr) 112px; }
  .part-category { display: none; }
}

@media (max-width: 820px) {
  .catalog-title-wrap { grid-template-columns: 1fr; gap: 20px; }
  .catalog-title-wrap > p:last-child { max-width: 520px; margin-top: 4px; }
  .catalog-nav { display: none; }
  .catalog-search { grid-template-columns: minmax(0, 1fr) 100px; }
  .catalog-row { grid-template-columns: minmax(290px, 1fr) minmax(165px, 1fr) 112px; }
  .part-spec { display: none; }
}

@media (max-width: 620px) {
  .catalog-shell { width: calc(100vw - 28px); }
  .catalog-hero { padding-top: 48px; }
  .catalog-title-wrap h1 { font-size: 43px; }
  .catalog-search { grid-template-columns: 1fr; margin-top: 32px; }
  .catalog-search-field { height: 52px; border-bottom: 1px solid var(--line); }
  .catalog-submit { min-height: 44px; }
  .search-examples { flex-wrap: wrap; }
  .category-showcase-head { align-items: center; margin-top: 36px; }
  .category-showcase-head h2 { font-size: 22px; }
  .category-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .category-tile { min-height: 88px; grid-template-columns: minmax(0, 1fr) auto; padding: 17px 15px; border-radius: 17px; }
  .category-tile-copy strong { font-size: 14px; }
  .category-tile-action { font-size: 0; }
  .category-tile-action b { font-size: 15px; }
  .results-toolbar { align-items: start; }
  .results-toolbar h2 { font-size: 24px; }
  .catalog-list { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .catalog-row { position: relative; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 14px; margin-bottom: 12px; padding: 18px; border: 0; border-radius: 20px; background: #fff; box-shadow: 0 7px 20px rgba(0,0,0,.055); }
  .part-identity { grid-column: 1 / -1; }
  .part-identity p { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .part-spec, .part-category { display: block; grid-column: auto; padding-top: 10px; border-top: 1px solid var(--line); }
  .part-spec::before, .part-category::before, .quote-guidance::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; }
  .quote-guidance { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--line); }
  .inquiry-button { grid-column: 1 / -1; min-height: 40px; }
  .pagination { flex-wrap: wrap; gap: 10px; padding: 10px; border-radius: 20px; }
  .pagination-pages { flex-basis: 100%; order: 3; }
  .pagination-control { flex: 1 1 0; min-width: 0; }
  .model-detail-dialog { width: min(94vw, 440px); max-height: 90dvh; border-radius: 22px; }
  .model-detail-grid { grid-template-columns: 1fr; }
  .model-detail-media { min-height: 190px; padding: 26px 72px; border-radius: 22px 22px 0 0; }
  .model-detail-media img { max-height: 170px; }
  .model-detail-content { padding: 28px 24px 24px; }
  .model-detail-content h2 { font-size: 24px; }
  .catalog-help { align-items: start; flex-direction: column; margin-bottom: 55px; padding: 38px 28px; }
  .catalog-help h2 { font-size: 28px; }
  .catalog-footer .footer-bottom { flex-direction: column; }
}
