.alm-product-archive-filter {
  position: relative;
  --alm-paf-border: #d9d9d9;
  --alm-paf-muted: #6f6f6f;
  --alm-paf-switch-bg: #efece6;
  --alm-paf-switch-active: #ffffff;
  --alm-paf-chip-border: #cfcabf;
  --alm-paf-radius: 10px;
}

.alm-product-archive-filter a:hover {
  color: inherit;
}

/* -------------------------------------------------------------------------- */
/* Layout                                                                     */
/* -------------------------------------------------------------------------- */
.alm-paf-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 60px;
}

/* Left column holds the heading (desktop), mobile filter button and the sidebar. */
.alm-paf-left {
  min-width: 0;
}

.alm-paf-sidebar {
  position: sticky;
  top: var(--alm-paf-sticky-top, 24px);
  align-self: start;
  max-height: calc(100vh - var(--alm-paf-sticky-top, 24px) - 24px);
  overflow: auto;
  padding-right: 12px;
  box-sizing: border-box;
  margin-right: -12px;
}

.alm-paf-results {
  min-width: 0;
}

/* -------------------------------------------------------------------------- */
/* Archive heading + description                                              */
/* -------------------------------------------------------------------------- */
.alm-paf-heading {
  max-width: 640px;
  margin-bottom: 32px;
}

.alm-paf-heading-title {
  margin: 0 0 12px;
}

.alm-paf-heading-desc {
  color: #000;
  font-size: 15px;
  line-height: 1.5;
}

.alm-paf-heading-desc p:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------------------------- */
/* Toolbar: switcher + results count                                          */
/* -------------------------------------------------------------------------- */
.alm-paf-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.alm-paf-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 6px;
  background: #F0F0F0;
  border-radius: 0.5rem;
}

.alm-paf-switcher-tab {
  border: 0;
  background: transparent;
  color: rgba(0, 0, 0, .4);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.alm-paf-switcher-tab:hover {
  color: #000;
}

.alm-paf-switcher-tab.is-active {
  background: var(--alm-paf-switch-active);
  color: #000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.alm-paf-count {
  color: var(--alm-paf-muted);
  font-size: 14px;
  white-space: nowrap;
}

/* -------------------------------------------------------------------------- */
/* Active filter chips + clear                                                */
/* -------------------------------------------------------------------------- */
.alm-paf-active-filters-wrap:empty {
  display: none;
}

.alm-paf-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.alm-paf-clear-filters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.4);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
  margin-right: 4px;
}

.alm-paf-clear-filters-icon {
  display: inline-flex;
  flex: 0 0 20px;
}

.alm-paf-clear-filters-label {
  text-decoration: none;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  letter-spacing: 0.28px;
}

.alm-paf-clear-filters:hover {
  color: #000;
}

.alm-paf-clear-filters:hover .alm-paf-clear-filters-icon svg path {
  stroke-opacity: 1;
}

.alm-paf-chips {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.alm-paf-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F0F0F0;
  color: #000;
  font-size: 14px;
  padding: 6px;
  border-radius: 0;
  cursor: pointer;
  transition: border-color 0.2s ease;
  line-height: 18px;
}

.alm-paf-chip:hover {
  border-color: #000;
}

.alm-paf-chip-x {
  font-size: 15px;
  line-height: 1;
  color: var(--alm-paf-muted);
}

/* -------------------------------------------------------------------------- */
/* Filter groups (accordion)                                                  */
/* -------------------------------------------------------------------------- */
.alm-paf-filter-group {
  padding: 16px 0;
  border-top: 1px solid var(--alm-paf-border);
}

.alm-paf-filter-group:first-child {
  border-top: 0;
}

.alm-paf-filter-group-toggle {
  width: 100%;
  background: none;
  border: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  padding: 0;
}

.alm-paf-filter-group-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Info tooltip next to the accordion title */
.alm-paf-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.alm-paf-tooltip-icon {
  display: inline-flex;
  cursor: help;
}

.alm-paf-tooltip-icon svg {
  display: block;
}

