/* ═══════════════════════════════════════════════════
   LOCOMOTO HEADER SEARCH — styles v1.0
   Extracted 1:1 from header_mockup_v3.html
   Uses --ac / --ac-dim / --ac-glow / --ac-border tokens
   (set by CE colour control on .lhs-wrap, fallback to orange)
═══════════════════════════════════════════════════ */

/* ── Token fallbacks (overridden by active-bike accent) ── */
.lhs-wrap {
  --ac:        #7a8fa8;
  --ac-dim:    rgba(122,143,168,0.12);
  --ac-glow:   rgba(122,143,168,0.22);
  --ac-border: rgba(122,143,168,0.22);
  --navy:      #0a1622;
  --navy-dark: #061020;
  --white:     #ffffff;
  --off-white: #dde4ed;
  --muted:     #7a8fa8;
  --border:    rgba(255,255,255,0.08);
  /* Radius — match the canonical scale defined in header-controls.css.
     Kept here so the search widget renders correctly even if loaded
     standalone (no header-controls). Values must match. */
  --r-sm:      8px;
  --r-md:     14px;
  --r-lg:     18px;
  --r-xl:     28px;
  --r-pill:   999px;
  --shadow:    0 8px 40px rgba(0,0,0,0.5);
  width: 100%;
  position: relative;
  z-index: 600;
}

/* ═══════════════════════════════════════════════
   SEARCH BOX (shared between desktop + mobile bar)
═══════════════════════════════════════════════ */
.lhs-search-box {
  display: flex;
  align-items: center;
  height: 48px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.11);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lhs-search-box:focus-within {
  border-color: var(--ac);
  box-shadow: 0 0 0 3px var(--ac-dim);
}
.lhs-search-icon {
  margin-left: 12px;
  flex-shrink: 0;
  color: var(--muted);
}
.lhs-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-family: inherit;
  font-size: 13.5px;
  padding: 0 12px;
  height: 42px;
}
.lhs-input::placeholder { color: var(--muted); }
.lhs-btn {
  background: var(--ac);
  border: none;
  color: #fff;
  height: 48px;
  width: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: filter 0.15s, background 0.15s;
  cursor: pointer;
  font-family: inherit;
}
.lhs-btn:hover { filter: brightness(1.1); }
.lhs-clear-btn { background: rgba(255,255,255,0.08); }
.lhs-clear-btn:hover { background: rgba(255,255,255,0.14); }

/* ── Hint below the search box ── */
.lhs-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  padding-left: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lhs-hint span {
  color: var(--ac);
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 0 5px;
  border: 1px solid var(--ac-border);
  border-radius: 4px;
}
/* Compact bike indicator shown in hint area when bike is set */
.lhs-hint-bike-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--off-white);
  letter-spacing: 0.02em;
}
.lhs-hint-bike-year {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ac);
  margin-left: 2px;
}
/* Hide hint entirely when the overlay is open */
.lhs-wrap.open .lhs-hint { display: none; }

/* ═══════════════════════════════════════════════
   SEARCH BACKDROP
═══════════════════════════════════════════════ */
#lhsBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(4,10,18,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 90;
}
/* backdrop-filter only when open — avoids a permanent full-screen compositor layer */
#lhsBackdrop.open {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* ═══════════════════════════════════════════════
   SEARCH OVERLAY
═══════════════════════════════════════════════ */
.lhs-overlay {
  display: none;
  position: fixed;
  top:    var(--lhs-top,    110px);
  left:   var(--lhs-left,   0px);
  width:  var(--lhs-width,  100%);
  height: var(--lhs-height, calc(100vh - 118px));
  background: rgba(10,22,34,0.96);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--ac-border);
  border-top: 2px solid var(--ac);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  z-index: 650;
  overflow: hidden;
  flex-direction: column;
}
.lhs-wrap.open .lhs-overlay {
  display: flex;
  flex-direction: column;
  animation: lhsIn 0.22s ease;
}
@keyframes lhsIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
@keyframes lhsWrenchWiggle {
  0%,100% { transform: rotate(0deg); }
  20%     { transform: rotate(-28deg); }
  40%     { transform: rotate(22deg); }
  60%     { transform: rotate(-16deg); }
  80%     { transform: rotate(10deg); }
}
.lhs-wrap.open .lhs-bike-icon {
  animation: lhsWrenchWiggle 0.7s ease 3s 2;
  display: inline-block;
}

