/* ============================================================
   SearchTires.com — site.css
   Relies on Bootstrap 5. All custom vars defined here.
   ============================================================ */

/* ── Custom properties ───────────────────────────────────────*/
:root {
  --st-orange:      #ff690f;
  --st-orange-dark: #e05500;
  --st-orange-light:#fff3ec;
  --st-dark:        #0f172a;
  --st-dark-2:      #1e293b;
  --st-dark-3:      #334155;
  --st-text:        #1e293b;
  --st-muted:       #64748b;
  --st-border:      #e2e8f0;
  --st-radius:      10px;
  --st-shadow:      0 2px 8px rgba(0,0,0,.08);
  --st-shadow-hover:0 6px 20px rgba(0,0,0,.14);
  --st-font:        'Barlow', system-ui, -apple-system, sans-serif;
  --st-font-cond:   'Barlow Condensed', system-ui, sans-serif;
}

/* ── Base ─────────────────────────────────────────────────── */
html { overflow-x: clip; max-width: 100%; }
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--st-font);
  color: var(--st-text);
  background: #111827;
  overflow-x: clip;
}
/* Prevent iOS horizontal scroll when Bootstrap adds padding-right for modal */
body.modal-open { overflow-x: clip !important; padding-right: 0 !important; }

/* ── Utility ──────────────────────────────────────────────── */
.st-accent { color: var(--st-orange); }
.st-link    { color: var(--st-orange); text-decoration: none; }
.st-link:hover { text-decoration: underline; }

/* ── Nav ──────────────────────────────────────────────────── */
.st-nav {
  background: var(--st-dark);
  border-bottom: 1px solid var(--st-dark-3);
  position: sticky; top: 0; z-index: 100;
}
.st-nav__logo img { display: block; }
.st-nav__link {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .02em;
  transition: color .15s;
}
.st-nav__link:hover { color: var(--st-orange); }

/* ── Hero ─────────────────────────────────────────────────── */
.st-hero {
  background: var(--st-dark);
  padding: 1.75rem 0 3rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* Subtle grid texture */
.st-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,105,15,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,105,15,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.st-hero--compact {
  padding: 2rem 0;
}
.st-hero__title {
  font-family: var(--st-font-cond);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: .6rem;
  text-transform: uppercase;
}
.st-hero__title--sm {
  font-size: clamp(1.3rem, 3vw, 2rem);
  text-transform: none;
  font-family: var(--st-font);
  font-weight: 800;
}
.st-hero__sub {
  font-size: 1rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 0;
  font-weight: 500;
}

/* ── Max intro callout (landing page) ────────────────────── */
.st-max-intro {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(249,115,22,0.08);
    border: 1px solid rgba(249,115,22,0.25);
    border-radius: 12px;
    padding: 14px 16px;
}
.st-max-intro__avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(249,115,22,0.4);
}
.st-max-intro__body { flex: 1; }
.st-max-intro__name {
    display: block;
    font-weight: 700;
    font-size: .9rem;
    color: #fff;
    margin-bottom: 3px;
}
.st-max-intro__tag {
    font-size: .72rem;
    font-weight: 600;
    color: #f97316;
    background: rgba(249,115,22,0.15);
    border-radius: 4px;
    padding: 1px 6px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.st-max-intro__msg {
    font-size: .88rem;
    color: rgba(255,255,255,.65);
    margin: 0;
    line-height: 1.5;
}

/* ── Search bar ───────────────────────────────────────────── */
.st-search-bar {
  background: var(--st-dark-2);
  border-radius: 16px;
  border: 1px solid var(--st-dark-3);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  overflow: hidden;
}
.st-search-bar__tabs {
  display: flex;
  border-bottom: 1px solid var(--st-dark-3);
}
.st-search-bar__tab {
  flex: 1;
  padding: .8rem 1rem;
  background: none;
  border: none;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  color: rgba(255,255,255,.4);
  transition: color .15s, border-bottom .15s;
  border-bottom: 3px solid transparent;
  letter-spacing: .02em;
}
.st-search-bar__tab.active {
  color: var(--st-orange);
  border-bottom-color: var(--st-orange);
}
.st-search-bar__tab:hover { color: rgba(255,255,255,.75); }
.st-search-bar__body { padding: 1rem; }
.st-search-bar__pane { gap: .5rem; }

.st-picker-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--st-dark-3);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: .6rem 1rem;
  font-size: .9rem;
  font-family: var(--st-font);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  color: rgba(255,255,255,.85);
  min-height: 44px;
  transition: border-color .15s, background .15s;
}
.st-picker-btn:hover {
  border-color: var(--st-orange);
  background: rgba(255,105,15,.12);
  color: #fff;
}
.st-picker-btn .text-muted { color: rgba(255,255,255,.35) !important; }

.st-search-bar__zip {
  display: flex;
  align-items: center;
  background: var(--st-dark-3);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: .5rem .9rem;
  min-width: 140px;
  min-height: 44px;
  transition: border-color .15s;
}
.st-search-bar__zip:focus-within {
  border-color: var(--st-orange);
}
.st-search-bar__zip-icon { color: var(--st-orange); margin-right: .5rem; }
.st-search-bar__zip-input {
  border: none;
  background: transparent;
  font-family: var(--st-font);
  font-size: .9rem;
  font-weight: 500;
  width: 100%;
  outline: none;
  color: rgba(255,255,255,.85);
  text-align: center;
}
.st-search-bar__zip-input::placeholder { color: rgba(255,255,255,.35); text-align: center; }
/* Kill browser autofill white background */
.st-search-bar__zip-input:-webkit-autofill,
.st-search-bar__zip-input:-webkit-autofill:hover,
.st-search-bar__zip-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--st-dark-3) inset;
  -webkit-text-fill-color: rgba(255,255,255,.85);
  caret-color: rgba(255,255,255,.85);
}

.st-search-btn {
  background: var(--st-orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .6rem 1.6rem;
  font-weight: 800;
  font-family: var(--st-font);
  font-size: .95rem;
  letter-spacing: .03em;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(255,105,15,.4);
}
.st-search-btn:hover {
  background: var(--st-orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,105,15,.5);
}

/* ── Multi-size alert close button vertical centering ─────── */
#multiSizeNotice .btn-close {
    position: static;
}

.st-hidden-card { display: none; }


.st-filter-btn {
  min-width: 80px;
  text-align: center;
  border-color: var(--st-border);
  color: var(--st-text);
}
.st-filter-btn:hover,
.st-filter-btn--active {
  background: var(--st-orange-light);
  border-color: var(--st-orange) !important;
  color: var(--st-orange-dark) !important;
}
.st-filter-chip {
  background: var(--st-orange-light);
  color: var(--st-orange-dark);
  border: 1px solid var(--st-orange);
  font-size: .78rem;
  padding: .3rem .55rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  border-radius: 6px;
  font-weight: 500;
}
.st-chip-close {
  background: none;
  border: none;
  padding: 0;
  font-size: .9rem;
  line-height: 1;
  color: var(--st-orange-dark);
  cursor: pointer;
  opacity: .7;
}
.st-chip-close:hover { opacity: 1; }

