/* Sparky X — faceted catalog browser (embeddable).
   Every class is sxc- prefixed and every rule is scoped under .sxc-catalog,
   so nothing here can collide with the host page's stylesheet.
   Design tokens (Sparky X dark theme) are defined locally as --sxc-* on the
   component root — this file does not depend on style.css internals. */

.sxc-catalog{
  --sxc-bg:#0a0a0c; --sxc-bg2:#101014; --sxc-panel:#141419; --sxc-line:#26262e;
  --sxc-txt:#f2f2f4; --sxc-dim:#9a9aa5; --sxc-orange:#FF5400; --sxc-orange2:#ff7a29;
  --sxc-ok:#3ddc84; --sxc-bad:#ff8a8a; --sxc-imgbg:#ffffff;
  box-sizing:border-box; background:var(--sxc-bg); color:var(--sxc-txt);
  font-family:"Inter",-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:16px; line-height:1.5; max-width:1240px; margin:0 auto;
  padding:28px clamp(14px,3vw,32px) 48px; overflow-x:clip;
  -webkit-font-smoothing:antialiased;
}
.sxc-catalog *, .sxc-catalog *::before, .sxc-catalog *::after{ box-sizing:border-box; }
.sxc-catalog :focus-visible{ outline:2px solid var(--sxc-orange); outline-offset:2px; }
.sxc-sr{ position:absolute !important; width:1px; height:1px; margin:-1px; padding:0;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* Head */
.sxc-head{ margin-bottom:18px; min-width:0; }
.sxc-eyebrow{ font-size:11px; letter-spacing:.22em; text-transform:uppercase;
  color:var(--sxc-dim); font-weight:600; margin:0 0 8px; }
.sxc-eyebrow b{ color:var(--sxc-orange); font-weight:600; }
.sxc-title{ font-size:clamp(24px,4vw,34px); font-weight:300; letter-spacing:-.01em;
  line-height:1.2; margin:0 0 8px; color:var(--sxc-txt); }
.sxc-sub{ color:var(--sxc-dim); font-size:15.5px; line-height:1.6; margin:0; max-width:68ch; }

/* Toolbar (sticky — carries the mobile Filters button) */
.sxc-toolbar{ position:sticky; top:73px; z-index:30; display:flex; flex-wrap:wrap;
  align-items:center; gap:10px 14px; padding:12px 0; margin-bottom:8px;
  background:var(--sxc-bg); border-bottom:1px solid var(--sxc-line); min-width:0; }
.sxc-search-wrap{ flex:1 1 220px; min-width:0; }
.sxc-search, .sxc-input, .sxc-sort, .sxc-select{ width:100%; min-height:48px; padding:12px 14px;
  background:var(--sxc-bg2); color:var(--sxc-txt); border:1px solid var(--sxc-line);
  border-radius:10px; font:inherit; font-size:16px; }
.sxc-search::placeholder, .sxc-input::placeholder{ color:var(--sxc-dim); }
.sxc-search:focus, .sxc-input:focus, .sxc-sort:focus, .sxc-select:focus{ border-color:var(--sxc-orange); outline:none; }
/* Search bar stands out (Danny, 2026-11-25): orange at rest, green while typing. */
.sxc-search{ border:2px solid var(--sxc-orange); background:#181008;
  box-shadow:0 0 0 3px rgba(255,84,0,.18), 0 2px 12px rgba(0,0,0,.4); font-weight:600; }
.sxc-search::placeholder{ color:#c9c9d2; }
.sxc-search:focus{ border-color:var(--sxc-ok); background:var(--sxc-bg2);
  box-shadow:0 0 0 3px rgba(61,220,132,.25), 0 2px 12px rgba(0,0,0,.4); outline:none; }
.sxc-select{ cursor:pointer; }
.sxc-select:disabled{ opacity:.45; cursor:default; }
.sxc-count{ margin:0; color:var(--sxc-dim); font-size:14.5px; flex:0 1 auto; min-width:0; }
.sxc-count strong{ color:var(--sxc-txt); font-weight:600; }
.sxc-sort-wrap{ display:flex; align-items:center; gap:8px; margin-left:auto; min-width:0; }
.sxc-sort-label{ font-size:11px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--sxc-dim); font-weight:600; }
.sxc-sort{ width:auto; min-width:0; cursor:pointer; }
.sxc-filters-btn{ display:inline-flex; align-items:center; gap:8px; min-height:48px;
  padding:12px 20px; border-radius:999px; background:#fff; color:#0a0a0c; border:1px solid #fff;
  font:inherit; font-size:15px; font-weight:600; cursor:pointer; }
.sxc-filters-btn:hover{ background:#e8e8ea; }
.sxc-filters-count{ display:inline-flex; align-items:center; justify-content:center;
  min-width:24px; height:24px; padding:0 6px; border-radius:999px;
  background:var(--sxc-orange); color:#fff; font-size:13px; font-weight:700; }

/* Buttons */
.sxc-btn-primary{ display:inline-flex; align-items:center; justify-content:center;
  min-height:48px; padding:13px 26px; border-radius:999px; background:#fff; color:#0a0a0c;
  border:1px solid #fff; font:inherit; font-size:15px; font-weight:600; cursor:pointer; }
.sxc-btn-primary:hover{ background:#e8e8ea; }
.sxc-btn-ghost{ display:inline-flex; align-items:center; justify-content:center;
  min-height:48px; padding:13px 22px; border-radius:999px; background:transparent;
  color:var(--sxc-orange2); border:1px solid var(--sxc-orange); font:inherit;
  font-size:15px; font-weight:600; cursor:pointer; }
.sxc-btn-ghost:hover{ background:rgba(255,84,0,.1); }
.sxc-link-btn{ background:none; border:0; padding:0; color:var(--sxc-orange2);
  font:inherit; font-weight:600; text-decoration:underline; cursor:pointer; }

/* Layout */
.sxc-layout{ display:block; min-width:0; }
.sxc-results{ min-width:0; }

/* Filter panel — mobile: full-screen sheet (opened via .sxc-sheet-open on root) */
.sxc-filters{ position:fixed; inset:0; z-index:300; background:var(--sxc-bg2);
  padding:0 18px 24px; overflow-y:auto; overscroll-behavior:contain; scroll-padding-bottom:120px;
  transform:translateY(102%); visibility:hidden; transition:transform .22s ease, visibility .22s; }
.sxc-catalog.sxc-sheet-open .sxc-filters{ transform:translateY(0); visibility:visible; }
.sxc-backdrop{ position:fixed; inset:0; z-index:290; background:rgba(0,0,0,.6); }
.sxc-backdrop[hidden]{ display:none; }
/* The hidden attribute must always win inside the catalog: author display
   rules (e.g. .sxc-btn-primary's inline-flex) otherwise beat the UA's
   [hidden] rule and "hidden" elements render anyway — the class of bug
   behind the stray Load-more button / always-on filter-count badge. */
.sxc-catalog [hidden]{ display:none !important; }

/* Vehicle picker + context bars (2026-11-20) */
.sxc-veh-selects{ display:grid; gap:8px; }
.sxc-vehbar, .sxc-activebar{ display:flex; align-items:center; justify-content:space-between;
  gap:10px 16px; flex-wrap:wrap; padding:12px 16px; margin-bottom:14px;
  border:1px solid var(--sxc-line); border-radius:14px; background:var(--sxc-bg2);
  font-size:14.5px; line-height:1.5; }
.sxc-vehbar{ border-color:var(--sxc-orange); }
.sxc-vehwall{ border:1px dashed #3d3d46; border-radius:16px; padding:26px;
  text-align:center; color:var(--sxc-dim); line-height:1.6; background:var(--sxc-panel); }
.sxc-vehwall strong{ color:var(--sxc-txt); }
.sxc-vehwall a{ color:var(--sxc-orange2); }
.sxc-filters-head{ position:sticky; top:0; z-index:2; display:flex; align-items:center;
  justify-content:space-between; gap:12px; min-height:60px; margin:0 -18px 6px; padding:6px 18px;
  background:var(--sxc-bg2); border-bottom:1px solid var(--sxc-line); }
.sxc-filters-title{ font-size:17px; font-weight:600; }
.sxc-filters-close{ width:48px; height:48px; border-radius:999px; background:var(--sxc-panel);
  border:1px solid var(--sxc-line); color:var(--sxc-txt); font-size:17px; cursor:pointer; }
.sxc-filters-foot{ display:flex; flex-wrap:wrap; gap:10px; padding-top:18px;
  border-top:1px solid var(--sxc-line); margin-top:6px; }
.sxc-filters-foot .sxc-btn-ghost, .sxc-filters-foot .sxc-btn-primary{ flex:1 1 150px; }

.sxc-fgroup{ padding:16px 0; border-bottom:1px solid var(--sxc-line); min-width:0; }
.sxc-fgroup-part{ padding-top:14px; }
.sxc-fgroup-toggles{ display:grid; gap:6px; }
.sxc-flabel{ display:block; font-size:11px; letter-spacing:.18em; text-transform:uppercase;
  color:var(--sxc-dim); font-weight:600; margin-bottom:10px; }
.sxc-fhint{ color:var(--sxc-dim); font-size:13px; line-height:1.5; margin:8px 0 0; }

/* Checkboxes / chips — 48px tap targets */
.sxc-checks{ display:grid; gap:4px; }
.sxc-check{ display:flex; align-items:center; gap:10px; min-height:48px; padding:8px 10px;
  border-radius:8px; cursor:pointer; font-size:15.5px; }
.sxc-check:hover{ background:var(--sxc-panel); }
.sxc-check input{ width:20px; height:20px; flex:0 0 auto; accent-color:var(--sxc-orange); cursor:pointer; }
.sxc-check .sxc-check-n{ margin-left:auto; color:var(--sxc-dim); font-size:13px; }
.sxc-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.sxc-chip{ position:relative; display:inline-flex; }
.sxc-chip input{ position:absolute; opacity:0; width:1px; height:1px; }
.sxc-chip span{ display:inline-flex; align-items:center; min-height:48px; padding:10px 16px;
  border:1px solid var(--sxc-line); border-radius:999px; background:var(--sxc-panel);
  font-size:14.5px; cursor:pointer; }
.sxc-chip input:checked + span{ border-color:var(--sxc-orange); color:#fff;
  background:rgba(255,84,0,.16); }
.sxc-chip input:focus-visible + span{ outline:2px solid var(--sxc-orange); outline-offset:2px; }

/* Brand list — scrollable multi-select */
.sxc-brand-list{ max-height:264px; overflow-y:auto; margin-top:8px; padding-right:4px;
  border:1px solid var(--sxc-line); border-radius:10px; background:var(--sxc-bg); }
.sxc-brand-list .sxc-check{ padding-left:12px; }
.sxc-brand-none{ color:var(--sxc-dim); font-size:14px; padding:14px 12px; margin:0; }

/* Price row */
.sxc-price-row{ display:flex; align-items:center; gap:8px; min-width:0; }
.sxc-price-input{ min-width:0; }
.sxc-price-dash{ color:var(--sxc-dim); flex:0 0 auto; }

/* Toggles (switch style, 48px rows) */
.sxc-toggle{ display:flex; align-items:center; gap:12px; min-height:48px; padding:6px 2px;
  cursor:pointer; font-size:15.5px; }
.sxc-toggle input{ position:absolute; opacity:0; width:1px; height:1px; }
.sxc-toggle-track{ flex:0 0 auto; width:48px; height:28px; border-radius:999px;
  background:var(--sxc-panel); border:1px solid var(--sxc-line); position:relative; transition:background .15s; }
.sxc-toggle-track::after{ content:""; position:absolute; top:3px; left:3px; width:20px; height:20px;
  border-radius:50%; background:var(--sxc-dim); transition:left .15s, background .15s; }
.sxc-toggle input:checked + .sxc-toggle-track{ background:rgba(255,84,0,.25); border-color:var(--sxc-orange); }
.sxc-toggle input:checked + .sxc-toggle-track::after{ left:23px; background:var(--sxc-orange); }
.sxc-toggle input:focus-visible + .sxc-toggle-track{ outline:2px solid var(--sxc-orange); outline-offset:2px; }

/* Result cards */
.sxc-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));
  gap:14px; min-width:0; }
.sxc-card{ background:var(--sxc-panel); border:1px solid var(--sxc-line); border-radius:12px;
  overflow:hidden; display:flex; flex-direction:column; min-width:0; cursor:pointer;
  transition:border-color .15s ease, background .15s ease; }
.sxc-card:hover{ border-color:var(--sxc-orange); background:#191920; }
.sxc-card.sxc-oos{ opacity:.55; }
.sxc-card-img{ aspect-ratio:4/3; background:var(--sxc-imgbg); display:flex;
  align-items:center; justify-content:center; overflow:hidden; }
.sxc-card-img img{ width:100%; height:100%; object-fit:contain; display:block; }
.sxc-card-noimg{ aspect-ratio:4/3; background:#1a1a20; color:var(--sxc-dim);
  display:flex; align-items:center; justify-content:center; font-size:13px;
  letter-spacing:.14em; text-transform:uppercase; }
.sxc-card-body{ padding:14px 16px 16px; display:flex; flex-direction:column; gap:7px;
  flex:1 1 auto; min-width:0; }
.sxc-card-brand{ font-size:11px; letter-spacing:.18em; text-transform:uppercase;
  color:var(--sxc-dim); font-weight:600; margin:0; overflow-wrap:anywhere; }
.sxc-card-name{ font-size:16.5px; font-weight:600; line-height:1.3; margin:0; overflow-wrap:anywhere; }
.sxc-card-specs{ color:var(--sxc-dim); font-size:14px; line-height:1.5; margin:0; overflow-wrap:anywhere; }
.sxc-card-badges{ display:flex; flex-wrap:wrap; gap:6px; }
.sxc-badge{ display:inline-block; font-size:10.5px; letter-spacing:.12em; text-transform:uppercase;
  font-weight:700; padding:4px 9px; border-radius:999px; border:1px solid var(--sxc-line);
  color:var(--sxc-txt); }
.sxc-badge-season{ border-color:var(--sxc-orange); color:var(--sxc-orange2); }
.sxc-badge-ev{ border-color:var(--sxc-ok); color:var(--sxc-ok); }
.sxc-card-stock{ font-size:14px; margin:0; color:var(--sxc-ok); font-weight:600; }
.sxc-card-stock.sxc-stock-low{ color:var(--sxc-orange2); }
.sxc-card-stock.sxc-stock-out{ color:var(--sxc-bad); }
.sxc-card-stock.sxc-stock-eta{ color:var(--sxc-orange2); font-size:13px; }
.sxc-card-price{ margin-top:auto; padding-top:6px; }
.sxc-price-unit{ font-size:21px; font-weight:700; color:var(--sxc-txt); white-space:nowrap; }
.sxc-price-unit small{ font-size:13px; font-weight:500; color:var(--sxc-dim); }
.sxc-price-set{ color:var(--sxc-dim); font-size:14px; margin:2px 0 0; }
.sxc-price-set strong{ color:var(--sxc-txt); font-weight:600; }
.sxc-card-part{ color:var(--sxc-dim); font-size:12.5px; margin:0; overflow-wrap:anywhere; }
.sxc-card-details{ align-self:flex-start; margin-top:2px; background:var(--sxc-orange); color:#0a0a0c;
  border:0; border-radius:999px; padding:8px 20px; font:inherit; font-size:13.5px; font-weight:700;
  cursor:pointer; }
.sxc-card-details:hover{ filter:brightness(1.12); }
/* Manufacturer rebate banner (2026-11-23) — band across every tire card:
   solid green when the brand has a current manufacturer program, muted
   when it doesn't. In the product sheet it sits as a rounded block. */
.sxc-rebate{ font-size:12.5px; font-weight:700; letter-spacing:.02em;
  line-height:1.35; text-align:center; padding:8px 12px; }
.sxc-rebate-yes{ background:#1d9e57; color:#ffffff; }
.sxc-rebate-no{ background:#1d1d24; color:var(--sxc-dim); font-weight:600; }
.sxc-sheet .sxc-rebate{ border-radius:8px; margin:10px 0 2px; }

/* Product sheet (2026-11-21) — the catalog's listing view, mirroring the
   rims / other-products widgets' sheets. z-index 300 keeps it above the
   site's cookie bar (z-index 200), same fix as the embedded widgets. */
.sxc-sheetwrap{ position:fixed; inset:0; background:rgba(0,0,0,.72); z-index:300;
  display:flex; align-items:flex-end; justify-content:center; }
.sxc-sheetwrap[hidden]{ display:none; }
.sxc-sheet{ background:var(--sxc-bg2); border:1px solid var(--sxc-line); border-radius:20px 20px 0 0;
  max-width:560px; width:100%; max-height:88vh; overflow:auto; padding:22px; color:var(--sxc-txt); }
@media (min-width:700px){ .sxc-sheetwrap{ align-items:center; } .sxc-sheet{ border-radius:20px; } }
.sxc-sheet-media{ background:var(--sxc-imgbg); border-radius:12px; overflow:hidden; }
.sxc-sheet-media img{ width:100%; height:230px; object-fit:contain; display:block; }
.sxc-sheet-noimg{ min-height:110px; display:flex; align-items:center; justify-content:center;
  background:#1a1a20; color:var(--sxc-dim); border-radius:12px; font-weight:700; padding:10px;
  text-align:center; }
.sxc-sheet-title{ font-size:20px; margin:14px 0 0; line-height:1.3; }
.sxc-sheet-specs{ color:var(--sxc-dim); margin:4px 0 0; font-size:14.5px; }
.sxc-sheet-x{ float:right; background:none; border:0; color:var(--sxc-dim); font-size:22px;
  cursor:pointer; padding:4px 8px; line-height:1; }
.sxc-drow{ display:flex; justify-content:space-between; gap:14px; padding:9px 0;
  border-bottom:1px solid var(--sxc-line); font-size:14.5px; }
.sxc-drow span{ color:var(--sxc-dim); }
.sxc-drow b{ text-align:right; }
.sxc-svctog{ display:flex; gap:10px; align-items:center; margin-top:16px; background:var(--sxc-bg);
  border:1px solid var(--sxc-line); border-radius:10px; padding:13px; cursor:pointer;
  font-size:14.5px; text-align:left; }
.sxc-svctog input{ width:20px; height:20px; accent-color:var(--sxc-orange); flex:none; }
.sxc-svctog small{ color:var(--sxc-dim); }
.sxc-svctog .sxc-svc-pr{ margin-left:auto; font-weight:700; flex:none; }
.sxc-cta{ display:block; width:100%; box-sizing:border-box; text-align:center; margin-top:18px;
  background:var(--sxc-orange); color:#0a0a0c; font-weight:800; padding:14px; border:0;
  border-radius:999px; font:inherit; font-size:16px; cursor:pointer; text-decoration:none; }
.sxc-cta:hover{ filter:brightness(1.12); }
.sxc-textline{ text-align:center; margin:12px 0 0; color:var(--sxc-dim); font-size:13.5px; }
.sxc-textline a{ color:var(--sxc-orange2); font-weight:700; text-decoration:none; }
.sxc-sheet-fine{ color:var(--sxc-dim); font-size:12.5px; margin:12px 0 0; line-height:1.5; }

.sxc-empty, .sxc-error{ color:var(--sxc-dim); font-size:15.5px; line-height:1.6;
  padding:28px 0; margin:0; }
.sxc-error{ color:var(--sxc-bad); }
.sxc-more-wrap{ display:flex; flex-direction:column; align-items:center; gap:8px; padding:26px 0 4px; }
.sxc-shown-note{ color:var(--sxc-dim); font-size:13.5px; margin:0; }

/* Desktop: left sidebar, always visible */
@media (min-width:1024px){
  .sxc-layout{ display:grid; grid-template-columns:288px minmax(0,1fr); gap:28px; align-items:start; }
  .sxc-filters-btn{ display:none; }
  .sxc-filters{ position:sticky; top:12px; inset:auto; z-index:auto; transform:none;
    visibility:visible; background:transparent; padding:0 4px 8px 0;
    max-height:calc(100vh - 24px); overflow-y:auto; transition:none; }
  .sxc-filters-head{ display:none; }
  .sxc-apply-btn{ display:none; }
  .sxc-filters-foot .sxc-btn-ghost{ flex:1 1 auto; }
  .sxc-backdrop{ display:none !important; }
}
@media (max-width:1023.98px){
  .sxc-sort-wrap{ margin-left:0; }
  .sxc-count{ flex:1 1 100%; order:3; }
}
/* Host site header is fixed (73px tall, 77px at <=900px per --header-h in the
   host stylesheet) — the sticky toolbar must dock BELOW it, not slide under. */
@media (max-width:900px){
  .sxc-toolbar{ top:77px; }
}

/* ---- WS11 (2026-11-20): DT facet panel — collapsible sections, counts,
   price range slider. WS13: size chips, find-your-size helper, sticky
   sheet footer, stock status dots. ---- */
.sxc-fgroup{ position:relative; }
.sxc-collapse-btn{ position:absolute; top:12px; right:0; width:44px; height:44px;
  border-radius:999px; background:transparent; border:1px solid transparent;
  color:var(--sxc-dim); font-size:15px; cursor:pointer; }
.sxc-collapse-btn:hover{ border-color:var(--sxc-line); color:var(--sxc-txt); }
.sxc-fgroup.sxc-collapsed > *:not(.sxc-flabel):not(.sxc-collapse-btn){ display:none !important; }
.sxc-fgroup.sxc-collapsed{ padding-bottom:16px; }
.sxc-fgroup.sxc-collapsed .sxc-flabel{ margin-bottom:0; }

.sxc-price-read{ font-size:16.5px; font-weight:600; color:var(--sxc-txt); margin:0 0 2px; }
.sxc-slider{ position:relative; height:44px; margin:2px 0 4px; }
.sxc-slider input[type="range"]{ position:absolute; inset:0; width:100%; margin:0;
  -webkit-appearance:none; appearance:none; background:transparent; pointer-events:none; height:44px; }
.sxc-slider input[type="range"]::-webkit-slider-runnable-track{ height:4px; border-radius:2px; background:var(--sxc-line); }
.sxc-slider input[type="range"]::-webkit-slider-thumb{ -webkit-appearance:none; appearance:none;
  width:28px; height:28px; margin-top:-12px; border-radius:50%; background:var(--sxc-orange);
  border:3px solid #fff; pointer-events:auto; cursor:pointer; }
.sxc-slider input[type="range"]::-moz-range-track{ height:4px; border-radius:2px; background:var(--sxc-line); }
.sxc-slider input[type="range"]::-moz-range-thumb{ width:22px; height:22px; border-radius:50%;
  background:var(--sxc-orange); border:3px solid #fff; pointer-events:auto; cursor:pointer; }

.sxc-sizebar{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; padding:12px 0 2px; }
.sxc-sizebar-label{ font-size:13px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--sxc-dim); font-weight:600; }
.sxc-size-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.sxc-size-chip{ min-height:44px; padding:10px 15px; border-radius:999px; cursor:pointer;
  border:1px solid var(--sxc-line); background:var(--sxc-panel); color:var(--sxc-txt);
  font:inherit; font-size:15px; font-weight:600; }
.sxc-size-chip:hover{ border-color:var(--sxc-orange); }
.sxc-size-chip.is-on{ background:var(--sxc-orange); border-color:var(--sxc-orange); color:#fff; }
.sxc-findsize-btn{ min-height:44px; padding:10px 6px; background:none; border:0; cursor:pointer;
  color:var(--sxc-orange2); font:inherit; font-size:15px; font-weight:600; text-decoration:underline; }
.sxc-findsize{ background:var(--sxc-panel); border:1px solid var(--sxc-line); border-radius:12px;
  padding:16px 18px; margin:10px 0 4px; font-size:15.5px; line-height:1.6; color:var(--sxc-txt); }
.sxc-findsize p{ margin:0 0 10px; } .sxc-findsize p:last-child{ margin-bottom:0; }
.sxc-findsize .sxc-size-eg{ display:inline-block; font-size:19px; font-weight:700; letter-spacing:.03em;
  background:var(--sxc-bg); border:1px solid var(--sxc-line); border-radius:8px; padding:2px 10px; }

.sxc-card-stock::before{ content:""; display:inline-block; width:9px; height:9px;
  border-radius:50%; background:var(--sxc-ok); margin-right:7px; vertical-align:1px; }
.sxc-card-stock.sxc-stock-low::before{ background:var(--sxc-orange); }
.sxc-card-stock.sxc-stock-out::before{ background:var(--sxc-bad); }
.sxc-card-stock.sxc-stock-eta::before{ background:var(--sxc-orange); }
.sxc-card{ font-size:14px; }
.sxc-empty .sxc-btn-primary{ margin-top:14px; }

@media (max-width:1023.98px){
  .sxc-filters-foot{ position:sticky; bottom:0; background:var(--sxc-bg2);
    margin:6px -18px -24px; padding:12px 18px calc(12px + env(safe-area-inset-bottom)); }
  /* Danny 2026-11-28: below desktop the grid stays multi-column (tablets
     flow fluidly); phones get exactly 2 per row in the <=640px block. */
  .sxc-grid{ grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr)); }
  /* Full tire search accordion (2026-11-24, Danny): on mobile the filter
     panel is NOT a fixed full-screen sheet anymore — it opens in-flow
     directly under the toolbar, before the first listing, and pushes
     the grid down. catalog.js setSheet() relocates the panel there on
     open and restores it on close. */
  .sxc-filters{ position:static; inset:auto; transform:none; visibility:visible;
    display:none; margin:12px 0 4px; border:1px solid var(--sxc-line);
    border-radius:16px; max-height:none; overflow:visible; transition:none; }
  .sxc-catalog.sxc-sheet-open .sxc-filters{ display:block; }
  .sxc-backdrop{ display:none !important; }
}

/* Empty state (2026-11-23): the message names the query, offers the AI
   tab / clear exits, and falls back to popular in-stock tires — the
   results area is never a dead void. */
.sxc-empty-msg{ margin:0 0 6px; }
.sxc-empty-fallback{ margin-top:24px; }
.sxc-empty-fallback-title{ font-size:14px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--sxc-txt); font-weight:600; margin:0 0 12px; }

/* Mobile opening compression (2026-11-23, owner phone test): on small
   screens the catalog head, toolbar and size bar used to stack ~660px
   before the first product card. Now the head is one slim line, search +
   Filters + Sort share one compact row (count drops to a slim line
   under it), and the popular-size chips ride a single swipeable row —
   the product grid starts inside the first screen. Desktop untouched. */
@media (max-width:640px){
  .sxc-catalog{ padding:4px 12px 32px; }
  .sxb-pane .sxc-catalog{ padding-top:4px; }
  .sxc-head{ margin-bottom:2px; }
  .sxc-eyebrow{ display:none; }
  .sxc-title{ font-size:18px; line-height:1.1; margin:0; }
  .sxc-sub{ display:none; }
  .sxc-toolbar{ flex-wrap:wrap; gap:8px; padding:2px 0 4px; margin-bottom:0; }
  .sxc-search-wrap{ flex:1 1 100%; min-width:0; }
  .sxc-search{ min-height:46px; padding:10px 12px; }
  /* Filters as a real accordion tab (owner, 2026-11-24 phone test):
     full-width bar, label + count at the left, a + pinned at the right
     end that flips to − while the panel is open (aria-expanded). */
  .sxc-filters-btn{ min-height:48px; padding:12px 14px; font-size:15px; flex:1 1 100%;
    justify-content:flex-start; background:var(--sxc-bg2); color:var(--sxc-txt);
    border:1px solid var(--sxc-line); border-radius:10px; }
  .sxc-filters-btn:hover{ background:var(--sxc-bg2); border-color:var(--sxc-orange); }
  .sxc-filters-btn::after{ content:"+"; margin-left:auto; font-size:22px; font-weight:400;
    line-height:1; color:var(--sxc-txt); }
  .sxc-filters-btn[aria-expanded="true"]::after{ content:"\2212"; }
  /* Sort stacks on its own full-width row below the Filters tab. */
  .sxc-sort-wrap{ margin-left:0; gap:0; flex:1 1 100%; }
  .sxc-sort-label{ display:none; }
  .sxc-sort{ width:100%; min-height:46px; padding:10px 8px; font-size:14px; }
  .sxc-count{ flex:1 1 100%; order:3; font-size:13px; line-height:1.15;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  /* Browse state: the products speak for themselves — the count line
     only earns its row once a search/filter is active. */
  .sxc-catalog.sxc-browsing .sxc-count{ display:none; }
  .sxc-sizebar{ flex-wrap:nowrap; overflow-x:auto; overflow-y:hidden;
    padding:2px 0 0; gap:8px; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
  .sxc-sizebar::-webkit-scrollbar{ display:none; }
  .sxc-sizebar-label{ flex:0 0 auto; }
  .sxc-size-chips{ flex-wrap:nowrap; flex:0 0 auto; }
  .sxc-size-chip{ flex:0 0 auto; }
  .sxc-findsize-btn{ flex:0 0 auto; white-space:nowrap; }
  .sxc-empty{ padding:18px 0; }
  /* Danny 2026-11-28: TWO cards per row on phones, all tabs, with the
     card text and button tightened so two-up stays readable. */
  .sxc-grid{ grid-template-columns:repeat(2,1fr); gap:10px; }
  .sxc-card-body{ padding:10px 11px 12px; gap:5px; }
  .sxc-card-brand{ font-size:10px; letter-spacing:.14em; }
  .sxc-card-name{ font-size:14.5px; line-height:1.25; }
  .sxc-card-specs{ font-size:12.5px; line-height:1.4; }
  .sxc-badge{ font-size:9.5px; padding:3px 7px; letter-spacing:.08em; }
  .sxc-card-stock{ font-size:12.5px; }
  .sxc-card-stock.sxc-stock-eta{ font-size:12px; }
  .sxc-price-unit{ font-size:18px; }
  .sxc-price-unit small{ font-size:12px; }
  .sxc-price-set{ font-size:12.5px; }
  .sxc-card-part{ font-size:11.5px; }
  .sxc-card-details{ padding:7px 14px; font-size:12.5px; }
  .sxc-rebate{ font-size:11px; padding:6px 8px; }
}
/* The host header is 104px tall at <=480px (mobile header fix) — the
   sticky toolbar must dock below it there, not slide under. */
@media (max-width:480px){
  .sxc-toolbar{ top:104px; }
}