.alm-paf-tooltip-bubble {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: max-content;
  max-width: 260px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  color: #FFF;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.alm-paf-tooltip:hover .alm-paf-tooltip-bubble,
.alm-paf-tooltip:focus-within .alm-paf-tooltip-bubble {
  opacity: 1;
  visibility: visible;
}

.alm-paf-caret {
  display: inline-flex;
  transition: transform 0.2s ease;
}

.alm-paf-caret svg path {
  stroke: currentColor;
}

.alm-paf-filter-options {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

/* Sub-grouped attribute (e.g. Acoustics: Soundclass / Alpha value) */
.alm-paf-filter-options--grouped {
  display: block;
}

.alm-paf-subgroup+.alm-paf-subgroup {
  margin-top: 12px;
}

.alm-paf-subgroup-title {
  display: block;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #000;
  margin-bottom: 12px;
  margin: 0;
}

.alm-paf-subgroup-options {
  display: grid;
  gap: 10px;
}

.alm-paf-filter-option {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  position: relative;
}

.alm-paf-filter-option.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.alm-paf-filter-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.alm-paf-checkbox-indicator {
  width: 20px;
  height: 20px;
  border: 1px solid #000;
  border-radius: 4px;
  background: transparent;
  position: relative;
  flex: 0 0 20px;
}

.alm-paf-filter-option-label {
  font-size: inherit;
  line-height: 1.3;
  color: #000;
}

.alm-paf-filter-option input[type="checkbox"]:checked+.alm-paf-checkbox-indicator::before,
.alm-paf-filter-option--color input[type="checkbox"]:checked+.alm-paf-color-swatch::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: 2;
  pointer-events: none;
}

.alm-paf-filter-option input[type="checkbox"]:checked+.alm-paf-checkbox-indicator::before {
  background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='21' height='21' rx='2.5' fill='black'/%3E%3Crect x='0.5' y='0.5' width='21' height='21' rx='2.5' stroke='black'/%3E%3Cpath d='M11.114 11.822L5.868 17.068C5.77467 17.1613 5.66 17.2113 5.524 17.218C5.388 17.2247 5.26667 17.1747 5.16 17.068C5.05333 16.9613 5 16.8433 5 16.714C5 16.5847 5.05333 16.4667 5.16 16.36L10.406 11.114L5.16 5.868C5.06667 5.77467 5.01667 5.66 5.01 5.524C5.00333 5.388 5.05333 5.26667 5.16 5.16C5.26667 5.05333 5.38467 5 5.514 5C5.64333 5 5.76133 5.05333 5.868 5.16L11.114 10.406L16.36 5.16C16.4533 5.06667 16.5683 5.01667 16.705 5.01C16.8403 5.00333 16.9613 5.05333 17.068 5.16C17.1747 5.26667 17.228 5.38467 17.228 5.514C17.228 5.64333 17.1747 5.76133 17.068 5.868L11.822 11.114L17.068 16.36C17.1613 16.4533 17.2113 16.5683 17.218 16.705C17.2247 16.8403 17.1747 16.9613 17.068 17.068C16.9613 17.1747 16.8433 17.228 16.714 17.228C16.5847 17.228 16.4667 17.1747 16.36 17.068L11.114 11.822Z' fill='white'/%3E%3C/svg%3E");
}

.alm-paf-filter-option input[type="checkbox"]:checked+.alm-paf-checkbox-indicator {
  border-color: #000;
}

.alm-paf-filter-option--color input[type="checkbox"]:checked+.alm-paf-color-swatch::before {
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='20' height='20' fill='black' fill-opacity='0.25'/%3E%3Cpath d='M10.114 10.822L4.868 16.068C4.77467 16.1613 4.66 16.2113 4.524 16.218C4.388 16.2247 4.26667 16.1747 4.16 16.068C4.05333 15.9613 4 15.8433 4 15.714C4 15.5847 4.05333 15.4667 4.16 15.36L9.406 10.114L4.16 4.868C4.06667 4.77467 4.01667 4.66 4.01 4.524C4.00333 4.388 4.05333 4.26667 4.16 4.16C4.26667 4.05333 4.38467 4 4.514 4C4.64333 4 4.76133 4.05333 4.868 4.16L10.114 9.406L15.36 4.16C15.4533 4.06667 15.5683 4.01667 15.705 4.01C15.8403 4.00333 15.9613 4.05333 16.068 4.16C16.1747 4.26667 16.228 4.38467 16.228 4.514C16.228 4.64333 16.1747 4.76133 16.068 4.868L10.822 10.114L16.068 15.36C16.1613 15.4533 16.2113 15.5683 16.218 15.705C16.2247 15.8403 16.1747 15.9613 16.068 16.068C15.9613 16.1747 15.8433 16.228 15.714 16.228C15.5847 16.228 15.4667 16.1747 15.36 16.068L10.114 10.822Z' fill='white'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------------------- */
/* Colour swatches (labelled, two columns)                                    */
/* -------------------------------------------------------------------------- */
.alm-paf-filter-group[data-taxonomy="product_color"] .alm-paf-filter-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.alm-paf-filter-option--color {
  display: flex;
  align-items: center;
  gap: 12px;
}

.alm-paf-filter-option--color .alm-paf-color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--alm-paf-color, #d9d9d9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  flex: 0 0 20px;
}

.alm-paf-filter-group.is-collapsed .alm-paf-filter-options {
  display: none;
}

.alm-paf-filter-group.is-collapsed .alm-paf-caret {
  transform: rotate(180deg);
}

/* -------------------------------------------------------------------------- */
/* Products grid                                                              */
/* -------------------------------------------------------------------------- */
.alm-paf-products {
  min-height: 160px;
}

.alm-paf-products ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.alm-paf-products ul.products li.product {
  margin: 0;
  width: auto;
}

.alm-paf-products ul.products li.product .woocommerce-loop-product__title {
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 120% !important;
  letter-spacing: 0.28px !important;
  margin-top: 10px !important;
}

.alm-paf-products ul.products li.product img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  display: block;
}