/* ── Unified Filters modal ───────────────────────────────────── */
.st-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--st-orange);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  border-radius: 99px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  margin-left: 3px;
  vertical-align: middle;
}
.st-filter-accordion .accordion-button {
  background: var(--st-dark-3);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  border-radius: 8px !important;
  padding: .6rem .9rem;
  box-shadow: none !important;
}
.st-filter-accordion .accordion-button::after {
  filter: invert(1);
}
.st-filter-accordion .accordion-button:not(.collapsed) {
  background: rgba(255,255,255,.06);
  color: #fff;
}
.st-filter-accordion .accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 0;
}
.st-filter-accordion .accordion-body {
  background: transparent;
  padding: .6rem .2rem .8rem;
}
/* Dual range slider */
.st-range-wrap {
  position: relative;
  height: 28px;
  margin: .5rem .4rem 1.4rem;
}
.st-range-track {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0; right: 0;
  height: 4px;
  background: rgba(255,255,255,.12);
  border-radius: 2px;
  pointer-events: none;
}
.st-range-fill {
  position: absolute;
  top: 0; height: 100%;
  background: var(--st-orange);
  border-radius: 2px;
}
.st-range-wrap input[type=range] {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  margin: 0;
  z-index: 2;
}
.st-range-wrap input[type=range]:first-of-type {
  z-index: 3;  /* min handle on top by default; swapped by JS when needed */
}
.st-range-wrap input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--st-orange);
  border: 2px solid #fff;
  pointer-events: all;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.st-range-wrap input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--st-orange);
  border: 2px solid #fff;
  pointer-events: all;
  cursor: pointer;
}
.st-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--st-muted);
  margin-top: .15rem;
}
.st-range-val {
  font-weight: 700;
  color: #fff;
}
/* Rating & deal pills */
.st-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .15rem 0;
}
.st-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .75rem;
  border-radius: 99px;
  border: 1.5px solid rgba(255,255,255,.2);
  background: transparent;
  color: rgba(255,255,255,.7);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}
.st-filter-pill:hover {
  border-color: var(--st-orange);
  color: #fff;
}
.st-filter-pill.active {
  background: var(--st-orange);
  border-color: var(--st-orange);
  color: #fff;
}
.st-filter-section-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--st-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .5rem;
}

.st-btn-primary {
  background: var(--st-orange);
  border-color: var(--st-orange);
  color: #fff;
}
.st-btn-primary:hover {
  background: var(--st-orange-dark);
  border-color: var(--st-orange-dark);
  color: #fff;
}



/* ── Tire result cards ────────────────────────────────────── */
.st-tire-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--st-border);
  box-shadow: 0 1px 4px rgba(15,23,42,.07);
  display: flex;
  flex-direction: column;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  overflow: hidden;
}
.st-tire-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(15,23,42,.13);
  border-color: var(--st-orange);
}

.st-tire-card__img-wrap {
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  overflow: hidden;
  padding: 1rem;
  border-bottom: 1px solid var(--st-border);
}
.st-tire-card__img {
  max-height: 140px;
  max-width: 100%;
  object-fit: contain;
}

.st-tire-card__body {
  padding: .6rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.st-tire-card__name {
  font-size: .95rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
  color: var(--st-dark);
}
.st-tire-card__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-height: 1.4rem;  /* keeps consistent height when no rating */
}
.st-tire-card__size {
  font-size: .82rem;
  color: var(--st-muted);
  font-weight: 500;
  margin: 0;
  flex-shrink: 0;
}

/* ── Tire rating pips ─────────────────────────────────────── */
.st-tire-rating {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: .3rem 0 .2rem;
}
.st-tire-rating__pips { display: flex; gap: 3px; }
.st-tire-rating__pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(15,23,42,.12);
}
.st-tire-rating__pip--filled { background: var(--st-orange); }
.st-tire-rating__value {
  font-size: .72rem;
  font-weight: 700;
  color: var(--st-muted);
}
/* Compare page variant — dark background */
.st-price-rating {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.st-price-rating__pips { display: flex; gap: 3px; }
.st-price-rating__pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.st-price-rating__pip--filled { background: var(--st-orange); }
.st-price-rating__value {
  font-size: .75rem;
  font-weight: 700;
  color: rgba(255,255,255,.5);
}

.st-tire-card__price-row {
  margin-top: auto;
  padding-top: .5rem;
}
.st-tire-card__price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
}
.st-tire-card__price {
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--st-dark);
  font-family: var(--st-font-cond);
  flex-shrink: 0;
}
.st-tire-card__price small { font-size: .75rem; font-weight: 400; color: var(--st-muted); }
.st-tire-card__save {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: .72rem;
  font-weight: 700;
  border-radius: 4px;
  padding: .12rem .45rem;
  white-space: nowrap;
}
.st-tire-card__note {
  font-size: .75rem;
  color: var(--st-muted);
}
.st-tire-card__btn {
  background: var(--st-orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .6rem;
  font-weight: 800;
  font-family: var(--st-font);
  font-size: .85rem;
  cursor: pointer;
  letter-spacing: .02em;
  transition: background .15s, box-shadow .15s;
  text-align: center;
}
.st-tire-card__btn:hover {
  background: var(--st-orange-dark);
  box-shadow: 0 4px 12px rgba(255,105,15,.35);
}

/* Warranty badge */
.st-warranty-badge {
  display: inline-block;
  background: var(--st-orange-light);
  color: var(--st-orange-dark);
  font-size: .72rem;
  font-weight: 700;
  border-radius: 4px;
  padding: .15rem .45rem;
}
.st-warranty-badge--img {
  position: absolute;
  top: .55rem;
  left: .55rem;
  z-index: 1;
  pointer-events: none;
  white-space: nowrap;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 800;
  padding: .25rem .55rem;
  letter-spacing: .03em;
  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.9);
  backdrop-filter: blur(2px);
}

/* ── Value prop cards ─────────────────────────────────────── */
.st-value-card {
  background: #fff;
  border-radius: var(--st-radius);
  border: 1px solid var(--st-border);
  padding: 1.75rem 1.5rem;
  height: 100%;
}
.st-value-card__icon {
  font-size: 2rem;
  color: var(--st-orange);
}

/* ── Modal grids ──────────────────────────────────────────── */
.st-modal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .5rem 0;
  justify-content: center;
}
.st-modal-grid--wide {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .5rem 0;
  justify-content: center;
}

