.aecf,
.aecf * {
  box-sizing: border-box;
}

.aecf {
  --aecf-accent: #c62839;
  --aecf-ink: #222126;
  --aecf-muted: #77747a;
  --aecf-line: #e7e3df;
  --aecf-soft: #f6f4f1;
  --aecf-columns: 4;
  width: 100%;
  color: var(--aecf-ink);
  font: inherit;
}

.aecf button,
.aecf input,
.aecf select {
  font: inherit;
}

.aecf button,
.aecf select {
  cursor: pointer;
}

.aecf button:focus-visible,
.aecf input:focus-visible,
.aecf select:focus-visible,
.aecf a:focus-visible {
  outline: 3px solid rgba(198, 40, 57, .24);
  outline: 3px solid color-mix(in srgb, var(--aecf-accent) 28%, transparent);
  outline-offset: 2px;
}

.aecf__toolbar {
  display: none;
}

.aecf__filters {
  position: relative;
  margin: 0 0 24px;
  padding: 28px 30px 25px;
  background: var(--aecf-soft);
  border: 1px solid var(--aecf-line);
  border-radius: 2px;
}

.aecf__filter-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}

.aecf__eyebrow {
  margin: 0 0 5px;
  color: var(--aecf-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.aecf__filter-title {
  margin: 0;
  color: var(--aecf-ink);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.aecf__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 570px;
  justify-content: flex-end;
}

.aecf__search {
  position: relative;
  display: block;
  flex: 1 1 330px;
  min-width: 220px;
  margin: 0;
}

.aecf__search svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  fill: none;
  stroke: #666269;
  stroke-linecap: round;
  stroke-width: 1.7;
  pointer-events: none;
}

.aecf .aecf__search input[type="search"] {
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 42px 0 46px;
  color: var(--aecf-ink);
  background: #fff;
  border: 1px solid #dcd7d2;
  border-radius: 2px;
  box-shadow: none;
  font-size: 15px;
  line-height: 48px;
  appearance: none;
}

.aecf .aecf__search input[type="search"]::-webkit-search-cancel-button {
  opacity: .55;
}

.aecf .aecf__search input[type="search"]::placeholder {
  color: #8b878d;
  opacity: 1;
}

.aecf .aecf__search input[type="search"]:focus {
  border-color: var(--aecf-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--aecf-accent) 10%, transparent);
}

.aecf__sort {
  position: relative;
  display: block;
  min-width: 190px;
  margin: 0;
}

.aecf .aecf__sort select {
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 42px 0 15px;
  color: var(--aecf-ink);
  background-color: #fff;
  border: 1px solid #dcd7d2;
  border-radius: 2px;
  box-shadow: none;
  font-size: 14px;
  line-height: 48px;
}

.aecf__groups {
  display: grid;
  gap: 20px;
}

.aecf__group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.aecf__group + .aecf__group {
  padding-top: 18px;
  border-top: 1px solid var(--aecf-line);
}

.aecf__group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.aecf__group legend {
  float: left;
  width: auto;
  margin: 0;
  padding: 0;
  color: var(--aecf-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.aecf__clear-group,
.aecf .aecf__clear-group {
  padding: 0;
  color: var(--aecf-muted);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 12px;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.aecf__clear-group:hover,
.aecf .aecf__clear-group:hover {
  color: var(--aecf-accent);
  background: transparent;
  text-decoration-color: currentColor;
}

.aecf__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aecf__option {
  position: relative;
}

.aecf__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.aecf__option label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 39px;
  margin: 0;
  padding: 8px 12px 8px 14px;
  color: #4c494f;
  background: #fff;
  border: 1px solid #ded9d4;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.aecf__option label:hover {
  color: var(--aecf-ink);
  border-color: #bdb7b1;
  transform: translateY(-1px);
}

.aecf__option label small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  color: #757179;
  background: #f0eeeb;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  line-height: 22px;
}

.aecf__option input:checked + label {
  color: #fff;
  background: var(--aecf-accent);
  border-color: var(--aecf-accent);
}

.aecf__option input:checked + label small {
  color: var(--aecf-accent);
  background: #fff;
}

.aecf__option input:focus-visible + label {
  outline: 3px solid rgba(198, 40, 57, .24);
  outline: 3px solid color-mix(in srgb, var(--aecf-accent) 28%, transparent);
  outline-offset: 2px;
}

.aecf__mobile-actions {
  display: none;
}

.aecf__active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -8px 0 22px;
  padding: 13px 15px;
  background: #fff;
  border: 1px solid var(--aecf-line);
}

