/* ==========================================================================
   LCH Shop UX (Phase 3): Vehicle Selector Bar, Quick-Strip, Active Filter Chips,
   Faceted Sidebar, Mobile Filter Drawer & Clean Product Image Framing
   ========================================================================== */

/* ── Persistent "Shop Your Vehicle" Bar ── */
.lch-vehicle-bar {
  position: relative;
  background: var(--color-surface, #151513);
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-lg, 10px);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.lch-vehicle-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #CC2200 0%, #CC2200 33.3%, #F07800 33.3%, #F07800 66.6%, #FFCC00 66.6%, #FFCC00 100%);
}
.lch-vehicle-bar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.lch-vehicle-bar-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display, sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent, #CBB89A);
  white-space: nowrap;
}
.lch-vehicle-select-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 220px;
}
.lch-vehicle-select {
  background: var(--color-bg, #0e0e0d);
  color: var(--color-text, #f2efe9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 0.55rem 2rem 0.55rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 230px;
  max-width: 100%;
  cursor: pointer;
}
.lch-vehicle-select:focus {
  outline: none;
  border-color: var(--color-accent, #CBB89A);
}
.lch-vehicle-univ-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--color-text-muted, rgba(232, 230, 225, 0.7));
  cursor: pointer;
  user-select: none;
}
.lch-vehicle-univ-toggle input[type="checkbox"] {
  accent-color: var(--color-accent, #CBB89A);
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.lch-vehicle-clear-btn {
  font-size: 0.78rem;
  color: var(--color-text-muted, rgba(232, 230, 225, 0.65));
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: auto;
}
.lch-vehicle-clear-btn:hover {
  color: var(--color-accent, #CBB89A);
}

/* ── Vehicle Category Quick-Strip (shows categorized counts for the selected truck) ── */
.lch-vehicle-dept-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.lch-dept-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text, #f2efe9);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.lch-dept-pill:hover {
  border-color: var(--color-accent, #CBB89A);
  color: var(--color-accent, #CBB89A);
}
.lch-dept-pill.is-active {
  background: var(--color-accent, #CBB89A);
  border-color: var(--color-accent, #CBB89A);
  color: #111110;
  font-weight: 700;
}
.lch-dept-pill.has-thumb {
  padding: 0.25rem 0.72rem 0.25rem 0.3rem;
}
.lch-dept-pill-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #1a1a18;
  border: 1px solid rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}
.lch-dept-pill.is-active .lch-dept-pill-thumb {
  border-color: rgba(17, 17, 16, 0.35);
}
.lch-dept-pill-count {
  font-size: 0.7rem;
  opacity: 0.72;
}
.lch-dept-pill.is-active .lch-dept-pill-count {
  opacity: 0.85;
}

/* ── Active Filter Chips Bar ── */
.lch-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.lch-active-filters-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted, rgba(232, 230, 225, 0.6));
  margin-right: 0.25rem;
}
.lch-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(203, 184, 154, 0.14);
  border: 1px solid rgba(203, 184, 154, 0.45);
  color: var(--color-accent, #CBB89A);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}
.lch-filter-chip:hover {
  background: rgba(203, 184, 154, 0.24);
  color: #fff;
}
.lch-filter-chip-x {
  font-weight: 700;
  line-height: 1;
}
.lch-filter-clear-all {
  font-size: 0.78rem;
  color: var(--color-text-muted, rgba(232, 230, 225, 0.7));
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 0.35rem;
}
.lch-filter-clear-all:hover {
  color: #fff;
}

/* ── Faceted Sidebar Groups ── */
.lch-facet-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.lch-facet-group:last-child {
  border-bottom: none;
}
.lch-facet-group summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display, sans-serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted, rgba(232, 230, 225, 0.7));
  margin-bottom: 0.55rem;
  user-select: none;
}
.lch-facet-group summary::-webkit-details-marker {
  display: none;
}
.lch-facet-group summary::after {
  content: "+";
  font-size: 0.9rem;
  color: var(--color-accent, #CBB89A);
}
.lch-facet-group[open] summary::after {
  content: "−";
}
.lch-facet-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lch-facet-list li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.lch-facet-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0.45rem;
  border-radius: 5px;
  font-size: 0.82rem;
  color: var(--color-text-muted, rgba(232, 230, 225, 0.78));
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}
.lch-facet-list a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-accent, #CBB89A);
}
.lch-facet-list a.is-active {
  background: rgba(203, 184, 154, 0.14);
  color: var(--color-accent, #CBB89A);
  font-weight: 600;
}
.lch-facet-count {
  font-size: 0.7rem;
  color: var(--color-text-faint, rgba(232, 230, 225, 0.45));
  margin-left: 0.4rem;
}
.lch-facet-sublabel {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(232, 230, 225, 0.4);
  padding: 0.5rem 0.45rem 0.2rem;
}

/* ── Equal-Width 3-Column Product Grid & Clean Toolbar ── */
.lch-shop-main {
  min-width: 0;
}
.lch-shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
.lch-shop-toolbar .woocommerce-notices-wrapper {
  width: 100%;
  margin: 0;
}
.lch-shop-toolbar .woocommerce-notices-wrapper:empty {
  display: none;
}
.lch-shop-toolbar .woocommerce-result-count,
.lch-shop-toolbar .woocommerce-ordering {
  float: none !important;
  margin: 0 !important;
}
.lch-shop-page ul.products,
.lch-shop-page .woocommerce ul.products,
.lch-shop-main ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: var(--space-6, 1.5rem) !important;
  margin: 0 !important;
  padding: 0 !important;
}
.lch-shop-main ul.products > li.product {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  grid-column: auto !important;
  grid-row: auto !important;
}
@media (max-width: 1024px) {
  .lch-shop-main ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 600px) {
  .lch-shop-main ul.products {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* ── Product Image Framing (softens white vendor backgrounds on dark cards) ── */
.lch-shop-page .lch-product-img-wrap {
  background: #1a1a18;
  padding: 8px;
}
.lch-shop-page .lch-product-img {
  border-radius: 4px;
}

/* ── Mobile Filter Toggle ── */
.lch-mobile-filter-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
  background: var(--color-surface, #151513);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--color-text, #f2efe9);
  font-family: var(--font-display, sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 900px) {
  .lch-mobile-filter-toggle {
    display: flex;
  }
  .lch-shop-sidebar {
    position: static !important;
    display: none;
    background: var(--color-surface, #151513);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.25rem;
  }
  .lch-shop-sidebar.is-open {
    display: block;
  }
  .lch-vehicle-select {
    width: 100%;
    min-width: 0;
  }
  .lch-vehicle-clear-btn {
    margin-left: 0;
  }
}

/* ── Single Product Breadcrumb Spacing & Persistent Left Shop Sidebar ── */
.lch-product-breadcrumb {
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-text-muted, rgba(232, 230, 225, 0.7));
}
.lch-product-breadcrumb a {
  color: var(--color-text-muted, rgba(232, 230, 225, 0.72));
  text-decoration: none;
  transition: color 0.15s ease;
}
.lch-product-breadcrumb a:hover {
  color: var(--color-accent, #CBB89A);
}
.lch-single-product-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2.25rem;
  align-items: start;
}
.lch-single-product-main {
  min-width: 0;
}
.lch-single-product-main .related.products ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.lch-single-product-main .related.products ul.products > li.product {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  float: none !important;
}
@media (max-width: 1024px) {
  .lch-single-product-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .lch-single-product .lch-mobile-filter-toggle {
    display: flex;
  }
  .lch-single-product .lch-shop-sidebar {
    position: static !important;
    display: none;
    background: var(--color-surface, #151513);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
  }
  .lch-single-product .lch-shop-sidebar.is-open {
    display: block;
  }
}
@media (max-width: 640px) {
  .lch-single-product-main .related.products ul.products {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Sub-Departments Nested List in Left Sidebar ── */
.lch-facet-sublist {
  list-style: none;
  margin: 0.25rem 0 0.45rem 0.65rem;
  padding: 0 0 0 0.65rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.lch-facet-sublist li a {
  font-size: 0.78rem;
  padding: 0.26rem 0.45rem;
  color: var(--color-text-muted, rgba(232, 230, 225, 0.72));
}
.lch-facet-sublist li a.is-active {
  color: var(--color-accent, #CBB89A);
  background: rgba(203, 184, 154, 0.12);
}

/* ── Unified Single-Product Meta (SKU, Department > Sub-Department, Vehicle, Brand) ── */
.lch-product-meta-clean {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.84rem;
  line-height: 1.5;
}
.lch-product-meta-clean .lch-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}
.lch-product-meta-clean .lch-meta-label {
  color: var(--color-text-muted, rgba(232, 230, 225, 0.6));
  font-weight: 600;
}
.lch-product-meta-clean a {
  color: var(--color-text, #f2efe9);
  text-decoration: none;
  border-bottom: 1px solid rgba(203, 184, 154, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.lch-product-meta-clean a:hover {
  color: var(--color-accent, #CBB89A);
  border-bottom-color: var(--color-accent, #CBB89A);
}
.lch-product-meta-clean .lch-meta-sep {
  opacity: 0.55;
  margin: 0 0.1rem;
}

/* ── Compact Shop Header & Tighter Above-the-Fold Spacing ── */
.lch-shop-page {
  padding-top: 1.5rem !important;
}
.lch-shop-breadcrumb {
  margin-bottom: 0.45rem;
}
.lch-shop-header--compact {
  margin-bottom: 0.9rem !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}
.lch-shop-header--compact .section-title {
  font-size: clamp(1.35rem, 2vw, 1.85rem) !important;
  line-height: 1.15 !important;
  margin: 0 0 0.25rem !important;
}
.lch-shop-header--compact .section-sub {
  margin: 0.25rem 0 0 !important;
  font-size: 0.88rem;
}
.lch-shop-page .lch-vehicle-bar {
  padding: 0.8rem 1rem;
  margin-bottom: 1.1rem;
}
.lch-shop-page .lch-vehicle-dept-strip {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
}

/* ── 4-Across Vehicle Category Hub (shown on vehicle landing pages before picking a department) ── */
.lch-vhub {
  margin-top: 0.25rem;
}
.lch-vhub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}
@media (max-width: 1024px) {
  .lch-vhub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .lch-vhub-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.lch-vhub-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface, #151513);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text, #f2efe9);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.lch-vhub-card:hover {
  border-color: var(--color-accent, #CBB89A);
  transform: translateY(-2px);
}
.lch-vhub-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #1e1e1b;
  overflow: hidden;
}
.lch-vhub-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease;
}
.lch-vhub-card:hover .lch-vhub-photo img {
  transform: scale(1.04);
}
.lch-vhub-count {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(14, 14, 13, 0.88);
  color: var(--color-accent, #CBB89A);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(203, 184, 154, 0.35);
}
.lch-vhub-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.lch-vhub-name {
  margin: 0;
  font-family: var(--font-display, sans-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text, #f2efe9);
  line-height: 1.25;
}
.lch-vhub-subs {
  font-size: 0.78rem;
  color: var(--color-text-muted, rgba(232, 230, 225, 0.62));
  line-height: 1.38;
}
.lch-vhub-cta {
  margin-top: auto;
  padding-top: 0.55rem;
  font-family: var(--font-display, sans-serif);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-accent, #CBB89A);
}
.lch-vhub-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
}
.lch-vhub-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.15rem;
  border-radius: 6px;
  border: 1px solid rgba(203, 184, 154, 0.45);
  color: var(--color-text, #f2efe9);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.lch-vhub-all-btn:hover {
  border-color: var(--color-accent, #CBB89A);
  color: var(--color-accent, #CBB89A);
}