/* Pill: number/year layout (grid) */
.st-modal-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: 1px solid var(--st-border);
  border-radius: 8px;
  padding: .5rem .9rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--st-text);
  text-decoration: none;
  transition: background .12s, border-color .12s, color .12s;
  min-width: 68px;
}
.st-modal-pill:hover {
  background: var(--st-orange-light);
  border-color: var(--st-orange);
  color: var(--st-orange-dark);
}

/* Pill: tiled layout for makes/models/trims — 2 cols on mobile, 3 on md+ */
.st-modal-pill--list {
  display: inline-flex;
  align-items: center;
  width: calc(50% - .25rem);
  background: #f8f9fa;
  border: 1px solid var(--st-border);
  border-radius: 8px;
  padding: .65rem 1rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--st-text);
  text-decoration: none;
  transition: background .12s, border-color .12s;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
@media (min-width: 576px) {
  .st-modal-pill--list {
    width: calc(33.333% - .34rem);
  }
}
.st-modal-pill--list:hover {
  background: var(--st-orange-light);
  border-color: var(--st-orange);
  color: var(--st-orange-dark);
}

.st-selection-badge {
  background: var(--st-orange);
  font-size: .85rem;
  padding: .35rem .7rem;
  border-radius: 6px;
}

/* ── Retailers layout ─────────────────────────────────────── */
.st-retailers-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.st-retailers-body {
  background: #1e2d3d;
  padding-bottom: 2rem;
}
.st-retailers-layout__map {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--st-border);
  height: 300px;
  width: 100%;
  position: relative;
}
#map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Map price-badge pins ─────────────────────────────────── */
.st-map-pin {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.45));
  transition: transform .15s, filter .15s;
}
.st-map-pin:hover {
  transform: translateY(-3px) scale(1.06);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.55));
  z-index: 9999;
}
/* Price badge body */
.st-map-pin--price {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 7px;
  padding: 0;
  white-space: nowrap;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  min-width: 72px;
}
.st-map-pin__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px 6px 2px;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  min-height: 22px;
}
.st-map-pin__logo {
  height: 16px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  display: block;
}
.st-map-pin__price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  background: #0f172a;
  padding: 2px 6px 3px;
}
.st-map-pin__price {
  font-family: Barlow Condensed, Barlow, sans-serif;
  font-weight: 600;
  font-size: .8rem;
  color: #fff;
  line-height: 1;
}
.st-map-pin__qty {
  font-size: .6rem;
  font-weight: 500;
  color: #f97316;
  line-height: 1;
}
/* Downward triangle tail */
.st-map-pin__tail {
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #0f172a;
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
}
/* Fallback dot pin when no price */
.st-map-pin--dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #f97316;
  border: 2.5px solid #fff;
}
.st-retailers-layout__list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
/* Cards in a responsive grid */
.st-retailers-list-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: .75rem;
  align-items: stretch;
}
.st-retailers-list-scroll .st-retailer-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
@media (max-width: 991px) {
  .st-retailers-layout__map {
    height: 240px;
  }
}
@media (max-width: 576px) {
  .st-retailers-list-scroll {
    grid-template-columns: 1fr;
  }
}

/* Retailer card */
.st-retailer-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .6rem;
}
.st-retailer-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .38rem .65rem;
  border-radius: 7px;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--st-border);
  color: var(--st-text);
  background: #fff;
  white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s;
  flex: 1;
}
.st-retailer-action-btn:hover {
  background: var(--st-orange-light);
  border-color: var(--st-orange);
  color: var(--st-orange-dark);
}
.st-retailer-action-btn.website-btn {
  background: var(--st-orange);
  color: #fff;
  border-color: var(--st-orange);
  flex: 1;
}
.st-retailer-action-btn.website-btn:hover { background: var(--st-orange-dark); }

.st-other-location-item {
  font-size: .83rem;
  padding: .75rem .5rem;
  border-top: 2px solid var(--st-border);
  background: #fafafa;
}
.st-other-location-item:last-child {
  border-bottom: 2px solid var(--st-border);
  border-radius: 0 0 var(--st-radius) var(--st-radius);
}

/* ── Loading overlay ──────────────────────────────────────── */
.st-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.93);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.st-loading-box {
  background: var(--st-dark-2);
  border: 1px solid var(--st-dark-3);
  border-radius: 18px;
  padding: 2.5rem 3rem;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  min-width: 320px;
  max-width: 460px;
  width: 90vw;
}
.st-loading-logo { display: block; margin: 0 auto; }
.st-loading-box #loadingTitle {
  color: #fff;
  font-family: var(--st-font-cond);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.st-loading-box #loadingVehicle,
.st-loading-box #loadingTire {
  color: var(--st-orange);
  font-weight: 700;
  font-size: 1rem;
}
.st-loading-box #loadingLocation,
.st-loading-box #loadingForVehicle {
  color: rgba(255,255,255,.45);
  font-size: .85rem;
}
/* Animated orange bar instead of Bootstrap spinner */
.st-spinner-wrap {
  margin-top: 1.5rem;
  height: 3px;
  background: var(--st-dark-3);
  border-radius: 3px;
  overflow: hidden;
}
.st-spinner-bar {
  height: 100%;
  width: 40%;
  background: var(--st-orange);
  border-radius: 3px;
  animation: st-bar-slide 1.2s ease-in-out infinite;
}
@keyframes st-bar-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ── Footer ───────────────────────────────────────────────── */
.st-footer {
  background: var(--st-dark);
  color: #fff;
  border-top: 1px solid var(--st-dark-3);
  margin-top: 0 !important;
}
.st-footer h6 { color: rgba(255,255,255,.5); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.st-footer p.small, .st-footer .text-muted { color: rgba(255,255,255,.4) !important; }
.st-footer__link { color: rgba(255,255,255,.65); text-decoration: none; transition: color .15s; }
.st-footer__link:hover { color: var(--st-orange); }
.st-footer .border-top { border-color: var(--st-dark-3) !important; }
.st-footer .small.text-muted { color: rgba(255,255,255,.3) !important; }

/* ── Pagination ───────────────────────────────────────────── */
.page-link { color: var(--st-orange); }
.page-item.active .page-link { background: var(--st-orange); border-color: var(--st-orange); color: #fff; }

/* ── Results section ──────────────────────────────────────── */
.st-results {
  padding-bottom: 3rem;
  background: #1e2d3d;
}

/* Results filter bar — matches the dark search bar above */
.st-results .d-flex.align-items-center.gap-2.mb-3 {
  background: var(--st-dark-2);
  border-radius: 10px;
  padding: .6rem .85rem;
}
.st-results .btn.st-filter-btn {
  background: var(--st-dark-3);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.75);
  font-weight: 600;
  font-size: .82rem;
}
.st-results .btn.st-filter-btn:hover,
.st-results .btn.st-filter-btn.st-filter-btn--active {
  background: rgba(255,105,15,.18) !important;
  border-color: var(--st-orange) !important;
  color: var(--st-orange) !important;
}
.st-results .text-muted.small,
.st-results #resultCount {
  color: rgba(255,255,255,.45) !important;
}
.st-results select.form-select {
  background-color: var(--st-dark-3);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.75);
  font-size: .83rem;
  font-weight: 600;
}
.st-results select.form-select option { background: var(--st-dark-2); color: #fff; }

/* ── Responsive tweaks ────────────────────────────────────── */
@media (max-width: 576px) {
  .st-search-bar__body { padding: .75rem; }
  .st-search-bar__pane { flex-direction: column; }
  .st-picker-btn, .st-search-bar__zip { width: 100%; }
  .st-search-btn { width: 100%; justify-content: center; display: flex; }
}

/* ── Cookie banner ─────────────────────────────────────────── */
.st-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--st-dark-2);
    border-top: 1px solid var(--st-dark-3);
    color: #f1f5f9;
    z-index: 9999;
    padding: .85rem 1rem;
    box-shadow: 0 -2px 12px rgba(0,0,0,.18);
}
.st-cookie-banner__inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.st-cookie-banner__text { font-size: .875rem; }
.st-cookie-banner__link { color: var(--st-orange); text-decoration: none; }
.st-cookie-banner__link:hover { text-decoration: underline; }
.st-cookie-banner__actions { display: flex; gap: .5rem; flex-shrink: 0; }

