/* ═══ ARCHIVE — Hero Card ═══ */
/* ═══════════════════════════════════════════════
   ARCHIVE — Hero Card (new)
   ═══════════════════════════════════════════════ */

.mfh-arc-hero-wrap  { padding: 28px 0 0; }
.mfh-arc-toolbar-wrap { padding: 20px 0 0; }
.mfh-arc-grid-wrap  { padding: 20px 0 60px; }

/* ── FF-Wheels style cinematic hero card ── */
.mfh-arc-hero {
  position: relative;
  border-radius: var(--mf-radius, 16px);
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
}

/* Background image layer */
.mfh-arc-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 6s ease;
  z-index: 0;
}
.mfh-arc-hero:hover .mfh-arc-hero__bg { transform: scale(1.03); }

/* Dark gradient overlay */
.mfh-arc-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.25) 0%,
    rgba(0,0,0,.5) 50%,
    rgba(0,0,0,.88) 100%
  );
}

/* Top bar — absolutely positioned so it doesn't push content */
.mfh-arc-hero__topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
}
.mfh-arc-hero__back {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.85); font-size: 13px; font-weight: 600;
  text-decoration: none; background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.15);
  padding: 6px 14px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.mfh-arc-hero__back:hover { background: rgba(255,255,255,.22); color: #fff; }
.mfh-arc-hero__back-placeholder { display: block; }
.mfh-arc-hero__count-badge {
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.9); font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; letter-spacing: .02em;
}

/* Bottom content block */
.mfh-arc-hero__content {
  position: relative; z-index: 2;
  padding: 24px 28px 28px;
  text-align: left;
  margin-top: auto;   /* push to bottom of flex column */
}
.mfh-arc-hero__title {
  font-size: clamp(22px, 3vw, 36px); font-weight: 800;
  letter-spacing: -.025em; color: #fff; margin: 0 0 6px;
  text-align: left;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.mfh-arc-hero__desc {
  font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.72);
  margin: 0 0 14px;
}

/* Trust pills */
.mfh-arc-hero__trust {
  display: flex; gap: 8px; flex-wrap: wrap;
  align-items: center;
}
.mfh-arc-trust-pill {
  display: inline-block;
  background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.9); font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; letter-spacing: .02em;
  white-space: nowrap;
}

/* Bottom bar: pills left — filter right (single line) */
.mfh-arc-hero__bottom-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.mfh-arc-hero__bottom-bar .mfh-arc-hero__trust {
  flex: 0 0 100%;
}
.mfh-arc-hero__bottom-bar .mfh-arc-vf {
  flex: 1 1 100%;
  min-width: 0;
}

/* ── Custom Searchable Dropdown (mfh-csd) ── */
.mfh-csd {
  position: relative;
  min-width: 140px;
}
.mfh-csd.is-disabled { opacity: .45; pointer-events: none; }

/* Trigger button — larger, light bg, dark text */
.mfh-csd__trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 11px 14px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,255,255,.6);
  border-radius: 10px;
  color: #111; font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer; text-align: left;
  transition: background .18s, border-color .18s;
  white-space: nowrap;
}
.mfh-csd__trigger:hover,
.mfh-csd.is-open .mfh-csd__trigger {
  background: #fff;
  border-color: rgba(179,144,71,.6);
}
.mfh-csd.is-disabled .mfh-csd__trigger {
  background: rgba(255,255,255,.18);
  color: rgba(255,255,255,.75);
  border-color: rgba(255,255,255,.25);
  cursor: not-allowed;
}
.mfh-csd.is-disabled .mfh-csd__chev { color: rgba(255,255,255,.5); }
.mfh-csd__label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.mfh-csd__chev {
  width: 15px; height: 15px; flex-shrink: 0; opacity: .5; color: #333;
  transition: transform .2s;
}
.mfh-csd.is-open .mfh-csd__chev { transform: rotate(180deg); }