.aecf__active[hidden] {
  display: none;
}

.aecf__active-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.aecf__active-chip,
.aecf .aecf__active-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 9px 6px 11px;
  color: #4d494f;
  background: var(--aecf-soft);
  border: 0;
  border-radius: 2px;
  box-shadow: none;
  font-size: 12px;
  line-height: 1.2;
}

.aecf__active-chip:hover,
.aecf .aecf__active-chip:hover {
  color: var(--aecf-accent);
  background: #f0ece8;
}

.aecf__active-chip svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.aecf__reset,
.aecf .aecf__reset {
  flex: 0 0 auto;
  padding: 5px 0;
  color: var(--aecf-accent);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.aecf__reset:hover,
.aecf .aecf__reset:hover {
  color: var(--aecf-ink);
  background: transparent;
}

.aecf__results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 25px;
  margin: 0 0 14px;
}

.aecf__summary {
  color: var(--aecf-muted);
  font-size: 13px;
  line-height: 1.4;
}

.aecf__summary--mobile {
  display: none;
}

.aecf__status {
  color: var(--aecf-muted);
  font-size: 12px;
}

.aecf__results {
  position: relative;
  min-height: 180px;
}

.aecf__results::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  content: "";
  background: rgba(255, 255, 255, .7);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  backdrop-filter: blur(1.5px);
}

.aecf.is-loading .aecf__results::after {
  opacity: 1;
  pointer-events: auto;
}

.aecf__grid {
  display: grid;
  grid-template-columns: repeat(var(--aecf-columns), minmax(0, 1fr));
  gap: 20px;
}

.aecf-card {
  position: relative;
  min-width: 0;
  margin: 0;
  background: #fff;
  border: 1px solid var(--aecf-line);
  overflow: hidden;
  animation: aecf-card-in .28s ease both;
}

@keyframes aecf-card-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.aecf-card__image {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  color: inherit;
  background: #f4f0ea;
  overflow: hidden;
}

.aecf-card__img,
.aecf .aecf-card__img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}

.aecf-card:hover .aecf-card__img {
  transform: scale(1.035);
}

.aecf-card__view {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(34, 33, 38, .92);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, background-color .25s ease;
}

.aecf-card__view svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.aecf-card:hover .aecf-card__view,
.aecf-card__image:focus-visible .aecf-card__view {
  opacity: 1;
  transform: translateY(0);
}

.aecf-card__view:hover {
  background: var(--aecf-accent);
}

.aecf-card__body {
  padding: 17px 17px 18px;
}

.aecf-card__title {
  margin: 0 0 6px;
  color: var(--aecf-ink);
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.aecf-card__title a,
.aecf .aecf-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.aecf-card__title a:hover,
.aecf .aecf-card__title a:hover {
  color: var(--aecf-accent);
}

.aecf-card__price {
  min-height: 20px;
  color: var(--aecf-muted);
  font-size: 13px;
  line-height: 1.45;
}

.aecf-card__price .amount {
  color: var(--aecf-ink);
  font-weight: 600;
}

.aecf__empty {
  display: grid;
  justify-items: center;
  padding: 65px 20px;
  text-align: center;
  background: var(--aecf-soft);
  border: 1px solid var(--aecf-line);
}

.aecf__empty[hidden] {
  display: none;
}

.aecf__empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 17px;
  color: var(--aecf-accent);
  background: #fff;
  border-radius: 50%;
}

