/* Moved from inline <style> in includes/searchresults.styles.cfm. */
    /* Cards styled to match the H&R / brand tab (those styles are inline in
       products.by.brand.cfm, so the relevant rules are replicated here, scoped). */
    .vehicle-search-results {
            padding-bottom: 5vh;
    }
    /* Vehicle-fitment summary line, rendered on cards only where the calling
       page built cardFitmentSummary (the vehicle-less category browser). Quiet
       by design: it is context for a part, not a headline. */
    .prod-item .card-fitment {
        /* the same 20px side margin every other line of the card has - without it
           this one ran edge to edge, most visibly in the narrower cards beside the
           category page's filter rail (Jonni, 2026-11-03) */
        margin: 2px 20px 6px;
        font-size: 13px;
        line-height: 1.35;
        opacity: .72;
    }

    /* Vehicle-make facet. A big category fits 60+ makes, which would push the
       brand facet and everything under it off the screen, so the list scrolls
       inside the rail. Ordered A-Z server-side: the customer is looking for one
       marque they already have in mind, so findability beats prominence. */
    .facet-group.facet-makes .facet-scroll,
    .facet-group.facet-specs .facet-scroll {
        max-height: 260px;
        overflow-y: auto;
        padding-right: 4px;
    }
    /* specification facets (2026-11-03): the first eight values show, the rest sit
       behind "Show all N" (an accordion); opened, a long list scrolls inside the
       rail. Brake Disc has 200 outer diameters - flat, the rail was the page. */
    .facet-group.facet-specs .facet-spec-list.is-collapsed .facet-more { display: none; }
    .facet-group.facet-specs .facet-spec-list.is-open { max-height: 260px; overflow-y: auto; padding-right: 4px; }
    .facet-group.facet-specs .facet-spec-list.is-open::-webkit-scrollbar { width: 8px; }
    .facet-group.facet-specs .facet-spec-list.is-open::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
    .facet-group.facet-specs .facet-showmore {
        display: block; margin: 4px 0 0; padding: 2px 0; font: inherit; font-size: 13px; font-weight: 600;
        color: #0b3d91; background: none; border: 0; cursor: pointer; text-decoration: underline;
    }
    .facet-group.facet-specs .facet-unit { font-weight: normal; color: #888; font-size: 12px; }
    /* keyword filter (2026-11-03): free text against the spec text, top of the rail */
    .facet-group.facet-keyword .facet-kw {
        width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; padding: 8px 10px;
        border: 1px solid #ccc; border-radius: 6px; background: #fff;
    }
    .facet-group.facet-keyword .facet-kw:focus { outline: none; border-color: #35003a; }
    .facet-group.facet-keyword .facet-kw-note { margin: 6px 0 0; font-size: 12px; color: #666; }
    .facet-group.facet-makes .facet-scroll::-webkit-scrollbar,
    .facet-group.facet-specs .facet-scroll::-webkit-scrollbar { width: 8px; }
    .facet-group.facet-makes .facet-scroll::-webkit-scrollbar-thumb,
    .facet-group.facet-specs .facet-scroll::-webkit-scrollbar-thumb {
        background: #ccc; border-radius: 4px;
    }

    .search-summary { margin: 1.5vh 0; }
    /* search.cfm's page heading is an <h1> (the page previously had no <h1> at
       all, which is how Google ends up inventing a title from stray text).
       The typography is pinned here so promoting the TAG changes nothing on
       screen: the legacy base sheet sizes h2 at 300% everywhere but h1 at only
       150%, jumping to 340% and bold above 1024px -- so an unstyled h1 would
       shrink by half on mobile and grow on desktop. */
    .vehicle-search-results h1 { font-weight: 400; }
    .vehicle-search-results .search-summary h1 {
        display: inline-block; width: auto; font-size: 300%; margin: 0 auto;
    }
    /* the two empty/no-results states, which were <h3> */
    .vehicle-search-results .center h1 {
        display: block; width: auto; font-size: 1.17em; margin: 0 0 1em;
    }
    .search-summary .concept-pill {
        display:inline-block; background:#35003a; color:#fff; border-radius:14px;
        padding:2px 12px; margin:0 6px 6px 0; font-size:14px;
    }
    /* brand group heading: logo above a smaller brand-name label */
    .vehicle-search-results .search-brand-heading {
        margin: 2.8vh 0 1vh; display:flex; flex-direction:column; align-items:center; gap:5px;
    }
    .vehicle-search-results .search-brand-heading .brand-logo-img {
        max-height:42px; max-width:170px; width:auto; height:auto; display:block;
    }
    .vehicle-search-results .search-brand-heading .brand-name {
        font-family:"gill-sans-nova",sans-serif; font-size:120%; font-weight:600; color:#35003a;
    }

    /* grouped fluid card (Motul oils): image + spec + pack-size chips */
    .vehicle-search-results .prod-item.fluid-item { text-align:center; }
    /* keep the spec line short - some fluids have many approvals/specs */
    .vehicle-search-results .fluid-item .spec-summary {
        display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical;
        overflow:hidden; max-height:4.4em;
    }
    .vehicle-search-results .fluid-item .pack-options {
        display:flex; flex-wrap:wrap; gap:8px; justify-content:center; padding:0 16px;
    }
    .vehicle-search-results .fluid-item .pack-label { width:100%; font-weight:700; margin-bottom:2px; }
    .vehicle-search-results .fluid-item .pack-chip {
        display:inline-flex; flex-direction:column; align-items:center; gap:2px;
        padding:8px 14px; border:1px solid #35003a; border-radius:6px;
        text-decoration:none; color:#35003a; line-height:1.2;
    }
    .vehicle-search-results .fluid-item .pack-chip.instock { border-color:#78af2d; }
    .vehicle-search-results .fluid-item .pack-chip:hover { background:#f0e9f2; }
    .vehicle-search-results .fluid-item .pack-chip .chip-size { font-weight:700; }
    .vehicle-search-results .fluid-item .pack-chip .chip-price { font-size:.85rem; color:#555; }
    /* compact price (trade exc VAT / retail inc VAT) rendered inside the chip */
    .vehicle-search-results .fluid-item .pack-chip .price-compact,
    .vehicle-search-results .fluid-item .pack-chip .price-compact-trade { font-size:.8rem; }
    .vehicle-search-results .fluid-item .pack-chip .price-compact-vat { font-weight:400; color:#777; margin-left:3px; }
    .vehicle-search-results .search-section-heading {
        margin: 3.5vh 0 1vh; color:#35003a; font-size:175%;
        border-bottom:2px solid #35003a; padding-bottom:6px;
    }

    /* grid item: top/bottom padding only, so the image can fill the width */
    .vehicle-search-results .prod-item {
        flex: 0 0 24%; text-align:center; align-self:stretch;
        background:#fff;
        border:2px solid #ececec; padding:2vh 0;
        display:flex; flex-direction:column; justify-content:space-between;
    }
    .vehicle-search-results .prod-item.instock { border-color:#78af2d; }
    .vehicle-search-results .prod-item > a {
        display:flex; flex-direction:column; flex-grow:1; width:100%;
        /* products.css .prod-item a forces flex-wrap:wrap; in a column that lets
           tall content (image+specs+footer) spill past the card border, so the
           "More details" button pokes out the bottom. Force a clean vertical stack. */
        flex-wrap:nowrap; align-content:stretch;
        color:#35003a; text-decoration:none;
    }
    .vehicle-search-results .prod-item-container { display:flex; flex-grow:1; flex-direction:column; }

    .vehicle-search-results .prod-item-container h2 {
        font-family:"gill-sans-nova",sans-serif; margin:0 20px; font-size:170%; line-height:1.05;
    }
    /* the title spec ("for 340 mm discs"): its own line under the generic
       title, in the part-number purple, so three otherwise identical pad sets
       differ at a glance */
    .vehicle-search-results .prod-item-container h2 .title-spec {
        display:block; font-size:72%; font-weight:600; color:#6e1287; margin-top:4px; line-height:1.2;
    }
    .vehicle-search-results .prod-item-container h3 {   /* fitment, plain, near top */
        margin:10px 20px 0; font-size:135%; font-weight:600; line-height:1; color:#35003a;
    }
    .vehicle-search-results .prod-item-container h4 {   /* part number */
        font-size:100%; font-weight:400; margin:8px 20px 0; color:#6e1287;
    }

    /* full-bleed image, no side margin/padding. Cap the height so tall/portrait
       images (e.g. Motul bottles) don't stretch the card down the page; object-fit
       contain letterboxes them centred without distortion. Square/landscape images
       are unaffected - their natural height sits under the cap. */
    .vehicle-search-results .product-image-container { width:100%; text-align:center; margin:12px 0 0; }
    .vehicle-search-results .product-image-container img { width:100%; height:auto; max-height:220px; object-fit:contain; display:block; margin:0; }

    /* key points as a bullet list under the image: the block shrinks to its
       content and centres, so a short list isn't stranded on the left while the
       rest of the card is centred (bullets stay left-aligned within the block) */
    .vehicle-search-results .spec-list {
        text-align:left; font-size:90%; line-height:1.4; margin:12px auto 0;
        width:fit-content; max-width:calc(100% - 40px); box-sizing:border-box; padding:0 0 0 1.3em;
    }
    .vehicle-search-results .spec-list li { margin:2px 0; }
    /* the spec the customer actually searched for. Tinted rather than the
       browser default yellow, which fights the purple card headings; the
       weight change carries it for anyone who can't see the tint. */
    .vehicle-search-results .spec-list mark {
        background:#f3e3f7; color:#35003a; font-weight:700;
        padding:0 2px; border-radius:2px;
    }
    .vehicle-search-results .spec-summary { font-size:90%; color:#555; margin:12px 20px 0; text-align:center; }

    /* footer pinned to the bottom so price / availability / button align across cards */
    .vehicle-search-results .card-footer { margin-top:auto; padding-top:12px; }
    .vehicle-search-results .price-container { margin:0 20px; font-size:150%; line-height:1.2; }
    .vehicle-search-results .price-container .price-compact-vat { font-size:60%; color:#777; }
    .vehicle-search-results .price-container .price-unavailable { font-size:62%; color:#777; margin:0; }
    .vehicle-search-results .stock-line { margin:.5em 20px 0; }
    .vehicle-search-results .more-details { width:max-content; margin:14px auto 0; }
    .vehicle-search-results .more-details p { margin:0; }

    /* Probite cards (replicated from the Probite tab): a disc application is one
       card carrying its finish-style tiles, so it needs more room than the 24%
       column an ordinary product gets - but not a whole row.

       It used to be flex:0 0 100% with the inner card capped at 920px and
       centred, which on a 1632px grid meant one product per row with dead space
       down both sides. On a Probite-filtered category page that is 48 rows of
       it. Two up on desktop, one on smaller screens where the finish tiles need
       the width. */
    .vehicle-search-results .prod-item.probite-item { flex:0 0 100%; border:0; padding:0; text-align:left; }
    @media only screen and (min-width: 1025px) {
        .vehicle-search-results .prod-item.probite-item { flex:0 0 calc(50% - 10px); }
    }
    .vehicle-search-results .pb-disc {
        background:#fff; border:1px solid #ddd; border-radius:8px; box-shadow:0 2px 5px rgba(0,0,0,0.05);
        margin:12px 0 0; padding:16px; max-width:920px; margin-left:auto; margin-right:auto;
        /* fill the column and match its neighbour's height, so a row of two
           reads as a pair of cards rather than two stray panels */
        box-sizing:border-box; height:calc(100% - 12px);
        display:flex; flex-direction:column;
    }
    /* the price block sits at the foot of the card, aligned across a row */
    .vehicle-search-results .pb-disc .pb-disc-price { margin-top:auto; padding-top:16px; }
    .vehicle-search-results .pb-disc-head { text-align:center; font-weight:bold; line-height:1.3; font-size:1.2rem; }
    .vehicle-search-results .pb-disc-head .pb-part { display:block; font-weight:normal; font-size:0.85rem; color:#555; margin-top:4px; }
    .vehicle-search-results .pb-disc-sub { text-align:center; font-size:0.95rem; color:#555; margin:6px 0 14px; }
    /* 100px, not 120: six finishes have to fit across a half-width card. The
       auto-fit grid still wraps to a second row rather than squashing them when
       the column is narrower than that. */
    .vehicle-search-results .pb-finish-strip { display:grid; grid-template-columns:repeat(auto-fit, minmax(100px, 1fr)); gap:10px; }
    .vehicle-search-results .pb-finish { text-decoration:none; color:#111; border:1px solid #eee; border-radius:6px; padding:8px; transition:border-color .12s, box-shadow .12s, transform .08s; }
    .vehicle-search-results .pb-finish:hover { border-color:#00f783; box-shadow:0 2px 8px rgba(0,0,0,0.12); transform:translateY(-2px); }
    .vehicle-search-results .pb-finish img { width:100%; height:auto; display:block; }
    .vehicle-search-results .pb-finish-label { display:block; text-align:center; font-weight:700; font-size:0.9rem; margin-top:6px; }
    .vehicle-search-results .pb-disc .product-image-container { max-width:320px; margin:12px auto 0; }
    .vehicle-search-results .pb-disc-price { text-align:center; margin-top:16px; }
    .vehicle-search-results .pb-disc-price .pb-from { display:block; font-size:0.8rem; text-transform:uppercase; letter-spacing:.04em; color:#555; }
    .vehicle-search-results .pb-disc-price .price-display { font-weight:bold; font-size:1.2rem; }

    /* ---- whole-site (search.cfm) additions ---- */
    .search-summary__note { margin:4px 0 0; font-size:15px; color:#555; text-align:center; }
    /* inline engine picker (includes/search.intent.engines.cfm) */
    .si-engines { max-width:760px; margin:10px auto 18px; text-align:left; }
    .si-engines__title { font-size:15px; color:#444; margin:0 0 10px; text-align:center; }
    .si-engines__group + .si-engines__group { margin-top:14px; }
    .si-engines__model { font-size:15px; font-weight:700; color:#35003a; margin:0 0 6px; }
    .si-engines__list { list-style:none; margin:0; padding:0; border:1px solid #e3dbe6; border-radius:8px; background:#fff; overflow:hidden; }
    .si-engines__list li + li { border-top:1px solid #eee; }
    .si-engines__list.is-collapsed li:nth-child(n+9) { display:none; }
    /* make-only: the models (names wrap; 24 shown, then "Show all") */
    .si-engines__list--models .si-engines__type { white-space:normal; min-width:0; flex:1 1 auto; }
    .si-engines__list--models .si-engines__spec { flex:0 0 auto; order:0; }
    .si-engines__list--models.is-collapsed li:nth-child(n+9) { display:block; }
    .si-engines__list--models.is-collapsed li:nth-child(n+25) { display:none; }
    .si-engines__item { display:flex; align-items:center; gap:12px; padding:10px 14px; color:#222; text-decoration:none; }
    .si-engines__item:hover { background:#f7f3f8; }
    .si-engines__type { font-weight:700; flex:0 0 auto; min-width:90px; }
    .si-engines__spec { flex:1 1 auto; font-size:14px; color:#666; }
    .si-engines__go { flex:0 0 auto; font-size:14px; font-weight:600; color:#35003a; white-space:nowrap; }
    .si-engines__more { display:block; margin:8px auto 0; font-size:14px; }
    @media (max-width:640px) {
        .si-engines__item { flex-wrap:wrap; gap:2px 10px; }
        .si-engines__type { min-width:0; }
        .si-engines__spec { flex:1 1 100%; order:3; font-size:13px; }
        .si-engines__go { margin-left:auto; }
    }
    /* "Select your vehicle" reads as a link but must be a button to open the
       shared lookup panel */
    .svb-linkbtn {
        background:none; border:0; padding:0; font:inherit; cursor:pointer;
        color:#6e1287; font-weight:700; text-decoration:underline;
    }

    /* scope toggle: named vehicle / Whole site.
       Centred to match the rest of the page (brand headings, cards, summary). */
    .site-search-scope {
        display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
        gap:10px; margin:1.5vh 0 0; text-align:center;
    }
    .site-search-scope .scope-options { display:inline-flex; border:1px solid #35003a; border-radius:24px; overflow:hidden; }
    .site-search-scope .scope-options a {
        padding:8px 18px; text-decoration:none; color:#35003a; font-weight:600; font-size:15px; background:#fff;
        /* the vehicle name is on the button now, and "FORD FIESTA VII 1.0 EcoBoost"
           would otherwise stretch the pill off the row */
        max-width:280px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
    }
    .site-search-scope .scope-options a.active { background:#35003a; color:#fff; }
    .site-search-scope .scope-hint { font-size:14px; color:#666; }
    /* "select a vehicle for exact fitment" prompt */
    .site-search-vehicle-cta {
        background:#f4eef6; border:1px solid #e0d0e8; border-radius:8px;
        padding:14px 18px; margin:2vh 0; color:#35003a;
    }
    .site-search-vehicle-cta { text-align:center; }
    .site-search-vehicle-cta a { color:#6e1287; font-weight:700; }
    /* margin auto, not 0 - the form used to sit hard left against centred content */
    .site-search-form { display:flex; gap:10px; margin:2vh auto 1vh; max-width:640px; }
    .site-search-form input[type=text] {
        flex:1; padding:12px 16px; font-size:16px; border:1px solid #ccc; border-radius:6px;
    }
    .site-search-form button {
        padding:12px 22px; background:#35003a; color:#fff; border:0; border-radius:6px;
        font-size:16px; font-weight:600; cursor:pointer;
    }
    /* Scope select INSIDE the on-page search form, between the input and the
       button (2026-11-03): "Only my <vehicle>" / "Ignore selected vehicle".
       Must come AFTER the input/button rules above: the phone layout re-flexes
       the input at equal specificity. The banner + pill toggle it replaces are
       gone from search.cfm; category.cfm still uses .site-search-scope.
       Selector carries the element: forms.css `select:not(.inmenu)` (0,1,1)
       otherwise wins on width / padding / border. */
    .site-search-form select.site-search-form__scope {
        flex:0 1 240px; width:auto; min-width:0; padding:0 36px 0 16px; font-size:15px; color:#35003a;
        border:1px solid #ccc; border-radius:6px; background:#f7f3f8 no-repeat right 12px center;
        background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2335003a' d='M1 1l5 5 5-5'/></svg>");
        -webkit-appearance:none; appearance:none; cursor:pointer;
        white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
    }
    .site-search-form select.site-search-form__scope:focus { outline:2px solid #35003a; outline-offset:1px; border-color:#ccc; }
    @media (max-width:640px) {
        /* with a scope select: input on its own line, then scope + button share
           the next. Without one the input and button stay on one row. */
        .site-search-form.has-scope { flex-wrap:wrap; }
        .site-search-form.has-scope input[type=text] { flex:1 1 100%; min-width:100%; }
        .site-search-form select.site-search-form__scope { flex:1 1 0; padding-top:12px; padding-bottom:12px; }
        .site-search-form button { flex:0 0 auto; }
    }
    /* universal section sits under the vehicle's fitted results */
    .vehicle-search-results .universal-note { font-size:14px; color:#666; margin:0 0 1vh; }
    /* off-vehicle part-number matches: amber-fenced so they can't be mistaken
       for parts confirmed to fit the selected vehicle */
    .vehicle-search-results .search-offvehicle {
        border:1px solid #e8c98a; border-radius:8px; background:#fffaf0;
        padding:1vh 18px 2vh; margin:3vh 0 0;
    }
    .vehicle-search-results .offvehicle-note {
        font-size:15px; color:#5a4300; margin:0 auto 1vh; max-width:760px; text-align:center;
    }
    .vehicle-search-results .offvehicle-note a { color:#6e1287; font-weight:700; }

    /* ============================================================
       BROWSE BY CATEGORY (in-vehicle) - tiles, facet rail, toolbar
       ============================================================ */
    /* top-level category tiles */
    .category-browse .browse-intro { text-align:center; margin:1.5vh 0; }
    .category-browse .browse-intro h3 { color:#35003a; margin:0 0 .4em; }
    .category-tiles {
        display:grid; grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));
        gap:14px; margin:2vh 0;
    }
    .cat-tile {
        display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
        background:#fff; border:2px solid #ececec; border-radius:10px; padding:20px 12px;
        cursor:pointer; text-align:center; color:#35003a; text-decoration:none;
        transition:border-color .12s, box-shadow .12s, transform .08s;
    }
    .cat-tile:hover { border-color:#6e1287; box-shadow:0 3px 10px rgba(0,0,0,.1); transform:translateY(-2px); }
    .cat-tile .cat-name { font-family:"gill-sans-nova",sans-serif; font-size:118%; font-weight:600; }
    .cat-tile .cat-count { font-size:14px; color:#777; }
    .cat-tile .cat-icon { width:40px; height:40px; opacity:.85; }

    /* results layout: facet rail + product grid */
    .category-browse .browse-layout { display:flex; gap:22px; align-items:flex-start; margin-top: 48px; }
    .category-browse .browse-facets { flex:0 0 220px; max-width:220px; text-align:left; }
    .category-browse .browse-results { flex:1 1 auto; min-width:0; position:relative; }

    /* A filter change in flight (catalogue.browse.js puts is-loading on the panel
       while ajax/browse.catalogue.cfm runs; a spec filter on a big disc page is
       3-4 s). The grid dims, a stripe moves along the top of the results and an
       "Updating results" pill sits over them - all pointer-events:none, so the
       facets stay usable and ticking another box just replaces the request.
       The control that was ticked shows a spinner where its count was (is-busy). */
    .catalogue-browse.is-loading .browse-results > * { opacity:.5; transition:opacity .25s; }
    .catalogue-browse.is-loading .browse-results::before {
        content:""; position:absolute; top:-8px; left:0; right:0; height:3px; z-index:3; pointer-events:none;
        background:linear-gradient(90deg, transparent, #6e1287, transparent); background-size:50% 100%;
        animation:browse-shimmer 1s linear infinite;
    }
    .catalogue-browse.is-loading .browse-results::after {
        content:"Updating results\2026"; position:absolute; top:14px; left:50%; transform:translateX(-50%); z-index:3; pointer-events:none;
        background:#fff; color:#333; font-size:14px; font-weight:600; padding:7px 16px; border-radius:999px;
        border:1px solid #e3e3e3; box-shadow:0 4px 14px rgba(0,0,0,.12); white-space:nowrap;
    }
    @keyframes browse-shimmer { from { background-position:200% 0; } to { background-position:-200% 0; } }
    .browse-facets .facet-opt.is-busy .facet-count { visibility:hidden; }
    .browse-facets .facet-opt.is-busy { position:relative; }
    .browse-facets .facet-opt.is-busy::after, .browse-facets .facet-keyword.is-busy h4::after {
        content:""; width:13px; height:13px; box-sizing:border-box; border:2px solid #ddd; border-top-color:#6e1287; border-radius:50%;
        animation:browse-spin .7s linear infinite; flex:0 0 auto; margin-left:auto;
    }
    .browse-facets .facet-keyword.is-busy h4 { display:flex; align-items:center; gap:8px; }
    @keyframes browse-spin { to { transform:rotate(360deg); } }
    @media (prefers-reduced-motion: reduce) {
        .catalogue-browse.is-loading .browse-results::before, .browse-facets .is-busy::after, .browse-facets .facet-keyword.is-busy h4::after { animation:none; }
    }
    @media (max-width:860px) {
        .category-browse .browse-layout { flex-direction:column; }
        .category-browse .browse-facets { flex-basis:auto; max-width:none; width:100%; }
    }

    /* toolbar: back link, result count, sort */
    /* header row over the RESULTS column: back link left | heading+count centred | sort right.
       On desktop it's pushed right by the facet-rail width (220px) + layout gap (22px)
       so it aligns over the products and the facet rail lines up with the first row of
       results. Reset to 0 on mobile (rail becomes a drawer) - see the 860 media query. */
    .category-browse .browse-toolbar { margin:0 0 2vh; }
    @media (min-width: 861px) {
        .category-browse .browse-toolbar { margin-left: 242px; }
    }
    .category-browse .browse-titlebar {
        display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px;
    }
    .category-browse .browse-back {
        justify-self:start; color:#6e1287; font-weight:600; text-decoration:none; cursor:pointer;
    }
    .category-browse .browse-back:hover { text-decoration:underline; }
    .category-browse .browse-titlewrap { text-align:center; }
    .category-browse .browse-title { font-family:"gill-sans-nova",sans-serif; font-size:240%; color:#35003a; margin:0; line-height:1.05; }
    .category-browse .browse-count { color:#777; font-size:15px; display:block; margin-top:2px; }
    .category-browse .browse-controls { justify-self:end; display:flex; align-items:center; gap:10px; }
    .category-browse .browse-sort { display:flex; align-items:center; gap:6px; }
    .category-browse .browse-sort label { font-size:14px; color:#555; }
    /* width:auto overrides forms.css `select:not(.inmenu){width:50%}` which otherwise
       stretches the sort box across half the toolbar */
    .category-browse .browse-sort select { width:auto; max-width:100%; font-size:15px; padding:6px 10px; border:1px solid #ccc; border-radius:6px; }

    /* facet groups */
    .browse-facets .facet-group { margin:0 0 18px; }
    .browse-facets .facet-group h4 {
        font-size:15px; color:#35003a; margin:0 0 8px; padding-bottom:5px; border-bottom:1px solid #e3d8e8;
    }
    .browse-facets .facet-opt {
        display:flex; align-items:center; gap:7px; font-size:14px; color:#333;
        padding:3px 0; cursor:pointer;
    }
    .browse-facets .facet-opt input { margin:0; }
    .browse-facets .facet-opt .facet-count { color:#999; margin-left:auto; font-size:13px; }
    .browse-facets .facet-opt.is-active { color:#6e1287; font-weight:600; }
    .browse-facets .facet-clear { font-size:13px; color:#6e1287; cursor:pointer; text-decoration:none; }
    /* two-level sub-category: concept (parent) with finer generic-article types (children) */
    .browse-facets .facet-opt.facet-parent { font-weight:600; }
    .browse-facets .facet-children { margin:0 0 4px 18px; border-left:2px solid #ece3f0; padding-left:8px; }
    .browse-facets .facet-opt.facet-child { font-weight:400; font-size:13px; color:#555; }
    .browse-facets .facet-opt.facet-child.is-active { color:#6e1287; font-weight:600; }

    /* per-card brand logo (ungrouped category grid) */
    .vehicle-search-results .card-brand-logo { height:30px; margin:0 20px 6px; display:flex; align-items:center; justify-content:center; }
    .vehicle-search-results .card-brand-logo img { max-height:30px; max-width:120px; width:auto; height:auto; }

    /* load-more */
    .category-browse .browse-loadmore { text-align:center; margin:3vh 0 1vh; }
    .category-browse .browse-loadmore button {
        font-size:16px; padding:12px 28px; border:2px solid #35003a; border-radius:6px;
        background:#fff; color:#35003a; cursor:pointer; font-weight:600;
    }
    .category-browse .browse-loadmore button:hover { background:#35003a; color:#fff; }
    .category-browse .browse-loadmore.done { color:#999; font-size:14px; }
    /* "Back to all categories" button under all the results (left-aligned) */
    .category-browse .browse-back-bottom-wrap { text-align:left; margin:2vh 0 1vh; }
    .category-browse .browse-back-bottom {
        font-size:16px; font-weight:600; color:#35003a;
        background:#fff; border:2px solid #35003a; border-radius:6px;
        padding:11px 26px; cursor:pointer;
    }
    .category-browse .browse-back-bottom:hover { background:#35003a; color:#fff; }
    /* auto-load on scroll: hide the manual button (kept as a no-JS fallback) and
       show a "loading more" hint only while a batch is fetching */
    .category-browse .browse-loadmore .loading-indicator { display:none; color:#777; font-size:15px; }
    .category-browse .browse-loadmore.loading .loading-indicator { display:inline-block; }
    #category-browse-panel.js-autoload .browse-loadmore-btn { display:none; }

    /* ---- colour + spacing fixes ----
       jQuery UI paints .ui-widget-content (the tab panels) text blue (#163b79);
       reset our panels to the normal site text colour (headings keep their own). */
    #category-browse-panel, #search-results-panel { color:#333; }
    #category-browse-panel a, #search-results-panel a { color:#35003a; }
    .category-browse { padding: 1.5vh 1.4em 4vh; }
    .category-browse .browse-intro h3 { font-size:185%; }
    .browse-facets .facet-opt input[type=checkbox] { width:16px; height:16px; flex:0 0 auto; }

    /* filter header + toggle: desktop hides them (facet rail is always shown) */
    .category-browse .browse-filter-toggle,
    .category-browse .facet-head,
    .category-browse .browse-filter-close { display:none; }

    /* ---- responsive product grid: 4-up desktop -> 3 -> 2 (tablet/large mobile) -> 1 (phone) ---- */
    @media (max-width: 1100px) { .vehicle-search-results .prod-item { flex: 0 0 31%; } }
    @media (max-width: 900px)  { .vehicle-search-results .prod-item { flex: 0 0 48%; } }
    @media (max-width: 480px)  { .vehicle-search-results .prod-item { flex: 0 0 100%; } }

    /* ---- mobile/tablet: collapse the filters behind a "Filter" button (drawer) ---- */
    @media (max-width: 860px) {
        .category-browse { padding: 1.5vh 4vw 5vh; }
        .category-browse .browse-layout { flex-direction: column; }
        /* stack the title row: count on top, then Filter button and Sort box
           side by side, each half the width and the same height */
        .category-browse .browse-titlebar { grid-template-columns: 1fr; }
        .category-browse .browse-controls { display: grid; grid-template-columns: 1fr 1fr; justify-self: stretch; margin: 10px 0 1.5vh; gap: 10px; }
        .category-browse .browse-controls .browse-filter-toggle,
        .category-browse .browse-controls .browse-sort { min-width: 0; width: 100%; margin: 0; height: 44px; }
        .category-browse .browse-sort label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
        .category-browse .browse-sort select { width: 100%; height: 100%; max-width: none; font-size: 15px; padding: 0 8px; border: 2px solid #35003a; border-radius: 6px; color: #35003a; font-weight: 600; background: #fff; }
        .category-browse .browse-filter-toggle {
            display: inline-flex; align-items: center; justify-content: center; gap: 8px;
            font-size: 16px; font-weight: 600; color: #35003a;
            background: #fff; border: 2px solid #35003a; border-radius: 6px;
            padding: 0 16px; cursor: pointer;
        }
        .category-browse .browse-filter-toggle .filter-badge {
            background: #6e1287; color: #fff; border-radius: 12px; padding: 0 8px; font-size: 13px;
        }
        /* drawer: full-screen overlay, hidden until opened */
        .category-browse .browse-facets {
            display: none; position: fixed; inset: 0; z-index: 9999;
            max-width: none; width: auto; margin: 0; padding: 16px 20px;
            background: #fff; overflow-y: auto;
        }
        .category-browse .browse-layout.filters-open .browse-facets { display: block; }
        .category-browse .facet-head {
            display: flex; align-items: center; justify-content: space-between;
            gap: 12px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid #e3d8e8;
        }
        .category-browse .facet-head-title { font-size: 135%; color: #35003a; margin: 0; }
        /* The drawer is a column: the head ("Filter / Clear all / Done") plus the
           keyword box never scroll, and only .facet-scroll beneath them does. A
           sticky header inside the scrolling drawer let the page show through a
           strip at the very top on iOS and Chrome, so the chrome is a real
           non-scrolling block instead. */
        .category-browse .browse-layout.filters-open .browse-facets { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
        .category-browse .facet-sticky { flex: 0 0 auto; padding: 16px 20px 0; background: #fff; border-bottom: 1px solid #e3d8e8; }
        .category-browse .facet-sticky .facet-head { margin-bottom: 10px; border-bottom: 0; padding-bottom: 0; }
        .category-browse .facet-sticky .facet-keyword { margin-bottom: 12px; }
        .category-browse .facet-sticky .facet-keyword h4 { margin-top: 0; }
        .category-browse .facet-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 20px 16px; }
        /* Each group's heading ("Outer Diameter (mm)") pins to the top of the list
           while its values scroll past, so 200 diameters in you still know what
           you are looking at. The list's top padding moved onto the heading so
           nothing scrolls through a gap above it. */
        .category-browse .facet-scroll .facet-group h4 {
            position: sticky; top: 0; z-index: 1; background: #fff;
            margin: 0 0 4px; padding: 14px 0 6px;
        }
        .category-browse .browse-filter-close {
            display: inline-block; background: #35003a; color: #fff; border: 0; border-radius: 6px;
            padding: 8px 18px; font-size: 15px; font-weight: 600; cursor: pointer;
        }
        .browse-facets .facet-opt { padding: 9px 0; font-size: 16px; }   /* bigger tap targets */
        /* The drawer is the scroll container here, so an opened spec list must
           NOT also be a 260px scroll box: on a phone that showed six rows, no
           scrollbar, and "Show all 201" looked like it had removed two values. */
        .category-browse .facet-group.facet-specs .facet-spec-list.is-open { max-height: none; overflow: visible; padding-right: 0; }
        .category-tiles { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    }

/* Sibling-category nav under a server-rendered ?cat=N grid on
   octane.vehicle.cfm. The tile grid normally links the categories together;
   once it is replaced by a category's products, this is what keeps the other
   categories reachable -- for a customer and for a crawler. */
.cat-siblings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem auto 2rem;
  max-width: 1400px;
  padding: 0 1rem;
  font-size: 1rem;
}

.cat-siblings-label {
  font-weight: 700;
  margin-right: 0.25rem;
}

.cat-siblings a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-decoration: none;
  color: inherit;
  line-height: 1.2;
}

.cat-siblings a:hover {
  border-color: #555;
}
