/* ============================================================
   Boozt-style category page (MyHair.dk)
   Used by templates/catalog/listing/category.tpl and partials.
   ============================================================ */

.breadcrumb__wrapper,
body#category .breadcrumb__wrapper,
body#product .breadcrumb__wrapper {
  background: transparent;
  border: 0;
  padding: 0.65rem 0 0;
}

.breadcrumb,
body#category .breadcrumb,
body#product .breadcrumb {
  font-size: 11.5px;
  color: var(--mh-muted);
  letter-spacing: 0;
  text-transform: none;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding-left: 0;
  margin: 0;
  background: transparent;
  line-height: 1.4;
}

.breadcrumb-item + .breadcrumb-item::before,
body#category .breadcrumb-item + .breadcrumb-item::before,
body#product .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  padding-right: 0.3rem;
  color: var(--mh-soft);
}

.breadcrumb-link,
body#category .breadcrumb-link,
body#product .breadcrumb-link {
  color: var(--mh-muted);
  text-decoration: none;
}

.breadcrumb-link:hover,
body#category .breadcrumb-link:hover,
body#product .breadcrumb-link:hover { color: var(--mh-plum); text-decoration: underline; }

body#product .breadcrumb-item:last-child {
  color: var(--mh-plum-soft);
}

/* Category page sticks to the standard page grid (uses theme's default container).
   bm_filters lives in #left-column via displayLeftColumn — keep it visible on desktop. */

body#category #wrapper .columns-container.container > .row {
  --bs-gutter-x: 1.75rem;
}

@media (min-width: 992px) {
  body#category #left-column {
    padding-top: 0.25rem;
    position: sticky;
    top: 1rem;
    align-self: flex-start;
    max-height: calc(100vh - 1.5rem);
    overflow-y: auto;
    scrollbar-width: thin;
  }

  body#category #center-column.center-column.page {
    flex: 1 1 0;
  }
}

@media (max-width: 991.98px) {
  body#category #left-column { display: none; }
  body#category #center-column.center-column.page {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
}

/* ---------- bm_filters / faceted sidebar polish (compact) ---------- */

body#category #left-column #search_filters,
body#category #left-column .bm-filters,
body#category #left-column [id*="filter"] {
  background: #fff;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.65rem;
  font-size: 12.5px;
}

body#category #left-column .h6,
body#category #left-column .facet-title,
body#category #left-column .filter-title {
  font-family: var(--mh-font-heading);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mh-ink);
  margin: 0 0 0.35rem;
}

body#category #left-column .facet {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--mh-line);
}

body#category #left-column .facet:last-child { border-bottom: 0; }

body#category #left-column .facet ul,
body#category #left-column .filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
}

body#category #left-column .facet-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.18rem 0.1rem;
  font-size: 12.5px;
  line-height: 1.25;
  color: var(--mh-plum-soft);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.12s ease, color 0.12s ease;
}

body#category #left-column .facet-label:hover {
  background: var(--mh-rose);
  color: var(--mh-primary-deep);
}

body#category #left-column .facet-label.active {
  color: var(--mh-primary-deep);
  font-weight: 700;
}

/* Smaller custom checkbox/radio in the sidebar */
body#category #left-column .custom-checkbox,
body#category #left-column .custom-radio {
  width: 14px;
  height: 14px;
  min-width: 14px;
}

body#category #left-column .custom-checkbox input[type="checkbox"],
body#category #left-column .custom-radio input[type="radio"] {
  width: 14px;
  height: 14px;
}

body#category #left-column .magnitude {
  margin-left: auto;
  font-size: 11px;
  color: var(--mh-muted);
  font-weight: 500;
}

body#category #left-column .js-search-filters-clear-all,
body#category #left-column .btn-tertiary {
  width: 100%;
  background: var(--mh-ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body#category #left-column .js-search-filters-clear-all:hover { background: var(--mh-primary); }

/* Hide the "Filtre" pill in toolbar on desktop (sidebar is already visible) */
@media (min-width: 992px) {
  .mh-cat-toolbar { display: none; }
}

/* ---------- Hero ---------- */

.mh-cat-hero { margin: 0.5rem 0 1.25rem; }

.mh-cat-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mh-cat-hero__banner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--mh-rose) 0%, var(--mh-lilac) 100%);
  aspect-ratio: 2.5 / 1;
  min-height: 110px;
  max-height: 220px;
}

@media (min-width: 576px) {
  .mh-cat-hero__banner img { aspect-ratio: 4 / 1; border-radius: 16px; }
}

@media (min-width: 992px) {
  .mh-cat-hero__banner img { aspect-ratio: 6 / 1; border-radius: 18px; }
}