/* -------------------------------------------------------------------------- */
/* Pagination                                                                 */
/* -------------------------------------------------------------------------- */
.alm-paf-pagination {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.alm-paf-pagination .page-numbers {
  grid-column: 2;
  justify-self: center;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alm-paf-pagination .page-numbers li {
  display: flex;
  align-items: center;
}

.alm-paf-pagination .page-numbers li .page-numbers {
  color: var(--alm-paf-muted);
  text-decoration: none;
  text-align: center;
}

.alm-paf-pagination .page-numbers li .page-numbers.current {
  color: #000;
  font-weight: 600;
  text-decoration: underline;
}

.alm-paf-pagination a.prev {
  margin-right: 12px;
}

.alm-paf-pagination a.next {
  margin-left: 12px;
}

.alm-paf-pagination a.prev,
.alm-paf-pagination a.next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--alm-paf-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: #000;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 8px 12px;
  transition: border-color 0.2s ease;
}

.alm-paf-pagination a.prev:hover,
.alm-paf-pagination a.next:hover {
  border-color: #000;
}

.alm-paf-pagination a.prev {
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='12' viewBox='0 0 8 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.46934 0.749426C6.46981 0.847966 6.45059 0.945607 6.41281 1.03662C6.37503 1.12763 6.31945 1.21018 6.24934 1.27943L1.77934 5.74943L6.21934 10.2194C6.31073 10.3604 6.35215 10.5279 6.33696 10.6952C6.32178 10.8625 6.25086 11.0199 6.13558 11.1421C6.0203 11.2643 5.86734 11.3443 5.7012 11.3692C5.53506 11.3941 5.36538 11.3625 5.21934 11.2794L0.219341 6.27943C0.0788905 6.1388 0 5.94818 0 5.74943C0 5.55067 0.0788907 5.36005 0.219341 5.21943L5.21934 0.219425C5.35997 0.0789745 5.55059 0.0000856049 5.74934 0.0000856309C5.94809 0.000085657 6.13872 0.0789746 6.27934 0.219425C6.41004 0.364156 6.47832 0.554625 6.46934 0.749426Z' fill='black'/%3E%3C/svg%3E");
}

.alm-paf-pagination a.next {
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='12' viewBox='0 0 8 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.00136 10.6285C1.0009 10.53 1.02012 10.4323 1.05789 10.3413C1.09567 10.2503 1.15125 10.1677 1.22136 10.0985L5.69136 5.6285L1.25136 1.1585C1.15997 1.01755 1.11855 0.849987 1.13374 0.682684C1.14893 0.51538 1.21984 0.358019 1.33512 0.235823C1.4504 0.113627 1.60337 0.0336715 1.7695 0.00877216C1.93564 -0.0161271 2.10533 0.0154713 2.25136 0.098503L7.25136 5.0985C7.39181 5.23913 7.4707 5.42975 7.4707 5.6285C7.4707 5.82725 7.39181 6.01788 7.25136 6.1585L2.25136 11.1585C2.11073 11.299 1.92011 11.3778 1.72136 11.3778C1.52261 11.3778 1.33199 11.299 1.19136 11.1585C1.06067 11.0138 0.992386 10.8233 1.00136 10.6285Z' fill='black'/%3E%3C/svg%3E");
}

.alm-paf-jump {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--alm-paf-muted);
}

