/* =====================================================================
   Prime Car — Showroom tabs & filters (2026-10-22, rev 2 — owner's choice):
   · rows of LINKS (page sections) → underlined text tabs on a hairline;
     the selected tab is bold with a red bar under it. One row; scrolls
     sideways with a fade when it does not fit.
   · rows of BUTTONS (status filters) → ONE dropdown with the counts inside
     (built by showroom.js strips(); choosing an option presses the button).
   ===================================================================== */

/* ---------- underlined tabs ---------- */
[data-theme="showroom"] .sr-tabs {
    display: flex !important; flex-wrap: nowrap !important; align-items: flex-end; gap: 26px !important;
    width: 100%; max-width: 100%; box-sizing: border-box; margin: 0 0 20px !important; padding: 0 2px !important;
    background: none !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important;
    border-bottom: 1px solid var(--pc-line-strong) !important;
    overflow-x: auto !important; overflow-y: hidden !important; scrollbar-width: none;
    -webkit-mask: none; mask: none;
}
[data-theme="showroom"] .sr-tabs::-webkit-scrollbar { display: none; }
[data-theme="showroom"] .lv .sr-tabs { width: auto; margin: 0 22px 16px !important; }
[data-theme="showroom"] .sr-tabs > * {
    position: relative; flex: none; display: inline-flex !important; align-items: center; gap: 7px;
    min-height: 0 !important; height: auto !important; padding: 10px 0 12px !important; margin: 0 !important;
    border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
    color: var(--pc-muted) !important; font: inherit; font-size: 14px !important; font-weight: 500 !important; line-height: 1.3;
    white-space: nowrap; text-decoration: none; cursor: pointer; transition: color .15s;
}
[data-theme="showroom"] .sr-tabs > * .icon { display: none !important; }
[data-theme="showroom"] .sr-tabs > *:hover { color: var(--pc-ink) !important; }
[data-theme="showroom"] .sr-tabs > :is([aria-pressed="true"], [aria-current="page"], .is-active, .is-on),
[data-mode="dark"][data-theme="showroom"] .sr-tabs > :is([aria-pressed="true"], [aria-current="page"], .is-active, .is-on, .chip[aria-pressed="true"]) { color: var(--pc-ink) !important; font-weight: 700 !important; background: none !important; }
/* older pill rules (shipping sub-nav) never apply to tabs */
[data-theme="showroom"] .sr-tabs.ship-tabs > .chip, [data-theme="showroom"] .sr-tabs.lv-views > .chip { padding: 10px 0 12px !important; font-size: 14px !important; }
[data-theme="showroom"] .sr-tabs > :is([aria-pressed="true"], [aria-current="page"], .is-active, .is-on)::after {
    content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--pc-primary);
}
[data-theme="showroom"] .sr-tabs > * > .num {
    display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px;
    background: var(--pc-surface-2); color: var(--pc-body); font-size: 11px; font-weight: 700;
}
[data-theme="showroom"] .sr-tabs > :is([aria-pressed="true"], [aria-current="page"], .is-active, .is-on) > .num { background: var(--pc-primary-050); color: var(--pc-primary-600); }

/* ---------- status filters → one dropdown ---------- */
[data-theme="showroom"] .sr-filter-src { display: none !important; }
[data-theme="showroom"] .sr-filter { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
[data-theme="showroom"] .lv .sr-filter { margin: 0 22px 14px; }
[data-theme="showroom"] .sr-filter__lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--pc-body); white-space: nowrap; }
[data-theme="showroom"] .sr-filter__lbl .icon { width: 16px; height: 16px; color: var(--pc-muted); }
[data-theme="showroom"] .sr-filter select {
    min-height: 40px; min-width: 200px; max-width: 100%; padding-block: 0; padding-inline: 14px 36px;
    border-radius: 12px; border: 1px solid var(--pc-line-strong); background-color: var(--pc-surface); color: var(--pc-ink);
    font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A867F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: left 12px center;
}
:root[dir="ltr"][data-theme="showroom"] .sr-filter select { background-position: right 12px center; }
[data-theme="showroom"] .sr-filter select:focus { outline: 0; border-color: var(--pc-primary-100); box-shadow: 0 0 0 3px var(--pc-primary-050); }
[data-theme="showroom"] .sr-filter.is-set select { border-color: var(--pc-ink); }

/* more to scroll: a soft fade on the physical side that hides tabs (showroom.js) */
[data-theme="showroom"] .sr-tabs.sr-strip--left { -webkit-mask: linear-gradient(to right, transparent, #000 40px) !important; mask: linear-gradient(to right, transparent, #000 40px) !important; }
[data-theme="showroom"] .sr-tabs.sr-strip--right { -webkit-mask: linear-gradient(to left, transparent, #000 40px) !important; mask: linear-gradient(to left, transparent, #000 40px) !important; }
[data-theme="showroom"] .sr-tabs.sr-strip--left.sr-strip--right { -webkit-mask: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent) !important; mask: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent) !important; }

@media (max-width: 760px) {
    [data-theme="showroom"] .sr-tabs { gap: 20px !important; margin-bottom: 16px !important; }
    [data-theme="showroom"] .lv .sr-tabs { margin: 0 14px 14px !important; }
    [data-theme="showroom"] .sr-tabs > * { font-size: 13.5px !important; padding: 9px 0 11px !important; }
    [data-theme="showroom"] .lv .sr-filter { margin: 0 14px 12px; }
    [data-theme="showroom"] .sr-filter select { flex: 1; min-width: 0; }
}
/* the dropdown inside a list toolbar: an ordinary control of that row */
[data-theme="showroom"] .sr-filter--inline { margin: 0 !important; }
[data-theme="showroom"] .sr-filter--inline select { min-width: 170px; min-height: 38px; border-radius: 999px; background-color: var(--pc-surface-2); border-color: transparent; }
@media (max-width: 760px) {
    [data-theme="showroom"] .sr-filter--inline { grid-column: 1 / -1; }
    [data-theme="showroom"] .sr-filter--inline select { width: 100%; }
}