.mh-cat-hero__banner-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mh-cat-hero__head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 0.25rem;
}

.mh-cat-hero__title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem 0.85rem;
  font-family: var(--mh-font-heading);
  font-weight: 600;
  font-size: clamp(1.85rem, 2.6vw, 2.5rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--mh-ink);
  margin: 0;
}

.mh-cat-hero__title-name { text-transform: none; }

.mh-cat-hero__title-count {
  font-family: var(--mh-font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--mh-muted);
  letter-spacing: 0;
}

.mh-cat-hero__desc {
  position: relative;
  max-width: 780px;
  font-size: 14.5px;
  color: var(--mh-plum-soft);
  line-height: 1.55;
}

.mh-cat-hero__desc-clip {
  max-height: 3.3em;
  overflow: hidden;
  position: relative;
}

.mh-cat-hero__desc-clip::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1.4em;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}

.mh-cat-hero__desc.is-open .mh-cat-hero__desc-clip { max-height: none; }
.mh-cat-hero__desc.is-open .mh-cat-hero__desc-clip::after { display: none; }

.mh-cat-hero__desc-toggle {
  margin-top: 0.35rem;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--mh-primary-deep);
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Subcategory chips ---------- */

.mh-cat-chips { position: relative; margin-top: 0.25rem; }

.mh-cat-chips__track {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0.25rem 0.25rem 0.75rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.mh-cat-chips__track::-webkit-scrollbar { height: 6px; }
.mh-cat-chips__track::-webkit-scrollbar-thumb { background: var(--mh-line); border-radius: 6px; }

/* Desktop: keep the horizontal slider (scroll + drag) but hide the visible
   scrollbar track for a cleaner look. */
@media (min-width: 992px) {
  .mh-cat-chips__track {
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.25rem;
  }
  .mh-cat-chips__track::-webkit-scrollbar { display: none; }
}

.mh-cat-chips__chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.1rem 0.4rem 0.4rem;
  background: #fff;
  border: 1.5px solid var(--mh-border);
  border-radius: 999px;
  color: var(--mh-ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  scroll-snap-align: start;
  box-shadow: 0 2px 8px rgba(15, 15, 15, 0.05);
  transition: all 0.15s ease;
}

.mh-cat-chips__chip:hover {
  background: var(--mh-rose);
  border-color: var(--mh-primary);
  color: var(--mh-primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(var(--mh-primary-rgb), 0.18);
}

.mh-cat-chips__thumb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--mh-cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mh-cat-chips__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mh-cat-chips__label { line-height: 1; }

/* ---------- Toolbar (sticky filter + sort) ---------- */

.mh-cat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0;
  margin: 0.25rem 0 1.25rem;
  background: #fff;
  border-top: 1px solid var(--mh-line);
  border-bottom: 1px solid var(--mh-line);
}

/* Only sticky on desktop — avoids overlap with mobile floating pill header */
@media (min-width: 992px) {
  .mh-cat-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
  }
}

.mh-cat-toolbar__left,
.mh-cat-toolbar__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mh-cat-toolbar__filter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--mh-ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.mh-cat-toolbar__filter:hover { background: var(--mh-primary); transform: translateY(-1px); }
.mh-cat-toolbar__filter i { font-size: 16px; }

.mh-cat-toolbar__filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--mh-primary);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  margin-left: 0.15rem;
}

.mh-cat-toolbar__count {
  color: var(--mh-muted);
  font-size: 13px;
  font-weight: 500;
}

.mh-cat-toolbar__sort {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.mh-cat-toolbar__sort-label {
  color: var(--mh-muted);
  font-size: 13px;
  font-weight: 600;
}

.mh-cat-toolbar__sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid var(--mh-border);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--mh-ink);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.mh-cat-toolbar__sort-btn:hover {
  border-color: var(--mh-primary);
  color: var(--mh-primary-deep);
}

.mh-cat-toolbar__sort-btn i { font-size: 14px; }

.mh-cat-toolbar__sort-menu {
  border-radius: 14px;
  border: 1px solid var(--mh-border);
  box-shadow: 0 14px 32px rgba(15, 15, 15, 0.08);
  padding: 0.4rem;
  min-width: 220px;
}

.mh-cat-toolbar__sort-menu .dropdown-item {
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mh-ink);
}

.mh-cat-toolbar__sort-menu .dropdown-item:hover {
  background: var(--mh-rose);
  color: var(--mh-primary-deep);
}

.mh-cat-toolbar__sort-menu .dropdown-item.current,
.mh-cat-toolbar__sort-menu .dropdown-item[aria-current="true"] {
  background: var(--mh-ink);
  color: #fff;
}