/* Dropdown panel — light */
.mfh-csd__panel {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 9999;
  min-width: 220px; max-width: 300px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.14);
  overflow: hidden;
  animation: csdDrop .15s ease;
}
.mfh-csd.is-open .mfh-csd__panel { display: block; }
@keyframes csdDrop {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Search input — light */
.mfh-csd__search-wrap {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 13px;
  border-bottom: 1px solid #f0f0f0;
}
.mfh-csd__search-wrap svg { width: 14px; height: 14px; flex-shrink: 0; opacity: .35; color: #333; }
.mfh-csd__search {
  flex: 1; background: none; border: none; outline: none;
  color: #111; font-size: 13px; font-family: inherit;
  padding: 0;
}
.mfh-csd__search::placeholder { color: #aaa; }

/* Options list — light */
.mfh-csd__list {
  list-style: none; margin: 0; padding: 6px 0;
  max-height: 230px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: #ddd transparent;
}
.mfh-csd__opt {
  padding: 9px 14px; font-size: 13px; color: #222;
  cursor: pointer; transition: background .1s;
}
.mfh-csd__opt:hover { background: #f5f5f5; }
.mfh-csd__opt.is-selected { color: #8a6a1f; font-weight: 700; background: #fdf7eb; }
.mfh-csd__opt.is-hidden { display: none; }



.mfh-arc-vf__row {
  display: grid;
  align-items: end;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.mfh-arc-vf__field {
  display: flex; flex-direction: column;
  min-width: 0;
}
.mfh-arc-vf__field--action {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.mfh-arc-vf__label {
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,.6);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px;
}
.mfh-arc-vf__wrap { position: relative; }
.mfh-arc-vf__sel {
  width: 100%; padding: 10px 34px 10px 13px; appearance: none;
  border-radius: 9px; border: 1.5px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  color: #fff; font-size: 13px; font-weight: 500; font-family: inherit;
  transition: border-color .2s, background .2s; cursor: pointer;
}
.mfh-arc-vf__sel:disabled { opacity: .45; cursor: not-allowed; }
.mfh-arc-vf__sel:focus { border-color: var(--mf-gold); outline: none; background: rgba(255,255,255,.15); }
.mfh-arc-vf__sel option { background: var(--mf-surface); color: var(--mf-text); }

.mfh-arc-vf__chev {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; pointer-events: none;
  stroke: rgba(255,255,255,.6);
}
.mfh-arc-vf__submit {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 11px 28px; border-radius: 10px; border: none;
  background: var(--mf-gold); color: #fff;
  font-size: 14px; font-weight: 700; font-family: inherit;
  transition: filter .2s, transform .15s; white-space: nowrap;
  min-width: max-content;
}
.mfh-arc-vf__submit:hover { filter: brightness(1.1); transform: translateY(-1px); }

.mfh-arc-vf__clear {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 11px 16px; border-radius: 10px;
  background: rgba(255,255,255,.6); border: 1.5px solid rgba(0,0,0,.08);
  color: #444; font-size: 13px; font-weight: 600; font-family: inherit;
  text-decoration: none; white-space: nowrap;
  transition: background .18s, color .18s;
}
.mfh-arc-vf__clear:hover { background: rgba(239,68,68,.12); color: #dc2626; border-color: rgba(239,68,68,.3); }

.mfh-arc-vf__pills {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px;
}
.mfh-arc-vf__pill {
  background: rgba(179,144,71,.25); border: 1px solid rgba(179,144,71,.4);
  color: #fff; font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
}

@media (max-width: 768px) {
  .mfh-arc-hero { min-height: 380px; }
  .mfh-arc-hero__topbar { padding: 14px 20px; }
  .mfh-arc-hero__content { padding: 20px 20px 24px; }
  .mfh-arc-hero__title { font-size: 22px; }

  .mfh-arc-vf__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .mfh-arc-vf__field {
    min-width: 0;
    overflow: hidden;
  }

  /* Shrink the CSD triggers to fit 3-col */
  .mfh-arc-vf__row .mfh-csd {
    min-width: 0;
  }
  .mfh-arc-vf__row .mfh-csd__trigger {
    padding: 10px 8px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mfh-arc-vf__row .mfh-csd__chev {
    flex-shrink: 0;
    width: 12px; height: 12px;
  }

  /* Action field (Suchen + Reset) spans full width below the 3 selects */
  .mfh-arc-vf__field--action {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 4px;
  }
  .mfh-arc-vf__submit {
    flex: 1;
    justify-content: center;
    padding: 12px 16px;
  }
  .mfh-arc-vf__clear {
    flex: 0 0 auto;
  }
}


/* ═══ ARCHIVE — Category Slider ═══ */
/* ═══════════════════════════════════════════════
   ARCHIVE — Category Slider
   ═══════════════════════════════════════════════ */

.mfh-cat-slider-wrap {
  padding: 20px 0 14px;
  position: relative;
}
/* Right-edge fade — overlays the end of the scroll track */
.mfh-cat-slider-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  /* account for .mf-container padding so the fade sits at the visual edge */
  width: clamp(60px, 8vw, 120px);
  pointer-events: none;
  background: linear-gradient(to right, color-mix(in srgb, var(--mf-bg) 0%, transparent), var(--mf-bg));
  z-index: 2;
}

/* The scrollable track */
.mfh-cat-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;        /* Firefox */
}
.mfh-cat-slider.has-open {
  /* no overflow change needed — popup is position:fixed */
}
.mfh-cat-slider::-webkit-scrollbar { display: none; }

/* Separator between active category group and rest */
.mfh-cat-slider__sep {
  display: flex;
  align-items: center;
  padding: 0 2px;
  flex-shrink: 0;
}
.mfh-cat-slider__sep::before {
  content: '';
  display: block;
  width: 1.5px;
  height: 28px;
  background: var(--mf-line, rgba(255,255,255,.15));
  border-radius: 1px;
}

/* Individual category card — horizontal pill */
.mfh-cat-slider .mfh-cat-card {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  width: auto;
  padding: 14px 16px 14px 12px;
  background: var(--mf-surface);
  border: 1.5px solid var(--mf-line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--mf-text);
  scroll-snap-align: start;
  white-space: nowrap;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative;
}
.mfh-cat-slider .mfh-cat-card:hover {
  border-color: var(--mf-gold);
  transform: translateY(-1px);
}
.mfh-cat-slider .mfh-cat-card.is-active {
  border-color: var(--mf-gold);
  background: rgba(179,144,71,.08);
}

/* Thumbnail circle — small, left side */
.mfh-cat-slider .mfh-cat-card__img {
  width: 36px; height: 36px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--mf-bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid var(--mf-line);
  transition: border-color .2s;
}
.mfh-cat-slider .mfh-cat-card:hover .mfh-cat-card__img,
.mfh-cat-slider .mfh-cat-card.is-active .mfh-cat-card__img {
  border-color: var(--mf-gold);
}
.mfh-cat-card__img--empty { color: var(--mf-muted); }
.mfh-cat-card__img--empty svg { opacity: .45; width: 16px; height: 16px; }

/* Label — single line, no wrap */
.mfh-cat-slider .mfh-cat-card__label {
  font-size: 13px; font-weight: 600;
  color: var(--mf-text);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -.01em;
}
.mfh-cat-slider .mfh-cat-card.is-active .mfh-cat-card__label { color: var(--mf-gold); }

/* Count pill */
.mfh-cat-slider .mfh-cat-card__count {
  font-size: 10px; font-weight: 700;
  color: var(--mf-muted);
  background: var(--mf-bg);
  border: 1px solid var(--mf-line);
  border-radius: 999px;
  padding: 1px 7px;
  line-height: 1.7;
  flex-shrink: 0;
}
.mfh-cat-slider .mfh-cat-card.is-active .mfh-cat-card__count {
  background: rgba(179,144,71,.15);
  border-color: rgba(179,144,71,.3);
  color: var(--mf-gold);
}

/* Badge pill (A1/A2/ABE) */
.mfh-cat-card__badge {
  font-size: 9px; font-weight: 800; letter-spacing: 0.04em;
  color: var(--mf-gold);
  background: rgba(179,144,71,.12);
  border: 1px solid rgba(179,144,71,.25);
  border-radius: 4px;
  padding: 1px 5px;
  line-height: 1.6;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* Chevron for expandable cards */
.mfh-cat-card__chevron {
  flex-shrink: 0;
  color: var(--mf-muted);
  transition: transform .2s;
  display: flex; align-items: center;
}
.mfh-cat-card__chevron .material-symbols-rounded { font-size: 16px; }
.mfh-cat-card-wrap.is-open .mfh-cat-card__chevron { transform: rotate(180deg); }
.mfh-cat-card-wrap.is-open .mfh-cat-card {
  border-color: var(--mf-gold);
  background: rgba(179,144,71,.08);
}

/* Card wrapper for sub-category support */
.mfh-cat-card-wrap {
  position: relative;
  flex-shrink: 0;
}

/* ── Sub-category popup (position:fixed via JS) ── */
.mfh-cat-sub {
  display: none;
  position: fixed;
  z-index: 9999;
  background: var(--mf-surface);
  border: 1.5px solid var(--mf-gold);
  border-radius: 12px;
  padding: 6px;
  min-width: 200px;
  box-shadow: 0 12px 32px rgba(0,0,0,.35), 0 0 0 1px rgba(179,144,71,.1);
  animation: mfCatSubIn .15s ease;
}
.mfh-cat-card-wrap.is-open .mfh-cat-sub { display: flex; flex-direction: column; gap: 2px; }

/* Arrow */
.mfh-cat-sub::before {
  content: '';
  position: absolute;
  top: -6px;
  left: var(--arrow-left, 50%);
  transform: translateX(-50%) rotate(45deg);
  width: 11px; height: 11px;
  background: var(--mf-surface);
  border-top: 1.5px solid var(--mf-gold);
  border-left: 1.5px solid var(--mf-gold);
}

@keyframes mfCatSubIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sub links — styled like mini category cards */
.mfh-cat-sub__link {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--mf-text);
  text-decoration: none;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.mfh-cat-sub__link:hover {
  background: rgba(179,144,71,.08);
  border-color: rgba(179,144,71,.2);
}
.mfh-cat-sub__link.is-active {
  background: rgba(179,144,71,.12);
  border-color: rgba(179,144,71,.3);
  color: var(--mf-gold);
}
.mfh-cat-sub__link small {
  font-size: 10px; font-weight: 700;
  color: var(--mf-muted);
  background: var(--mf-bg);
  border: 1px solid var(--mf-line);
  border-radius: 999px;
  padding: 1px 7px;
  line-height: 1.7;
}
.mfh-cat-sub__link:hover small {
  border-color: rgba(179,144,71,.3);
  color: var(--mf-gold);
}

/* "Alle [Kategorie]" — top link with separator */
.mfh-cat-sub__link--all {
  font-weight: 700;
  color: var(--mf-gold);
  border-bottom: 1px solid var(--mf-line);
  border-radius: 8px 8px 0 0;
  margin-bottom: 2px;
}
.mfh-cat-sub__link--all:hover {
  background: rgba(179,144,71,.12);
}

/* Mobile */
@media (max-width: 480px) {
  .mfh-cat-slider .mfh-cat-card { padding: 12px 14px 12px 10px; }
  .mfh-cat-slider .mfh-cat-card__img { width: 30px; height: 30px; }
  .mfh-cat-slider .mfh-cat-card__label { font-size: 12px; }
  .mfh-cat-sub { min-width: 170px; }
}

/* Mobile: ensure sub-popups stay within viewport */
@media (max-width: 768px) {
  .mfh-cat-sub {
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-width: calc(100vw - 16px) !important;
    max-height: 60vh;
    overflow-y: auto;
  }
  .mfh-cat-sub::before {
    /* Keep arrow but don't let it break layout */
    left: var(--arrow-left, 30px) !important;
  }
}


/* Fix empty first slot in WC grid */
ul.products::before,
ul.products::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; content: none !important; }

/* Kill ALL WC float/clear on product items — Grid handles layout */
ul.products li.product,
.woocommerce ul.products li.product {
  float: none !important;
  clear: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}



/* ═══ ARCHIVE — Vehicle Filter Box ═══ */
/* ═══════════════════════════════════════════════
   ARCHIVE HERO — Vehicle Filter Box
═══════════════════════════════════════════════ */

/* Hero layout: text left, filter right */
.mfh-arc-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 960px) {
  .mfh-arc-hero { grid-template-columns: 1fr; }
}

.mfh-arc-hero__filter-box {
  background: var(--mf-bg);
  border: 1px solid var(--mf-line);
  border-radius: 14px;
  padding: 24px;
}
.mfh-vf-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--mf-text);
  margin-bottom: 16px;
}
.mfh-vf-header svg { color: var(--mf-gold); flex-shrink: 0; }

.mfh-vf-form {}
.mfh-vf-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}
@media (max-width: 1200px) {
  .mfh-vf-row { grid-template-columns: 1fr 1fr; }
  .mfh-vf-field--action { grid-column: span 2; }
}
@media (max-width: 600px) {
  .mfh-vf-row { grid-template-columns: 1fr; }
  .mfh-vf-field--action { grid-column: auto; }
}

.mfh-vf-label {
  display: block; font-size: 11px; font-weight: 700; color: var(--mf-muted);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px;
}
.mfh-vf-select-wrap { position: relative; }
.mfh-vf-select {
  width: 100%; padding: 11px 36px 11px 14px; appearance: none;
  border-radius: 9px; border: 1.5px solid var(--mf-line);
  background: var(--mf-surface); color: var(--mf-text);
  font-size: 13px; font-weight: 500; font-family: inherit;
  transition: border-color .2s; cursor: pointer;
}
.mfh-vf-select:focus { border-color: var(--mf-gold); outline: none; }
.mfh-vf-select:disabled { opacity: .45; cursor: not-allowed; }
.mfh-vf-chevron {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--mf-muted); pointer-events: none;
}

.mfh-vf-field--action {
  display: flex; flex-direction: column; gap: 6px;
}
.mfh-vf-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 20px; border-radius: 9px;
  background: var(--mf-text); color: var(--mf-bg);
  font-size: 13px; font-weight: 700; font-family: inherit;
  border: none; cursor: pointer; white-space: nowrap;
  transition: opacity .2s;
}
.mfh-vf-submit:hover { opacity: .82; }
.mfh-vf-clear {
  font-size: 12px; color: var(--mf-muted); text-decoration: none; text-align: center;
  transition: color .2s;
}
.mfh-vf-clear:hover { color: #ef4444; }

/* Active filter pills below the form */
.mfh-vf-active-pills {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--mf-line);
}
.mfh-vf-pill {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  background: rgba(179,144,71,.12); color: var(--mf-gold);
  border: 1px solid rgba(179,144,71,.3);
}