/* ── Bike context banner ── */
.lhs-bike-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  gap: 12px;
  background: linear-gradient(90deg, var(--ac-dim) 0%, rgba(10,22,34,0) 100%);
  border-bottom: 1px solid var(--ac-border);
  flex-shrink: 0;
}
.lhs-bike-banner-left  { display: flex; align-items: center; gap: 10px; color: var(--off-white); flex-wrap: wrap; }
.lhs-bike-banner-left svg { color: var(--ac); flex-shrink: 0; }
.lhs-bike-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.lhs-bike-name { font-size: 14px; font-weight: 800; color: var(--white); }
.lhs-bike-year { font-size: 12px; font-weight: 500; color: var(--ac); margin-left: 4px; }
.lhs-bike-banner-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.lhs-bike-change {
  font-size: 12px;
  font-weight: 700;
  color: var(--ac);
  cursor: pointer;
  padding: 4px 10px;
  border: 1px solid var(--ac-border);
  border-radius: var(--r-pill);
  transition: background 0.18s;
}
.lhs-bike-change:hover { background: var(--ac-dim); }
.lhs-bike-sep { color: var(--border); }
.lhs-esc-label { font-size: 11px; color: var(--muted); }
kbd {
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--off-white);
}

/* ── Status / head bar ── */
.lhs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

/* ── Body (side + main) ── */
.lhs-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.lhs-body > * { min-height: 0; }

/* ── Sidebar ── */
.lhs-side {
  background: rgba(0,0,0,0.2);
  border-right: 1px solid var(--border);
  padding: 14px 16px 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.lhs-side-scroll {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 8px;
}
.lhs-side-foot {
  border-top: 1px solid var(--border);
  padding: 10px 0;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}
.lhs-side-foot strong { color: var(--white); font-weight: 700; }

/* ── Main area ── */
.lhs-main {
  padding: 14px 18px;
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.28) rgba(255,255,255,0.05);
}
.lhs-main::-webkit-scrollbar       { width: 6px; }
.lhs-main::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 3px; }
.lhs-main::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.28); border-radius: 3px; }
.lhs-main::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.45); }
.lhs-side { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.18) rgba(255,255,255,0.04); }
.lhs-side::-webkit-scrollbar       { width: 4px; }
.lhs-side::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 2px; }
.lhs-side::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 2px; }
.lhs-side::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.35); }

/* ── Section titles ── */
.lhs-section-title {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2px 0 9px;
}
.lhs-section-title.with-icon {
  display: flex;
  align-items: center;
  gap: 7px;
}
.lhs-section-title.with-icon svg { color: var(--ac); }

/* ── Search suggestion chips ── */
.lhs-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.lhs-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--off-white);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.lhs-chip:hover { border-color: var(--ac); color: var(--ac); background: var(--ac-dim); }
.lhs-chip.hot   { border-color: var(--ac-border); color: var(--ac); }
.lhs-chip svg   { opacity: 0.7; }

/* ── Brand / category filter items ── */
.lhs-filter-group { margin-bottom: 14px; }
.lhs-filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  font-size: 12.5px;
  color: var(--off-white);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lhs-filter-item:hover { background: rgba(255,255,255,0.05); }
.lhs-filter-item.active { background: var(--ac-dim); color: var(--ac); }
.lhs-filter-item .count { font-size: 10.5px; color: var(--muted); font-weight: 700; }
.lhs-filter-item.active .count { color: var(--ac); }

/* ── Product grid ── */
.lhs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.lhs-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  isolation: isolate;
  text-decoration: none;
}
.lhs-card:hover {
  border-color: var(--ac);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}