@media (max-width: 575.98px) {
  .mh-cat-toolbar__sort-label { display: none; }
  .mh-cat-toolbar__count { display: none; }
  .mh-cat-toolbar { padding: 0.5rem 0; gap: 0.4rem; }
  .mh-cat-toolbar__left,
  .mh-cat-toolbar__right { gap: 0.4rem; min-width: 0; }
  .mh-cat-toolbar__filter,
  .mh-cat-toolbar__sort-btn {
    padding: 0.5rem 0.85rem;
    font-size: 12.5px;
  }
  .mh-cat-toolbar__filter { flex: 0 0 auto; }
  .mh-cat-toolbar__sort-btn { max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mh-cat-toolbar__sort-btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .mh-cat-toolbar__sort-menu { min-width: min(280px, calc(100vw - 1.5rem)); }
}

/* ---------- Active filters chips ---------- */

body#category .active-filters,
body#category .js-active-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

body#category .active-filter-title { display: none; }

body#category .filter-block {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--mh-rose);
  border: 1px solid var(--mh-primary-soft);
  color: var(--mh-primary-deep);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 12.5px;
  font-weight: 700;
}

body#category .filter-block .close,
body#category .filter-block .js-search-filters-clear {
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Product grid (sized to the center column next to the filter rail) ---------- */

body#category #products .products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  body#category #products .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  body#category #products .products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem 1rem; }
}

/* ---------- Pagination Boozt-style ---------- */

body#category .products__pagination {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0 1rem;
}

body#category .pagination {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--mh-cream);
  border-radius: 999px;
  border: 1px solid var(--mh-border);
}

body#category .pagination .page-item .page-link,
body#category .pagination a {
  border: 0;
  background: transparent;
  color: var(--mh-ink);
  font-weight: 700;
  font-size: 13.5px;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 0.6rem;
}

body#category .pagination .page-item.active .page-link,
body#category .pagination .current .page-link,
body#category .pagination .current a {
  background: var(--mh-ink);
  color: #fff;
}

body#category .pagination .page-link:hover { background: var(--mh-rose); color: var(--mh-primary-deep); }

/* ---------- Category SEO footer ---------- */

.mh-cat-seo {
  margin: 2rem 0 3rem;
  padding: 1.75rem;
  background: var(--mh-cream);
  border: 1px solid var(--mh-border);
  border-radius: 18px;
}

.mh-cat-seo__inner {
  max-width: 920px;
  margin: 0 auto;
  color: var(--mh-plum-soft);
  font-size: 14.5px;
  line-height: 1.65;
}

.mh-cat-seo__inner h2,
.mh-cat-seo__inner h3 {
  font-family: var(--mh-font-heading);
  color: var(--mh-ink);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 1.25rem;
}

.mh-cat-seo__inner h2:first-child,
.mh-cat-seo__inner h3:first-child { margin-top: 0; }

/* ---------- Tight density for product cards in category ---------- */

body#category .mh-card { border-radius: 14px; }
body#category .mh-card__body { padding: 0.65rem 0.7rem 0.85rem; }
body#category .mh-card__brand { font-size: 11px; letter-spacing: 0.08em; }
body#category .mh-card__name { font-size: 13.5px; line-height: 1.3; }
body#category .mh-card__price { font-size: 15px; }

/* ============================================================
   Boozt-style category — tablet + mobile refinements
   ============================================================ */

/* Tablet (768–991px): sidebar is hidden, slight breathing tweak */
@media (min-width: 768px) and (max-width: 991.98px) {
  .mh-cat-hero { margin-top: 0.75rem; }
  body#category #products .products { gap: 1rem; }
}

