/* Katalog urządzeń: /katalog, kategorie, karta urządzenia. Zmienne z home.css. */
.catalog .alt { padding-block: var(--s-5) var(--s-7); }
.cat-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--s-3); }
.cat-crumbs a { color: var(--muted); }
.cat-crumbs a:hover { color: var(--ink); }
.cat-count { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; color: var(--muted); margin-left: 8px; }
.cat-empty { color: var(--muted); padding: var(--s-4) 0; }
.cat-note { display: block; font-size: var(--text-xs); color: var(--muted); }
.cat-flag { display: inline-block; font-size: var(--text-xs); font-weight: 600; color: var(--alert); }

/* start */
.cat-roots { display: grid; gap: var(--s-5); }
.cat-root h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; }
.cat-root h2 a { color: var(--ink); text-decoration: none; }
.cat-desc { color: var(--muted); margin-top: var(--s-2); max-width: var(--prose-max); }
.cat-tiles { list-style: none; padding: 0; margin-top: var(--s-3); display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-3); }
.cat-tiles a { display: flex; flex-direction: column; gap: 4px; padding: var(--s-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color var(--t-fast); }
.cat-tiles a:hover { border-color: var(--green); }
.cat-tiles .cat-count { margin: 0; }

/* kategoria */
.cat-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-3); }
.cat-chips a { display: inline-flex; gap: 6px; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); text-decoration: none; font-size: var(--text-sm); font-weight: 600; }
.cat-chips a span { color: var(--muted); font-weight: 500; }
.cat-chips a:hover { border-color: var(--green); }
.filters input[type=search] { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font: inherit; color: var(--ink); min-width: 220px; }
.filters .btn-s.small { min-height: 44px; }
.cat-result { font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--s-3); }
.cat-products { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-3); }
.cat-products a { height: 100%; display: flex; flex-direction: column; gap: 4px; padding: var(--s-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); text-decoration: none; transition: border-color var(--t-fast); }
.cat-products a:hover { border-color: var(--green); }
.cat-maker { font-size: var(--text-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cat-model { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; overflow-wrap: anywhere; }
.cat-variant { font-size: var(--text-sm); color: var(--muted); }
.cat-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-top: var(--s-2); font-size: var(--text-sm); }
.cat-kv dt { color: var(--muted); font-size: var(--text-xs); }
.cat-kv dd { margin: 0; }
.cat-pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-4); }
.cat-pager a, .cat-pager span { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); font-weight: 600; }
.cat-pager a { border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.cat-pager .current { background: var(--dark); color: #fff; }
.cat-pager .gap { color: var(--muted); }

/* urządzenie */
.page-head .cat-maker { margin-bottom: 4px; }
.page-head h1 { overflow-wrap: anywhere; }
.cat-key { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }
.cat-key div { padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); min-width: 140px; }
.cat-key dt { font-size: var(--text-xs); color: var(--muted); }
.cat-key dd { margin: 2px 0 0; font-size: var(--text-xl); }
.cat-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); align-items: center; }
.cat-detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.cat-detail h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; margin-bottom: var(--s-3); }
.cat-spec h3 { font-family: var(--font-display); font-size: var(--text-base); font-weight: 800; margin: var(--s-4) 0 var(--s-2); }
.cat-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.cat-table div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-3); padding: 10px 16px; border-top: 1px solid var(--line); font-size: var(--text-sm); }
.cat-table div:first-child { border-top: 0; }
.cat-table dt { color: var(--muted); }
.cat-table dd { margin: 0; font-weight: 600; }
.cat-side { display: grid; gap: var(--s-4); }
.cat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-4); box-shadow: var(--shadow-sm); }
.cat-scroll { overflow-x: auto; }
.cat-data { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.cat-data th { text-align: left; font-size: var(--text-xs); color: var(--muted); font-weight: 600; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cat-data td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cat-docs { list-style: none; padding: 0; display: grid; gap: 10px; }
.cat-docs a { color: var(--green); font-weight: 600; }

@media (max-width: 860px) {
  .cat-detail { grid-template-columns: minmax(0, 1fr); }
  .cat-table div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .filters input[type=search] { min-width: 0; width: 100%; }
}
