.ps-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.ps-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ps-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000000;
  -webkit-transition: .4s;
  transition: .4s;
  border: 1px solid #ffffff;
}

.ps-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked+.ps-slider {
  background-color: #ffffff;
  border: 1px solid #ffffff;
}

input:focus+.ps-slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked+.ps-slider:before {
  -webkit-transform: translateX(22px);
  -ms-transform: translateX(22px);
  transform: translateX(22px);
  background-color: #000000;
}

/* Rounded sliders */
.ps-slider.ps-round {
  border-radius: 34px;
}

.ps-slider.ps-round:before {
  border-radius: 50%;
}

.product_container {
  display: grid;
  grid-template-columns: 30rem auto;
  gap: 5rem;
}

.border {
  border-bottom: 0.1rem solid #ffffff;
}

.pb-20 {
  padding-bottom: 2rem;
}

.pt-20 {
  padding-top: 2rem;
}


.ps-acc-container {
  max-width: 100%;
  width: 100%;
}

.ps-acc {
  margin-bottom: 10px;
}

.ps-acc-head {
  padding-top: 2rem;
  font-size: 22px;
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ps-acc-head::before,
.ps-acc-head::after {
  content: '';
  position: absolute;
  top: 50%;
  background-color: #fff;
  transition: all .3s;
}

.ps-acc-head::before {
  right: 30px;
  width: 3px;
  height: 20px;
  margin-top: -10px;
}

.ps-acc-head::after {
  right: 21px;
  width: 20px;
  height: 3px;
  margin-top: -2px;
}

.ps-acc-head p {
  color: #fff;
  font-weight: bold;
}

.ps-acc-content {
  padding: 0;
  display: none;
}

.ps-acc-head.active::before {
  transform: rotate(90deg);
}

.ps-acc-content form div {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ps-dropdown {
  position: relative;
  display: inline-block;
  border: 1px solid #ffffff;
  padding: 1rem 2rem;
  align-content: center;
  width: auto;
  max-width: 100%;
  justify-self: end;
}

.ps-dropdown-content {
  width: max-content;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  color: #000000;
  opacity: 0;
  visibility: hidden;
  right: 0;
  top: 5.3rem;
  transition: opacity 0.5s ease;
}

.ps-dropdown .sort_by {
  background: #000;
  color: #fff;
  font-size: 18px;
  border: none;
}

@media(min-width: 992px) {

  .ps-dropdown:hover .ps-dropdown-content {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease;
  }

  .ps-dropdown:hover .fa-angle-down {
    transform: rotate(180deg);
    transition: transform 0.3s ease-in-out;
  }
}

.ps-dropdown-content ul li {
  list-style: none;
  padding: 0.5rem;
  padding: 1.2rem 1.6rem;
}

.ps-dropdown-content ul li:hover {
  background-color: #000000;
  color: #ffffff;
  transition: all ease 0.2s;
}

.products_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 2rem 0rem 3rem;
}

.d-block {
  display: block !important;
}

input.ps_submit_btn,
input.ps_reset_btn {
  width: 100%;
  background-color: #ffffff;
  padding: 0.8rem;
}

.left_filter_tab h3,
.right_filter_tab h3 {
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 3.6rem;
}

.right_col_products {
  height: 100%;
  overflow-y: scroll;
  scrollbar-width: none;
}

.product_page_header {
  display: grid;
  grid-template-columns: 30rem 1fr 1fr;
  gap: 5rem;
}

button.filter {
  display: none;
  font-size: 2.2rem;
  line-height: 2.6rem;
}

.filter_tab h6 {
  font-size: 1.6rem;
  line-height: 2.8rem;
}


.menu-close-btn {
  display: none;
  text-align: right;
}

.menu-close-btn i {
  border: 1px solid grey;
  padding: 1.2rem;
}

.ps-dropdown {
  display: block;
}

@media (max-width: 1200px) {
  .products_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

}

@media (max-width: 992px) {
  button.filter {
    display: block;
  }

  .d-tab-mob {
    display: block !important;
  }

  .product_container {
    display: flex;
    width: 100%;
    flex-direction: column;
    overflow-x: hidden;
    gap: 1rem;
  }

  div.left_filter_tab {
    display: none;
    border: 1px solid white;
    padding: 1rem;
  }

  .product_page_header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 5rem;
    row-gap: 2rem;
  }

  .filter_tab {
    grid-column: 1 / span 1;
    grid-row: 2;
  }

  .product_page_header h3 {
    grid-column: 1 / span 2;
    grid-row: 1;
  }

  .ps-dropdown {
    grid-column: 2 / span 1;
    grid-row: 2;
  }

  .menu-close-btn {
    grid-column: 2 / span1;
    grid-row: 2;
  }

  .ps-dropdown.active>span>.fa-angle-down {
    transform: rotate(180deg);
    transition: transform 0.3s ease-in-out;
  }

  .ps-dropdown.active>.ps-dropdown-content {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease;
  }

  div.right_col_products {
    display: block;
  }
}


@media (max-width: 576px) {
  .products_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 425px) {
  .products_grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 320px) {
  button.filter {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .filter_tab h6 {
    font-size: 1.3rem;
    line-height: 1.8rem;
  }
}