.lhs-img {
  aspect-ratio: 1/1;
  background: #ffffff;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md) var(--r-md) 0 0;
  transform: translateZ(0);
}
.lhs-prod-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  z-index: 1;
}
.lhs-stock {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  z-index: 2;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.lhs-stock.in  { background: rgba(34,197,94,0.55);  color: #166534; border: 1px solid rgba(34,197,94,0.70); }
.lhs-stock.low { background: rgba(251,146,60,0.55); color: #7c2d12; border: 1px solid rgba(251,146,60,0.70); }
.lhs-stock.out { background: rgba(239,68,68,0.55);  color: #7f1d1d; border: 1px solid rgba(239,68,68,0.70); }
.lhs-brand-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ac);
  background: #ffffff;
  border: 1px solid var(--ac);
  padding: 5px 11px;
  border-radius: var(--r-pill);
  z-index: 2;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

/* ── Card hover action overlay ── */
.lhs-card-actions {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(8,18,30,0.78);
  opacity: 0;
  transition: opacity 0.18s ease;
  border-radius: var(--r-md) var(--r-md) 0 0;
  overflow: hidden;
  padding: 16px;
  z-index: 4;
}
/* backdrop-filter only when visible — prevents compositor layers on all idle cards */
.lhs-card:hover .lhs-card-actions {
  opacity: 1;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* In-cart: always show overlay */
.lhs-card.lhs-is-in-cart .lhs-card-actions {
  opacity: 1;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
/* Dark border covers the white bleed at image/meta junction */
.lhs-card.lhs-is-in-cart .lhs-img { border: 3px solid var(--navy-dark); }
/* In Cart button: outlined green pill, no fill */
.lhs-card.lhs-is-in-cart .lhs-atc {
  background: transparent;
  border: 2px solid #16a34a;
  color: #16a34a;
}
.lhs-card.lhs-is-in-cart .lhs-atc .lhs-atc-rem-lbl { display: none; }
/* Hover: swap to solid red "Remove from Cart" */
.lhs-card.lhs-is-in-cart:hover .lhs-atc { background: #ef4444; border-color: #ef4444; color: #fff; filter: none; }
.lhs-card.lhs-is-in-cart:hover .lhs-atc .lhs-atc-add-lbl { display: none; }
.lhs-card.lhs-is-in-cart:hover .lhs-atc .lhs-atc-rem-lbl { display: inline; }
/* WL + Hide only visible on hover */
.lhs-card.lhs-is-in-cart .lhs-wl-btn,
.lhs-card.lhs-is-in-cart .lhs-hide-btn { opacity: 0; pointer-events: none; transition: opacity 0.18s; }
.lhs-card.lhs-is-in-cart:hover .lhs-wl-btn,
.lhs-card.lhs-is-in-cart:hover .lhs-hide-btn { opacity: 1; pointer-events: auto; }
.lhs-atc {
  width: 100%;
  background: var(--ac);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.lhs-atc:hover         { background: #16a34a; filter: none; }
.lhs-atc:disabled      { background: rgba(255,255,255,0.15); cursor: not-allowed; }
.lhs-atc.backorder     { background: rgba(255,255,255,0.12); color: var(--off-white); border: 1px solid rgba(255,255,255,0.25); }
.lhs-atc.backorder:hover { background: rgba(255,255,255,0.18); filter: none; }

/* In-cart pill — legacy styles kept for compatibility */
.lhs-in-cart-pill {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  background: rgba(255,255,255,0.92);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 6px rgba(0,0,0,0.18);
  transition: background 0.15s;
}
.lhs-ic-lbl { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #16a34a; }
.lhs-ic-rem { display: none; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #ef4444; }
.lhs-in-cart-pill:hover .lhs-ic-lbl { display: none; }
.lhs-in-cart-pill:hover .lhs-ic-rem { display: inline; }

/* White overlay on image for in-cart products — legacy */
.lhs-img-incart::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8,18,30,0.78);
  pointer-events: none;
  z-index: 3;
  border-radius: inherit;
}
.lhs-wl-btn {
  width: 100%;
  background: rgba(255,255,255,0.08);
  color: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.lhs-wl-btn:hover   { border-color: #ec4899; color: #ec4899; }
.lhs-wl-btn.added   { color: #ec4899; border-color: #ec4899; background: rgba(236,72,153,0.1); }
.lhs-notify-btn {
  width: 100%;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: border-color 0.18s, color 0.18s;
}
.lhs-notify-btn:hover { border-color: var(--ac); color: var(--ac); border-style: solid; }
.lhs-notify-btn.set   { color: var(--ac); border-color: var(--ac); border-style: solid; background: var(--ac-dim); }

/* Suppress mega menu hover while search is open */
body.lhs-search-open .ets_mm_megamenu,
body.lhs-search-open .ets_mm_megamenu * { pointer-events: none !important; }

/* Wishlist heart badge — top-right corner, normal view only */
.lhs-wl-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  width: 22px;
  height: 22px;
  background: transparent;
  border: 1.5px solid #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
/* Hide when overlay is visible — hover and in-cart both show WL state in card-actions */
.lhs-card:hover .lhs-wl-badge,
.lhs-card.lhs-is-in-cart .lhs-wl-badge { opacity: 0; }

/* ── Product meta ── */
.lhs-meta { padding: 10px 12px 10px; display: flex; flex-direction: column; gap: 3px; }
.lhs-name { font-size: 13px; font-weight: 700; color: var(--white); line-height: 1.3; }
.lhs-sub  { font-size: 11px; color: var(--muted); }
.lhs-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 4px;
}
.lhs-price      { font-size: 22px; font-weight: 900; color: var(--ac); letter-spacing: -0.03em; line-height: 1; }
.lhs-price .was { font-size: 11.5px; font-weight: 500; color: var(--muted); text-decoration: line-through; margin-left: 7px; }
.lhs-fit    { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: #22c55e; font-weight: 700; letter-spacing: 0.03em; min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lhs-no-fit { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: #f87171; font-weight: 700; letter-spacing: 0.03em; min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lhs-fit-dot         { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.lhs-fit-dot-yes     { background: #22c55e; }
.lhs-fit-dot-no      { background: #ef4444; }
.lhs-fit-row    { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 3px; overflow: hidden; }
.lhs-also-fits  { font-size: 10px; color: var(--muted); text-align: right; flex-shrink: 0; max-width: 50%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lhs-also-fits span { color: rgba(255,255,255,0.6); font-weight: 600; }

/* ── Hide product button (in card hover overlay) ── */
.lhs-hide-btn {
  width: 100%;
  background: transparent;
  color: var(--muted);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: var(--r-md);
  padding: 7px 14px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: border-color 0.18s, color 0.18s;
}
.lhs-hide-btn:hover { border-color: rgba(239,68,68,0.6); color: #f87171; border-style: solid; }
.lhs-hide-btn.is-unhide { border-color: rgba(34,197,94,0.4); color: #4ade80; border-style: solid; }
.lhs-hide-btn.is-unhide:hover { border-color: #4ade80; }

/* ── Hidden card — dimmed overlay ── */
.lhs-card.is-hidden { opacity: 0.45; }
.lhs-card.is-hidden:hover { opacity: 0.75; border-color: rgba(255,255,255,0.2); transform: none; box-shadow: none; }

/* ── Incompat add-to-cart / add-to-wishlist confirmation modal ── */
.lhs-confirm-backdrop {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(6,16,32,0.86);
  z-index: 10;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
}
.lhs-confirm-backdrop.open { display: flex; }
.lhs-confirm-modal {
  background: var(--navy);
  border: 1px solid var(--ac-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 28px 24px 22px;
  max-width: 300px;
  width: calc(100% - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.lhs-confirm-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(239,68,68,0.12);
  border: 1.5px solid rgba(239,68,68,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f87171;
  flex-shrink: 0;
}
.lhs-confirm-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}
.lhs-confirm-msg {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}
.lhs-confirm-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}
.lhs-confirm-ok {
  width: 100%;
  background: var(--ac);
  border: none;
  border-radius: var(--r-md, 14px);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
  transition: filter 0.15s;
}
.lhs-confirm-ok:hover { filter: brightness(1.12); }
.lhs-confirm-cancel {
  width: 100%;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.13);
  border-radius: var(--r-md, 14px);
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.lhs-confirm-cancel:hover { border-color: rgba(255,255,255,0.28); color: var(--white); }

/* ── Show-hidden toggle pill in head bar ── */
.lhs-hidden-toggle {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  padding: 3px 9px;
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: var(--r-pill);
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.lhs-hidden-toggle:hover { color: var(--off-white); border-color: rgba(255,255,255,0.4); border-style: solid; }
.lhs-hidden-toggle.active { color: var(--ac); border-color: var(--ac-border); border-style: solid; }

/* ── Highlighted search tokens ── */
.lhs-token { color: var(--ac); font-weight: 800; }

/* ── Refinement suggestions ── */
.lhs-refinements { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.lhs-ref {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--off-white);
  padding: 4px 10px;
  border: 1px dashed var(--border);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lhs-ref:hover { border-style: solid; border-color: var(--ac); color: var(--ac); }
.lhs-ref strong { color: var(--ac); font-weight: 800; }

/* ── Query pills (active search tokens) ── */
.lhs-query-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.lhs-query-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--white);
  background: var(--ac-dim);
  border: 1px solid var(--ac-border);
  padding: 3px 10px;
  border-radius: var(--r-pill);
}
.lhs-query-pill .x     { color: var(--muted); cursor: pointer; font-weight: 800; }
.lhs-query-pill .x:hover { color: var(--ac); }

/* ── Empty state ── */
.lhs-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  display: grid;
  place-items: center;
  gap: 10px;
}
.lhs-empty h4 { font-size: 15px; font-weight: 800; color: var(--white); }

/* ── Counter pop animation ── */
@keyframes lhsCountPop {
  0%   { transform: scale(1.4); color: var(--ac); }
  100% { transform: scale(1);   color: inherit; }
}
.lhs-count-anim { display: inline-block; animation: lhsCountPop 0.35s ease forwards; }

/* ── "Did you mean?" ── */
.lhs-did-you-mean {
  padding: 12px 18px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}
.lhs-did-you-mean a {
  color: var(--ac);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Recently Viewed row ── */
.lhs-recent-viewed  { margin-bottom: 16px; }
.lhs-rv-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.lhs-rv-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
  text-decoration: none;
}
.lhs-rv-card:hover  { border-color: var(--ac); }
.lhs-rv-img {
  aspect-ratio: 4/3;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.lhs-rv-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lhs-rv-meta  { padding: 6px 8px 8px; }
.lhs-rv-name  { font-size: 11px; font-weight: 700; color: var(--white); line-height: 1.3; margin-bottom: 3px; }
.lhs-rv-price { font-size: 12px; font-weight: 800; color: var(--ac); }

/* ── Bike-toggle link ── */
#lhsBikeToggle {
  color: var(--ac);
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
}

/* ── Infinite-scroll sentinel + loader ── */
.lhs-sentinel { height: 2px; }
.lhs-loader {
  display: flex;
  justify-content: center;
  padding: 16px 0 8px;
}
.lhs-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--ac);
  border-radius: 50%;
  animation: lhsSpin 0.7s linear infinite;
}
@keyframes lhsSpin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════
   MOBILE BAR (hidden on desktop)
═══════════════════════════════════════════════ */
.lhs-mob-bar {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  background: var(--navy-dark);
  flex-shrink: 0;
}
.lhs-mob-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--off-white);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  font-family: inherit;
}
.lhs-mob-back:hover { border-color: var(--ac); color: var(--ac); background: var(--ac-dim); }
.lhs-mob-input-wrap { flex: 1; }
.lhs-mob-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  padding: 0 8px;
  min-width: 0;
  width: 100%;
  height: 42px;
}
.lhs-mob-input::placeholder { color: var(--muted); }

@keyframes lhsMobIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════
   MOBILE BREAKPOINT
═══════════════════════════════════════════════ */
@media (max-width: 1023px) {

  /* Full-screen modal — must sit above Elementor sticky header (z-index ≤ 9999) */
  .lhs-overlay {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: var(--lhs-height, 100dvh) !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 99999 !important;
  }
  .lhs-wrap.open .lhs-overlay {
    display: flex !important;
    flex-direction: column;
    animation: lhsMobIn 0.26s cubic-bezier(0.4,0,0.2,1);
  }
  /* Hide backdrop on mobile — full-screen overlay covers everything */
  #lhsBackdrop { display: none !important; }

  /* Remove blur on mobile — full-screen opaque overlay doesn't need it */
  .lhs-overlay { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

  /* Show mobile bar */
  .lhs-mob-bar { display: flex; }

  /* Compact bike banner on mobile */
  .lhs-bike-sep,
  .lhs-esc-label,
  .lhs-bike-banner-right kbd { display: none; }
  .lhs-bike-label   { display: none; }
  .lhs-bike-banner  {
    flex-shrink: 0;
    padding: 6px 14px;
    gap: 8px;
  }
  .lhs-bike-name    { font-size: 12.5px; }
  .lhs-bike-year    { font-size: 11px; }
  .lhs-bike-change  { font-size: 11px; padding: 3px 8px; }

  /* Compact status bar */
  .lhs-head {
    flex-shrink: 0;
    padding: 5px 14px;
    font-size: 10px;
  }

  /* Body fills space, stacks vertically */
  .lhs-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    max-height: none;
    grid-template-columns: 1fr;
  }

  /* Sidebar → horizontal chip rail */
  .lhs-side {
    flex-direction: column;
    overflow: visible;
    padding: 14px 14px 10px;
    gap: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: none;
    flex-shrink: 0;
    background: none;
  }
  .lhs-side-scroll {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
    padding-bottom: 0;
  }
  .lhs-side-foot { display: none; }
  .lhs-side .lhs-section-title { display: flex; margin: 12px 0 8px; }
  .lhs-side .lhs-section-title:first-child { margin-top: 0; }
  .lhs-main .lhs-section-title { display: none; }
  .lhs-side .lhs-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 4px;
    margin-right: -14px;
    padding-right: 14px;
  }
  .lhs-side .lhs-chips::-webkit-scrollbar { display: none; }
  .lhs-filter-group {
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin-bottom: 0;
    flex-shrink: 0;
    align-items: center;
  }
  .lhs-filter-item {
    white-space: nowrap;
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    flex-shrink: 0;
  }
  .lhs-filter-item .count { display: none; }

  /* Header search box → bare icon tap target on mobile (no background, no border — matches mockup) */
  .lhs-search-box {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    justify-content: center;
    cursor: pointer;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }
  .lhs-search-icon { margin-left: 0; color: var(--off-white); }
  .lhs-input,
  .lhs-submit-btn,
  .lhs-clear-btn { display: none !important; }

  /* Overlay mob bar input wrap shares lhs-search-box class — undo the 48px collapse */
  .lhs-overlay .lhs-mob-input-wrap {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 1 !important;
    justify-content: flex-start;
    cursor: text;
  }

  /* Hide keyboard hint */
  .lhs-hint { display: none !important; }

  /* Main area scrolls */
  .lhs-main { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }

  /* 1 product per row — gives cards room for the tap-to-reveal actions */
  .lhs-grid { grid-template-columns: 1fr; }

  /* Touch: tap-to-reveal card actions with pop animation */
  .lhs-card {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  }
  .lhs-card-actions {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
  }
  .lhs-card.lhs-tapped {
    transform: scale(1.04);
    box-shadow: 0 8px 28px rgba(0,0,0,0.55);
    z-index: 10;
    position: relative;
  }
  .lhs-card.lhs-tapped .lhs-card-actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  /* Recently viewed 2-col */
  .lhs-rv-row { grid-template-columns: repeat(2, 1fr); }

  /* Larger, thumb-friendly product cards on mobile */
  .lhs-meta { padding: 10px 10px 12px; gap: 5px; }
  .lhs-name { font-size: 13.5px; }
  .lhs-price { font-size: 20px; letter-spacing: -0.03em; }
  .lhs-price .was { font-size: 12px; }
  .lhs-fit, .lhs-no-fit { font-size: 11px; }
  .lhs-price-row { margin-top: 8px; }

  /* Also fits stacks below fits on mobile */
  .lhs-fit-row   { flex-direction: column; align-items: flex-start; gap: 2px; }
  .lhs-also-fits { text-align: left; max-width: 100%; }

  /* Bigger image labels */
  .lhs-stock { font-size: 11px; padding: 4px 9px; top: 8px; left: 8px; }
  .lhs-brand-tag { font-size: 10.5px; padding: 4px 8px; bottom: 8px; right: 8px; }

  /* Bigger pills — finger-friendly tap targets */
  .lhs-chip {
    padding: 10px 15px;
    font-size: 13px;
    min-height: 42px;
  }
}

/* ═══════════════════════════════════════════════
   MOBILE HEADER — collapse search to icon-only tap target
   The full search box is hidden; clicking the icon opens
   the existing search overlay (.lhs-overlay).
═══════════════════════════════════════════════ */
@media (max-width: 1023px) {
  .lhs-search-box {
    width: 44px !important;
    height: 44px !important;
    justify-content: center !important;
    border-radius: var(--r-sm) !important;
  }
  .lhs-search-icon {
    margin-left: 0 !important;
  }
  .lhs-input,
  .lhs-clear-btn,
  .lhs-submit-btn,
  .lhs-hint {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   DEFEAT CE-SAVED --ac OVERRIDE ON .lhs-wrap (2026-05-17 refactor)
   ───────────────────────────────────────────────────────────────
   The CE editor used to bake a per-widget --ac value into the CE
   template stylesheet (e.g.
     .elementor-1170101 .elementor-element-XXXX .lhs-wrap { --ac: ... }
   ). Higher specificity than our html.bike-X rule, so it wins.
   This rule clears --ac on .lhs-wrap so it inherits from html.bike-X
   via the natural cascade. Permanent fix: open the CE editor and
   re-save the LOCO Header Search widget — CE will regenerate the
   stylesheet without the override.
   ═══════════════════════════════════════════════════════════════ */
.lhs-wrap { --ac: revert !important; --ac-dim: revert !important; --ac-glow: revert !important; --ac-border: revert !important; }