/* ── Recent searches (inside search box) ──────────────────── */
.st-recent-searches-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
    padding: .65rem 1rem .8rem;
    border-top: 1px solid rgba(255,255,255,.1);
}
.st-recent-searches__label {
    font-size: .7rem;
    font-weight: 700;
    color: rgba(255,255,255,.3);
    text-transform: uppercase;
    letter-spacing: .1em;
}
.st-recent-searches__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem;
}
.st-recent-searches__chip {
    font-size: .8rem;
    font-weight: 500;
    padding: .25rem .75rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: border-color .15s, background .15s, color .15s;
    white-space: nowrap;
}
.st-recent-searches__chip:hover {
    border-color: var(--st-orange);
    background: rgba(255,105,15,.15);
    color: var(--st-orange);
}

/* ══════════════════════════════════════════════════════════
   MARKETING LANDING PAGE
══════════════════════════════════════════════════════════ */

/* ── Shared marketing section base ─────────────────────── */
.st-marketing {
    font-family: var(--st-font);
}

/* ── Price shock section ────────────────────────────────── */
.st-price-shock {
    background: #0f172a;
    background: #252c3e;
    color: #f1f5f9;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
/* .st-price-shock::before removed — section uses solid bg color */
.st-price-shock > * { position: relative; z-index: 1; }
.st-price-shock__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
@media (max-width: 768px) {
    .st-price-shock__inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
.st-price-shock__eyebrow {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--st-orange);
    margin-bottom: .75rem;
}
.st-price-shock__headline {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #fff;
}
.st-price-shock__headline em {
    font-style: normal;
    color: var(--st-orange);
}
.st-price-shock__diff {
    display: inline-block;
    background: var(--st-orange);
    color: #fff;
    padding: .05em .25em;
    border-radius: 4px;
}
.st-price-shock__body {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.st-price-shock__body strong { color: #e2e8f0; }

/* Price boards visual */
.st-price-boards {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    padding-bottom: 1rem;
}
.st-price-board {
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
    position: relative;
    transition: transform .2s;
    min-width: 110px;
}
.st-price-board--high {
    opacity: .7;
    transform: translateY(10px) scale(.94);
}
.st-price-board--mid {
    transform: translateY(4px) scale(.97);
}
.st-price-board--best {
    border-color: var(--st-orange);
    background: #1a1000;
    transform: translateY(-8px) scale(1.06);
    box-shadow: 0 0 32px rgba(237,108,1,.25);
}
.st-price-board__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--st-orange);
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .2rem .6rem;
    border-radius: 20px;
    white-space: nowrap;
}
.st-price-board__price {
    font-family: var(--st-font-cond);
    font-size: 1.75rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: .35rem;
}
.st-price-board--best .st-price-board__price { color: var(--st-orange); }
.st-price-board__label {
    font-size: .72rem;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.st-price-board__sub {
    font-size: .75rem;
    font-weight: 600;
    color: #94a3b8;
    margin-top: .25rem;
}
.st-price-shock__tire-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 1.5rem;
    padding: .65rem 1.1rem;
    background: rgba(34,197,94,.1);
    border: 1px solid rgba(34,197,94,.3);
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 700;
    color: #86efac;
    letter-spacing: .01em;
}
.st-price-shock__tire-note .fa-circle-check {
    color: #22c55e;
    font-size: 1rem;
}

/* ── Frustration banner ─────────────────────────────────── */
.st-frustration-banner {
    background: var(--st-orange);
    padding: 1.1rem 0;
}
.st-frustration-banner__text {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0;
}
.st-frustration-banner__text em {
    font-style: normal;
    text-decoration: underline wavy rgba(255,255,255,.6);
}

/* ── How it works ───────────────────────────────────────── */
.st-how-it-works {
    background: #fff;
    padding: 5rem 0 4.5rem;
}
.st-how__eyebrow {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--st-orange);
    margin-bottom: .5rem;
}
.st-how__headline {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #0f172a;
}
.st-how__steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-top: 3rem;
}
.st-how__step {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 0 1.25rem;
    position: relative;
}
.st-how__connector {
    color: #cbd5e1;
    font-size: 1.3rem;
    padding-top: 2.5rem;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .st-how__steps { flex-direction: column; align-items: stretch; }
    .st-how__connector {
        padding: 0;
        margin: .5rem 0;
        display: flex;
        justify-content: center;
        transform: rotate(90deg);
    }
}
.st-how__step-num {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    background: var(--st-orange);
    color: #fff;
    font-family: var(--st-font-cond);
    font-weight: 900;
    font-size: .85rem;
    border-radius: 50%;
    margin-bottom: .75rem;
}
.st-how__step-icon {
    font-size: 2rem;
    color: var(--st-orange);
    margin-bottom: .75rem;
    line-height: 1;
}
.st-how__step-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .5rem;
}
.st-how__step-body {
    font-size: .875rem;
    color: #64748b;
    line-height: 1.6;
}