.alm-paf-jump input {
  width: 64px;
  border: 1px solid var(--alm-paf-border);
  border-radius: 999px;
  padding: 8px 14px;
  appearance: textfield;
  -moz-appearance: textfield;
  text-align: center;
  color: #000;
}

.alm-paf-jump input::-webkit-outer-spin-button,
.alm-paf-jump input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


.alm-paf-empty {
  padding: 40px 0;
  color: var(--alm-paf-muted);
}

.alm-product-archive-filter.is-loading .alm-paf-products {
  opacity: 0.5;
}

/* -------------------------------------------------------------------------- */
/* Mobile off-canvas                                                          */
/* -------------------------------------------------------------------------- */
.alm-paf-mobile-controls {
  display: none;
  margin-bottom: 16px;
}

.alm-paf-open-offcanvas,
.alm-paf-offcanvas-footer .alm-paf-close-offcanvas {
  background: #ffffff;
  /* border: 2px solid var(--bricks-color-zquwyd, #cc765f); */
  border: 1px solid var(--alm-paf-border);
  color: #000000;
  cursor: pointer;
  font-size: clamp(14px, 2.5vw, 18px);
  padding: 12px 24px;
  border-radius: 100px;
  transition: all 0.2s ease;
}

.alm-paf-open-offcanvas:hover,
.alm-paf-offcanvas-footer .alm-paf-close-offcanvas:hover {
  border-color: #000000;
}

.alm-paf-offcanvas {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 9999;
}

.alm-paf-offcanvas-panel {
  width: min(92vw, 380px);
  height: 100%;
  background: #fff;
  margin-left: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  box-shadow: 20px 0 40px rgba(0, 0, 0, 0.1);
}

.alm-paf-offcanvas-header,
.alm-paf-offcanvas-footer {
  padding: 16px;
  border-bottom: 1px solid #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.alm-paf-offcanvas-header {
  position: relative;
}

.alm-paf-offcanvas-footer {
  border-bottom: 0;
  border-top: 1px solid #e6e6e6;
}

.alm-paf-offcanvas-body {
  overflow-y: auto;
  padding: 16px;
}

.alm-paf-offcanvas.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.alm-paf-offcanvas.is-open .alm-paf-offcanvas-panel {
  transform: translateX(0);
}

.alm-paf-offcanvas-close-icon {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .alm-paf-layout {
    display: block;
  }

  .alm-paf-sidebar {
    display: none;
  }

  .alm-paf-mobile-controls {
    display: block;
  }

  .alm-paf-toolbar {
    margin-bottom: 20px;
  }

  .alm-paf-products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .alm-paf-pagination {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
  }

  .alm-paf-pagination .page-numbers,
  .alm-paf-jump {
    grid-column: 1;
    justify-self: center;
  }

  .alm-paf-open-offcanvas {
    font-size: 14px;
    padding: 9px 18px;
  }
}

@media(max-width: 460px) {
  .alm-paf-switcher {
    flex-wrap: wrap;
  }

  .alm-paf-switcher-tab {
    width: 100%;
    text-align: center;
  }
}