/* ═══ TOOLBAR — Sort + Filter ═══ */
/* ═══════════════════════════════════════════════
   TOOLBAR — Modern sort + attribute filter
═══════════════════════════════════════════════ */

.mfh-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  /* no background, no border — just bare layout */
  padding: 4px 0;
}

/* Left: result count */
.mfh-shop-toolbar__count {
  font-size: 13px; font-weight: 600; color: var(--mf-muted);
  white-space: nowrap;
}
.mfh-shop-toolbar__count .woocommerce-result-count {
  margin: 0; font-size: inherit; color: inherit;
}

/* Middle: attribute filter pills */
.mfh-shop-toolbar__attrfilters {
  flex: 1 1 auto;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.mfh-attr-filter {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px;
}
.mfh-attr-filter__label {
  font-size: 11px; font-weight: 700; color: var(--mf-muted);
  text-transform: uppercase; letter-spacing: .05em;
  white-space: nowrap; padding-right: 2px;
}
.mfh-attr-filter__pills { display: flex; flex-wrap: wrap; gap: 4px; }
.mfh-attr-pill {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  border: 1.5px solid var(--mf-line);
  color: var(--mf-muted); text-decoration: none;
  transition: border-color .18s, color .18s, background .18s;
  white-space: nowrap;
}
.mfh-attr-pill:hover { border-color: var(--mf-text); color: var(--mf-text); }
.mfh-attr-pill.is-active {
  border-color: var(--mf-gold); color: var(--mf-gold);
  background: rgba(179,144,71,.08);
}

/* Left group: AI btn + search + active tags */
.mfh-shop-toolbar__left {
  display: flex; align-items: center; gap: 8px;
  flex: 1; min-width: 0;
}
.mfh-shop-toolbar__active-filters {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.mfh-active-filter-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(179,144,71,.1); border: 1px solid rgba(179,144,71,.3);
  color: var(--mf-gold); font-size: 11px; font-weight: 700;
  text-decoration: none; transition: background .18s;
}
.mfh-active-filter-tag:hover { background: rgba(179,144,71,.2); }
.mfh-active-filter-tag span { font-size: 14px; line-height: 1; opacity: .7; }

/* Right: Sort Popover */
.mfh-sort-popover { position: relative; }
.mfh-sort-popover__trigger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  border: 1.5px solid var(--mf-line); background: var(--mf-surface);
  color: var(--mf-muted); cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.mfh-sort-popover__trigger:hover,
.mfh-sort-popover.is-open .mfh-sort-popover__trigger {
  border-color: var(--mf-gold); color: var(--mf-gold); background: rgba(179,144,71,.06);
}
.mfh-sort-popover__trigger .material-symbols-rounded { font-size: 20px; }
.mfh-sort-popover__panel {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  z-index: 50; min-width: 220px;
  background: var(--mf-surface); border: 1px solid var(--mf-line);
  border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 8px 0; animation: mfhFadeIn .15s ease;
}
.mfh-sort-popover.is-open .mfh-sort-popover__panel { display: block; }
.mfh-sort-popover__title {
  padding: 8px 16px 6px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--mf-muted);
}
.mfh-sort-popover__list { list-style: none; margin: 0; padding: 0; }
.mfh-sort-popover__opt {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; font-size: 13px; font-weight: 500;
  color: var(--mf-text); text-decoration: none;
  transition: background .15s;
}
.mfh-sort-popover__opt:hover { background: var(--mf-bg); }
.mfh-sort-popover__opt.is-active {
  color: var(--mf-gold); font-weight: 700;
}
@keyframes mfhFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 640px) {
  .mfh-shop-toolbar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
  }
  /* Hide desktop-only attr pills on mobile */
  .mfh-shop-toolbar__attrfilters,
  .mfh-shop-toolbar__count {
    display: none;
  }
  /* Left group expands to fill all available space */
  .mfh-shop-toolbar__left {
    flex: 1 1 0;
    min-width: 0;
    overflow: visible;
    gap: 6px;
  }
  /* Search fills remaining space in __left */
  .mfh-toolbar-search {
    flex: 1 1 0 !important;
    min-width: 80px !important;
  }
  .mfh-toolbar-search__input {
    width: 100%;
    min-width: 0;
  }
  /* AI button: icon only, compact */
  .mfh-ai-search-btn {
    flex: 0 0 auto;
    padding: 0 8px;
  }
  /* Right group: fixed width buttons */
  .mfh-shop-toolbar__right {
    flex: 0 0 auto;
  }
}