/* Mobile (≤767px): tighten everything */
@media (max-width: 767.98px) {
  body#category .breadcrumb__wrapper { padding-top: 0.65rem; }
  body#category .breadcrumb { font-size: 11.5px; }

  .mh-cat-hero { margin: 0.25rem 0 0.85rem; }
  .mh-cat-hero__inner { gap: 0.85rem; }
  .mh-cat-hero__head { padding: 0; gap: 0.35rem; }
  .mh-cat-hero__title { font-size: 1.65rem; gap: 0.35rem 0.5rem; }
  .mh-cat-hero__title-count { font-size: 0.85rem; }
  .mh-cat-hero__desc { font-size: 13.5px; line-height: 1.5; }

  /* Hide native scrollbar on chips track for a cleaner mobile feel */
  .mh-cat-chips__track {
    padding: 0.2rem 0.25rem 0.5rem;
    gap: 0.45rem;
    scrollbar-width: none;
  }
  .mh-cat-chips__track::-webkit-scrollbar { display: none; }
  .mh-cat-chips__chip { font-size: 12.5px; padding: 0.4rem 0.85rem 0.4rem 0.4rem; }
  .mh-cat-chips__thumb { width: 26px; height: 26px; }

  body#category .active-filters,
  body#category .js-active-search-filters { margin: 0 0 0.65rem; }

  /* 2-column grid with tighter gap on narrow phones */
  body#category #products .products { gap: 0.65rem; }
  body#category .mh-card__body { padding: 0.55rem 0.6rem 0.75rem; }
  body#category .mh-card__name { font-size: 12.5px; }
  body#category .mh-card__brand { font-size: 10px; }
  body#category .mh-card__price { font-size: 14px; }
  body#category .mh-card__rating,
  body#category .mh-card__stock { font-size: 11px; }

  /* Pagination — let it wrap, smaller buttons */
  body#category .products__pagination { margin: 1.75rem 0 0.5rem; }
  body#category .pagination { flex-wrap: wrap; justify-content: center; row-gap: 0.25rem; }
  body#category .pagination .page-item .page-link,
  body#category .pagination a {
    min-width: 32px;
    height: 32px;
    font-size: 12.5px;
    padding: 0 0.5rem;
  }

  /* SEO footer */
  .mh-cat-seo { margin: 1.5rem 0 2rem; padding: 1.1rem 1rem; border-radius: 14px; }
  .mh-cat-seo__inner { font-size: 13.5px; }
}

/* Very small phones (≤360px) */
@media (max-width: 360px) {
  .mh-cat-hero__title { font-size: 1.45rem; }
  .mh-cat-toolbar__filter span,
  .mh-cat-toolbar__sort-btn > span { font-size: 12px; }
}

/* ============================================================
   Boozt-style category — final polish
   ============================================================ */

/* Tighter breadcrumb→hero gap */
body#category .breadcrumb__wrapper { padding: 0.4rem 0 0; }
body#category .mh-cat-hero { margin-top: 0; }
body#category #main-content { display: none; }

/* Title row: H1 left, sort dropdown right */
.mh-cat-hero__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

.mh-cat-hero__sort {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
}

.mh-cat-hero__sort .mh-cat-toolbar__sort-btn { padding: 0.45rem 0.9rem; }

@media (max-width: 575.98px) {
  /* Keep title left, sort compact on the right (no full-width stretch) */
  .mh-cat-hero__row { gap: 0.4rem 0.6rem; align-items: center; }
  .mh-cat-hero__title { flex: 1 1 auto; min-width: 0; }
  .mh-cat-hero__sort { width: auto; margin-left: auto; flex: 0 0 auto; }
  .mh-cat-hero__sort .mh-cat-toolbar__sort-btn { width: auto; }
}

/* Hide "Viser 1-X af Y element(er)" pagination summary */
body#category .pagination__number { display: none; }
body#category .pagination__container { justify-content: center; }

/* ============================================================
   SEARCH RESULTS
   ============================================================ */

#search .page-header {
  margin-bottom: 1rem;
}

.search-no-results {
  background: var(--mh-cream);
  border-radius: 4px;
  padding: 3rem 2rem;
  text-align: center;
  font-size: 16px;
  color: var(--mh-plum-soft);
}

/* ============================================================
   FRONTRUNNER CATEGORY — MOBILE + TABLET POLISH
   Circular subcategory chips, sticky twin-pill toolbar,
   polished offcanvas drawer, big tap targets, sleek 2-col grid.
   ============================================================ */

