/* Product result filters */
.results-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.results-total { color: #51647d; font-size: .84rem; font-weight: 700; }
.result-filters { position: relative; }
.result-filters-trigger { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 9px 14px; border: 1px solid #1f5f9f; border-radius: 8px; color: #17466f; background: #fff; font-weight: 800; cursor: pointer; list-style: none; }
.result-filters-trigger::-webkit-details-marker, .result-filter-group summary::-webkit-details-marker { display: none; }
.result-filters-trigger:hover, .result-filters[open] > .result-filters-trigger { background: #edf5fc; }
.result-filters-trigger:focus-visible, .result-filter-group summary:focus-visible, .result-filter-option input:focus-visible { outline: 3px solid #74afe2; outline-offset: 2px; }
.result-filters-trigger svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.result-filters-count { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 20px; background: #1f5f9f; color: white; font-size: .72rem; }
.result-filters-chevron { font-size: 1.1rem; line-height: 1; transition: transform .2s ease; }
.result-filters[open] .result-filters-chevron { transform: rotate(180deg); }
.result-filters-panel { position: absolute; z-index: 25; top: calc(100% + 10px); left: 0; width: min(350px, calc(100vw - 32px)); overflow: hidden; border: 1px solid #d8e0ea; border-radius: 12px; background: #fff; box-shadow: 0 18px 45px rgba(23, 32, 51, .2); }
.result-filters-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 18px 18px 14px; background: #f4f8fc; border-bottom: 1px solid #e1e9f0; }
.result-filters-heading strong, .result-filters-heading span { display: block; }
.result-filters-heading strong { color: #172033; font-size: 1rem; }
.result-filters-heading span { margin-top: 3px; color: #61738a; font-size: .78rem; }
.result-filters-heading a { color: #1f5f9f; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.result-filters-groups { max-height: min(48vh, 420px); overflow-y: auto; overscroll-behavior: contain; padding: 0 18px; }
.result-filter-group { border-bottom: 1px solid #e9eef3; }
.result-filter-group:last-child { border-bottom: 0; }
.result-filter-group summary { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; color: #263b53; font-size: .87rem; font-weight: 800; cursor: pointer; list-style: none; }
.result-filter-group summary span { transition: transform .2s ease; }
.result-filter-group[open] summary span { transform: rotate(180deg); }
.result-filter-search input { width: 100%; padding: 8px 10px; border: 1px solid #cbd8e4; border-radius: 6px; background: #f9fbfd; font-size: .85rem; }
.result-filter-options { max-height: 190px; overflow-y: auto; padding: 3px 2px 10px; }
.result-filter-option { display: flex; align-items: center; gap: 9px; padding: 6px 0; color: #344b63; font-size: .85rem; cursor: pointer; }
.result-filter-option input { width: 16px; height: 16px; margin: 0; accent-color: #1f5f9f; flex: none; }
.result-filter-brand-logo { display: flex; align-items: center; justify-content: center; flex: 0 0 50px; height: 30px; }
.result-filter-brand-logo img { display: block; max-width: 100%; max-height: 30px; object-fit: contain; }
.result-filter-option-name { flex: 1; overflow-wrap: anywhere; }
.result-filter-option-count { color: #8291a1; font-size: .75rem; }
.result-filters-footer { padding: 12px 18px 16px; border-top: 1px solid #e1e9f0; }
.result-filters-footer button { width: 100%; min-height: 42px; border: 0; border-radius: 7px; background: #1f5f9f; color: white; font-weight: 800; cursor: pointer; }
.result-filters-footer button:hover { background: #17466f; }
.result-filters-empty, .results-empty { color: #51647d; }
.result-active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: -4px 0 16px; }
.result-active-filters-label { color: #51647d; font-size: .8rem; font-weight: 700; }
.result-active-filter { margin: 0; }
.result-active-filter button { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 5px 10px; border: 1px solid #cadbea; border-radius: 18px; background: #edf5fc; color: #17466f; font-size: .8rem; font-weight: 700; cursor: pointer; }
.result-active-filter button:hover { background: #dceefa; }
.result-active-filter button:focus-visible { outline: 3px solid #74afe2; outline-offset: 2px; }
.result-active-filter button span:last-child { font-size: 1.1rem; line-height: 1; }
.results-empty { padding: 18px; border: 1px solid #d8e0ea; border-radius: 8px; background: #f7fafc; }
.result-filter-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 700px) {
  .result-filters-panel { width: min(350px, calc(100vw - var(--result-filters-left, 64px) - 16px)); }
  .result-filters-groups { max-height: 45vh; }
  .result-active-filters { margin: 0 16px 12px; }
}
.result-filter-option[hidden] { display: none; }
@media (max-width: 700px) {
  .view-controls > .results-tools { width: 100%; justify-content: flex-start; }
}
.result-filter-status { margin: 0; padding: 10px 18px; color: #51647d; font-size: .8rem; }
.result-filter-status[hidden] { display: none; }
.result-filter-status button { border: 0; padding: 0; background: transparent; color: #1f5f9f; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

.catalog-pager > .catalog-page-disabled { display: none; }
.catalog-pager .catalog-page-glyph { display: inline; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; box-shadow: none; }

@media (max-width: 700px) {
  .view-controls.catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 0 16px 12px;
    padding: 12px;
    border: 1px solid #dce4ed;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
  }

  .catalog-toolbar > .results-tools {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
  }

  .catalog-toolbar .result-filters-trigger {
    min-height: 44px;
    padding: 9px 12px;
    border-color: #c6d6e6;
    background: #f5f9fd;
    font-size: .84rem;
    font-weight: 700;
  }

  .catalog-toolbar .results-total {
    margin-left: auto;
    font-size: .76rem;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
  }

  .catalog-toolbar > .pagination-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #e8edf3;
  }

  .catalog-toolbar .items-per-page {
    display: grid;
    justify-items: start;
    gap: 4px;
    margin: 0;
  }

  .catalog-toolbar .items-per-page label {
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.2;
  }

  .catalog-toolbar .items-per-page select {
    width: 64px;
    min-width: 64px;
    min-height: 44px;
    padding: 8px 22px 8px 9px;
    border: 1px solid #cbd7e3;
    border-radius: 7px;
    background-color: #fff;
    font-size: .84rem;
    font-weight: 600;
  }

  .catalog-pager {
    display: grid;
    grid-template-columns: 44px minmax(36px, auto) 44px;
    align-items: center;
    gap: 4px;
    margin: 0;
  }

  .catalog-pager:empty { display: none; }

  .catalog-pager > a,
  .catalog-pager > .catalog-page-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid #cbd7e3;
    border-radius: 7px;
    background: #fff;
    color: #17466f !important;
    box-shadow: none;
    text-decoration: none;
  }

  .catalog-pager > a:hover,
  .catalog-pager > a:active {
    border-color: #9bb8d3;
    background: #edf5fc;
  }

  .catalog-pager > a:focus-visible,
  .catalog-toolbar select:focus-visible {
    outline: 3px solid #74afe2;
    outline-offset: 2px;
  }

  .catalog-pager > .catalog-page-disabled {
    border-color: #e5eaf0;
    background: #f6f8fa;
    color: #a1adbb !important;
  }

  .catalog-pager .catalog-page-glyph {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1;
  }

  .catalog-pager > .catalog-page-status {
    justify-content: center;
    min-height: 44px;
    padding: 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #51647d;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
  }

  .catalog-pager .pagination-word,
  .catalog-pager .pagination-page-word { display: none; }

  .catalog-footer > .pagination-controls { justify-content: center; }
}

.results-title-row .results-page-title {
    margin: 12px 0;
    color: #172033;
    font-size: 1.1rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
@media (max-width: 700px) {
    .results-title-row .results-page-title {
        margin: 0;
        font-size: .92rem;
        line-height: 1.2;
        text-align: right;
    }
}
