.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.catalog-heading > div { min-width: 0; }
.catalog-heading p { margin: 0; }
.eyebrow { margin: 0; color: #597385; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.result-count { color: #536977; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item-search { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr); align-items: end; gap: 12px 20px; width: 100%; padding: 14px 16px; border: 1px solid #aabec9; background: #f4f8fa; }
.item-search label { min-height: 20px; margin-bottom: 6px; color: #294a60; font-size: 14px; font-weight: bold; line-height: 20px; }
.item-search input[type="search"], .item-search input[type="submit"], .item-search select { height: 40px; min-height: 40px; padding: 9px 10px; line-height: 20px; }
.catalog-query { min-width: 0; }
.search-row { display: flex; align-items: stretch; gap: 10px; }
.search-row input[type="search"] { flex: 1; min-width: 0; }
.catalog-controls { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(125px, 1.2fr) minmax(90px, .75fr) minmax(125px, 1.1fr); align-items: end; gap: 12px; }
.catalog-controls > div { min-width: 0; }
.catalog-controls select { width: 100%; min-width: 0; }
.clear-search { grid-column: 1 / -1; justify-self: start; font-size: 14px; text-underline-offset: 3px; }
.sort-link { display: inline-block; padding: 4px 0; color: inherit; text-underline-offset: 3px; }
.sort-link[data-direction="ascending"]::after { content: " ↑"; }
.sort-link[data-direction="descending"]::after { content: " ↓"; }
.list-context { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0 10px; color: #536977; font-size: 14px; }
.list-context span + span::before { margin-right: 20px; color: #9aaeb9; content: "·"; }
.item-results { overflow-x: auto; border-top: 1px solid #aabec9; border-bottom: 1px solid #aabec9; background: #fff; }
.item-results table { table-layout: fixed; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 10px; border-bottom: 1px solid #d6e0e5; text-align: left; vertical-align: middle; }
th { color: #294a60; background: #edf4f7; font-size: 14px; font-weight: bold; white-space: nowrap; }
tr:nth-child(even) { background: #f8fafb; }
.item-results th:first-child { width: 46%; }
.item-results th:not(:first-child) { width: 18%; text-align: right; white-space: normal; }
.item-results tbody tr:last-child td { border-bottom: 0; }
.item-results tbody tr:hover, .item-results tbody tr:focus-within { background: #eef5f8; }
.item-link { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; line-height: 1.35; text-decoration: none; }
.item-link:hover > span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.item-cell { display: flex; align-items: center; min-width: 0; }
.item-link > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.item-icon-frame { display: inline-flex; flex: 0 0 40px; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #c4d1d8; border-radius: 3px; background: #fff; }
.item-icon { width: auto; height: auto; max-width: 36px; max-height: 36px; image-rendering: pixelated; object-fit: contain; }
small { display: block; color: #607582; font-size: 12px; }
.item-results .price-cell { text-align: right; }
.price { color: #203f54; font-size: 17px; font-weight: bold; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.price-cell .price { display: block; }
.price-unknown { color: #536977; font-size: 16px; font-weight: normal; }
.price-samples { margin-top: 3px; line-height: 1.35; }
.price-meta { display: flex; justify-content: flex-end; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; margin-top: 3px; }
.price-meta .price-samples { margin-top: 0; }
.price-evidence { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; color: #526977; font-size: 12px; font-weight: normal; line-height: 1.4; overflow-wrap: anywhere; }
.price-evidence-dot { flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: #8799a5; }
.price-evidence-single .price-evidence-dot { background: #96702d; }
.price-evidence-multiple .price-evidence-dot { background: #39789a; }
.price-evidence-multiple { color: #32637f; }
.empty-state { padding: 14px; border-left: 3px solid #9bb1bd; background: #f4f8fa; }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 16px 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.pagination a, .pagination .current-page { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 5px 9px; border: 1px solid #b6c7d1; border-radius: 3px; background: #fff; line-height: 20px; text-decoration: none; }
.pagination .current-page { border-color: #426f8a; background: #426f8a; color: #fff; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.results-toolbar p, .results-toolbar .pagination { margin: 0; }
.catalog-note { max-width: 760px; font-size: 14px; line-height: 1.45; }
@media (max-width: 980px) {
  .item-search { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 650px) {
  .catalog-heading { align-items: flex-start; }
  .item-search { padding: 12px; }
  .search-row { gap: 8px; }
  .catalog-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .list-context { gap: 5px 10px; }
  .list-context span + span::before { margin-right: 10px; }
  .item-results { margin-left: -2px; margin-right: -2px; overflow-x: visible; }
  .item-results table, .item-results tbody, .item-results tr, .item-results td { display: block; width: 100%; }
  .item-results thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .item-results tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 9px 8px; border-bottom: 1px solid #d6e0e5; }
  .item-results td { padding: 6px 4px; border: 0; }
  .item-results td:first-child { grid-column: 1 / -1; }
  .item-results td:not(:first-child) { min-width: 0; text-align: right; white-space: normal; }
  .item-results td:not(:first-child)::before { display: block; margin-bottom: 3px; color: #536977; font-size: 12px; content: attr(data-label); }
  .item-link { min-width: 0; }
  .item-results .price { font-size: clamp(11px, 3.3vw, 14px); white-space: nowrap; }
}
.item-group-expansion > td { padding: 0 0 8px; }
.item-group-expansion summary { padding: 6px 10px; color: #245b7a; cursor: pointer; font-size: 13px; }
.item-group-expansion table { margin-top: 6px; border: 1px solid #d6e0e5; }
.item-group-expansion col:first-child { width: 46%; }
.item-group-expansion col:not(:first-child) { width: 18%; }
@media (max-width: 650px) {
  .item-results tbody tr.item-group-expansion { display: block; padding: 0 12px 8px; }
  .item-group-expansion > td { padding: 0; }
}