@media (max-width: 991.98px) {
  body#category #wrapper .columns-container.container,
  body#category #wrapper .container { padding-left: 1rem; padding-right: 1rem; }
  .mh-cat-hero { margin: 0 0 0.75rem; }
  .mh-cat-hero__inner { gap: 0.85rem; }
  .mh-cat-hero__head { padding: 0; gap: 0.4rem; }
  .mh-cat-hero__row { gap: 0.4rem 0.75rem; }
  .mh-cat-hero__title { font-size: clamp(1.55rem, 4.5vw, 2rem); line-height: 1.05; margin: 0; }
  .mh-cat-hero__desc { font-size: 13.5px; line-height: 1.55; }

  .mh-cat-chips__track {
    gap: 0.85rem;
    padding: 0.25rem 0.25rem 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-padding-left: 0.25rem;
  }
  .mh-cat-chips__track::-webkit-scrollbar { display: none; }
  .mh-cat-chips__chip {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    min-width: 80px;
    max-width: 88px;
  }
  .mh-cat-chips__chip:hover,
  .mh-cat-chips__chip:focus-visible { background: transparent; transform: translateY(-1px); }
  .mh-cat-chips__thumb {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--mh-cream);
    border: 2px solid var(--mh-border);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 15, 15, 0.08);
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  }
  .mh-cat-chips__chip:hover .mh-cat-chips__thumb,
  .mh-cat-chips__chip:focus-visible .mh-cat-chips__thumb {
    border-color: var(--mh-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(var(--mh-primary-rgb), 0.18);
  }
  .mh-cat-chips__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .mh-cat-chips__label {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--mh-ink);
    text-align: center;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
  }

  .mh-cat-toolbar.mh-cat-toolbar--mobile {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.65rem 1rem;
    margin: 0 -1rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--mh-line);
    border-bottom: 1px solid var(--mh-line);
  }
  .mh-cat-toolbar.mh-cat-toolbar--mobile .mh-cat-toolbar__filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    max-width: 320px;
    height: 44px;
    padding: 0 0.85rem;
    background: #fff;
    color: var(--mh-ink);
    border: 1.5px solid var(--mh-ink);
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .mh-cat-toolbar.mh-cat-toolbar--mobile .mh-cat-toolbar__filter i { font-size: 17px; }
  .mh-cat-toolbar.mh-cat-toolbar--mobile .mh-cat-toolbar__filter:active {
    background: var(--mh-ink);
    color: #fff;
  }
  .mh-cat-toolbar.mh-cat-toolbar--mobile .mh-cat-toolbar__filter-badge {
    background: var(--mh-primary);
    color: #fff;
    margin-left: 0.1rem;
  }

  body#category .js-active-search-filters,
  body#category .active-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0.4rem;
    padding: 0 0 0.6rem;
    margin: -0.4rem 0 0.4rem;
  }
  body#category .js-active-search-filters::-webkit-scrollbar,
  body#category .active-filters::-webkit-scrollbar { display: none; }
  body#category .filter-block {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 12px;
    padding: 0.3rem 0.65rem;
  }

  body#category #products .products {
    gap: 0.6rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body#category .mh-card { border-radius: 12px; overflow: hidden; }
  body#category .mh-card__media { border-radius: 12px 12px 0 0; }
  body#category .mh-card__img { transition: transform 0.4s ease; }
  body#category .mh-card:active .mh-card__img { transform: scale(1.02); }
  body#category .mh-card__body { padding: 0.6rem 0.65rem 0.85rem; gap: 0.15rem; }
  body#category .mh-card__brand {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mh-plum);
  }
  body#category .mh-card__name {
    font-size: 12.5px;
    line-height: 1.25;
    color: var(--mh-plum-soft);
    -webkit-line-clamp: 2;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  body#category .mh-card__prices {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
  }
  body#category .mh-card__price { font-size: 14.5px; font-weight: 800; color: var(--mh-ink); }
  body#category .mh-card__price--sale { color: var(--mh-primary-deep); }
  body#category .mh-card__was { font-size: 11px; color: var(--mh-muted); text-decoration: line-through; }
  body#category .mh-card__badge {
    font-size: 10.5px;
    font-weight: 800;
    padding: 0.25rem 0.45rem;
    border-radius: 4px;
    top: 0.5rem;
    left: 0.5rem;
  }
  body#category .mh-card__actions {
    bottom: auto;
    top: 0.5rem;
    right: 0.5rem;
    flex-direction: column;
    gap: 0.35rem;
    opacity: 1;
  }
  body#category .mh-card__wish-slot .bm-wishlist-btn-mini,
  body#category .mh-card__wish-slot button,
  body#category .mh-card__buy {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 6px rgba(15, 15, 15, 0.08);
    border: 0;
  }
  body#category .mh-card__buy { color: var(--mh-ink); }
  body#category .mh-card__rating,
  body#category .mh-card__stock { font-size: 10.5px; }

  body#category .products__pagination { margin: 1.75rem 0 0.5rem; }
  body#category .pagination {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.3rem;
    padding: 0.3rem;
  }
  body#category .pagination .page-item .page-link,
  body#category .pagination a { min-width: 38px; height: 38px; font-size: 13px; }
  body#category .pagination .page-link.previous,
  body#category .pagination .page-link.next { padding: 0 0.85rem; }

  body#category .mh-cat-seo {
    margin: 1.5rem -1rem 0;
    padding: 1.25rem 1rem;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  body#category .mh-cat-seo__inner { font-size: 13.5px; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  body#category #products .products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; }
  body#category .mh-card__name { font-size: 13.5px; }
  body#category .mh-card__price { font-size: 15.5px; }
  body#category .mh-card__brand { font-size: 11px; }
  body#category .mh-card__body { padding: 0.7rem 0.75rem 0.95rem; }
  .mh-cat-chips__thumb { width: 76px; height: 76px; }
  .mh-cat-chips__chip { min-width: 84px; max-width: 96px; }
  .mh-cat-chips__label { font-size: 12.5px; }
  .mh-cat-hero__title { font-size: clamp(1.85rem, 3vw, 2.2rem); }
}

