@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans+Condensed:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");
body { margin: 0; font-family: var(--font-sans); font-size: 14px; line-height: 20px; background: var(--surface-100); color: var(--ink); -webkit-font-smoothing: antialiased; }
.usx-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-4); }
.usx-stack { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-4); max-width: 420px; }
.usx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-5); padding: var(--space-4); }
.usx-icon { width: 16px; height: 16px; flex: none; }
:where(.usx-btn, .usx-input, .usx-select, .usx-chip, .usx-card a):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Button */
.usx-btn { font: inherit; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: 36px; padding: 0 var(--space-4); border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color .12s, border-color .12s; }
.usx-btn-sm { height: 28px; padding: 0 var(--space-3); font-size: 13px; }
.usx-btn-lg { height: 44px; padding: 0 var(--space-5); font-size: 15px; }
.usx-btn-primary { background: var(--navy-700); color: var(--on-navy); }
.usx-btn-primary:hover { background: var(--navy-800); }
.usx-btn-secondary { background: var(--surface-000); color: var(--ink); border-color: var(--line-strong); }
.usx-btn-secondary:hover { background: var(--surface-200); }
.usx-btn-quiet { background: transparent; color: var(--link); }
.usx-btn-quiet:hover { background: var(--surface-200); }
.usx-btn-danger { background: var(--surface-000); color: var(--red-700); border-color: var(--red-700); }
.usx-btn-danger:hover { background: var(--red-50); }
.usx-btn:disabled { opacity: .45; cursor: not-allowed; }

/* Badge */
.usx-badge { display: inline-flex; align-items: center; gap: var(--space-1); font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px var(--space-2); border-radius: var(--radius-sm); background: var(--surface-200); color: var(--ink-muted); white-space: nowrap; }
.usx-badge .usx-icon { width: 13px; height: 13px; }
.usx-badge-verified { background: var(--brass-50); color: var(--brass-600); }
.usx-badge-usa { background: var(--navy-50); color: var(--link); }
.usx-badge-usa .usx-star { color: var(--red-700); }
.usx-badge-success { background: var(--success-50); color: var(--success-700); }
.usx-badge-warning { background: var(--warning-50); color: var(--warning-700); }
.usx-badge-danger { background: var(--red-50); color: var(--red-700); }

/* Chip */
.usx-chip { font: inherit; font-size: 13px; display: inline-flex; align-items: center; gap: var(--space-2); height: 32px; padding: 0 var(--space-3); border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--surface-000); color: var(--ink); cursor: pointer; }
.usx-chip:hover { background: var(--surface-200); }
.usx-chip[aria-pressed="true"] { background: var(--navy-50); border-color: var(--navy-700); color: var(--link); font-weight: 600; }
.usx-chip-count { color: var(--ink-subtle); font-family: var(--font-mono); font-size: 12px; }
.usx-chip[aria-pressed="true"] .usx-chip-count { color: inherit; }

/* TextField */
.usx-field { display: flex; flex-direction: column; gap: 6px; }
.usx-field-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.usx-field-req { color: var(--red-700); margin-left: 2px; }
.usx-input, .usx-select { font: inherit; height: 38px; padding: 0 var(--space-3); border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--surface-000); color: var(--ink); }
.usx-input::placeholder { color: var(--ink-subtle); }
.usx-field-hint { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.usx-field-invalid .usx-input { border-color: var(--red-700); background: var(--red-50); }
.usx-field-invalid .usx-field-hint { color: var(--red-700); }

/* SearchBar */
.usx-search { display: flex; align-items: stretch; height: 48px; border: 2px solid var(--navy-700); border-radius: var(--radius-lg); background: var(--surface-000); overflow: hidden; box-shadow: var(--shadow-1); }
.usx-search .usx-select { height: auto; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: var(--surface-200); font-weight: 500; padding: 0 var(--space-3); }
.usx-search-input { flex: 1; min-width: 0; font: inherit; font-size: 15px; border: 0; padding: 0 var(--space-4); background: transparent; color: var(--ink); }
.usx-search-input::placeholder { color: var(--ink-subtle); }
.usx-search-input:focus { outline: none; }
.usx-search:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.usx-search .usx-btn { height: auto; border-radius: 0; padding: 0 var(--space-5); }

/* Cards */
.usx-card { background: var(--surface-000); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-1); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.usx-card:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.usx-card-media { aspect-ratio: 4 / 3; background: var(--surface-200); display: flex; align-items: center; justify-content: center; color: var(--ink-subtle); }
.usx-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.usx-card-media .usx-icon { width: 40px; height: 40px; }
.usx-card-body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.usx-card-title { margin: 0; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink); }
.usx-card-title a { color: inherit; text-decoration: none; }
.usx-card-title a:hover { color: var(--link); text-decoration: underline; }
.usx-price { font-size: 18px; line-height: 24px; font-weight: 600; color: var(--ink); }
.usx-price-unit { font-size: 13px; font-weight: 400; color: var(--ink-muted); }
.usx-meta { display: flex; align-items: center; gap: var(--space-1); font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.usx-meta strong { color: var(--ink); font-weight: 600; }
.usx-badges { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.usx-card-foot { border-top: 1px solid var(--line); padding: var(--space-3) var(--space-4); display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.usx-supplier { font-size: 13px; color: var(--ink-muted); }
.usx-supplier a { color: var(--link); text-decoration: none; font-weight: 600; }
.usx-supplier a:hover { text-decoration: underline; }

/* SupplierCard */
.usx-sc-head { display: flex; gap: var(--space-3); align-items: flex-start; }
.usx-sc-logo { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--navy-50); color: var(--link); font-family: var(--font-condensed); font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; flex: none; }
.usx-sc-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin: var(--space-2) 0; padding: var(--space-3) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.usx-fact-v { font-weight: 600; font-size: 15px; color: var(--ink); }
.usx-fact-k { font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
.usx-overline { font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; margin: 0 0 var(--space-1); }
.usx-taglist { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.usx-tag { font-size: 12px; line-height: 16px; padding: 2px var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); background: var(--surface-100); }
.usx-tag-mono { font-family: var(--font-mono); }

/* SpecTable */
.usx-spec { width: 100%; border-collapse: collapse; background: var(--surface-000); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; font-size: 13px; }
.usx-spec caption { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--ink-muted); padding-bottom: var(--space-2); }
.usx-spec th, .usx-spec td { text-align: left; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.usx-spec tr:last-child th, .usx-spec tr:last-child td { border-bottom: 0; }
.usx-spec th { width: 38%; background: var(--surface-200); color: var(--ink-muted); font-weight: 500; }
.usx-spec td { color: var(--ink); font-family: var(--font-mono); }
