/*
 * NØSEN UP Typesense v0.2.1.1 – autocomplete-category-count-polish
 * Scoped UI polish for Vinnvinn Typesense autocomplete when used in the KategoriFlow header slot.
 * This file is intentionally CSS-only: no Typesense/API/request/cart/checkout logic is changed.
 */

/* Header slot / input ---------------------------------------------------- */
.nkf-header-search-up-slot .vvts-autocomplete,
.nkf-header-search-up-slot .vvts-autocomplete-root,
.nkf-header-search-up-slot .aa-Autocomplete {
  width: 100%;
  max-width: 100%;
}

.nkf-header-search-up-slot .aa-Autocomplete {
  color: #111827;
  font-family: inherit;
}

.nkf-header-search-up-slot .aa-Form {
  display: flex;
  align-items: center;
  height: 44px;
  min-height: 44px;
  margin: 0;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.nkf-header-search-up-slot .aa-Form:focus-within {
  border-color: rgba(17, 24, 39, 0.55);
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.16);
}

.nkf-header-search-up-slot .aa-InputWrapper {
  height: 100%;
}

.nkf-header-search-up-slot .aa-Input {
  height: 100%;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  color: #111827;
  font-family: inherit;
  font-size: 15px;
  line-height: 44px;
  box-shadow: none;
}

.nkf-header-search-up-slot .aa-Input::placeholder {
  color: rgba(17, 24, 39, 0.58);
  opacity: 1;
}

.nkf-header-search-up-slot .aa-Input:focus {
  outline: none;
  box-shadow: none;
}

.nkf-header-search-up-slot .aa-InputWrapperPrefix,
.nkf-header-search-up-slot .aa-InputWrapperSuffix {
  height: 100%;
}

.nkf-header-search-up-slot .aa-SubmitButton,
.nkf-header-search-up-slot .aa-ClearButton {
  color: rgba(17, 24, 39, 0.62);
  background: transparent;
  box-shadow: none;
}

.nkf-header-search-up-slot .aa-SubmitButton:hover,
.nkf-header-search-up-slot .aa-ClearButton:hover,
.nkf-header-search-up-slot .aa-SubmitButton:focus,
.nkf-header-search-up-slot .aa-ClearButton:focus {
  color: #111827;
  background: transparent;
  box-shadow: none;
  outline: none;
}

.nkf-header-search-up-slot .aa-LoadingIndicator {
  color: rgba(17, 24, 39, 0.62);
}

/* Autocomplete panel ---------------------------------------------------- */
.aa-Panel {
  z-index: 100000;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  color: #111827;
  font-family: inherit;
}

.aa-Panel .aa-PanelLayout {
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 4px;
}