/* ── Toolbar Right group ── */
.mfh-shop-toolbar__right {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}

/* ── AI Search Button ── */
.mfh-ai-search-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0 12px; height: 36px; border-radius: 8px;
  border: 1.5px solid var(--mf-line);
  background: transparent;
  color: var(--mf-muted);
  font-size: 12px; font-weight: 600; font-family: inherit;
  cursor: pointer; flex-shrink: 0;
  transition: border-color .2s, color .2s, background .2s;
  white-space: nowrap;
}
.mfh-ai-search-btn .material-symbols-rounded { font-size: 16px; }
.mfh-ai-search-btn:hover {
  border-color: var(--mf-text);
  color: var(--mf-text);
  background: rgba(255,255,255,.03);
}
@media (max-width: 480px) {
  .mfh-ai-search-btn__label { display: none; }
  .mfh-ai-search-btn { padding: 0 8px; border-radius: 10px; }
}

/* ── Grid / List Switcher ── */
.mfh-grid-switcher {
  display: flex; gap: 0;
  border: 1.5px solid var(--mf-line);
  border-radius: 8px;
  overflow: hidden;
}
.mfh-grid-switcher__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: transparent; border: none;
  color: var(--mf-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.mfh-grid-switcher__btn + .mfh-grid-switcher__btn {
  border-left: 1.5px solid var(--mf-line);
}
.mfh-grid-switcher__btn:hover { color: var(--mf-text); }
.mfh-grid-switcher__btn.is-active {
  background: var(--mf-text);
  color: var(--mf-bg);
}

/* ── List View ── */
/* Desktop: single column, horizontal cards */
@media (min-width: 769px) {
  .mfh-view-list ul.products,
  .mfh-view-list .woocommerce ul.products {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .mfh-view-list .mfh-shop-card { flex-direction: row; }
  .mfh-view-list .mfh-shop-card__link { flex-direction: row; }
  .mfh-view-list .mfh-shop-card__img {
    width: 160px; min-width: 160px; max-width: 160px;
    min-height: auto; border-radius: 0;
  }
  .mfh-view-list .mfh-shop-card__body {
    flex: 1; display: flex; flex-direction: column; justify-content: center;
    padding: 16px 20px;
  }
  .mfh-view-list .mfh-shop-card__cta { display: none; }
}
/* Mobile: list view still uses 2-col grid, normal card layout */
.mfh-view-list .mfh-shop-card__fact {
  position: static; width: auto; max-width: 180px;
  border-radius: 6px; margin: 8px 0 0;
  font-size: 11px; padding: 4px 10px;
}
@media (max-width: 768px) {
  .mfh-view-list .mfh-shop-card__img {
    width: 110px; min-width: 110px; max-width: 110px;
  }
  .mfh-view-list .mfh-shop-card__body { padding: 12px 14px; }
}


/* ═══ GRID FIX + TOOLBAR SEARCH ═══ */
/* ═══ ULTIMATE GRID FIX — last-wins specificity ═══ */
.mfh-arc-grid-wrap ul.products,
.mfh-arc-grid-wrap .woocommerce ul.products,
body .woocommerce ul.products.columns-4,
body ul.products.columns-4 {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
}
@media (max-width: 1100px) {
  .mfh-arc-grid-wrap ul.products,
  .mfh-arc-grid-wrap .woocommerce ul.products,
  body .woocommerce ul.products.columns-4,
  body ul.products.columns-4 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 768px) {
  .mfh-arc-grid-wrap ul.products,
  .mfh-arc-grid-wrap .woocommerce ul.products,
  body .woocommerce ul.products.columns-4,
  body ul.products.columns-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}
/* List view override — only desktop */
@media (min-width: 769px) {
  .mfh-view-list.mfh-arc-grid-wrap ul.products,
  .mfh-view-list.mfh-arc-grid-wrap .woocommerce ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* ═══ TOOLBAR LIVE SEARCH ═══ */
.mfh-toolbar-search {
  flex: 1 1 0; min-width: 0; position: relative;
}
.mfh-toolbar-search__input {
  width: 100%; height: 36px; box-sizing: border-box;
  padding: 0 14px 0 36px;
  border: 1.5px solid var(--mf-line);
  border-radius: 8px;
  background: var(--mf-surface);
  font-size: 12px; font-weight: 500; font-family: inherit;
  color: var(--mf-text);
  transition: border-color .2s, box-shadow .2s;
}
.mfh-toolbar-search__input::placeholder { color: var(--mf-muted); }
.mfh-toolbar-search__input:focus {
  border-color: var(--mf-gold); outline: none;
  box-shadow: 0 0 0 3px rgba(179,144,71,.1);
}
.mfh-toolbar-search__icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  font-size: 16px; color: var(--mf-muted); pointer-events: none;
}


