@charset "UTF-8";
.products-listing {
  padding: 43px 0 76px;
  background: #ececec;
}

.products-listing h1 {
  margin: 38px 0 35px;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.1;
}

.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 0;
}

.product-filters,
.view-switcher {
  display: flex;
  align-items: center;
  gap: 13px;
}

.filter-control,
.view-button,
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.filter-control {
  min-width: 105px;
  padding: 0 16px;
  gap: 12px;
  color: #1D1D1B;
  cursor: pointer;
  font: 400 14px Manrope, Arial, sans-serif;
  white-space: nowrap;
  transition: color 180ms ease, box-shadow 180ms ease;
}

.filter-control::after {
  content: "";
  background: url("/images/arrow.svg") center/contain no-repeat;
  width: 10px;
  height: 10px;
  margin-top: 2px;
  font-size: 12px;
  transition: transform 180ms ease;
}

.product-filter {
  position: relative;
}

.product-filter.is-open {
  z-index: 30;
}

.product-filter.is-open .filter-control::after {
  transform: rotate(180deg);
}

.filter-control__count {
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-left: -4px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #D02C2F;
  font-size: 11px;
}

.filter-control__count[hidden] {
  display: none;
}

.filter-dropdown {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  width: 230px;
  padding: 8px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-7px);
  background: #fff;
  border: 1px solid #e8e8e6;
  border-radius: 12px;
  box-shadow: 0 16px 35px rgba(29, 29, 27, 0.14);
  pointer-events: none;
  transition: visibility 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.product-filter.is-open .filter-dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.filter-option {
  display: flex;
  min-height: 40px;
  padding: 9px 10px;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.filter-option input {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  appearance: none;
  place-content: center;
  border: 1px solid #cbc9c5;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}

.filter-option input::before {
  width: 8px;
  height: 4px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: rotate(-45deg) scale(0);
  transition: transform 120ms ease;
}

.filter-option input:checked {
  border-color: #D02C2F;
  background: #D02C2F;
}

.filter-option input:checked::before {
  transform: rotate(-45deg) scale(1);
}

.selected-filters {
  display: flex;
  min-height: 36px;
  margin: 16px 0 27px;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.selected-filters[hidden] {
  display: none;
}

.selected-filters[hidden] + .product-grid {
  margin-top: 27px;
}

.selected-filters__label {
  margin-right: 3px;
  color: #777;
  font-size: 13px;
}

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

.selected-filter {
  display: inline-flex;
  height: 34px;
  padding: 0 12px;
  align-items: center;
  gap: 9px;
  color: #1D1D1B;
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(29, 29, 27, 0.06);
  cursor: pointer;
  font: 400 12px Manrope, Arial, sans-serif;
}

.selected-filter::after {
  color: #aaa8a4;
  content: "×";
  font-size: 17px;
  line-height: 1;
}

.selected-filters__clear {
  padding: 7px 3px;
  color: #D02C2F;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: 400 12px Manrope, Arial, sans-serif;
}

.view-switcher {
  gap: 8px;
}

.view-button {
  width: 44px;
  color: #1D1D1B;
  cursor: pointer;
  font-size: 18px;
}

.view-button.is-active {
  color: #fff;
  background: #1C1C1B;
}

.view-button svg path {
  stroke: currentColor;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.product-grid.is-list {
  grid-template-columns: 1fr;
  gap: 10px;
}

.product-grid.is-list .product-card__link {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  min-height: 92px;
  padding: 14px 24px 14px 14px;
  border-radius: 14px;
}

.product-grid.is-list .product-card__image {
  width: 76px;
  height: 76px;
  margin: 0;
}

.product-grid.is-list .product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-grid.is-list .product-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 30px;
}

.product-grid.is-list .product-card__sku {
  grid-column: 1;
  margin-bottom: 2px;
}

.product-grid.is-list .product-card h2 {
  grid-column: 1;
  margin: 4px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-grid.is-list .product-card__price {
  grid-column: 2;
  grid-row: 1/3;
  min-width: 90px;
  margin: 0;
  text-align: right;
}

.product-card {
  min-width: 0;
}

.product-card__link {
  display: flex;
  flex-direction: column;
  min-height: 400px;
  padding: 16px 16px 20px;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.product-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 270px;
  margin: -4px -4px 9px;
}

.product-card__image img {
  display: block;
  width: 88%;
  height: 190px;
  object-fit: contain;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.product-card__sku {
  margin: 0 0 5px;
  color: #AAA8A4;
  font-size: 12px;
}

.product-card h2 {
  margin: 0 0 4px;
  font-family: "Source Sans Pro", Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.25;
  color: #1D1D1B;
}

.product-card__price {
  font-size: 16px;
  font-weight: 500;
  color: #1D1D1B;
}

@media (hover: hover) {
  .filter-control:hover {
    color: #D02C2F;
  }
  .filter-option:hover {
    background: #f5f5f3;
  }
  .selected-filter:hover {
    box-shadow: 0 5px 14px rgba(29, 29, 27, 0.1);
  }
  .selected-filters__clear:hover {
    text-decoration: underline;
  }
  .product-card__link:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
  }
}
.listing-pagination {
  margin-top: 42px;
  text-align: center;
}

.listing-pagination p {
  margin: 0 0 30px;
  color: #999;
  font-size: 13px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination a,
.pagination span {
  width: 44px;
  color: #1D1D1B;
  font-size: 14px;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.pagination .is-current {
  color: #fff;
  background: #1C1C1B;
}

.pagination .pagination__dots {
  width: 24px;
  background: transparent;
  box-shadow: none;
}

@media (hover: hover) {
  .pagination a:hover {
    color: #fff;
    background: #D02C2F;
    box-shadow: 0 8px 18px rgba(208, 44, 47, 0.22);
  }
}
.pagination a:focus-visible {
  color: #fff;
  background: #D02C2F;
  outline: 2px solid rgba(208, 44, 47, 0.35);
  outline-offset: 3px;
}