/* ── Bottom CTA ─────────────────────────────────────────── */
.st-bottom-cta {
    background: #0f172a;
    padding: 4.5rem 0;
}
.st-bottom-cta__headline {
    font-family: var(--st-font-cond);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: .75rem;
}
.st-bottom-cta__sub {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.st-bottom-cta__btn {
    background: var(--st-orange);
    color: #fff;
    border: none;
    padding: .9rem 2.5rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(237,108,1,.4);
}
.st-bottom-cta__btn:hover {
    background: var(--st-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(237,108,1,.5);
}

/* ── Inline search error ────────────────────────────────────── */
.st-search-error {
    margin: 0 1rem .75rem;
    padding: .55rem 1rem;
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.35);
    border-radius: 8px;
    color: #fca5a5;
    font-size: .85rem;
    font-weight: 600;
    text-align: center;
}
.st-search-error:not(.d-none) { display: block; }

/* ── Dark modals (vehicle + size selectors) ─────────────────── */
.st-modal-dark {
    background: var(--st-dark-2);
    border: 1px solid var(--st-dark-3);
    color: #f1f5f9;
}
.st-modal-dark__header {
    background: var(--st-dark-2);
    border-bottom-color: var(--st-dark-3) !important;
}
.st-modal-dark__title {
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    font-family: var(--st-font);
}
.st-modal-dark__sub {
    font-size: .82rem;
    color: rgba(255,255,255,.4);
}
.st-modal-dark__body {
    background: var(--st-dark-2);
}
/* Override Bootstrap's modal backdrop scroll container */
.st-modal-dark .modal-body { background: var(--st-dark-2); }

/* Dark pills inside dark modals */
.st-modal-dark .st-modal-pill,
.st-modal-dark .st-modal-pill--list {
    background: var(--st-dark-3);
    border-color: rgba(255,255,255,.1);
    color: rgba(255,255,255,.8);
    font-weight: 600;
}
.st-modal-dark .st-modal-pill:hover,
.st-modal-dark .st-modal-pill--list:hover {
    background: rgba(255,105,15,.18);
    border-color: var(--st-orange);
    color: var(--st-orange);
}
.st-modal-dark .st-modal-pill.selected,
.st-modal-dark .st-modal-pill--list.selected {
    background: var(--st-orange);
    border-color: var(--st-orange);
    color: #fff;
}
/* Scrollbar */
.st-modal-dark .modal-body::-webkit-scrollbar { width: 6px; }
.st-modal-dark .modal-body::-webkit-scrollbar-track { background: var(--st-dark-3); border-radius: 3px; }
.st-modal-dark .modal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 3px; }

/* ── Multi-size notice (orange callout) ─────────────────────── */
.st-size-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    padding: .85rem 1.1rem;
    background: var(--st-orange);
    border: none;
    border-radius: 10px;
    color: #fff;
    text-align: center;
}
.st-size-notice__icon {
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.st-size-notice__body {
    font-size: .875rem;
    color: #fff;
    flex: 1;
    line-height: 1.5;
}
.st-size-notice__body strong {
    color: #fff;
    font-weight: 800;
}
.st-size-notice__close {
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 .25rem;
    flex-shrink: 0;
    transition: color .15s;
}
.st-size-notice__close:hover { color: #fff; }
/* Remove old Bootstrap alert override since we no longer use it */
#multiSizeNotice .btn-close { position: static; }

/* ── Filter bar labels and count ────────────────────────────── */
.st-filter-bar__label {
    font-size: .8rem;
    font-weight: 700;
    color: rgba(255,255,255,.55);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.st-filter-bar__count {
    font-size: .82rem;
    font-weight: 700;
    color: rgba(255,255,255,.7);
}

/* ── Dark modal footer, links, cancel, checkboxes ───────────── */
.st-modal-dark__footer {
    background: var(--st-dark-2);
    border-top: 1px solid var(--st-dark-3) !important;
    padding: .85rem 1.25rem;
}
.st-modal-dark__link {
    background: none;
    border: none;
    padding: 0;
    font-size: .85rem;
    font-weight: 600;
    color: var(--st-orange);
    cursor: pointer;
    transition: color .15s;
}
.st-modal-dark__link:hover { color: var(--st-orange-dark); text-decoration: underline; }
.st-modal-dark__cancel {
    background: transparent;
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.65);
    font-weight: 600;
    transition: border-color .15s, color .15s;
}
.st-modal-dark__cancel:hover {
    border-color: rgba(255,255,255,.5);
    color: #fff;
    background: rgba(255,255,255,.06);
}

/* Dark checkbox labels (brand/size filter lists) */
.st-modal-dark .form-check-label {
    color: rgba(255,255,255,.8);
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
}
.st-modal-dark .form-check-input {
    background-color: var(--st-dark-3);
    border-color: rgba(255,255,255,.2);
    cursor: pointer;
}
.st-modal-dark .form-check-input:checked {
    background-color: var(--st-orange);
    border-color: var(--st-orange);
}
.st-modal-dark .form-check-input:focus {
    box-shadow: 0 0 0 .2rem rgba(255,105,15,.25);
}

/* ── Deal badges (tire card upper-right corner) ─────────────── */
.st-tire-card__img-wrap {
    position: relative;
}
.st-deal-badge {
    position: absolute;
    top: .55rem;
    right: .55rem;
    font-size: .7rem;
    font-weight: 800;
    padding: .25rem .55rem;
    border-radius: 20px;
    letter-spacing: .03em;
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
}
.st-deal-badge--good {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
}
.st-deal-badge--great {
    background: var(--st-orange);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255,105,15,.45);
}

.st-deal-badge--steal {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    box-shadow: 0 2px 10px rgba(124,58,237,.5);
    animation: st-steal-pulse 2s ease-in-out infinite;
}
@keyframes st-steal-pulse {
    0%, 100% { box-shadow: 0 2px 10px rgba(124,58,237,.5); }
    50%       { box-shadow: 0 2px 16px rgba(124,58,237,.85); }
}

/* ── Compact search strip (results mode) ────────────────────── */
.st-search-strip {
    background: var(--st-dark);
    border-bottom: 1px solid var(--st-dark-3);
    padding: .6rem 0;
    position: sticky;
    top: 0;
    z-index: 200;
    transition: box-shadow .2s;
}
.st-search-strip--stuck {
    box-shadow: 0 4px 20px rgba(0,0,0,.45);
    border-bottom-color: rgba(255,255,255,.07);
}
.st-search-strip__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.st-search-strip__current {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .95rem;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    min-width: 0;
}
.st-search-strip__icon {
    color: var(--st-orange);
    font-size: .9rem;
    flex-shrink: 0;
}
.st-search-strip__zip-icon {
    color: var(--st-orange);
    font-size: .8rem;
    flex-shrink: 0;
}
.st-search-strip__label {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.st-search-strip__sep {
    width: 1px;
    height: 1rem;
    background: rgba(255,255,255,.2);
    flex-shrink: 0;
}
.st-search-strip__zip {
    color: rgba(255,255,255,.6);
    font-size: .88rem;
    font-weight: 500;
}
.st-search-strip__change {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.75);
    border-radius: 8px;
    padding: .35rem .85rem;
    font-size: .82rem;
    font-weight: 700;
    font-family: var(--st-font);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s, border-color .15s, color .15s;
    letter-spacing: .02em;
}
.st-search-strip__change--icon {
    padding: .28rem .5rem;
    font-size: .85rem;
    margin-left: auto;   /* pushes to far right of the flex row */
    border-radius: 6px;
}
.st-search-strip__change:hover,
.st-search-strip__change--icon:hover {
    background: rgba(255,105,15,.15);
    border-color: var(--st-orange);
    color: var(--st-orange);
}
.st-search-strip__expand {
    padding-bottom: .75rem;
}

/* ── Retailers page header ──────────────────────────────────── */
.st-retailers-header {
    background: var(--st-dark);
    border-bottom: 1px solid var(--st-dark-3);
    padding: .75rem 0 1rem;
    position: sticky;
    top: 0;
    z-index: 90;
}
.st-retailers-header__breadcrumb {
    margin-bottom: .5rem;
}
.st-retailers-header__breadcrumb .breadcrumb-item,
.st-retailers-header__breadcrumb .breadcrumb-item.active {
    color: rgba(255,255,255,.35);
    font-size: .78rem;
}
.st-retailers-header__breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,.2);
}
.st-retailers-header__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.st-retailers-header__title {
    font-family: var(--st-font);
    font-weight: 600;
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    color: #fff;
    margin: 0 0 .15rem;
    letter-spacing: -.01em;
    line-height: 1.2;
}
.st-retailers-header__context {
    color: rgba(255,255,255,.8);
    font-size: .88rem;
    font-weight: 500;
    margin: 0 0 .2rem;
}
.st-retailers-header__sub {
    color: rgba(255,255,255,.45);
    font-size: .82rem;
    font-weight: 500;
    margin: 0;
}
.st-retailers-header__filters {
    display: flex;
    align-items: center;
    gap: .85rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}
