.products_banner {
  max-width: 256rem;
  margin: 0 auto;
}
.products_banner .flex {
  padding: 8rem 0;
  min-height: 54.5rem;
  flex-direction: column;
}
.products_banner .breadcrumbs {
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  letter-spacing: 0.125em;
}
.products_banner .breadcrumbs span span::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 1.4rem;
  transform: translateY(-2px) rotate(-90deg);
  background: url(../img/icon-select.svg) no-repeat center / contain;
}
.products_banner .breadcrumbs span span:last-child::after {
  display: none;
}
.products_banner .breadcrumbs a {
  transition: all 0.3s;
}
.products_banner .breadcrumbs a:hover {
  color: var(--primary);
}
.products_banner .head {
  max-width: 124.8rem;
}
.products_banner .head p {
  color: var(--text);
  max-width: 103.4rem;
  margin: 3.2rem auto 0;
}
.products_nav {
  padding: 3.2rem 0;
  border-bottom: 1px solid rgba(11, 13, 20, 0.06);
}
.products_nav ul {
  gap: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.products_nav .item {
  cursor: pointer;
  display: block;
  text-align: center;
  line-height: 5.2rem;
  transition: all 0.3s;
  border-radius: 100px;
  outline: 1px solid transparent;
  border: 1px solid rgba(71, 71, 72, 0.32);
  text-transform: uppercase;
  min-width: 14.6rem;
  padding: 0 2.7rem;
  letter-spacing: 0.04375em;
}
.products_nav .item:hover,
.products_nav .item.active {
  border-color: var(--primary);
}
.products_nav .item.active {
  outline-color: var(--primary);
}
.products_main {
  padding: 2.8rem 0 14.8rem;
}
.products_main .refined .label,
.products_main select {
  cursor: pointer;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 0.8rem;
  border: 1px solid #dddee3;
  padding: 0 4.2rem 0 2rem;
  height: 4.4rem;
  background: url(../img/icon-select.svg) no-repeat right 1.4rem center / 1.4rem;
}
.products_main .lt {
  gap: 3.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.products_main .refined {
  position: relative;
}
.products_main .refined .label {
  width: 21.2rem;
  gap: 0.8rem;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  color: var(--title);
  font-weight: 700;
}
.products_main .refined .label span {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  border-radius: 100px;
  background-color: var(--primary);
  line-height: 1.8rem;
  padding: 0 5px;
  min-width: 1.8rem;
  font-weight: normal;
  font-size: 12px;
}
.products_main .refined select {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  pointer-events: none;
}
.products_main .total {
  color: var(--text);
  font-size: 1.5rem;
  gap: 0.7rem;
  display: flex;
  align-items: center;
  text-transform: uppercase;
}
.products_main .total::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
  margin-right: 0.8rem;
}
.products_main .total span {
  color: var(--title);
  font-weight: 700;
}
.products_main #perpage {
  width: 11rem;
}
.products_main #sortby {
  width: 14.8rem;
}
.products_main .rt {
  gap: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.products_main .rt label {
  cursor: pointer;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 2.2rem;
}
.products_main .list {
  margin-top: 9.2rem;
}
.products_main .list ul {
  display: grid;
  gap: 4.2rem 2.857143%;
  grid-template-columns: repeat(4, 1fr);
}
.products_main .list .center:has(button) {
  margin-top: 7.2rem;
  min-height: 5.6rem;
}
@media screen and (max-width: 768px) {
  .products_banner .flex {
    padding: 50px 0;
    min-height: unset;
  }
  .products_banner .breadcrumbs {
    font-size: 14px;
  }
  .products_banner .breadcrumbs span span::after {
    margin: 0 8px;
  }
  .products_banner .head p {
    margin-top: 12px;
  }
  .products_nav {
    padding: 20px 0;
  }
  .products_nav ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: calc(100% + 40px);
    padding: 0 20px;
    margin: 0 -20px;
    overflow: auto;
  }
  .products_nav ul::-webkit-scrollbar {
    display: none;
  }
  .products_nav li:first-child {
    margin-left: auto;
  }
  .products_nav li:last-child {
    margin-right: auto;
  }
  .products_nav .item {
    font-size: 14px;
    padding: 0 15px;
    line-height: 40px;
    min-width: unset;
    white-space: nowrap;
  }
  .products_main {
    padding: 20px 0 50px;
  }
  .products_main .lt {
    gap: 15px;
  }
  .products_main .rt {
    gap: 15px;
  }
  .products_main .rt label {
    margin: 0;
  }
  .products_main .total::before {
    margin: 0;
  }
  .products_main .refined .label {
    width: 180px;
  }
  .products_main .refined .label,
  .products_main select {
    padding-left: 15px;
    font-size: 14px;
  }
  .products_main .list {
    margin-top: 30px;
  }
  .products_main .list ul {
    gap: 20px 15px;
  }
  .products_main .list .center:has(button) {
    margin-top: 30px;
    min-height: 42px;
  }
}
@media screen and (max-width: 576px) {
  .products_main .rt {
    display: grid;
    grid-template-columns: auto 1fr;
  }
  .products_main .list ul {
    grid-template-columns: repeat(2, 1fr);
  }
}