@media (max-width: 767.98px) {
  /* Tight breadcrumb — kill the big padding/margin above & below it */
  body#category .breadcrumb__wrapper { padding: 0.25rem 0 0; }
  body#category .breadcrumb {
    font-size: 11px;
    gap: 0.25rem;
    padding: 0.2rem 0;
    margin: 0;
  }

  /* Compressed hero */
  .mh-cat-hero { margin: 0.1rem 0 0.55rem; }
  .mh-cat-hero__inner { gap: 0.55rem; }
  .mh-cat-hero__head { gap: 0.3rem; }
  .mh-cat-hero__title { font-size: 1.4rem; letter-spacing: -0.015em; }
  .mh-cat-hero__banner {
    aspect-ratio: 3 / 1;
    min-height: 84px;
    max-height: 150px;
    border-radius: 12px;
  }
  .mh-cat-hero__desc { font-size: 13px; }
  .mh-cat-hero__desc-clip { max-height: 2.9em; }
}

@media (max-width: 380px) {
  .mh-cat-hero__title { font-size: 1.4rem; }
  .mh-cat-chips__thumb { width: 56px; height: 56px; }
  .mh-cat-chips__chip { min-width: 60px; max-width: 64px; }
  .mh-cat-chips__label { font-size: 10.5px; }
  body#category #products .products { gap: 0.5rem; }
  body#category .mh-card__body { padding: 0.5rem 0.55rem 0.7rem; }
  body#category .mh-card__name { font-size: 12px; }
  body#category .mh-card__price { font-size: 13.5px; }
  .mh-cat-toolbar.mh-cat-toolbar--mobile .mh-cat-toolbar__filter {
    font-size: 12px;
    padding: 0 0.65rem;
    height: 40px;
  }
}

/* Faceted offcanvas drawer */
#offcanvas-faceted.offcanvas {
  width: min(420px, 88vw);
  max-width: 88vw;
  background: #fff;
  border-radius: 0 18px 18px 0;
  box-shadow: 0 20px 60px rgba(15, 15, 15, 0.18);
}
#offcanvas-faceted .offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--mh-line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
#offcanvas-faceted .offcanvas-title {
  font-family: var(--mh-font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--mh-ink);
  margin: 0;
}
#offcanvas-faceted .btn-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--mh-cream);
  opacity: 1;
  transition: background-color 0.15s ease;
}
#offcanvas-faceted .btn-close:hover { background-color: var(--mh-rose); }
#offcanvas-faceted .offcanvas-body {
  padding: 0.5rem 1rem 6rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#offcanvas-faceted .facet { padding: 0.85rem 0; border-bottom: 1px solid var(--mh-line); }
#offcanvas-faceted .facet:last-child { border-bottom: 0; }
#offcanvas-faceted .facet-title,
#offcanvas-faceted .h6 {
  font-family: var(--mh-font-heading);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mh-ink);
  margin: 0 0 0.5rem;
}
#offcanvas-faceted .facet-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.4rem;
  font-size: 14px;
  border-radius: 10px;
  min-height: 44px;
}
#offcanvas-faceted .facet-label:active { background: var(--mh-rose); }
#offcanvas-faceted .facet-label.active { color: var(--mh-primary-deep); font-weight: 700; }
#offcanvas-faceted .magnitude { margin-left: auto; font-size: 12px; color: var(--mh-muted); }
#offcanvas-faceted .clear-all-wrapper {
  position: sticky;
  bottom: 0;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 30%);
  margin: 0 -1rem;
}
#offcanvas-faceted .js-search-filters-clear-all {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  background: var(--mh-ink);
  color: #fff;
  border: 0;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#offcanvas-faceted .js-search-filters-clear-all:hover,
#offcanvas-faceted .js-search-filters-clear-all:active { background: var(--mh-primary); }
.offcanvas-backdrop.show { opacity: 0.45; }