@media (max-width: 480px) {
    .st-retailers-header__filters {
        gap: .5rem;
    }
    .st-retailers-header__filters .st-filter-bar__label {
        display: none;
    }
    .st-retailers-header__filters #qtySelect { width: 68px !important; }
    .st-retailers-header__filters #retailerSelect { min-width: 120px !important; }
    .st-retailers-header__filters #radiusSelect { width: 76px !important; }
}
.st-retailers-header__filters .st-filter-select {
    background-color: var(--st-dark-3);
    border-color: rgba(255,255,255,.12);
    color: rgba(255,255,255,.85);
    font-size: .83rem;
    font-weight: 600;
}
.st-retailers-header__filters .st-filter-select option {
    background: var(--st-dark-2);
    color: #fff;
}
.st-retailers-header__filters .st-filter-select:focus {
    border-color: var(--st-orange);
    box-shadow: 0 0 0 .2rem rgba(255,105,15,.2);
}

/* ── Custom centered select dropdowns ───────────────────────── */
.st-custom-select {
    position: relative;
}
.st-custom-select__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: 100%;
    background: var(--st-dark-3);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px;
    color: rgba(255,255,255,.85);
    font-size: .83rem;
    font-weight: 600;
    font-family: var(--st-font);
    padding: .3rem .65rem;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s;
}
.st-custom-select__btn:hover,
.st-custom-select--open .st-custom-select__btn {
    border-color: var(--st-orange);
    color: #fff;
}
.st-custom-select__arrow {
    font-size: .65rem;
    opacity: .6;
    transition: transform .2s;
    flex-shrink: 0;
}
.st-custom-select--open .st-custom-select__arrow {
    transform: rotate(180deg);
}
.st-custom-select__list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 100%;
    background: var(--st-dark-2);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: .3rem 0;
    list-style: none;
    margin: 0;
    z-index: 400;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
    max-height: 260px;
    overflow-y: auto;
}
.st-custom-select--open .st-custom-select__list {
    display: block;
}
.st-custom-select__item {
    padding: .4rem 1rem;
    font-size: .83rem;
    font-weight: 500;
    color: rgba(255,255,255,.75);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    transition: background .1s, color .1s;
}
.st-custom-select__item:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
}
.st-custom-select__item.selected {
    color: var(--st-orange);
    font-weight: 700;
}
.st-retailers-header__filters .st-filter-select:focus {
    border-color: var(--st-orange);
    box-shadow: 0 0 0 .2rem rgba(255,105,15,.2);
}
.st-tire-badge {
    background: rgba(255,105,15,.15);
    border: 1px solid rgba(255,105,15,.35);
    color: var(--st-orange);
    font-size: .75rem;
    font-weight: 700;
    padding: .25rem .65rem;
    border-radius: 20px;
    letter-spacing: .03em;
    white-space: nowrap;
}

