/* Catalog status bar, sort controls and first-class comparison table with compact sticky header. */
.catalog-sync { padding: 14px 18px; margin-bottom: 16px; border-radius: 14px; background: var(--surface); }
.catalog-sync-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.catalog-sync-header p { margin: 4px 0; }
.catalog-sync-dates { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 6px 0; }
.catalog-file-warning { padding: 10px 14px; border-radius: 10px; background: #fff8e6; color: #725314; line-height: 1.5; font-size: 13px; }
.catalog-reference { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 8px 0; font-size: 13px; }
.catalog-supplier { font-size: 12px; font-weight: 500; display: inline-block; padding: 4px 8px; border-radius: 8px; color: var(--availability-neutral); background: var(--bg); }
.catalog-supplier.availability-status--positive { color: var(--availability-green); background: var(--availability-green-bg); }
.catalog-supplier.availability-status--negative { color: var(--availability-red); background: var(--availability-red-bg); }
.sale-product-result { flex-wrap: wrap; }
.catalog-sort-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.catalog-sort-control { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 500; }
.catalog-sort-control select, .catalog-sort-control .custom-select-ui { min-width: 135px; }
.catalog-sort-direction { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; white-space: nowrap; }
.catalog-sort-direction [aria-hidden="true"] { color: var(--text); font-size: 14px; font-weight: 600; }
.catalog-sort-state { color: var(--muted); font-size: 12px; line-height: 1.3; }
.catalog-table-scroll { max-width: 100%; overflow: visible; border-radius: 14px; background: var(--surface); margin-top: 10px; }
.catalog-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; text-align: left; }
.catalog-col-product { width: 35%; }
.catalog-col-retail, .catalog-col-supplier { width: 13%; }
.catalog-table th, .catalog-table td { padding: 8px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
.catalog-table thead th { position: sticky; top: 52px; z-index: 3; padding: 7px 14px; font-size: 11.5px; line-height: 1.25; font-weight: 600; color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--line); }
.catalog-table thead th:first-child { border-top-left-radius: 14px; }
.catalog-table thead th:last-child { border-top-right-radius: 14px; }
.catalog-table tbody th { background: var(--surface); font-weight: 400; }
.catalog-table tbody tr:last-child > * { border-bottom: 0; }
.catalog-table tbody tr:hover > *, .catalog-table tbody tr:focus-within > * { background: var(--bg); }
.catalog-product-cell { display: grid; gap: 4px; min-width: 0; }
.catalog-product-link { display: block; width: 100%; padding: 0; text-align: left; font-weight: 400; }
.catalog-product-name { color: var(--text); font-size: 13px; line-height: 1.3; font-weight: 600; }
.catalog-product-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 8px; min-width: 0; }
.catalog-product-sku { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
.catalog-quick-actions { display: flex; flex: 0 0 auto; align-items: center; flex-wrap: nowrap; gap: 10px; min-width: 0; margin-left: auto; }
.catalog-quick-actions .text-action { min-height: 24px; padding: 2px 4px; font-size: 12px; white-space: nowrap; }
.catalog-money { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.catalog-table .catalog-supplier { font-size: 12px; line-height: 1.3; }
.catalog-table .catalog-supplier::before { display: inline; width: auto; height: auto; border-radius: 0; background: none; flex: none; }
.catalog-table .availability-status--positive::before { content: "✓ "; }
.catalog-table .availability-status--negative::before { content: "− "; }
.catalog-table-empty { padding: 28px 16px; color: var(--muted); font-size: 13px; text-align: center; }
.catalog-scroll-sentinel { height: 1px; width: 100%; }
@media (max-width: 900px) {
  .catalog-table-scroll { overflow-x: auto; }
  .catalog-table { min-width: 920px; }
  .catalog-table thead th { position: static; }
}
@media (max-width: 700px) {
  .catalog-col-product { width: 220px; }
  .catalog-table th, .catalog-table td { padding: 6px 10px; }
  .catalog-table thead th:first-child, .catalog-table tbody th { position: sticky; left: 0; z-index: 1; background: var(--surface); }
  .catalog-table thead th:first-child { z-index: 2; }
  .catalog-product-name { font-size: 12px; }
  .catalog-money { font-size: 12.5px; }
}
@media (max-width: 600px) {
  .catalog-sync { padding: 12px; }
  .catalog-sync-header { align-items: flex-start; flex-wrap: wrap; }
}
