.collection-container {
  max-width: 1200px;
  padding: 0 15px;
  margin: 0 auto;
}

.collection-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.collection-header__title {
  font-size: 37px;
  font-family: "Frutiger Serif";
  line-height: 1.2;
  font-style: normal;
  font-weight: 400;
}

.collection-description {
  text-align: center;
  font-size: 12px;
  padding: 14px 0 9px;
  display: inline;
  margin-right: 7px;
}

.collection-tree__layouts-label {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
}

.collection-tree__layouts-button svg {
  width: 25px;
  height: 25px;
}

.collection-tree__layouts {
  display: none;
  align-items: center;
  gap: 5px;
}

@media (min-width: 768px) {
  .collection-tree__layouts {
    display: flex;
  }
}

.collection-tree__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 45px;
}

.collection-divider {
  width: 100%;
  height: 1px;
  background-color: #e8e9eb;
}

.collection-grid {
  padding-top: 15px;
}

.collection-grid .pagination-custom {
  grid-column: 1 / -1;
}

.facets-wrapper {
  width: 100%;
}

.facets__filter-button {
  width: 100%;
  padding: 10px 25px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background-color: #00263a;
  cursor: pointer;
  margin: 10px 0;
}

.facets__mobile-closer {
  display: none;
}

.filter-list__btn .icon,
.facets-label .icon {
  transition: transform 0.3s ease;
}

.filter-list__btn.opened .icon,
.facets-label.opened .icon {
  transform: rotate(180deg);
}

@media (min-width: 768px) {
  .mobile-facets__btn,
  .mobile-facets__header,
  .facets__mobile-actions {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .mobile-facets__header {
    display: flex !important;
    border-bottom: 0 !important;
    justify-content: flex-start;
    align-items: center;
    position: relative;
  }

  .mobile-facets__header h2 {
    font-size: 26px;
  }

  .mobile-facets__header-closer {
    position: absolute;
    right: 10px;
    padding: 0 !important;
    margin: 0;
    width: 30px !important;
    height: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .facets__filter-button {
    width: auto;
    padding: 10px 10px 10px 0;
    text-align: left;
    background-color: transparent;
    color: #00263a;
  }

  .facets__mobile-closer {
    display: block;
    color: #fff;
    background-color: #00263a;
    padding: 15px 25px;
    text-align: center;
    width: 100%;
    transition: ease-in-out 0.3s all;
  }

  .facets__form.dirty + .facets__mobile-actions .facets__mobile-closer {
    color: #00263a;
    background-color: #ccc;
  }

  .facets__mobile-actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
    z-index: 1;
    width: 100;
  }

  .facets__mobile-apply {
    display: none;
    color: #fff;
    padding: 15px 25px;
    text-align: center;
    background-color: #00263a;
  }

  .facets__form.dirty + .facets__mobile-actions .facets__mobile-apply {
    display: block;
  }

  .facets__mobile-actions .facets__filter-button {
    flex: 1 0 0;
    min-width: 0;
  }

  .sidebar-filter__btn {
    display: none;
  }

  .collection_products-count {
    font-size: 0.85em;
  }

  .facets-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 90001;
    background-color: white;
    padding: 10px;
    transform: translateX(-105%);
    transition: cubic-bezier(0.4, 0, 0.2, 1) all 300ms;
    display: flex;
    flex-direction: column;
    max-height: 100vh;
  }

  .facets-wrapper .facets__form {
    flex-grow: 1;
    overflow-y: auto;
  }

  .facets-wrapper:has(.facets__form.active) {
    transform: translateX(0);
  }
}

@media (min-width: 768px) {
  .facets-wrapper {
    width: 20%;
  }
}

.facets__form {
  display: none;
  flex-direction: column;
}

.facets__form.active {
  display: flex;
}

@media (min-width: 768px) {
  .facets__form {
    display: flex;
    max-height: 85vw;
    overflow-y: auto;
  }
}

.facets__form > * {
  border-bottom: 1px solid #e8e9eb;
}

.facets__form > *:last-child {
  border-bottom: 1px solid transparent;
}

.filter-list__btn {
  height: 45px;
  color: #00263a;
  width: 100%;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  margin-bottom: 0;
  line-height: 20px;
}

.collection-grid {
  width: 100%;
  display: grid;
  gap: 10px;
  list-style: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.multi-step-tag-filter:has(.multi-step-tag-filter-body:empty) {
  display: none;
}

.facets-active__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 5px;
  font-size: 14px;
}