/* Sort bottom-sheet (mobile) */
.mh-sort-sheet {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 15, 15, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.mh-sort-sheet.is-open { display: flex; opacity: 1; }
.mh-sort-sheet__panel {
  background: #fff;
  width: 100%;
  max-width: 540px;
  border-radius: 18px 18px 0 0;
  padding: 0.85rem 0.75rem calc(1.25rem + env(safe-area-inset-bottom));
  transform: translateY(20px);
  transition: transform 0.25s ease;
  max-height: 80vh;
  overflow-y: auto;
}
.mh-sort-sheet.is-open .mh-sort-sheet__panel { transform: translateY(0); }
.mh-sort-sheet__grabber {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: var(--mh-border);
  margin: 0 auto 0.85rem;
}
.mh-sort-sheet__title {
  font-family: var(--mh-font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--mh-ink);
  margin: 0 0 0.75rem;
}
.mh-sort-sheet__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--mh-ink);
  font-weight: 600;
  font-size: 14.5px;
  min-height: 48px;
}
.mh-sort-sheet__item:hover,
.mh-sort-sheet__item:focus-visible { background: var(--mh-rose); color: var(--mh-primary-deep); }
.mh-sort-sheet__item.is-current { background: var(--mh-ink); color: #fff; }
.mh-sort-sheet__item.is-current::after {
  content: "\2713";
  font-weight: 700;
  font-size: 16px;
}
@media (min-width: 992px) { .mh-sort-sheet { display: none; } }
@media (max-width: 991.98px) { .mh-cat-hero__sort .dropdown-menu { display: none; } }

/* ============================================================
   BRANDS A–Z INDEX PAGE (Matas-style alphabetical)
   ============================================================ */
body#manufacturer .breadcrumb__wrapper { display: none; }

/* Drop the category sidebar on the brands page — full-width index */
body#manufacturer #left-column,
body#manufacturer #right-column,
body#manufacturer .wrapper__left-column { display: none; }
body#manufacturer #content-wrapper,
body#manufacturer #center-column {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

.mh-brands {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}
.mh-brands__hero {
  text-align: center;
  margin-bottom: 1.75rem;
}
.mh-brands__eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mh-plum-soft);
  background: #F2F2F0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.mh-brands__title {
  font-family: var(--mh-font-heading);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.025em;
  color: var(--mh-plum);
  margin: 0 0 0.55rem;
}
.mh-brands__lede {
  font-size: 14.5px;
  color: var(--mh-plum-soft);
  margin: 0;
}

/* Sticky A–Z jump bar */
.mh-brands__az {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.75rem 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--mh-line);
  border-bottom: 1px solid var(--mh-line);
  margin-bottom: 2.5rem;
}
.mh-brands__az-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mh-plum);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.mh-brands__az-link:hover {
  background: var(--mh-plum);
  color: #FFFFFF;
}
.mh-brands__az-link--off {
  color: var(--mh-soft);
  pointer-events: none;
  opacity: 0.4;
}

/* Letter groups */
.mh-brands__groups {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.mh-brands__group {
  scroll-margin-top: 70px;
}
.mh-brands__letter {
  font-family: var(--mh-font-heading);
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--mh-plum);
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #DADAD8;
}
.mh-brands__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem 1.25rem;
}
.mh-brands__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s ease;
}
.mh-brands__brand:hover { background: #F4F4F2; }
.mh-brands__brand-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--mh-plum);
}
.mh-brands__brand:hover .mh-brands__brand-name { color: var(--mh-plum); }
.mh-brands__brand-count {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--mh-muted);
  background: #EFEFED;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .mh-brands__items { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .mh-brands { padding: 1rem 0.85rem 2.5rem; }
  .mh-brands__items { grid-template-columns: 1fr; }
  .mh-brands__az-link { width: 28px; height: 28px; font-size: 12px; }
  .mh-brands__letter { font-size: 1.5rem; }
}

/* Brand logo in the manufacturer hero (reuses .mh-cat-hero styling) */
.mh-cat-hero__brandlogo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F7F7F5;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  max-width: 200px;
}
.mh-cat-hero__brandlogo img {
  max-height: 64px;
  width: auto;
  mix-blend-mode: multiply;
}

/* ============================================================
   CATEGORY / PLP — bullbird-style port (2026-07-02):
   horizontal filter bar, subcategory monogram fallback, bestsellers
   bleed rail, and full-width layout (no left sidebar). Hero/chips/toolbar
   base styling already exists above; container width stays --bz-max.
   ============================================================ */

/* USP / trust strip — shared listings; hidden on category to match reference */
.hob-usp { border-block: 1px solid #efe9e3; background: var(--mh-cream); margin: .5rem 0; }
.hob-usp--cat { display: none; }
.hob-usp__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 2.25rem; padding: .9rem clamp(1rem, 3vw, 2rem); }
.hob-usp__item { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--mh-plum); }
.hob-usp__item i { font-size: 1.25rem; color: var(--mh-primary); }
.hob-usp__item strong { color: var(--mh-primary); }
@media (max-width: 720px) {
  .hob-usp__row { gap: .6rem 1.1rem; font-size: .78rem; padding: .7rem 1rem; }
  .hob-usp__item i { font-size: 1rem; }
}