.aa-Panel .aa-SourceHeader {
  margin: 2px 4px 4px;
  padding: 6px 6px 4px;
  color: rgba(17, 24, 39, 0.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.aa-Panel .aa-List {
  margin: 0;
  padding: 0;
}

.aa-Panel .aa-Item {
  margin: 0;
  padding: 0;
  border-radius: 3px;
}

.aa-Panel .aa-Item[aria-selected="true"] {
  background: rgba(15, 23, 42, 0.05);
}

.aa-Panel .aa-ItemContent {
  padding: 0;
}

/* Product suggestions --------------------------------------------------- */
.aa-Panel .vvts-ac-product {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  color: inherit;
  text-decoration: none;
}

.aa-Panel .vvts-ac-product:hover,
.aa-Panel .vvts-ac-product:focus {
  color: inherit;
  text-decoration: none;
  outline: none;
}

.aa-Panel .vvts-ac-product-img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border-radius: 3px;
}

.aa-Panel .vvts-ac-product-body {
  min-width: 0;
}

.aa-Panel .vvts-ac-product-name {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.aa-Panel .vvts-ac-product-price {
  margin-top: 3px;
  color: #111827;
  font-size: 14px;
  line-height: 1.25;
}

.aa-Panel .vvts-ac-product-price strong {
  font-weight: 700;
}

/* Category suggestions stay calm and compact ---------------------------- */
.aa-Panel .vvts-ac-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  color: #1f2937;
  text-decoration: none;
  border-radius: 3px;
}

.aa-Panel .aa-Item[aria-selected="true"] .vvts-ac-cat,
.aa-Panel .vvts-ac-cat:hover,
.aa-Panel .vvts-ac-cat:focus {
  color: #1f2937;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.05);
  outline: none;
}

.aa-Panel .vvts-ac-cat-name {
  min-width: 0;
  overflow: hidden;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aa-Panel .vvts-ac-cat-count {
  flex: 0 0 auto;
  margin-left: auto;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
}

.aa-Panel .vvts-ac-cat-count::before {
  content: "(";
}

.aa-Panel .vvts-ac-cat-count::after {
  content: ")";
}

/* Mobile --------------------------------------------------------------- */
@media (max-width: 680px) {
  .nkf-header-search-up-slot .aa-Form {
    height: 44px;
    min-height: 44px;
  }

  .nkf-header-search-up-slot .aa-Input {
    font-size: 16px;
    line-height: 44px;
  }

  .aa-Panel .aa-PanelLayout {
    max-height: min(72vh, 560px);
  }

  .aa-Panel .vvts-ac-product {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 9px;
    padding: 8px;
  }

  .aa-Panel .vvts-ac-product-img {
    width: 52px;
    height: 52px;
  }

  .aa-Panel .vvts-ac-product-name,
  .aa-Panel .vvts-ac-product-price {
    font-size: 14px;
  }
}

/* NØSEN v0.2.1.2 – dropdown scroll lock ----------------------------- */
.aa-Panel {
  max-height: min(70vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.aa-Panel .aa-PanelLayout {
  max-height: min(70vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 680px) {
  .aa-Panel,
  .aa-Panel .aa-PanelLayout {
    max-height: min(72vh, 560px);
  }
}

/* NØSEN v0.3.0 – controlled Typesense search page foundation --------- */
.vvts-controlled-search-page,
.noesen-vvts-search-page {
  width: min(100%, 1520px);
  margin-inline: auto;
}

.vvts-controlled-search-page .vvts-app,
.noesen-vvts-search-page .vvts-app {
  width: 100%;
  max-width: 1520px;
  margin-inline: auto;
}

.vvts-controlled-search-page .vvts-layout,
.noesen-vvts-search-page .vvts-layout {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(18px, 2vw, 28px);
}

.vvts-controlled-search-page .vvts-facets,
.noesen-vvts-search-page .vvts-facets {
  max-width: 280px;
}

@media (max-width: 900px) {
  .vvts-controlled-search-page .vvts-layout,
  .noesen-vvts-search-page .vvts-layout {
    display: block;
  }

  .vvts-controlled-search-page .vvts-facets,
  .noesen-vvts-search-page .vvts-facets {
    max-width: none;
  }
}

/* NØSEN v0.3.1 – controlled search page layout width polish ----------- */
.vvts-controlled-search-page,
.noesen-vvts-search-page {
  width: 100%;
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(14px, 2vw, 28px);
  padding-right: clamp(14px, 2vw, 28px);
}

.vvts-controlled-search-page .vvts-app,
.noesen-vvts-search-page .vvts-app {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-top: clamp(14px, 2vw, 24px);
  padding-bottom: clamp(24px, 3vw, 44px);
}

.vvts-controlled-search-page .vvts-header,
.noesen-vvts-search-page .vvts-header {
  margin-bottom: clamp(16px, 2vw, 24px);
}

.vvts-controlled-search-page .vvts-searchbox,
.noesen-vvts-search-page .vvts-searchbox {
  max-width: 860px;
}

.vvts-controlled-search-page .vvts-searchbox .ais-SearchBox-input,
.noesen-vvts-search-page .vvts-searchbox .ais-SearchBox-input {
  min-height: 44px;
  border-radius: 4px;
  border-color: rgba(17, 24, 39, 0.16);
  box-shadow: none;
}

.vvts-controlled-search-page .vvts-layout,
.noesen-vvts-search-page .vvts-layout {
  display: grid;
  grid-template-columns: minmax(230px, 275px) minmax(0, 1fr);
  gap: clamp(18px, 2vw, 30px);
  align-items: start;
}

.vvts-controlled-search-page .vvts-facets,
.noesen-vvts-search-page .vvts-facets {
  width: 100%;
  max-width: 275px;
  gap: 1rem;
}

.vvts-controlled-search-page .vvts-facet,
.noesen-vvts-search-page .vvts-facet {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.vvts-controlled-search-page .vvts-facet h3,
.noesen-vvts-search-page .vvts-facet h3 {
  margin-bottom: 0.55rem;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.vvts-controlled-search-page .vvts-results,
.noesen-vvts-search-page .vvts-results {
  min-width: 0;
}

.vvts-controlled-search-page .vvts-toolbar,
.noesen-vvts-search-page .vvts-toolbar {
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.vvts-controlled-search-page .vvts-hits .ais-Hits-list,
.noesen-vvts-search-page .vvts-hits .ais-Hits-list,
.vvts-controlled-search-page .vvts-hits__list,
.noesen-vvts-search-page .vvts-hits__list {
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: clamp(16px, 1.6vw, 22px);
}

.vvts-controlled-search-page .vvts-product-card,
.noesen-vvts-search-page .vvts-product-card {
  border-radius: 4px;
}

.vvts-controlled-search-page .vvts-add-to-cart,
.noesen-vvts-search-page .vvts-add-to-cart {
  border-radius: 3px;
}

@media (min-width: 1500px) {
  .vvts-controlled-search-page,
  .noesen-vvts-search-page {
    max-width: 1520px;
  }

  .vvts-controlled-search-page .vvts-layout,
  .noesen-vvts-search-page .vvts-layout {
    grid-template-columns: minmax(240px, 285px) minmax(0, 1fr);
  }

  .vvts-controlled-search-page .vvts-facets,
  .noesen-vvts-search-page .vvts-facets {
    max-width: 285px;
  }
}

@media (max-width: 1100px) {
  .vvts-controlled-search-page .vvts-layout,
  .noesen-vvts-search-page .vvts-layout {
    grid-template-columns: minmax(215px, 250px) minmax(0, 1fr);
    gap: 18px;
  }

  .vvts-controlled-search-page .vvts-facets,
  .noesen-vvts-search-page .vvts-facets {
    max-width: 250px;
  }

  .vvts-controlled-search-page .vvts-hits .ais-Hits-list,
  .noesen-vvts-search-page .vvts-hits .ais-Hits-list,
  .vvts-controlled-search-page .vvts-hits__list,
  .noesen-vvts-search-page .vvts-hits__list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 900px) {
  .vvts-controlled-search-page,
  .noesen-vvts-search-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .vvts-controlled-search-page .vvts-layout,
  .noesen-vvts-search-page .vvts-layout {
    display: block;
  }

  .vvts-controlled-search-page .vvts-facets,
  .noesen-vvts-search-page .vvts-facets {
    width: 100%;
    max-width: none;
    margin-bottom: 18px;
  }

  .vvts-controlled-search-page .vvts-toolbar,
  .noesen-vvts-search-page .vvts-toolbar {
    flex-wrap: wrap;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .vvts-controlled-search-page .vvts-hits .ais-Hits-list,
  .noesen-vvts-search-page .vvts-hits .ais-Hits-list,
  .vvts-controlled-search-page .vvts-hits__list,
  .noesen-vvts-search-page .vvts-hits__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}


/* NØSEN v0.3.2 – controlled search page filter search placement -------- */
.vvts-controlled-search-page .noesen-vvts-panel-search,
.noesen-vvts-search-page .noesen-vvts-panel-search {
  margin: 0 0 1rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.vvts-controlled-search-page .noesen-vvts-panel-label,
.noesen-vvts-search-page .noesen-vvts-panel-label {
  margin: 0 0 0.55rem;
  color: #4b5563;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vvts-controlled-search-page .vvts-facets .vvts-header,
.noesen-vvts-search-page .vvts-facets .vvts-header {
  margin: 0;
}

.vvts-controlled-search-page .vvts-facets .vvts-searchbox,
.noesen-vvts-search-page .vvts-facets .vvts-searchbox {
  width: 100%;
  max-width: none;
  margin: 0;
}

.vvts-controlled-search-page .vvts-facets .vvts-searchbox .ais-SearchBox-form,
.noesen-vvts-search-page .vvts-facets .vvts-searchbox .ais-SearchBox-form,
.vvts-controlled-search-page .vvts-facets .vvts-searchbox__form,
.noesen-vvts-search-page .vvts-facets .vvts-searchbox__form {
  height: 44px;
  min-height: 44px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

.vvts-controlled-search-page .vvts-facets .vvts-searchbox .ais-SearchBox-input,
.noesen-vvts-search-page .vvts-facets .vvts-searchbox .ais-SearchBox-input,
.vvts-controlled-search-page .vvts-facets .vvts-searchbox__input,
.noesen-vvts-search-page .vvts-facets .vvts-searchbox__input {
  min-height: 42px;
  padding-left: 42px;
  padding-right: 42px;
  font-size: 15px;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
}

.vvts-controlled-search-page .vvts-facets .vvts-searchbox .ais-SearchBox-submit,
.noesen-vvts-search-page .vvts-facets .vvts-searchbox .ais-SearchBox-submit,
.vvts-controlled-search-page .vvts-facets .vvts-searchbox .ais-SearchBox-reset,
.noesen-vvts-search-page .vvts-facets .vvts-searchbox .ais-SearchBox-reset,
.vvts-controlled-search-page .vvts-facets .vvts-searchbox__submit,
.noesen-vvts-search-page .vvts-facets .vvts-searchbox__submit,
.vvts-controlled-search-page .vvts-facets .vvts-searchbox__reset,
.noesen-vvts-search-page .vvts-facets .vvts-searchbox__reset {
  width: 38px;
  height: 42px;
}

.vvts-controlled-search-page .vvts-results > .vvts-header,
.noesen-vvts-search-page .vvts-results > .vvts-header,
.vvts-controlled-search-page > .vvts-header,
.noesen-vvts-search-page > .vvts-header {
  display: none;
}

.vvts-controlled-search-page .vvts-results .vvts-toolbar,
.noesen-vvts-search-page .vvts-results .vvts-toolbar {
  margin-top: 0;
}

@media (max-width: 900px) {
  .vvts-controlled-search-page .noesen-vvts-panel-search,
  .noesen-vvts-search-page .noesen-vvts-panel-search {
    margin-bottom: 1rem;
  }
}


/* NØSEN v0.3.2.1 – controlled search page search panel toggle polish --- */
.vvts-controlled-search-page .noesen-vvts-filter-section--search,
.noesen-vvts-search-page .noesen-vvts-filter-section--search {
  margin: 0 0 1rem;
  padding: 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.vvts-controlled-search-page .noesen-vvts-filter-section-toggle,
.noesen-vvts-search-page .noesen-vvts-filter-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #374151;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  box-shadow: none;
  cursor: pointer;
}

.vvts-controlled-search-page .noesen-vvts-filter-section-toggle:hover,
.vvts-controlled-search-page .noesen-vvts-filter-section-toggle:focus,
.noesen-vvts-search-page .noesen-vvts-filter-section-toggle:hover,
.noesen-vvts-search-page .noesen-vvts-filter-section-toggle:focus {
  color: #111827;
  background: transparent;
  box-shadow: none;
  outline: none;
}

.vvts-controlled-search-page .noesen-vvts-filter-section-toggle:focus-visible,
.noesen-vvts-search-page .noesen-vvts-filter-section-toggle:focus-visible {
  outline: 2px solid rgba(47, 125, 50, 0.28);
  outline-offset: 3px;
}

.vvts-controlled-search-page .noesen-vvts-filter-section-chevron,
.noesen-vvts-search-page .noesen-vvts-filter-section-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1;
  transform: rotate(180deg);
  transition: transform 0.14s ease;
}

.vvts-controlled-search-page .noesen-vvts-filter-section--search.is-closed .noesen-vvts-filter-section-chevron,
.noesen-vvts-search-page .noesen-vvts-filter-section--search.is-closed .noesen-vvts-filter-section-chevron {
  transform: rotate(0deg);
}

.vvts-controlled-search-page .noesen-vvts-filter-section-body,
.noesen-vvts-search-page .noesen-vvts-filter-section-body {
  padding: 0 0 1rem;
}

.vvts-controlled-search-page .noesen-vvts-filter-section--search.is-closed .noesen-vvts-filter-section-body,
.noesen-vvts-search-page .noesen-vvts-filter-section--search.is-closed .noesen-vvts-filter-section-body {
  display: none;
}

.vvts-controlled-search-page .noesen-vvts-filter-section--search .vvts-header,
.noesen-vvts-search-page .noesen-vvts-filter-section--search .vvts-header {
  margin: 0;
}

.vvts-controlled-search-page .noesen-vvts-filter-section--search .vvts-searchbox,
.noesen-vvts-search-page .noesen-vvts-filter-section--search .vvts-searchbox {
  width: 100%;
  max-width: none;
  margin: 0;
}

.vvts-controlled-search-page .noesen-vvts-filter-section--search .ais-SearchBox-form,
.noesen-vvts-search-page .noesen-vvts-filter-section--search .ais-SearchBox-form,
.vvts-controlled-search-page .noesen-vvts-filter-section--search .vvts-searchbox__form,
.noesen-vvts-search-page .noesen-vvts-filter-section--search .vvts-searchbox__form {
  height: 43px;
  min-height: 43px;
  border-radius: 3px;
}

.vvts-controlled-search-page .noesen-vvts-filter-section--search .ais-SearchBox-input,
.noesen-vvts-search-page .noesen-vvts-filter-section--search .ais-SearchBox-input,
.vvts-controlled-search-page .noesen-vvts-filter-section--search .vvts-searchbox__input,
.noesen-vvts-search-page .noesen-vvts-filter-section--search .vvts-searchbox__input {
  min-height: 41px;
  font-size: 14px;
}

/* Retire the old v0.3.2 panel label if browser cache leaves old markup around. */
.vvts-controlled-search-page .noesen-vvts-panel-search .noesen-vvts-panel-label,
.noesen-vvts-search-page .noesen-vvts-panel-search .noesen-vvts-panel-label {
  min-height: 44px;
  display: flex;
  align-items: center;
  margin-bottom: 0.35rem;
}

/* NØSEN v0.3.2.2 – controlled search page filters start collapsed -------- */
.vvts-controlled-search-page .noesen-vvts-filter-section--search.is-closed .noesen-vvts-filter-section-body,
.noesen-vvts-search-page .noesen-vvts-filter-section--search.is-closed .noesen-vvts-filter-section-body,
.vvts-controlled-search-page .vvts-facet.is-collapsed .vvts-facet__body,
.noesen-vvts-search-page .vvts-facet.is-collapsed .vvts-facet__body {
  display: none;
}

.vvts-controlled-search-page .vvts-facet.is-collapsed .vvts-facet__chevron,
.noesen-vvts-search-page .vvts-facet.is-collapsed .vvts-facet__chevron {
  transform: rotate(-90deg);
}

.vvts-controlled-search-page .vvts-facet.is-open .vvts-facet__chevron,
.noesen-vvts-search-page .vvts-facet.is-open .vvts-facet__chevron {
  transform: rotate(0deg);
}

.vvts-controlled-search-page .vvts-facet__toggle,
.noesen-vvts-search-page .vvts-facet__toggle {
  min-height: 44px;
  padding: 0;
}

.vvts-controlled-search-page .vvts-facet__body,
.noesen-vvts-search-page .vvts-facet__body {
  padding: 0 0 1rem;
}

.vvts-controlled-search-page .vvts-facet.is-collapsed,
.noesen-vvts-search-page .vvts-facet.is-collapsed,
.vvts-controlled-search-page .noesen-vvts-filter-section--search.is-closed,
.noesen-vvts-search-page .noesen-vvts-filter-section--search.is-closed {
  padding-bottom: 0;
  margin-bottom: 0;
}

/* NØSEN v0.3.3 – controlled category archive Typesense foundation ------- */
/*
 * v0.3.3.1 hotfix: keep the legacy FacetWP template wrapper visible when
 * the Typesense app has been injected inside it. v0.3.3 hid
 * `.facetwp-template`, which also hid `.vvts-controlled-category-archive`.
 * Only the old FacetWP/KategoriFlow controls are hidden in category mode.
 */
body.vvts-controlled-category-archive-active .facetwp-template {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
}

body.vvts-controlled-category-archive-active #wc-column-container,
body.vvts-controlled-category-archive-active .wc-columns-container,
body.vvts-controlled-category-archive-active .inside-article,
body.vvts-controlled-category-archive-active .entry-content {
  display: block !important;
  visibility: visible !important;
  overflow: visible !important;
}

body.vvts-controlled-category-archive-active .nkf-filter-panel,
body.vvts-controlled-category-archive-active #left-sidebar,
body.vvts-controlled-category-archive-active .widget-area.sidebar.nkf-filter-panel,
body.vvts-controlled-category-archive-active .facetwp-flyout-open,
body.vvts-controlled-category-archive-active .vinnvinn-flyout,
body.vvts-controlled-category-archive-active .nkf-filterbar,
body.vvts-controlled-category-archive-active .nkf-toolbar-filter,
body.vvts-controlled-category-archive-active .nkf-toolbar-sorting,
body.vvts-controlled-category-archive-active .nkf-archive-toolbar .facetwp-facet,
body.vvts-controlled-category-archive-active .woocommerce-result-count,
body.vvts-controlled-category-archive-active .woocommerce-ordering {
  display: none !important;
}

body.vvts-controlled-category-archive-active .vvts-controlled-category-archive,
body.vvts-controlled-category-archive-active .noesen-vvts-search-page--category-archive {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
  margin-top: clamp(10px, 1.5vw, 20px);
  margin-bottom: clamp(26px, 4vw, 54px);
}

body.vvts-controlled-category-archive-active .vvts-controlled-category-archive .vvts-layout,
body.vvts-controlled-category-archive-active .noesen-vvts-search-page--category-archive .vvts-layout {
  visibility: visible !important;
  opacity: 1 !important;
}

/* NØSEN v0.3.3.2 – category archive hierarchy and legacy button cleanup -- */
body.noesen-vvts-category-archive-active .nkf-filter-toggle,
body.noesen-vvts-category-archive-active .nkf-filter-handle,
body.noesen-vvts-category-archive-active .nkf-filter-handle-inner,
body.noesen-vvts-category-archive-active .nkf-toolbar-filter,
body.noesen-vvts-category-archive-active .nkf-filterbar,
body.noesen-vvts-category-archive-active .facetwp-flyout-open,
body.noesen-vvts-category-archive-active .vinnvinn-flyout,
body.vvts-controlled-category-archive-active .nkf-filter-toggle,
body.vvts-controlled-category-archive-active .nkf-filter-handle,
body.vvts-controlled-category-archive-active .nkf-filter-handle-inner,
body.vvts-controlled-category-archive-active .nkf-toolbar-filter,
body.vvts-controlled-category-archive-active .nkf-filterbar,
body.vvts-controlled-category-archive-active .facetwp-flyout-open,
body.vvts-controlled-category-archive-active .vinnvinn-flyout {
  display: none !important;
  visibility: hidden !important;
}

.noesen-vvts-search-page--category-archive .vvts-facet--category-path .vvts-facet__body,
.vvts-controlled-category-archive .vvts-facet--category-path .vvts-facet__body {
  display: block !important;
}

.noesen-vvts-search-page--category-archive .vvts-category-path,
.vvts-controlled-category-archive .vvts-category-path {
  margin: 0 0 0.85rem;
  padding: 0.1rem 0 0.75rem;
  border-bottom: 1px solid #edf0f2;
}

.noesen-vvts-search-page--category-archive .vvts-category-path__list,
.vvts-controlled-category-archive .vvts-category-path__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.noesen-vvts-search-page--category-archive .vvts-category-path__item,
.vvts-controlled-category-archive .vvts-category-path__item {
  position: relative;
  margin: 0;
  padding: 0.24rem 0 0.24rem 0.95rem;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.35;
}

.noesen-vvts-search-page--category-archive .vvts-category-path__item::before,
.vvts-controlled-category-archive .vvts-category-path__item::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.82rem;
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 999px;
  border: 1px solid #cbd5df;
  background: #fff;
}

.noesen-vvts-search-page--category-archive .vvts-category-path__item + .vvts-category-path__item,
.vvts-controlled-category-archive .vvts-category-path__item + .vvts-category-path__item {
  margin-left: 0.65rem;
}

.noesen-vvts-search-page--category-archive .vvts-category-path__link,
.vvts-controlled-category-archive .vvts-category-path__link {
  color: #4b5563;
  text-decoration: none;
}

.noesen-vvts-search-page--category-archive .vvts-category-path__link:hover,
.vvts-controlled-category-archive .vvts-category-path__link:hover {
  color: #2f7d32;
  text-decoration: underline;
}

.noesen-vvts-search-page--category-archive .vvts-category-path__item.is-current,
.vvts-controlled-category-archive .vvts-category-path__item.is-current {
  color: #2f7d32;
  font-weight: 700;
}

.noesen-vvts-search-page--category-archive .vvts-category-path__item.is-current::before,
.vvts-controlled-category-archive .vvts-category-path__item.is-current::before {
  border-color: #4caf50;
  background: #4caf50;
}


/* NØSEN v0.3.3.3 – floating legacy filter button cleanup + search state support */
body.noesen-vvts-category-archive-active .nkf-filter-toggle,
body.noesen-vvts-category-archive-active .nkf-filter-handle,
body.noesen-vvts-category-archive-active .nkf-filter-handle-inner,
body.noesen-vvts-category-archive-active .nkf-toolbar-filter,
body.noesen-vvts-category-archive-active .nkf-filterbar,
body.noesen-vvts-category-archive-active .facetwp-flyout-open,
body.noesen-vvts-category-archive-active .vinnvinn-flyout,
body.noesen-vvts-category-archive-active button.facetwp-flyout-open,
body.noesen-vvts-category-archive-active button.vinnvinn-flyout,
body.vvts-controlled-category-archive-active .nkf-filter-toggle,
body.vvts-controlled-category-archive-active .nkf-filter-handle,
body.vvts-controlled-category-archive-active .nkf-filter-handle-inner,
body.vvts-controlled-category-archive-active .nkf-toolbar-filter,
body.vvts-controlled-category-archive-active .nkf-filterbar,
body.vvts-controlled-category-archive-active .facetwp-flyout-open,
body.vvts-controlled-category-archive-active .vinnvinn-flyout,
body.vvts-controlled-category-archive-active button.facetwp-flyout-open,
body.vvts-controlled-category-archive-active button.vinnvinn-flyout {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (min-width: 769px) {
  body.noesen-vvts-category-archive-active .vvts-mobile-filter-toggle,
  body.vvts-controlled-category-archive-active .vvts-mobile-filter-toggle {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}


/* NØSEN v0.3.3.3.1 – final NKF floating filter handle cleanup */
body.noesen-vvts-category-archive-active .nkf-filter-handle,
body.noesen-vvts-category-archive-active .nkf-filter-handle-inner,
body.noesen-vvts-category-archive-active button.nkf-filter-handle,
body.vvts-controlled-category-archive-active .nkf-filter-handle,
body.vvts-controlled-category-archive-active .nkf-filter-handle-inner,
body.vvts-controlled-category-archive-active button.nkf-filter-handle {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}


/* NØSEN v0.3.3.5 – category archive header spacing polish -------- */
/* Scope: only when UP/Typesense controls the WooCommerce product category archive. */
body.noesen-vvts-category-archive-active .woocommerce-breadcrumb .breadcrumb_last,
body.noesen-vvts-category-archive-active .woocommerce-breadcrumb span:last-child,
body.noesen-vvts-category-archive-active .woocommerce-breadcrumb > .last,
body.noesen-vvts-category-archive-active .woocommerce-breadcrumb > span:last-of-type,
body.vvts-controlled-category-archive-active .woocommerce-breadcrumb .breadcrumb_last,
body.vvts-controlled-category-archive-active .woocommerce-breadcrumb span:last-child,
body.vvts-controlled-category-archive-active .woocommerce-breadcrumb > .last,
body.vvts-controlled-category-archive-active .woocommerce-breadcrumb > span:last-of-type {
  color: #3f8f3f !important;
  font-weight: 600;
}

body.noesen-vvts-category-archive-active h1.woocommerce-products-header__title,
body.noesen-vvts-category-archive-active .woocommerce-products-header__title.page-title,
body.noesen-vvts-category-archive-active .woocommerce-products-header h1.page-title,
body.vvts-controlled-category-archive-active h1.woocommerce-products-header__title,
body.vvts-controlled-category-archive-active .woocommerce-products-header__title.page-title,
body.vvts-controlled-category-archive-active .woocommerce-products-header h1.page-title {
  display: none !important;
}

body.noesen-vvts-category-archive-active .woocommerce-products-header,
body.vvts-controlled-category-archive-active .woocommerce-products-header {
  margin-bottom: clamp(12px, 1.7vw, 22px) !important;
  padding-bottom: 0 !important;
}

body.noesen-vvts-category-archive-active .term-description,
body.noesen-vvts-category-archive-active .woocommerce-products-header .term-description,
body.noesen-vvts-category-archive-active .nkf-category-description,
body.noesen-vvts-category-archive-active .nkf-category-ingress,
body.noesen-vvts-category-archive-active .nkf-archive-ingress,
body.noesen-vvts-category-archive-active .nkf-term-description,
body.vvts-controlled-category-archive-active .term-description,
body.vvts-controlled-category-archive-active .woocommerce-products-header .term-description,
body.vvts-controlled-category-archive-active .nkf-category-description,
body.vvts-controlled-category-archive-active .nkf-category-ingress,
body.vvts-controlled-category-archive-active .nkf-archive-ingress,
body.vvts-controlled-category-archive-active .nkf-term-description {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.noesen-vvts-category-archive-active .term-description > *:last-child,
body.noesen-vvts-category-archive-active .woocommerce-products-header .term-description > *:last-child,
body.noesen-vvts-category-archive-active .nkf-category-description > *:last-child,
body.noesen-vvts-category-archive-active .nkf-category-ingress > *:last-child,
body.noesen-vvts-category-archive-active .nkf-archive-ingress > *:last-child,
body.vvts-controlled-category-archive-active .term-description > *:last-child,
body.vvts-controlled-category-archive-active .woocommerce-products-header .term-description > *:last-child,
body.vvts-controlled-category-archive-active .nkf-category-description > *:last-child,
body.vvts-controlled-category-archive-active .nkf-category-ingress > *:last-child,
body.vvts-controlled-category-archive-active .nkf-archive-ingress > *:last-child {
  margin-bottom: 0;
}

body.noesen-vvts-category-archive-active .nkf-subcategory-grid,
body.noesen-vvts-category-archive-active .nkf-subcategory-list,
body.noesen-vvts-category-archive-active .nkf-subcategory-row,
body.noesen-vvts-category-archive-active .nkf-category-children,
body.noesen-vvts-category-archive-active .nkf-subcategories,
body.noesen-vvts-category-archive-active .woocommerce .products.subcategories,
body.vvts-controlled-category-archive-active .nkf-subcategory-grid,
body.vvts-controlled-category-archive-active .nkf-subcategory-list,
body.vvts-controlled-category-archive-active .nkf-subcategory-row,
body.vvts-controlled-category-archive-active .nkf-category-children,
body.vvts-controlled-category-archive-active .nkf-subcategories,
body.vvts-controlled-category-archive-active .woocommerce .products.subcategories {
  margin-bottom: clamp(10px, 1.5vw, 18px) !important;
}

body.noesen-vvts-category-archive-active .vvts-controlled-category-archive,
body.noesen-vvts-category-archive-active .noesen-vvts-search-page--category-archive,
body.vvts-controlled-category-archive-active .vvts-controlled-category-archive,
body.vvts-controlled-category-archive-active .noesen-vvts-search-page--category-archive {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.noesen-vvts-category-archive-active .woocommerce-products-header + .facetwp-template,
body.noesen-vvts-category-archive-active .woocommerce-products-header + #wc-column-container,
body.noesen-vvts-category-archive-active .woocommerce-products-header + .wc-columns-container,
body.vvts-controlled-category-archive-active .woocommerce-products-header + .facetwp-template,
body.vvts-controlled-category-archive-active .woocommerce-products-header + #wc-column-container,
body.vvts-controlled-category-archive-active .woocommerce-products-header + .wc-columns-container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* NØSEN v0.3.3.6.1 – safe server-rendered category ingress title label -------- */
body.noesen-vvts-category-archive-active .term-description .noesen-vvts-ingress-title,
body.noesen-vvts-category-archive-active .nkf-archive-description .noesen-vvts-ingress-title,
body.noesen-vvts-category-archive-active .nkf-native-archive-description .noesen-vvts-ingress-title,
body.vvts-controlled-category-archive-active .term-description .noesen-vvts-ingress-title,
body.vvts-controlled-category-archive-active .nkf-archive-description .noesen-vvts-ingress-title,
body.vvts-controlled-category-archive-active .nkf-native-archive-description .noesen-vvts-ingress-title {
  margin: 0 0 6px !important;
  color: #3f8f3f !important;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
}

@media (max-width: 768px) {
  body.noesen-vvts-category-archive-active .term-description .noesen-vvts-ingress-title,
  body.noesen-vvts-category-archive-active .nkf-archive-description .noesen-vvts-ingress-title,
  body.noesen-vvts-category-archive-active .nkf-native-archive-description .noesen-vvts-ingress-title,
  body.vvts-controlled-category-archive-active .term-description .noesen-vvts-ingress-title,
  body.vvts-controlled-category-archive-active .nkf-archive-description .noesen-vvts-ingress-title,
  body.vvts-controlled-category-archive-active .nkf-native-archive-description .noesen-vvts-ingress-title {
    font-size: 16.5px;
  }
}


/* NØSEN v0.3.3.7 – mobile Typesense filter foundation -------- */
/* Scope: only UP/Typesense search/category result views. Desktop remains governed by the existing layout. */
@media (max-width: 768px) {
  .noesen-vvts-search-page .vvts-layout,
  .vvts-controlled-category-archive .vvts-layout {
    display: block !important;
    width: 100%;
  }

  .noesen-vvts-search-page .vvts-facets,
  .vvts-controlled-category-archive .vvts-facets {
    display: none !important;
  }

  .noesen-vvts-search-page .vvts-results,
  .vvts-controlled-category-archive .vvts-results {
    width: 100%;
    min-width: 0;
  }

  .noesen-vvts-search-page .vvts-toolbar,
  .vvts-controlled-category-archive .vvts-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
  }

  .noesen-vvts-search-page .vvts-mobile-filter-toggle,
  .vvts-controlled-category-archive .vvts-mobile-filter-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #d6dde2;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2933;
    font-size: 14px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  }

  .noesen-vvts-search-page .vvts-mobile-filter-toggle:focus-visible,
  .vvts-controlled-category-archive .vvts-mobile-filter-toggle:focus-visible {
    outline: 2px solid rgba(47, 125, 50, 0.35);
    outline-offset: 2px;
  }

  .noesen-vvts-search-page .vvts-mobile-filter-toggle__count,
  .vvts-controlled-category-archive .vvts-mobile-filter-toggle__count {
    background: #2f7d32;
    color: #ffffff;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
  }

  .noesen-vvts-search-page .vvts-drawer,
  .vvts-controlled-category-archive .vvts-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 999999;
    pointer-events: none;
  }

  .noesen-vvts-search-page .vvts-drawer.is-open,
  .vvts-controlled-category-archive .vvts-drawer.is-open {
    pointer-events: auto;
  }

  .noesen-vvts-search-page .vvts-drawer__backdrop,
  .vvts-controlled-category-archive .vvts-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.42);
    opacity: 0;
    transition: opacity 180ms ease;
    pointer-events: none;
  }

  .noesen-vvts-search-page .vvts-drawer.is-open .vvts-drawer__backdrop,
  .vvts-controlled-category-archive .vvts-drawer.is-open .vvts-drawer__backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .noesen-vvts-search-page .vvts-drawer__panel,
  .vvts-controlled-category-archive .vvts-drawer__panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(92vw, 390px);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 190ms ease;
    box-shadow: 8px 0 28px rgba(15, 23, 42, 0.18);
  }

  .noesen-vvts-search-page .vvts-drawer.is-open .vvts-drawer__panel,
  .vvts-controlled-category-archive .vvts-drawer.is-open .vvts-drawer__panel {
    transform: translateX(0);
  }

  .noesen-vvts-search-page .vvts-drawer__header,
  .vvts-controlled-category-archive .vvts-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
  }

  .noesen-vvts-search-page .vvts-drawer__header h2,
  .vvts-controlled-category-archive .vvts-drawer__header h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 750;
    color: #111827;
  }

  .noesen-vvts-search-page .vvts-drawer__close,
  .vvts-controlled-category-archive .vvts-drawer__close {
    appearance: none;
    border: 0;
    background: transparent;
    color: #374151;
    font-size: 28px;
    line-height: 1;
    padding: 2px 4px;
    cursor: pointer;
  }

  .noesen-vvts-search-page .vvts-drawer__body,
  .vvts-controlled-category-archive .vvts-drawer__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 16px 84px;
  }

  .noesen-vvts-search-page .vvts-drawer__footer,
  .vvts-controlled-category-archive .vvts-drawer__footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
  }

  .noesen-vvts-search-page .vvts-drawer__apply,
  .vvts-controlled-category-archive .vvts-drawer__apply {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    background: #2f7d32;
    color: #ffffff;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
  }

  .noesen-vvts-search-page .vvts-hits,
  .vvts-controlled-category-archive .vvts-hits {
    width: 100%;
    min-width: 0;
  }
}

@media (min-width: 769px) {
  .noesen-vvts-search-page .vvts-mobile-filter-toggle,
  .vvts-controlled-category-archive .vvts-mobile-filter-toggle,
  .noesen-vvts-search-page .vvts-drawer,
  .vvts-controlled-category-archive .vvts-drawer {
    display: none !important;
  }
}

/* NØSEN v0.3.3.7.1 – mobile search state and drawer content fix -------- */
@media (max-width: 768px) {
  .noesen-vvts-search-page .vvts-mobile-filter-toggle,
  .vvts-controlled-category-archive .vvts-mobile-filter-toggle {
    display: inline-flex !important;
  }

  body.noesen-vvts-mobile-filter-open .noesen-vvts-search-page .vvts-facets,
  body.noesen-vvts-mobile-filter-open .vvts-controlled-category-archive .vvts-facets,
  body.noesen-vvts-mobile-filter-open .vvts-app .vvts-facets {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: min(92vw, 390px) !important;
    max-width: 390px !important;
    height: 100vh !important;
    z-index: 1000000 !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    padding: 16px 16px 92px !important;
    box-shadow: 8px 0 28px rgba(15, 23, 42, 0.18) !important;
    transform: translateX(0) !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  body.noesen-vvts-mobile-filter-open .noesen-vvts-search-page .vvts-drawer,
  body.noesen-vvts-mobile-filter-open .vvts-controlled-category-archive .vvts-drawer,
  body.noesen-vvts-mobile-filter-open .vvts-app .vvts-drawer {
    display: block !important;
    pointer-events: auto !important;
  }

  body.noesen-vvts-mobile-filter-open .noesen-vvts-search-page .vvts-drawer__backdrop,
  body.noesen-vvts-mobile-filter-open .vvts-controlled-category-archive .vvts-drawer__backdrop,
  body.noesen-vvts-mobile-filter-open .vvts-app .vvts-drawer__backdrop {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.noesen-vvts-mobile-filter-open .noesen-vvts-search-page .vvts-drawer__panel,
  body.noesen-vvts-mobile-filter-open .vvts-controlled-category-archive .vvts-drawer__panel,
  body.noesen-vvts-mobile-filter-open .vvts-app .vvts-drawer__panel {
    pointer-events: none !important;
    transform: translateX(-100%) !important;
  }

  body.noesen-vvts-mobile-filter-open .noesen-vvts-search-page .vvts-facets::before,
  body.noesen-vvts-mobile-filter-open .vvts-controlled-category-archive .vvts-facets::before,
  body.noesen-vvts-mobile-filter-open .vvts-app .vvts-facets::before {
    content: "Filter";
    display: block;
    margin: 0 0 8px;
    padding: 0 36px 12px 0;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 750;
  }

  body.noesen-vvts-mobile-filter-open .noesen-vvts-search-page .vvts-facets::after,
  body.noesen-vvts-mobile-filter-open .vvts-controlled-category-archive .vvts-facets::after,
  body.noesen-vvts-mobile-filter-open .vvts-app .vvts-facets::after {
    content: "Lukk";
    display: block;
    position: sticky;
    bottom: -92px;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 6px;
    background: #2f7d32;
    color: #ffffff;
    text-align: center;
    font-size: 15px;
    font-weight: 750;
    line-height: 1;
  }

  body.noesen-vvts-category-archive-active .nkf-filter-handle,
  body.noesen-vvts-category-archive-active .nkf-filter-handle-inner,
  body.noesen-vvts-category-archive-active button.nkf-filter-handle,
  body.noesen-vvts-category-archive-active .facetwp-flyout-open,
  body.noesen-vvts-category-archive-active .vinnvinn-flyout,
  body.noesen-vvts-category-archive-active .nkf-filter-toggle,
  body.noesen-vvts-category-archive-active .nkf-toolbar-filter,
  body.noesen-vvts-category-archive-active .nkf-filterbar,
  body.vvts-controlled-category-archive-active .nkf-filter-handle,
  body.vvts-controlled-category-archive-active .nkf-filter-handle-inner,
  body.vvts-controlled-category-archive-active button.nkf-filter-handle,
  body.vvts-controlled-category-archive-active .facetwp-flyout-open,
  body.vvts-controlled-category-archive-active .vinnvinn-flyout,
  body.vvts-controlled-category-archive-active .nkf-filter-toggle,
  body.vvts-controlled-category-archive-active .nkf-toolbar-filter,
  body.vvts-controlled-category-archive-active .nkf-filterbar {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

@media (max-width: 768px) {
  .noesen-vvts-search-page .vvts-mobile-filter-close-inline,
  .vvts-controlled-category-archive .vvts-mobile-filter-close-inline,
  .vvts-app .vvts-mobile-filter-close-inline {
    display: none;
  }

  body.noesen-vvts-mobile-filter-open .noesen-vvts-search-page .vvts-mobile-filter-close-inline,
  body.noesen-vvts-mobile-filter-open .vvts-controlled-category-archive .vvts-mobile-filter-close-inline,
  body.noesen-vvts-mobile-filter-open .vvts-app .vvts-mobile-filter-close-inline {
    display: inline-flex !important;
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    appearance: none;
    border: 0;
    background: transparent;
    color: #374151;
    font-size: 15px;
    line-height: 1;
    font-weight: 750;
    padding: 8px;
    cursor: pointer;
  }

  body.noesen-vvts-mobile-filter-open .noesen-vvts-search-page .vvts-facets::after,
  body.noesen-vvts-mobile-filter-open .vvts-controlled-category-archive .vvts-facets::after,
  body.noesen-vvts-mobile-filter-open .vvts-app .vvts-facets::after {
    content: none !important;
    display: none !important;
  }
}

/* NØSEN v0.3.3.7.4 – mobile mega search helper text polish --------- */
.nkf-mobile-mega-v2-search .nkf-mobile-mega-v2-search-help-text,
.nkf-mobile-mega-v2-search #nkf-mobile-mega-v2-search-help {
  display: none !important;
}

/* NØSEN v0.3.3.7.5 – mobile mega live results Typesense handoff --------- */
.nkf-mobile-mega-v2-search .aa-dropdown-menu,
.nkf-mobile-mega-v2-search .algolia-autocomplete .aa-dropdown-menu,
.nkf-mobile-mega-v2-search .aa-Panel {
  display: none !important;
}
.nkf-mobile-mega-v2-search {
  position: relative;
}
.noesen-vvts-mobile-mega-suggestions {
  display: none;
  position: relative;
  margin: 8px 0 0;
  background: #fff;
  border-top: 2px solid #0f172a;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 12px 22px rgba(15,23,42,.08);
  z-index: 9999;
}
.noesen-vvts-mobile-mega-suggestions.is-open {
  display: block;
}
@media (min-width: 769px) {
  .noesen-vvts-mobile-mega-suggestions {
    display: none !important;
  }
}


/* NØSEN v0.3.3.7.6 – mobile mega legacy autocomplete suppression --------- */
.nkf-mobile-mega-v2-search.is-vvts-handoff-active .aa-dropdown-menu,
.nkf-mobile-mega-v2-search.is-vvts-handoff-active .aa-dataset,
.nkf-mobile-mega-v2-search.is-vvts-handoff-active .aa-suggestions,
.nkf-mobile-mega-v2-search.is-vvts-handoff-active .aa-suggestion,
.nkf-mobile-mega-v2-search.is-vvts-handoff-active .algolia-autocomplete .aa-dropdown-menu,
.nkf-mobile-mega-v2-search.is-vvts-handoff-active .aa-Panel,
.nkf-mobile-mega-v2-search.is-vvts-handoff-active .aa-PanelLayout,
.nkf-mobile-mega-v2-search.is-vvts-handoff-active .autocomplete-suggestions,
.nkf-mobile-mega-v2-search.is-vvts-handoff-active .autocomplete-results,
.nkf-mobile-mega-v2-search.is-vvts-handoff-active .search-autocomplete,
.nkf-mobile-mega-v2-search.is-vvts-handoff-active .search-results,
.nkf-mobile-mega-v2-search .algolia-autocomplete .aa-dropdown-menu,
.nkf-mobile-mega-v2-search .aa-dropdown-menu,
body.noesen-vvts-mobile-mega-handoff-active #algolia-autocomplete-listbox-0,
html.noesen-vvts-mobile-mega-handoff-active #algolia-autocomplete-listbox-0 {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* NØSEN v0.3.3.7.8 – mobile filter drawer dead-code cleanup --------- */
.noesen-vvts-search-page .vvts-drawer,
.vvts-controlled-category-archive .vvts-drawer,
.vvts-app .vvts-drawer {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.noesen-vvts-search-page .vvts-drawer__backdrop,
.noesen-vvts-search-page .vvts-drawer__panel,
.noesen-vvts-search-page .vvts-drawer__body,
.noesen-vvts-search-page .vvts-drawer__footer,
.noesen-vvts-search-page .vvts-drawer__apply,
.vvts-controlled-category-archive .vvts-drawer__backdrop,
.vvts-controlled-category-archive .vvts-drawer__panel,
.vvts-controlled-category-archive .vvts-drawer__body,
.vvts-controlled-category-archive .vvts-drawer__footer,
.vvts-controlled-category-archive .vvts-drawer__apply,
.vvts-app .vvts-drawer__backdrop,
.vvts-app .vvts-drawer__panel,
.vvts-app .vvts-drawer__body,
.vvts-app .vvts-drawer__footer,
.vvts-app .vvts-drawer__apply {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.noesen-vvts-search-page .vvts-mobile-filter-close-inline,
.vvts-controlled-category-archive .vvts-mobile-filter-close-inline,
.vvts-app .vvts-mobile-filter-close-inline {
  display: none !important;
}

@media (max-width: 768px) {
  body.noesen-vvts-mobile-filter-open .noesen-vvts-search-page .vvts-mobile-filter-close-inline,
  body.noesen-vvts-mobile-filter-open .vvts-controlled-category-archive .vvts-mobile-filter-close-inline,
  body.noesen-vvts-mobile-filter-open .vvts-app .vvts-mobile-filter-close-inline {
    display: inline-flex !important;
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 3;
    appearance: none;
    border: 0;
    background: transparent;
    color: #374151;
    font-size: 15px;
    line-height: 1;
    font-weight: 750;
    padding: 8px;
    cursor: pointer;
  }
}

/* NØSEN v0.3.3.7.8.1 – mobile filter toggle facets panel hotfix */
@media (max-width: 768px) {
  body.noesen-vvts-mobile-filter-open .vvts-app .vvts-facets {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
  }
}


/* NØSEN v0.3.3.7.8.2 – mobile current refinements chip overflow fix */
.vvts-app .vvts-active-filters,
.vvts-app .vvts-current-refinements,
.vvts-app .ais-CurrentRefinements {
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

.vvts-app .vvts-current-refinements__list,
.vvts-app .ais-CurrentRefinements-list {
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  overflow-x: hidden;
  box-sizing: border-box;
}

.vvts-app .vvts-current-refinements__item,
.vvts-app .ais-CurrentRefinements-item {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.vvts-app .vvts-current-refinements__chip,
.vvts-app .ais-CurrentRefinements-category {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
}

.vvts-app .vvts-current-refinements__chip-label,
.vvts-app .ais-CurrentRefinements-categoryLabel {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

.vvts-app .vvts-current-refinements__chip-delete,
.vvts-app .ais-CurrentRefinements-delete {
  flex: 0 0 auto;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .vvts-app,
  .vvts-app .vvts-results,
  .vvts-app .vvts-toolbar,
  .vvts-app .vvts-active-filters,
  .vvts-app .vvts-current-refinements,
  .vvts-app .ais-CurrentRefinements,
  .vvts-app .vvts-current-refinements__list,
  .vvts-app .ais-CurrentRefinements-list {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .vvts-app .vvts-current-refinements__item,
  .vvts-app .ais-CurrentRefinements-item,
  .vvts-app .vvts-current-refinements__chip,
  .vvts-app .ais-CurrentRefinements-category {
    min-width: 0;
    max-width: 100%;
  }

  .vvts-app .vvts-current-refinements__chip-label,
  .vvts-app .ais-CurrentRefinements-categoryLabel {
    max-width: calc(100vw - 132px);
  }
}

/* NØSEN v0.3.3.7.8.3 – mobile vvts-app alignwide overflow fix */
@media (max-width: 768px) {
  .vvts-controlled-search-page .vvts-app.alignwide,
  .noesen-vvts-search-page.vvts-app.alignwide,
  #vvts-app.vvts-app.alignwide {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
    box-sizing: border-box !important;
  }

  .vvts-controlled-search-page,
  .noesen-vvts-search-page,
  .vvts-app,
  .vvts-layout,
  .vvts-results,
  .vvts-toolbar,
  .vvts-hits,
  .vvts-hits__list {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #vvts-app.vvts-app {
    padding-left: 12px;
    padding-right: 12px;
  }

  .vvts-app .noesen-vvts-category-children,
  .vvts-app .vvts-category-children,
  .vvts-app .nkf-child-list,
  .vvts-app .nkf-child-scroll {
    max-width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
  }
}

/* NØSEN v0.3.4 – product card variable products, equal heights and rating */
.vvts-controlled-search-page .vvts-hits .ais-Hits-item,
.noesen-vvts-search-page .vvts-hits .ais-Hits-item,
.vvts-controlled-search-page .vvts-hits .vvts-hits__item,
.noesen-vvts-search-page .vvts-hits .vvts-hits__item {
  display: flex;
  min-width: 0;
}

.vvts-controlled-search-page .vvts-product-card,
.noesen-vvts-search-page .vvts-product-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.vvts-controlled-search-page .vvts-product-card__link,
.noesen-vvts-search-page .vvts-product-card__link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.vvts-controlled-search-page .vvts-product-card__body,
.noesen-vvts-search-page .vvts-product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.vvts-controlled-search-page .vvts-product-card__title,
.noesen-vvts-search-page .vvts-product-card__title {
  min-height: 2.7em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vvts-controlled-search-page .vvts-product-card__price,
.noesen-vvts-search-page .vvts-product-card__price {
  min-height: 1.5em;
}

.vvts-controlled-search-page .vvts-product-card__rating,
.noesen-vvts-search-page .vvts-product-card__rating {
  min-height: 1.3em;
  display: flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.82rem;
  line-height: 1.2;
  color: #777;
}

.vvts-controlled-search-page .vvts-rating-stars,
.noesen-vvts-search-page .vvts-rating-stars {
  color: #d9a441;
  letter-spacing: 0.02em;
}

.vvts-controlled-search-page .vvts-rating-count,
.noesen-vvts-search-page .vvts-rating-count {
  color: var(--vvts-muted);
}

.vvts-controlled-search-page .vvts-price-current--empty,
.noesen-vvts-search-page .vvts-price-current--empty {
  color: var(--vvts-muted);
  font-weight: 500;
}

.vvts-controlled-search-page .vvts-product-card__button--select,
.noesen-vvts-search-page .vvts-product-card__button--select {
  display: block;
  text-align: center;
  text-decoration: none;
}

.vvts-controlled-search-page .vvts-product-card__button--select:hover,
.vvts-controlled-search-page .vvts-product-card__button--select:focus,
.noesen-vvts-search-page .vvts-product-card__button--select:hover,
.noesen-vvts-search-page .vvts-product-card__button--select:focus {
  color: #fff;
  opacity: 0.92;
}

/* v0.3.4.2 – Product-card rating cleanup */
.vvts-product-card__rating {
    min-height: 1.3em;
}

.vvts-product-card__rating .vvts-rating-count {
    display: none !important;
}

.vvts-product-card__rating.has-rating .vvts-rating-stars {
    color: #d9a441;
}

.vvts-product-card__rating.is-empty .vvts-rating-stars {
    color: #d4d4d4;
}


/* NØSEN UP Typesense v0.3.4.6 – product-card-price-font-size-polish */
.vvts-product-card__price {
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
}

.vvts-product-card__price .vvts-price-current,
.vvts-product-card__price .vvts-price-sale {
    font-size: inherit;
    font-weight: inherit;
}

.vvts-product-card__price .vvts-price-regular {
    font-size: 0.88em;
}

@media (max-width: 768px) {
    .vvts-product-card__price {
        font-size: 17px;
    }
}


/* NØSEN v0.3.4.8.2 – shop-root archive toolbar cleanup
 * Keep WooCommerce shop-root (/butikker/) controlled by Typesense only.
 * Scope is deliberately limited to shop-root body classes so normal product
 * categories, KategoriFlow, FacetWP core, cart and checkout stay untouched.
 */
body.vvts-shop-root-active .facetwp-flyout-open.vinnvinn-flyout,
body.vvts-shop-root-active button.facetwp-flyout-open.vinnvinn-flyout,
body.vvts-shop-root-active .productSorting,
body.vvts-shop-root-active .productSorting .facetwp-facet-count,
body.vvts-shop-root-active .productSorting .facetwp-facet-sorter,
body.vvts-shop-root-active .facetwp-template > .productSorting,
body.vvts-shop-root-active .woocommerce-result-count,
body.vvts-shop-root-active .woocommerce-ordering,
body.vvts-shop-root-active .wp-block-woocommerce-product-results-count,
body.vvts-shop-root-active .wp-block-woocommerce-catalog-sorting {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.woocommerce-shop.post-type-archive-product:not(.tax-product_cat).vvts-shop-override-active .facetwp-flyout-open.vinnvinn-flyout,
body.woocommerce-shop.post-type-archive-product:not(.tax-product_cat).vvts-shop-override-active button.facetwp-flyout-open.vinnvinn-flyout,
body.woocommerce-shop.post-type-archive-product:not(.tax-product_cat).vvts-shop-override-active .productSorting,
body.woocommerce-shop.post-type-archive-product:not(.tax-product_cat).vvts-shop-override-active .facetwp-template > .productSorting,
body.woocommerce-shop.post-type-archive-product:not(.tax-product_cat).vvts-shop-override-active .woocommerce-result-count,
body.woocommerce-shop.post-type-archive-product:not(.tax-product_cat).vvts-shop-override-active .woocommerce-ordering,
body.woocommerce-shop.post-type-archive-product:not(.tax-product_cat).vvts-shop-override-active .wp-block-woocommerce-product-results-count,
body.woocommerce-shop.post-type-archive-product:not(.tax-product_cat).vvts-shop-override-active .wp-block-woocommerce-catalog-sorting {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