.aecf__empty-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.aecf__empty h3 {
  margin: 0 0 7px;
  color: var(--aecf-ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.aecf__empty p {
  margin: 0 0 15px;
  color: var(--aecf-muted);
  font-size: 14px;
}

.aecf__more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.aecf__more-wrap[hidden] {
  display: none;
}

.aecf__more,
.aecf .aecf__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 210px;
  min-height: 50px;
  padding: 12px 22px;
  color: #fff;
  background: var(--aecf-ink);
  border: 1px solid var(--aecf-ink);
  border-radius: 2px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.aecf__more:hover,
.aecf .aecf__more:hover {
  color: #fff;
  background: var(--aecf-accent);
  border-color: var(--aecf-accent);
}

.aecf__more svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.aecf__more[disabled] {
  cursor: wait;
  opacity: .65;
}

@media (max-width: 1180px) {
  .aecf__filter-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .aecf__controls {
    flex-basis: auto;
    width: 100%;
    justify-content: stretch;
  }

  .aecf__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .aecf__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  .aecf__mobile-toggle,
  .aecf .aecf__mobile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 9px 13px;
    color: var(--aecf-ink);
    background: #fff;
    border: 1px solid #dcd7d2;
    border-radius: 2px;
    box-shadow: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
  }

  .aecf__mobile-toggle:hover,
  .aecf .aecf__mobile-toggle:hover,
  .aecf__mobile-toggle[aria-expanded="true"] {
    color: #fff;
    background: var(--aecf-accent);
    border-color: var(--aecf-accent);
  }

  .aecf__filter-icon,
  .aecf__filter-icon svg {
    display: block;
    width: 18px;
    height: 18px;
  }

  .aecf__filter-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.7;
  }

  .aecf__mobile-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    color: #fff;
    background: var(--aecf-accent);
    border-radius: 20px;
    font-size: 10px;
    line-height: 19px;
  }

  .aecf__mobile-count[hidden] {
    display: none;
  }

  .aecf__mobile-toggle:hover .aecf__mobile-count,
  .aecf__mobile-toggle[aria-expanded="true"] .aecf__mobile-count {
    color: var(--aecf-accent);
    background: #fff;
  }

  .aecf__summary--mobile {
    display: block;
  }

  .aecf__filters {
    display: none;
    margin-bottom: 14px;
    padding: 20px 16px 16px;
  }

  .aecf.is-filter-open .aecf__filters {
    display: block;
    animation: aecf-filter-open .22s ease both;
  }

  @keyframes aecf-filter-open {
    from {
      opacity: 0;
      transform: translateY(-5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .aecf__filter-top {
    gap: 17px;
    margin-bottom: 19px;
  }

  .aecf__filter-title {
    font-size: 22px;
  }

  .aecf__controls {
    flex-direction: column;
    gap: 8px;
  }

  .aecf__search,
  .aecf__sort {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .aecf__group + .aecf__group {
    padding-top: 16px;
  }

  .aecf__options {
    flex-wrap: nowrap;
    margin: 0 -16px;
    padding: 2px 16px 6px;
    overflow-x: auto;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
  }

  .aecf__options::-webkit-scrollbar {
    display: none;
  }

  .aecf__option {
    flex: 0 0 auto;
  }

  .aecf__option label {
    min-height: 38px;
    white-space: nowrap;
  }

  .aecf__mobile-actions {
    display: block;
    margin-top: 20px;
  }

  .aecf__show-results,
  .aecf .aecf__show-results {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    color: #fff;
    background: var(--aecf-ink);
    border: 0;
    border-radius: 2px;
    box-shadow: none;
    font-size: 13px;
    font-weight: 600;
  }

  .aecf__show-results:hover,
  .aecf .aecf__show-results:hover {
    color: #fff;
    background: var(--aecf-accent);
  }

  .aecf__active {
    align-items: flex-start;
    flex-direction: column;
    margin: 0 0 16px;
  }

  .aecf__active-list {
    flex-wrap: nowrap;
    width: calc(100% + 30px);
    margin: -2px -15px 0;
    padding: 2px 15px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .aecf__active-list::-webkit-scrollbar {
    display: none;
  }

  .aecf__active-chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .aecf__results-head {
    display: none;
  }

  .aecf__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .aecf-card__view {
    right: 9px;
    bottom: 9px;
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    justify-content: center;
    opacity: 1;
    transform: none;
  }

  .aecf-card__view span {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    overflow: hidden;
  }

  .aecf-card__body {
    padding: 12px 11px 13px;
  }

  .aecf-card__title {
    margin-bottom: 4px;
    font-size: 14px;
  }

  .aecf-card__price {
    font-size: 11px;
  }

  .aecf__empty {
    padding: 48px 18px;
  }
}

@media (max-width: 380px) {
  .aecf__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .aecf-card__title {
    font-size: 16px;
  }

  .aecf-card__price {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aecf *,
  .aecf *::before,
  .aecf *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