/* product-count meta — shared listings; hidden on category to match reference */
.hob-listmeta { display: flex; justify-content: flex-end; margin: 0 0 .5rem; color: #6b6b6b; font-size: .85rem; font-weight: 500; }
body#category .hob-listmeta,
body#manufacturer[class*="manufacturer-id-"] .hob-listmeta { display: none; }

/* horizontal filter bar (bm_filters @ displayProductListTop) + sort on one line */
.hob-filterbar { margin: 4px 0 18px; }
.hob-filterbar--has-sort { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; border-bottom: 1px solid #ececec; padding-bottom: 8px; }
.hob-filterbar--has-sort > .bm-filters { flex: 1 1 auto; min-width: 0; }
.hob-filterbar__sort { margin-left: auto; flex: 0 0 auto; }
@media (max-width: 991.98px) {
  .hob-filterbar--has-sort { flex-wrap: nowrap; align-items: center; gap: .6rem; border-bottom: 0; padding-bottom: 0; }
  .hob-filterbar--has-sort > .bm-filters { flex: 1 1 50%; }
  .hob-filterbar__sort { flex: 1 1 50%; min-width: 0; margin-left: 0; }
  .hob-filterbar__sort .mh-cat-toolbar__sort-btn { width: 100%; justify-content: center; border: 1px solid var(--mh-border); border-radius: 10px; padding: .7rem .9rem; background: #fff; color: var(--mh-ink); font-weight: 600; font-size: 13px; }
  .hob-filterbar__sort .mh-cat-toolbar__sort-btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* subcategory chip monogram fallback (categories with no image) */
.mh-cat-chips__thumb { background: var(--mh-primary); }
.mh-cat-chips__thumb--fallback { display: grid; place-items: center; }
.mh-cat-chips__monogram { font-family: var(--mh-font-heading); font-weight: 600; color: var(--mh-cream); font-size: 32px; line-height: 1; text-transform: uppercase; }
@media (max-width: 991.98px) { .mh-cat-chips__monogram { font-size: 34px; } }
@media (max-width: 767px) { .mh-cat-chips__monogram { font-size: 30px; } }

/* bestsellers rail — full-bleed band on category; cards reuse .mh-card */
body#category .bm-bestsellers__heading { font-family: var(--mh-font-heading); font-weight: 600; }
body#category .bm-bestsellers--bleed {
  position: relative; width: auto; margin-top: 20px; margin-inline: 0; padding-inline: 0;
  background: transparent; border-radius: 0; overflow: visible;
  --bs-gap: 1rem; --bs-slide: clamp(11rem, calc((100vw - 11rem) / 6), 15rem);
}
body#category .bm-bestsellers--bleed::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw);
  width: 100vw; background: var(--mh-cream); z-index: 0; pointer-events: none;
}
body#category .bm-bestsellers--bleed > * { position: relative; z-index: 1; }
body#category .bm-bestsellers--bleed .bm-bestsellers__header { padding-inline: 0; }
body#category .bm-bestsellers--bleed .bm-bestsellers__track-wrapper { overflow: visible; }
body#category .bm-bestsellers--bleed .bm-bestsellers__track {
  margin-inline-start: 0; margin-inline-end: calc(50% - 50vw);
  padding-inline: 0; scroll-padding-inline-start: 0; gap: var(--bs-gap);
}
body#category .bm-bestsellers--bleed .bm-bestsellers__item { flex: 0 0 var(--bs-slide); scroll-snap-align: start; min-width: 0; }
body#category .bm-bestsellers .mh-card__badge--ship,
body#category .bm-bestsellers .mh-card__ribbon,
body#category .bm-bestsellers .bm-stickers,
body#category .bm-bestsellers .bm-stickers--card { display: none; }
body#category .bm-bestsellers .mh-card__name { -webkit-line-clamp: 3; }
@media (max-width: 767.98px) {
  body#category .bm-bestsellers--bleed { --bs-gap: 12px; --bs-slide: calc((100vw - 60px) / 3); }
}

/* full-width category/manufacturer — drop the left sidebar (filters are the
   horizontal bar now), let #center-column + product grid fill --bz-max */
body#category #left-column,
body#manufacturer[class*="manufacturer-id-"] #left-column { display: none; }
body#category #center-column,
body#category #center-column.center-column.page,
body#manufacturer[class*="manufacturer-id-"] #center-column,
body#manufacturer[class*="manufacturer-id-"] #center-column.center-column.page {
  flex: 0 0 100%; max-width: 100%; width: 100%; min-width: 0;
}