.facets-active__list button {
  background: none;
  border: none;
  cursor: pointer;
  text-transform: capitalize;
  padding: 0;
  width: auto;
  text-align: left;
  background-color: #f4eee6;
  color: black;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.facets-active__list button svg {
  width: 8px;
  height: 8px;
  stroke-width: 5px;
}

.collection-grid__wrapper {
  display: flex;
  flex-direction: column;
  padding-bottom: 80px;
}

.collection-grid__item {
  width: 100%;
}

.collection-grid__item picture,
.collection-grid__item img {
  width: 100%;
  height: 100%;
}

.collection-grid__item-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.collection-grid__item-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.collection-grid__item-info-vendor {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.collection-grid__item-info-title {
  font-size: 13px;
  color: #585d63;
  font-weight: 400;
}

.collection-grid__item-info-price {
  color: #000;
  font-size: 15px;
  font-weight: 600;
}

.facets-label {
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding-bottom: 7.5px;
  cursor: pointer;
}

.facets--list {
  padding: 0 5px;
  overflow-y: auto;
  max-height: 80vh;
}

.facets--list {
  scrollbar-width: thin;
}

.facets--list::-webkit-scrollbar {
  width: 4px;
}

.multi-step-tag {
  padding-left: 10px;
}

.multi-step-tag-filter-body {
  padding-bottom: 15px;
}

.filter-tag-btn {
  font-weight: 400;
  width: 100%;
  font-size: 14px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.filter-tag-btn__label {
  flex-grow: 1;
}

.facets--list::-webkit-scrollbar-track {
  background: #ebebeb;
}

.facets--list::-webkit-scrollbar-thumb {
  background: #757575;
}

.facets-label:before {
  content: "";
  display: inline-block;
  width: 5px;
  border-radius: 100%;
  height: 5px;
  background-color: #00263a;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.collection-tree.loading .collection-grid,
.search-container.loading .collection-grid {
  filter: blur(10px);
  opacity: 0.7;
}

.collection-grid {
  transition: filter 0.3s ease, opacity 0.3s ease;
}

input:checked + .facets-label:before,
.facets-label:has(input:checked):before,
.facets-label:hover:before {
  opacity: 1;
}

.price-filter__wrapper {
  display: flex;
  padding-bottom: 10px;
}

.price-filter__body {
  padding-bottom: 25px;
}

.price-filter__item {
  display: flex;
  width: calc(50% - 15px);
  height: 36px;
  position: relative;
  line-height: 24px;
  border: 1px solid #e3e3e3;
  clear: none;
  min-height: auto;
  justify-content: space-between;
}

.price-filter__range-dot {
  position: absolute;
  height: 8px;
  background-color: #00263a;
  border-radius: 5px;
}

.price-filter__item label {
  max-width: 50%;
  padding: 0 0 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.price-filter__item input:not([type="range"]) {
  border: 0;
  width: 100%;
  min-width: 50%;
  text-align: right;
  width: auto;
  background: none;
  box-shadow: none;
  padding: 5px;
}

.price-filter__separator {
  width: 30px;
  text-align: center;
}

.price-filter__range-slider {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 10px;
  background-color: #e3e3e3;
}

.price-range-slider {
  position: absolute;
  top: -13px;
  height: 8px;
  width: 100%;
  padding: 8px 0px;
  appearance: none;
  background-color: transparent;
  pointer-events: none;
  border: none;
}

.price-range-slider:focus {
  border: 0 !important;
}

.price-range__wrapper {
  width: 100%;
  padding: 8px 0px;
}

.price-range-slider::-webkit-slider-thumb {
  appearance: none;
  height: 14px;
  width: 14px;
  background-color: #fff;
  border: 1px solid #00263a;
  border-radius: 100%;
  cursor: pointer;
  pointer-events: auto;
}

.price-range-slider::-moz-range-thumb {
  appearance: none;
  height: 12px;
  width: 12px;
  border-radius: 100%;
  cursor: pointer;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .collection-tree__toolbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .collection-grid {
    width: 80%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .collection-grid__wrapper {
    flex-direction: row;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  select#sorting {
    border: 0;
    text-align: right;
    font-size: 0.85em;
    width: auto;
    text-overflow: ellipsis;
    max-width: 100px;
  }
}

.facets__filter-button.mobile-facets__btn {
  display: flex;
  align-items: center;
  gap: 2.5px;
}

.facets__filter-button.mobile-facets__btn svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

@media (max-width: 768px) {
  .facets__form:has(
    .facets-item__container > .filter-list__btn.opened
  ) .facets-item__container:not(:has(> .filter-list__btn.opened)) {
    height: 0;
    overflow: hidden;
    border-bottom: 0px;
  }

  .multi-step-tag-filter-body .filter-tag-btn { 
    padding-right: 6px;
  }

  
  .multi-step-tag-filter-body .filter-tag-btn svg {
    transform: scale(0.8);
  }
}