/* ── Retailer cards redesign ────────────────────────────────── */
.st-retailer-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--st-border);
  box-shadow: 0 1px 4px rgba(15,23,42,.07);
  overflow: visible;
  transition: box-shadow .18s, border-color .18s;
}
.st-retailer-card:hover {
  box-shadow: 0 6px 20px rgba(15,23,42,.12);
  border-color: var(--st-orange);
}
.st-retailer-card__header {
  background: var(--st-dark);
  color: #fff;
  padding: .6rem 1rem;
  font-size: .9rem;
  font-weight: 800;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: .02em;
}
.st-retailer-card__address {
  font-size: .83rem;
  color: var(--st-muted);
  font-weight: 500;
}
.st-retailer-card__pricing {
  margin: .2rem 0 .5rem;
  padding: .55rem 1rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid var(--st-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.st-retailer-card__per-tire {
  font-size: 1rem;
  font-weight: 700;
  color: var(--st-dark);
}
.st-retailer-card__driveout-per-tire {
  font-size: .8rem;
  font-weight: 500;
  color: var(--st-muted);
  margin-top: .1rem;
}
.st-retailer-card__driveout-per-tire span {
  font-weight: 400;
}
.st-retailer-card__driveout {
  text-align: right;
}
.st-driveout-label {
  font-size: .75rem;
  color: var(--st-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
  display: block;
  margin-bottom: .1rem;
}
.st-driveout-price {
  font-family: var(--st-font-cond);
  font-weight: 500;
  font-size: 1.9rem;
  color: var(--st-orange);
  line-height: 1;
}
.st-pricing-details-link {
  display: block;
  font-size: .72rem;
  color: var(--st-muted);
  text-decoration: underline;
  text-decoration-style: dotted;
  margin-top: .25rem;
  cursor: pointer;
}
.st-pricing-details-link:hover { color: var(--st-orange); }

/* Pricing Details Modal */
.st-fee-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.st-fee-modal-overlay.is-open { display: flex; }
.st-fee-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  overflow: hidden;
}
.st-fee-modal__header {
  background: var(--st-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.1rem;
  font-weight: 700;
  font-size: 1rem;
}
.st-fee-modal__close {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.st-fee-modal__close:hover { color: #fff; }
.st-fee-modal__body { padding: 1.1rem; }
.st-fee-modal__tire {
  font-weight: 700;
  font-size: .95rem;
  color: var(--st-dark);
  margin-bottom: .1rem;
}
.st-fee-modal__subtitle {
  font-size: .8rem;
  color: var(--st-muted);
  margin-bottom: .85rem;
}
.st-fee-modal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.st-fee-modal__table th {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--st-muted);
  font-weight: 600;
  padding: .3rem .5rem;
  border-bottom: 1px solid var(--st-border);
  text-align: left;
}
.st-fee-modal__table th:not(:first-child),
.st-fee-modal__table td:not(:first-child) { text-align: right; }
.st-fee-modal__table tbody tr:not(:last-child) td { border-bottom: 1px solid var(--st-border); }
.st-fee-modal__table td { padding: .55rem .5rem; }
.st-fee-modal__table tfoot td {
  border-top: 2px solid var(--st-dark);
  padding-top: .6rem;
  font-size: 1rem;
}
.st-fee-modal__table tfoot strong { color: var(--st-orange); font-size: 1.1rem; }
.st-fee-modal__online-note {
  font-size: .78rem;
  color: var(--st-orange);
  font-weight: 600;
  margin-top: .75rem;
  margin-bottom: .1rem;
}
.st-fee-modal__note {
  font-size: .72rem;
  color: var(--st-muted);
  margin-top: .85rem;
  margin-bottom: 0;
}

/* Other locations toggle */
.st-other-locations {
  border-top: 1px solid var(--st-border);
  margin-top: .75rem;
  padding-top: .6rem;
  padding-bottom: .1rem;
}
.st-other-locations__toggle {
  background: none;
  border: none;
  padding: 0;
  font-size: .82rem;
  font-weight: 700;
  color: var(--st-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .35rem;
  transition: color .15s;
  font-family: var(--st-font);
}
.st-other-locations__toggle:hover { color: var(--st-orange); }
.st-other-locations__toggle i { font-size: .75rem; transition: transform .2s; }
.st-other-locations__toggle.open i { transform: rotate(180deg); }

/* Other location items (inside expanded panel) */
.st-other-location-item {
  font-size: .83rem;
  padding: .65rem 0 .5rem;
  border-top: 1px solid var(--st-border);
  background: transparent;
}
.st-other-location-item:last-child {
  border-bottom: none;
}

/* ── Hero trust badges ──────────────────────────────────────── */
.st-hero__trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
}
.st-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.8);
    font-size: .8rem;
    font-weight: 700;
    padding: .3rem .8rem;
    border-radius: 20px;
    letter-spacing: .02em;
}
.st-trust-badge .fa-circle-check { color: #4ade80; }
.st-trust-badge .fa-lock         { color: #93c5fd; }
.st-trust-badge .fa-ban          { color: #fca5a5; }

/* ── Online retailer note ───────────────────────────────────── */
.st-online-note {
    font-size: .78rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: .35rem .65rem;
    margin: .35rem 0 .6rem;
    display: flex;
    align-items: center;
    gap: .3rem;
}
.st-online-note .fa-info-circle { color: #94a3b8; }

/* ── Geo-detect ZIP toast ───────────────────────────────────── */
.st-geo-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: var(--st-dark-2);
    border: 1px solid var(--st-dark-3);
    color: rgba(255,255,255,.9);
    font-size: .85rem;
    font-weight: 600;
    padding: .6rem 1.2rem;
    border-radius: 30px;
    box-shadow: 0 6px 24px rgba(0,0,0,.3);
    z-index: 9998;
    opacity: 0;
    transition: opacity .3s, transform .3s;
    white-space: nowrap;
}
.st-geo-toast .fa-location-dot { color: var(--st-orange); }
.st-geo-toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Retailer card deal badges (in dark header) ─────────────── */
.st-retailer-deal-badge {
    font-size: .68rem;
    font-weight: 800;
    padding: .2rem .55rem;
    border-radius: 20px;
    letter-spacing: .02em;
    white-space: nowrap;
}
.st-retailer-deal-badge--good {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
}
.st-retailer-deal-badge--great {
    background: var(--st-orange);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255,105,15,.45);
}
.st-retailer-deal-badge--steal {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    box-shadow: 0 2px 10px rgba(124,58,237,.5);
    animation: st-steal-pulse 2s ease-in-out infinite;
}

/* ── Equal-height tire card columns ─────────────────────────── */
.tire-card-col {
  display: flex;
  flex-direction: column;
}
.tire-card-col .st-tire-card {
  flex: 1;
}

/* ── Location detail panel ──────────────────────────────────── */
.st-location-panel {
    margin-top: 1rem;
    background: #fff;
    border: 1px solid var(--st-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15,23,42,.1);
}
.st-location-panel__header {
    background: var(--st-dark);
    color: #fff;
    padding: .65rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .9rem;
}
.st-location-panel__close {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.8);
    border-radius: 6px;
    padding: .2rem .65rem;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--st-font);
    transition: background .15s;
}
.st-location-panel__close:hover { background: rgba(255,255,255,.2); }
.st-location-panel__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: .75rem;
    padding: 1rem;
}

/* ── Mini location cards ────────────────────────────────────── */
.st-loc-mini {
    background: #f8fafc;
    border: 1px solid var(--st-border);
    border-radius: 8px;
    padding: .7rem .85rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.st-loc-mini__addr {
    font-size: .83rem;
    font-weight: 600;
    color: var(--st-dark);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
}
.st-loc-mini__addr .fa-location-dot { color: var(--st-orange); }
.st-loc-mini__dist {
    font-size: .75rem;
    font-weight: 700;
    color: var(--st-muted);
    white-space: nowrap;
    flex-shrink: 0;
}
.st-loc-mini__price {
    font-size: .78rem;
    color: var(--st-muted);
}
.st-loc-mini__price strong { color: var(--st-orange); font-size: .9rem; }
.st-loc-mini__actions {
    display: flex;
    gap: .4rem;
    flex-wrap: nowrap;
    margin-top: .15rem;
}
.st-loc-mini__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    font-size: .75rem;
    font-weight: 600;
    padding: .35rem 0;
    flex: 1;
    min-width: 0;
    border-radius: 7px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    color: var(--st-dark);
    text-decoration: none;
    transition: border-color .12s, color .12s, background .12s;
}
.st-loc-mini__btn:hover {
    border-color: var(--st-orange);
    color: var(--st-orange);
    background: #fff7f0;
}

/* Other-locations toggle button active state */
.st-other-locations__toggle.active {
    color: var(--st-orange);
}

/* ── Inline mini location cards (injected into retailer grid) ── */
.st-loc-mini-card {
    background: #fff;
    border: 1px solid var(--st-border);
    border-radius: 12px;
    padding: .85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    box-shadow: 0 1px 4px rgba(15,23,42,.06);
    min-width: 0;
}
.st-loc-mini-card .st-loc-mini__addr {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--st-dark);
}
.st-loc-mini-card .st-loc-mini__addr .fa-location-dot { color: var(--st-orange); flex-shrink: 0; }
.st-loc-mini-card .st-loc-mini__dist {
    margin-left: auto;
    font-size: .75rem;
    font-weight: 700;
    color: var(--st-muted);
    white-space: nowrap;
    flex-shrink: 0;
}
.st-loc-mini-card .st-loc-mini__price {
    font-size: .78rem;
    color: var(--st-muted);
}
.st-loc-mini-card .st-loc-mini__price strong {
    color: var(--st-orange);
    font-size: .92rem;
}
.st-loc-mini-card .st-loc-mini__actions {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    margin-top: .1rem;
}

