/* ── Base ──────────────────────────────────────────────────────────────────── */
#tbm-app { font-family: 'Segoe UI', Arial, sans-serif; direction: rtl; color: #1f2937; }

/* ── Search Box ─────────────────────────────────────────────────────────────── */
.tbm-search-wrap { background: linear-gradient(135deg,#1e3a5f 0%,#2563eb 100%); padding: 48px 20px; text-align: center; }
.tbm-search-inner { max-width: 680px; margin: 0 auto; }
.tbm-search-box { display: flex; align-items: center; background: #fff; border-radius: 50px; padding: 6px 6px 6px 20px; box-shadow: 0 4px 24px rgba(0,0,0,.18); gap: 8px; }
.tbm-search-icon { width: 20px; height: 20px; color: #6b7280; flex-shrink: 0; }
#tbm-query { flex: 1; border: none; outline: none; font-size: 15px; background: transparent; direction: ltr; text-align: left; }
#tbm-search-btn { background: #2563eb; color: #fff; border: none; border-radius: 40px; padding: 10px 24px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s; }
#tbm-search-btn:hover { background: #1d4ed8; }
.tbm-search-hint { color: rgba(255,255,255,.75); font-size: 13px; margin-top: 12px; }

/* ── Results count ──────────────────────────────────────────────────────────── */
#tbm-results { max-width: 900px; margin: 30px auto; padding: 0 16px; }
.tbm-results-count { color: #6b7280; font-size: 14px; margin-bottom: 16px; }
.tbm-results-count strong { color: #1f2937; }

/* ── Part Chips ─────────────────────────────────────────────────────────────── */
.tbm-chips-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.tbm-part-chip {
    display: inline-block;
    background: #f0f7ff;
    border: 1.5px solid #bfdbfe;
    color: #1e40af;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all .18s;
    user-select: none;
    direction: ltr;
}
.tbm-part-chip:hover { background: #dbeafe; border-color: #93c5fd; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(37,99,235,.15); }
.tbm-part-chip.tbm-chip-active { background: #2563eb; border-color: #2563eb; color: #fff; box-shadow: 0 2px 10px rgba(37,99,235,.35); }

/* ── Part Detail Panel ──────────────────────────────────────────────────────── */
#tbm-part-detail {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.tbm-detail-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.tbm-detail-title { font-size: 18px; font-weight: 700; color: #1e3a5f; direction: ltr; }
.tbm-detail-subtitle { font-size: 13px; color: #6b7280; margin-bottom: 20px; }
.tbm-detail-close { background: none; border: none; font-size: 18px; color: #9ca3af; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: background .15s; }
.tbm-detail-close:hover { background: #f3f4f6; color: #374151; }

/* ── Manufacturer Block ──────────────────────────────────────────────────────── */
.tbm-mfr-list { display: flex; flex-direction: column; gap: 16px; }
.tbm-mfr-block { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px 20px; }
.tbm-mfr-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.tbm-mfr-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tbm-mfr-name { font-size: 15px; font-weight: 700; color: #1e3a5f; }
.tbm-mfr-name-link { cursor: pointer; border-bottom: 1px dashed #3b82f6; }
.tbm-mfr-name-link:hover { color: #2563eb; border-bottom-style: solid; }
.tbm-mfr-flag { font-size: 18px; }
.tbm-mfr-country { font-size: 12px; color: #6b7280; background: #e5e7eb; border-radius: 10px; padding: 2px 8px; }
.tbm-mfr-website { font-size: 13px; color: #2563eb; text-decoration: none; }
.tbm-mfr-website:hover { text-decoration: underline; }
.tbm-no-imp { font-size: 13px; color: #9ca3af; margin: 6px 0 0; }

/* ── Importers ───────────────────────────────────────────────────────────────── */
.tbm-imp-label { font-size: 12px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.tbm-imp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 12px; }
.tbm-imp-card { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; position: relative; transition: box-shadow .18s; }
.tbm-imp-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.1); }
.tbm-imp-card.tier-premium { border-color: #f59e0b; background: #fffbeb; }
.tbm-imp-card.tier-standard { border-color: #10b981; background: #f0fdf4; }
.tbm-imp-name { font-size: 14px; font-weight: 700; color: #1f2937; }
.tbm-imp-contacts { display: flex; flex-direction: column; gap: 3px; }
.tbm-imp-contact { font-size: 12px; color: #4b5563; }
.tbm-imp-contact a { color: #2563eb; text-decoration: none; }
.tbm-imp-contact a:hover { text-decoration: underline; }
.tbm-tier-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #10b981; color: #fff; display: inline-block; margin-bottom: 4px; }
.tbm-tier-badge.premium { background: #f59e0b; }
.tbm-rfq-btn { margin-top: 8px; background: #2563eb; color: #fff; border: none; border-radius: 6px; padding: 8px 12px; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .2s; }
.tbm-rfq-btn:hover { background: #1d4ed8; }

/* ── Loading / Empty ────────────────────────────────────────────────────────── */
.tbm-loading { text-align: center; padding: 48px; }
.tbm-spinner { width: 36px; height: 36px; border: 3px solid #e5e7eb; border-top-color: #2563eb; border-radius: 50%; animation: tbm-spin .7s linear infinite; margin: 0 auto 12px; }
@keyframes tbm-spin { to { transform: rotate(360deg); } }
.tbm-empty { text-align: center; padding: 60px 20px; color: #6b7280; }
.tbm-empty h3 { font-size: 18px; color: #374151; margin: 12px 0 6px; }

/* ── Modal ───────────────────────────────────────────────────────────────────── */
#tbm-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
#tbm-modal { background: #fff; border-radius: 16px; padding: 32px; width: 100%; max-width: 500px; position: relative; max-height: 90vh; overflow-y: auto; }
#tbm-modal h3 { margin: 0 0 6px; font-size: 20px; color: #1e3a5f; }
#tbm-modal-part-label { color: #6b7280; font-size: 13px; margin-bottom: 20px; direction: ltr; }
#tbm-modal-close { position: absolute; top: 16px; left: 16px; background: none; border: none; font-size: 20px; cursor: pointer; color: #9ca3af; }
.tbm-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tbm-field { display: flex; flex-direction: column; gap: 5px; }
.tbm-field-full { grid-column: 1 / -1; }
.tbm-field label { font-size: 13px; font-weight: 600; color: #374151; }
.tbm-field input, .tbm-field textarea { border: 1.5px solid #d1d5db; border-radius: 8px; padding: 9px 12px; font-size: 14px; outline: none; transition: border-color .15s; }
.tbm-field input:focus, .tbm-field textarea:focus { border-color: #2563eb; }
#tbm-lead-submit { width: 100%; background: #2563eb; color: #fff; border: none; border-radius: 8px; padding: 12px; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 18px; transition: background .2s; }
#tbm-lead-submit:hover { background: #1d4ed8; }
#tbm-lead-msg { margin-top: 12px; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
#tbm-lead-msg.ok { background: #d1fae5; color: #065f46; }
#tbm-lead-msg.err { background: #fee2e2; color: #991b1b; }

@media (max-width: 600px) {
    .tbm-form-grid { grid-template-columns: 1fr; }
    .tbm-imp-grid { grid-template-columns: 1fr; }
    .tbm-search-box { border-radius: 12px; padding: 8px 12px; flex-wrap: wrap; }
    #tbm-search-btn { width: 100%; border-radius: 8px; }
}

/* ── Live Suggestions Dropdown ──────────────────────────────────────────────── */
.tbm-search-box-wrap { position: relative; }
#tbm-suggest {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
    background: #fff; border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,.18);
    overflow: hidden; text-align: right; max-height: 380px; overflow-y: auto;
}
.tbm-sug-item {
    padding: 11px 18px; cursor: pointer; border-bottom: 1px solid #f3f4f6;
    display: flex; flex-direction: column; gap: 2px; transition: background .12s;
}
.tbm-sug-item:last-child { border-bottom: none; }
.tbm-sug-item:hover, .tbm-sug-item.active { background: #eff6ff; }
.tbm-sug-label { font-size: 14px; color: #1f2937; direction: ltr; text-align: left; }
.tbm-sug-label b { color: #2563eb; }
.tbm-sug-via  { font-size: 11.5px; color: #059669; }
.tbm-sug-swap { font-size: 11.5px; color: #b45309; direction: rtl; }
.tbm-swap-note {
    background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px;
    padding: 10px 14px; font-size: 13px; color: #92400e; margin-bottom: 14px;
}

/* ── Synonyms row in part detail ────────────────────────────────────────────── */
.tbm-syn-row { font-size: 13px; color: #6b7280; margin-bottom: 8px; }
.tbm-syn-link { color: #2563eb; cursor: pointer; direction: ltr; display: inline-block; }
.tbm-syn-link:hover { text-decoration: underline; }

/* ── Logos ──────────────────────────────────────────────────────────────────── */
.tbm-mfr-logo { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid #e5e7eb; padding: 2px; }
.tbm-imp-top  { display: flex; align-items: center; gap: 8px; }
.tbm-imp-logo { width: 30px; height: 30px; object-fit: contain; border-radius: 5px; background: #fff; border: 1px solid #e5e7eb; padding: 2px; flex-shrink: 0; }
.tbm-imp-link { cursor: pointer; color: #1d4ed8; }
.tbm-imp-link:hover { text-decoration: underline; }

/* ── Importer Profile ───────────────────────────────────────────────────────── */
.tbm-back-btn {
    background: #fff; border: 1.5px solid #d1d5db; border-radius: 8px;
    padding: 7px 16px; font-size: 13px; cursor: pointer; margin-bottom: 14px;
    color: #374151; transition: all .15s;
}
.tbm-back-btn:hover { border-color: #2563eb; color: #2563eb; }
.tbm-profile {
    background: #fff; border: 1.5px solid #e5e7eb; border-radius: 14px;
    padding: 28px; box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.tbm-profile-header { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.tbm-profile-logo { width: 84px; height: 84px; object-fit: contain; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; padding: 6px; }
.tbm-profile-logo-ph { display: flex; align-items: center; justify-content: center; font-size: 36px; background: #f3f4f6; }
.tbm-profile-name { font-size: 22px; font-weight: 800; color: #1e3a5f; margin-bottom: 6px; }
.tbm-profile-contacts { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #4b5563; }
.tbm-profile-contacts a { color: #2563eb; text-decoration: none; }
.tbm-profile-contacts a:hover { text-decoration: underline; }
.tbm-profile-about {
    background: #f9fafb; border-right: 3px solid #2563eb; border-radius: 8px;
    padding: 14px 18px; font-size: 14px; line-height: 1.8; color: #374151; margin-bottom: 20px;
}
.tbm-profile-section-title { font-size: 14px; font-weight: 700; color: #1e3a5f; margin: 20px 0 12px; }
.tbm-mfr-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 12px; }
.tbm-mfr-tile {
    background: #f9fafb; border: 1.5px solid #e5e7eb; border-radius: 10px;
    padding: 14px 10px; text-align: center; cursor: pointer; transition: all .15s;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.tbm-mfr-tile:hover { border-color: #2563eb; box-shadow: 0 3px 12px rgba(37,99,235,.15); transform: translateY(-2px); }
.tbm-mfr-tile img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: #fff; }
.tbm-mfr-tile-ph { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: #fff; border-radius: 8px; border: 1px dashed #d1d5db; }
.tbm-mfr-tile-name { font-size: 12.5px; font-weight: 600; color: #1f2937; }
#tbm-profile-parts { margin-top: 8px; }
.tbm-mini-chip { font-size: 12.5px; padding: 5px 12px; }

/* ── Grouped suggestions (v2.2) ─────────────────────────────────────────────── */
.tbm-sug-group {
    padding: 7px 16px 5px; font-size: 11.5px; font-weight: 700; color: #6b7280;
    background: #f9fafb; border-bottom: 1px solid #f3f4f6; letter-spacing: .02em;
}
.tbm-sug-row { display: flex; align-items: center; gap: 8px; }
.tbm-sug-logo { width: 24px; height: 24px; object-fit: contain; border-radius: 4px; background: #fff; border: 1px solid #e5e7eb; flex-shrink: 0; }
.tbm-sug-logo-ph { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; background: #f3f4f6; border-radius: 4px; flex-shrink: 0; }
.tbm-sug-label-he { font-size: 14px; color: #1f2937; }

/* ── Category accordion (v2.2) ──────────────────────────────────────────────── */
.tbm-acc { border: 1.5px solid #e5e7eb; border-radius: 10px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.tbm-acc summary {
    cursor: pointer; padding: 12px 16px; font-weight: 700; color: #1e3a5f;
    background: #f9fafb; list-style: none; display: flex; align-items: center; gap: 6px;
    transition: background .15s; user-select: none;
}
.tbm-acc summary::-webkit-details-marker { display: none; }
.tbm-acc summary::after { content: '▾'; margin-right: auto; color: #9ca3af; transition: transform .2s; }
.tbm-acc[open] summary::after { transform: rotate(180deg); }
.tbm-acc summary:hover { background: #eff6ff; }
.tbm-acc-count { color: #6b7280; font-weight: 500; font-size: 13px; }
.tbm-acc-body { padding: 12px 16px; }
.tbm-acc-sub { font-size: 12.5px; font-weight: 600; color: #6b7280; margin: 8px 0 6px; }

/* ── Manufacturer logo placeholder (v2.2) ───────────────────────────────────── */
.tbm-mfr-logo-ph { display: inline-flex; align-items: center; justify-content: center; font-size: 18px; background: #f3f4f6; border: 1px dashed #d1d5db !important; }

/* ── Address + Map block (v2.3) ─────────────────────────────────────────────── */
.tbm-address-block { background: #f8faff; border: 1px solid #dbeafe; border-radius: 12px; padding: 14px 16px; margin: 14px 0; }
.tbm-address-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tbm-address-text { color: #374151; font-size: 14px; flex: 1; min-width: 180px; }
.tbm-nav-btn { display: inline-flex; align-items: center; gap: 6px; background: #2563eb; color: #fff !important; text-decoration: none !important; border-radius: 20px; padding: 7px 16px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .2s; }
.tbm-nav-btn:hover { background: #1d4ed8; }
.tbm-map-wrap { border-radius: 10px; overflow: hidden; line-height: 0; }

/* ── Feedback button + modal ─────────────────────────────────────────────────── */
.tbm-feedback-bar { text-align: center; margin-top: 12px; }
.tbm-feedback-link {
    background: none; border: none; color: rgba(255,255,255,.7);
    font-size: 13px; cursor: pointer; text-decoration: underline;
    text-underline-offset: 3px; padding: 0; transition: color .2s;
}
.tbm-feedback-link:hover { color: #fff; }

#tbm-feedback-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; padding: 20px;
}
#tbm-feedback-modal {
    background: #fff; border-radius: 18px; padding: 32px 28px;
    max-width: 500px; width: 100%; position: relative; direction: rtl;
    box-shadow: 0 24px 60px rgba(0,0,0,.18);
}
#tbm-feedback-modal h3 { font-size: 20px; font-weight: 800; color: #1e3a5f; margin: 0 0 4px; }
.tbm-feedback-sub { color: #6b7280; font-size: 13px; margin: 0 0 20px; }
.tbm-feedback-close {
    position: absolute; top: 14px; left: 16px;
    background: none; border: none; font-size: 18px; color: #9ca3af; cursor: pointer;
}
.tbm-feedback-close:hover { color: #374151; }
.tbm-feedback-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.tbm-feedback-cats label {
    display: flex; align-items: center; gap: 5px;
    background: #f3f4f6; border-radius: 20px; padding: 6px 14px;
    font-size: 13px; cursor: pointer; transition: background .15s;
}
.tbm-feedback-cats label:has(input:checked) { background: #dbeafe; color: #1d4ed8; font-weight: 600; }
#tbm-fb-submit {
    margin-top: 18px; width: 100%; padding: 12px;
    background: #2563eb; color: #fff; border: none;
    border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer;
    transition: background .2s;
}
#tbm-fb-submit:hover { background: #1d4ed8; }
#tbm-fb-submit:disabled { background: #93c5fd; cursor: default; }
.tbm-msg-ok  { color: #059669; background: #d1fae5; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-top: 12px; }
.tbm-msg-err { color: #dc2626; background: #fee2e2; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-top: 12px; }

/* ── Browse buttons (below search bar) ──────────────────────────────────────── */
.tbm-browse-btns { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.tbm-browse-btn {
    background: rgba(255,255,255,.15); color: #fff;
    border: 1.5px solid rgba(255,255,255,.5);
    border-radius: 30px; padding: 9px 22px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .2s; backdrop-filter: blur(4px);
}
.tbm-browse-btn:hover { background: rgba(255,255,255,.28); border-color: #fff; transform: translateY(-1px); }

/* ── Browse panel wrapper ────────────────────────────────────────────────────── */
.tbm-browse-panel { }
.tbm-browse-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tbm-browse-title { font-size: 20px; font-weight: 800; color: #1e3a5f; }
.tbm-browse-close {
    background: none; border: 1.5px solid #d1d5db; border-radius: 8px;
    padding: 6px 14px; font-size: 13px; color: #6b7280; cursor: pointer; transition: all .15s;
}
.tbm-browse-close:hover { border-color: #ef4444; color: #ef4444; }

/* ── Filter bar ─────────────────────────────────────────────────────────────── */
.tbm-browse-filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.tbm-browse-filter {
    flex: 1; min-width: 180px; border: 1.5px solid #d1d5db;
    border-radius: 8px; padding: 9px 14px; font-size: 14px; outline: none; transition: border-color .15s;
}
.tbm-browse-filter:focus { border-color: #2563eb; }
.tbm-browse-country-filter {
    border: 1.5px solid #d1d5db; border-radius: 8px;
    padding: 9px 12px; font-size: 14px; outline: none; background: #fff; cursor: pointer;
}
.tbm-browse-count { font-size: 13px; color: #6b7280; white-space: nowrap; margin-right: auto; }

/* ── Cards grid ─────────────────────────────────────────────────────────────── */
.tbm-browse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }

.tbm-browse-card {
    background: #fff; border: 1.5px solid #e5e7eb; border-radius: 12px;
    padding: 16px; cursor: pointer; transition: all .18s;
    display: flex; flex-direction: column; gap: 9px;
}
.tbm-browse-card:hover { border-color: #2563eb; box-shadow: 0 4px 18px rgba(37,99,235,.15); transform: translateY(-2px); }

/* card top row: logo + info */
.tbm-bc-top  { display: flex; align-items: center; gap: 12px; }
.tbm-bc-logo { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: #f9fafb; border: 1px solid #e5e7eb; padding: 4px; flex-shrink: 0; }
.tbm-bc-logo-ph { display: flex; align-items: center; justify-content: center; font-size: 24px; background: #f3f4f6; border: 1px dashed #d1d5db; }
.tbm-bc-info { flex: 1; min-width: 0; }
.tbm-bc-name { font-size: 14px; font-weight: 700; color: #1e3a5f; line-height: 1.3; }
.tbm-bc-country { font-size: 12px; color: #6b7280; margin-top: 3px; }
.tbm-bc-site { font-size: 16px; text-decoration: none; flex-shrink: 0; align-self: flex-start; }

/* contact lines */
.tbm-bc-contacts { display: flex; flex-direction: column; gap: 3px; }
.tbm-bc-contact { font-size: 12px; color: #4b5563; }
.tbm-bc-contact a { color: #2563eb; text-decoration: none; }
.tbm-bc-contact a:hover { text-decoration: underline; }

/* mini logos rows */
.tbm-bc-mfrs, .tbm-bc-imps-row { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.tbm-bc-mfr-logo, .tbm-bc-imp-logo { width: 26px; height: 26px; object-fit: contain; border-radius: 5px; background: #fff; border: 1px solid #e5e7eb; padding: 2px; }
.tbm-bc-mfr-ph, .tbm-bc-imp-ph { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; background: #f3f4f6; border-radius: 5px; border: 1px dashed #d1d5db; }
.tbm-bc-more { font-size: 11px; color: #6b7280; background: #f3f4f6; border-radius: 10px; padding: 2px 7px; }
.tbm-bc-mfr-count { font-size: 12px; color: #9ca3af; }
.tbm-bc-no-imp { font-size: 12px; color: #9ca3af; }

/* category chips */
.tbm-bc-cats { display: flex; flex-wrap: wrap; gap: 4px; }
.tbm-bc-cat { font-size: 11px; background: #eff6ff; color: #1e40af; border-radius: 10px; padding: 2px 8px; }
.tbm-bc-cat-more { background: #f3f4f6; color: #6b7280; }

@media (max-width: 600px) {
    .tbm-browse-grid { grid-template-columns: 1fr; }
    .tbm-browse-btns { gap: 8px; }
    .tbm-browse-btn  { padding: 8px 16px; font-size: 13px; }
}

/* ── Part-detail filter bar (v2.5) ──────────────────────────────────────────── */
#tbm-filter-bar {
    max-width: 900px; margin: 14px auto 0; padding: 12px 16px;
    background: #f0f7ff; border: 1.5px solid #bfdbfe; border-radius: 12px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
#tbm-filter-countries { display: flex; flex-wrap: wrap; gap: 6px; }
#tbm-filter-rating    { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-right: auto; }
.tbm-filter-label { font-size: 12px; color: #6b7280; font-weight: 600; white-space: nowrap; }

.tbm-filter-chip {
    background: #fff; border: 1.5px solid #d1d5db; border-radius: 20px;
    padding: 5px 13px; font-size: 12.5px; color: #374151; cursor: pointer; transition: all .15s;
}
.tbm-filter-chip:hover  { border-color: #93c5fd; }
.tbm-filter-chip.active { background: #2563eb; border-color: #2563eb; color: #fff; font-weight: 600; }

.tbm-filter-star {
    background: #fff; border: 1.5px solid #d1d5db; border-radius: 20px;
    padding: 5px 11px; font-size: 12.5px; color: #374151; cursor: pointer; transition: all .15s;
}
.tbm-filter-star:hover  { border-color: #fcd34d; }
.tbm-filter-star.active { background: #fef9c3; border-color: #fcd34d; color: #92400e; font-weight: 600; }

/* ── Manufacturer star rating (v2.5) ────────────────────────────────────────── */
.tbm-mfr-header-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.tbm-rating-wrap {
    display: flex; align-items: center; gap: 6px;
    cursor: default;
}
.tbm-stars-row { display: flex; gap: 1px; }
.tbm-star-pick {
    font-size: 18px; color: #d1d5db; cursor: pointer;
    transition: color .1s; line-height: 1; user-select: none;
}
.tbm-star-pick.filled { color: #f59e0b; }
.tbm-star-pick.hovered { color: #fbbf24; }
.tbm-rating-avg  { font-size: 13px; font-weight: 700; color: #1f2937; }
.tbm-rating-count { font-size: 12px; color: #9ca3af; }
.tbm-rating-none  { font-size: 12px; color: #9ca3af; }
.tbm-rating-msg   { font-size: 12px; color: #059669; }
