:root {
  --vertical-filter-width: 32rem;
}

.o-main-search {
  overflow: clip;
}
.o-main-search__form form {
  display: flex;
}
.o-main-search__form form .a-input {
  flex-grow: 1;
  margin: 0;
}
.o-main-search__form form .a-btn--has-icon {
  position: relative;
}
.o-main-search__form form .a-btn--has-icon .icon {
  margin-left: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.o-main-search__form .a-btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 0;
}
.o-main-search__top-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 5rem;
}
.o-main-search__empty {
  margin-top: 1.6rem;
}
.o-main-search__products {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 1;
  gap: var(--layout-row-grid-gap) var(--layout-column-grid-gap);
  transition: opacity var(--default-transition-easing) var(--default-transition-timing);
}
.o-main-search__products.loading {
  opacity: 0.3;
}
.o-main-search__products .m-product-card,
.o-main-search__products .m-content-card {
  --flex-items: 1;
  width: calc(100% / var(--flex-items) - (var(--flex-items) - 1) / var(--flex-items) * var(--layout-column-grid-gap));
}
@media screen and (min-width: 600px) {
  .o-main-search__columns--1 .m-product-card,
  .o-main-search__columns--1 .m-content-card {
    --flex-items: 2;
  }
}
@media screen and (min-width: 1100px) {
  .o-main-search__columns--1 .m-product-card,
  .o-main-search__columns--1 .m-content-card {
    --flex-items: 1;
  }
}
@media screen and (min-width: 600px) {
  .o-main-search__columns--2 .m-product-card,
  .o-main-search__columns--2 .m-content-card {
    --flex-items: 2;
  }
}
@media screen and (min-width: 1100px) {
  .o-main-search__columns--2 .m-product-card,
  .o-main-search__columns--2 .m-content-card {
    --flex-items: 2;
  }
}
@media screen and (min-width: 600px) {
  .o-main-search__columns--3 .m-product-card,
  .o-main-search__columns--3 .m-content-card {
    --flex-items: 2;
  }
}
@media screen and (min-width: 1100px) {
  .o-main-search__columns--3 .m-product-card,
  .o-main-search__columns--3 .m-content-card {
    --flex-items: 3;
  }
}
@media screen and (min-width: 600px) {
  .o-main-search__columns--4 .m-product-card,
  .o-main-search__columns--4 .m-content-card {
    --flex-items: 2;
  }
}
@media screen and (min-width: 1100px) {
  .o-main-search__columns--4 .m-product-card,
  .o-main-search__columns--4 .m-content-card {
    --flex-items: 4;
  }
}
.o-main-search__products-wrapper {
  width: 100%;
}
@media screen and (min-width: 768px) {
  .o-main-search__products-wrapper--vertical {
    padding-left: 2.5rem;
  }
}
.o-main-search__filter-wrapper--vertical {
  width: 100%;
  padding-bottom: 0.5rem;
}
@media screen and (min-width: 768px) {
  .o-main-search__filter-wrapper--vertical {
    max-width: var(--vertical-filter-width);
    min-width: var(--vertical-filter-width);
    padding-bottom: 3rem;
  }
}
@media screen and (min-width: 768px) {
  .o-main-search__filter-wrapper--vertical + .o-main-search__products-wrapper {
    width: calc(100% - var(--vertical-filter-width));
  }
}
.o-main-search__filter-wrapper--drawer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  padding-bottom: 2rem;
}
@media screen and (min-width: 768px) {
  .o-main-search__filter-wrapper--drawer {
    flex-wrap: nowrap;
    padding-bottom: 2.5rem;
  }
}
.o-main-search__filter-wrapper--drawer .m-facets__container {
  width: 100%;
  gap: 2rem;
  padding-bottom: 0.5rem;
}
@media screen and (min-width: 768px) {
  .o-main-search__filter-wrapper--drawer .m-facets__container {
    width: auto;
    padding-bottom: 0;
  }
}
.o-main-search__filter-wrapper--drawer .m-facets__container .m-facets__product-count {
  margin-bottom: 0;
}
.o-main-search__filter-wrapper--horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  isolation: isolate;
  position: relative;
  padding-block: 2.5rem;
  z-index: 1;
  margin-bottom: 2rem;
}
@media screen and (min-width: 768px) {
  .o-main-search__filter-wrapper--horizontal {
    margin-bottom: 3rem;
  }
}
.o-main-search__filter-wrapper--horizontal::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 100vw;
  left: 50%;
  transform: translateX(-50vw);
  top: 0;
  bottom: 0;
  background-color: rgb(var(--color-background));
}
@media screen and (min-width: 768px) {
  .o-main-search__filter-wrapper--horizontal {
    gap: 1rem;
  }
}
@media screen and (min-width: 768px) {
  .o-main-search__filter-wrapper--horizontal .m-facets__results-label {
    font-weight: 400;
    font-size: var(--body-fs-sm);
    line-height: var(--body-lh-sm);
    gap: 0.4rem;
  }
}
@media screen and (min-width: 768px) {
  .o-main-search__filter-wrapper--horizontal .m-facets__results-label .icon {
    width: 2rem;
    height: 2rem;
  }
}
@media screen and (min-width: 768px) {
  .o-main-search__filter-wrapper--horizontal .m-facets__filters-wrapper {
    gap: 2rem;
  }
}
.o-main-search__filter-wrapper--horizontal .m-facets__active-wrapper,
.o-main-search__filter-wrapper--horizontal .m-facets__product-count {
  margin-bottom: 0;
}
.o-main-search__filter-wrapper--horizontal .m-facets__active-wrapper-facet {
  margin-top: 0;
}
.o-main-search__filter-wrapper--horizontal .m-facets__active-wrapper--horizontal {
  display: none !important;
}
.o-main-search__filter-wrapper--horizontal .m-facets__active-wrapper--horizontal:has(.m-facets__product-count-text, .m-facets__active-link) {
  display: flex !important;
  flex-wrap: wrap;
  gap: 1rem;
}
.o-main-search .m-pagination__wrapper {
  flex-basis: 100%;
}