/* ── Mini card sizing overrides ─────────────────────────────── */
.st-loc-mini-card {
    min-width: 0;
    max-width: 100%;
}

/* "See all retailers" reset card spans full remaining row */
.st-loc-reset-card {
    grid-column: 1 / -1;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: .5rem 0 0;
    display: flex;
    align-items: center;
}
.st-loc-reset-btn {
    background: none;
    border: 1.5px solid var(--st-border);
    border-radius: 8px;
    padding: .45rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    font-family: var(--st-font);
    transition: border-color .15s, color .15s;
}
.st-loc-reset-btn:hover {
    border-color: var(--st-orange);
    color: var(--st-orange);
}

/* ── Social buttons in footer ───────────────────────────────── */
.st-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.65);
    font-size: 1rem;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}
.st-social-btn:hover {
    background: var(--st-orange);
    border-color: var(--st-orange);
    color: #fff;
}

/* ── Community & Mission banners ────────────────────────────── */
.st-banners {
    padding: 2.5rem 0 3rem;
    border-top: 1px solid var(--st-border);
    background: var(--st-gray-bg, #f8fafc);
}
.st-banner-card {
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    height: 100%;
    min-height: 200px;
    position: relative;
}
.st-banner-card--light {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}
.st-banner-card--dark {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,.06);
}
.st-banner-card__content {
    flex: 1;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .6rem;
    min-width: 0;
}
.st-banner-card__title {
    font-family: var(--st-font);
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.3;
    margin: 0;
}
.st-banner-card--light .st-banner-card__title { color: var(--st-dark); }
.st-banner-card--dark  .st-banner-card__title { color: #f1f5f9; }

.st-banner-card__body {
    font-size: .85rem;
    line-height: 1.6;
    margin: 0;
}
.st-banner-card--light .st-banner-card__body { color: #475569; }
.st-banner-card--dark  .st-banner-card__body { color: rgba(241,245,249,.7); }

.st-banner-card__btn {
    display: inline-flex;
    align-items: center;
    margin-top: .25rem;
    background: var(--st-orange);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    padding: .45rem 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    align-self: flex-start;
    transition: background .15s;
}
.st-banner-card__btn:hover { background: #ea6500; color: #fff; }

.st-banner-card__image {
    flex-shrink: 0;
    width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
}
.st-banner-card__image img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}
.st-banner-card--dark .st-banner-card__image img {
    object-fit: cover;
    max-height: none;
    height: 100%;
    width: 100%;
    border-radius: 8px;
}

@media (max-width: 480px) {
    .st-banner-card { flex-direction: column; }
    .st-banner-card__image { width: 100%; height: 140px; padding: 0; }
    .st-banner-card--dark .st-banner-card__image img { border-radius: 0; }
}


/* ── Popular Vehicles & Sizes section (homepage) ─────────────────────────── */
.st-popular-links {
    padding: 3rem 0 4rem;
    border-top: 1px solid var(--st-border);
    margin-top: 2rem;
}
.st-popular-links__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}
.st-popular-group__title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--st-muted);
    margin-bottom: 1rem;
}
.st-popular-group__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: .35rem .75rem;
}
.st-popular-group__list--sizes {
    grid-template-columns: 1fr 1fr;
}
.st-popular-link {
    font-size: .85rem;
    color: var(--st-text);
    text-decoration: none;
    padding: .25rem .5rem;
    border-radius: 5px;
    display: block;
    transition: background .12s, color .12s;
    overflow: hidden;
    text-overflow: ellipsis;
}
.st-popular-link:hover {
    background: var(--st-orange-light);
    color: var(--st-orange-dark);
}
.st-popular-link--size {
    font-family: monospace;
    font-size: .88rem;
}
@media (max-width: 768px) {
    .st-popular-links__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .st-popular-group__list {
        grid-template-columns: 1fr;
    }
    .st-popular-group__list--sizes {
        grid-template-columns: 1fr 1fr;
    }
}
@media (min-width: 480px) and (max-width: 768px) {
    .st-popular-group__list {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Filter bar — two-row mobile layout ──────────────────────────────────── */
.st-filter-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    background: var(--st-dark-2);
    border-radius: 10px;
    padding: .6rem .85rem;
    position: sticky;
    top: var(--st-filter-top, 52px);
    z-index: 199;
    transition: border-radius .15s, box-shadow .2s, padding .15s;
}
.st-filter-bar--stuck {
    border-radius: 0 0 10px 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.st-filter-bar__row {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.st-filter-bar__row--sort {
    flex-shrink: 0;
    flex-wrap: nowrap !important;
    white-space: nowrap;
}
@media (max-width: 480px) {
    .st-filter-bar {
        flex-wrap: nowrap;
        align-items: center;
    }
    .st-filter-bar__row--sort {
        margin-left: auto;
    }
}

/* ── Tire card image — less tall on mobile ───────────────────────────────── */
@media (max-width: 575px) {
    .st-tire-card__img-wrap {
        height: 120px;
    }
    .st-tire-card__img {
        max-height: 100px;
    }
}

/* Breadcrumb on light background (results page) */
.st-results .st-retailers-header__breadcrumb .breadcrumb-item,
.st-results .st-retailers-header__breadcrumb .breadcrumb-item.active {
    color: var(--st-muted);
}
.st-results .st-retailers-header__breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--st-border);
}
