.catalog_page {
  display: flex;
  gap: 50px;
}

/* Headline */
.woocommerce-products-header {
  overflow: hidden;
}

.product-catalog-header {
  position: relative;
}

.woocommerce-products-header__title {
  font-size: 30px;
  font-weight: 500;
  margin: 30px 0 0 0;
  color: #d2b6b5;
}

@media (max-width: 1010px) {
  .woocommerce-products-header__title {
    font-size: 20px;
    margin: 15px 0;
  }
}

/* Categories */
.child-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.child-categories .child-category-item {
  height: auto;
  width: calc(100% / 5 - 12.8px);
}

@media (max-width: 1550px) {
  .child-categories .child-category-item {
    width: calc(100% / 4 - 12px);
  }
}

@media (max-width: 1120px) {
  .child-categories .child-category-item {
    width: calc(100% / 3 - 10.7px);
  }
}

@media (max-width: 900px) {
  .child-categories .child-category-item {
    width: calc(100% / 2 - 8px);
  }
}

@media (max-width: 600px) {
  .child-categories .child-category-item {
    width: 100%;
  }
}

/* Slider */
.catalog-list .swiper-slide {
  width: 308px;
}

.child-category-item {
  display: flex;
  gap: 30px;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 308px;
  background: #0f172a;
  height: 100%;
  padding: 30px 16px;
  border-radius: 16px;
}

.child-category-item img {
  height: 92px;
  width: 100%;
  max-width: 100%;
  object-fit: contain;
}

.child-category_name {
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 10px;
  display: block;
}

.child-category_desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  color: #cbd5e1;
  display: block;
}

.child-categories .owl-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  top: 0;
  right: 0;
}

.child-categories .owl-nav button {
  background-color: #0f172a;
  box-shadow: none !important;
  outline: none !important;
  border: none !important;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.child-categories .owl-nav button span {
  display: none;
}

.child-categories .owl-nav button::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background-image: url("/wp-content/themes/nt-theme/assets/svg/arrow-left-short.svg");
  object-fit: contain;
  object-position: center;
}

.child-categories .owl-nav button.owl-next::after {
  transform: rotate(180deg);
}

@media (max-width: 1010px) {
  .child-categories .owl-nav {
    display: none;
  }
}

/* Search */
.catalog_page-search {
  max-width: 620px;
  display: flex;
  box-shadow: 1px 1.5px 4px 0px #0000001a inset;
  background: #c9cfd7;
  padding: 4px 6px;
  border-radius: 100px;
  gap: 5px;
  margin-bottom: 25px;
}

.catalog_page-search input {
  width: 100%;
  background: transparent;
  border: none !important;
  outline: none !important;
  padding: 10px 14px;
  border-radius: 100px;
  font-size: 16px;
}

button.catalog_page-search-btn {
  border: none;
  background: transparent;
  padding: 0 18px 0 0;
  line-height: 1;
  cursor: pointer;
}

/* Filter */

.active-filters-container {
  overflow-x: auto;
  margin-left: -20px;
  margin-right: -20px;
  padding: 0 20px;
}

.active-filters {
  display: flex;
  /* flex-wrap: wrap; */
  gap: 20px;
  /* color: #2dd4bf; */
  margin-bottom: 20px;
}

.active-filters > div {
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;

  background: #25ab9a;
  padding: 5px 16px;
  border-radius: 30px;
  color: white;
  white-space: nowrap;
  transition-duration: 0.3s;
}

.active-filters > div:hover {
  opacity: 0.7;
}

.active-filters > div::after {
  content: "";
  background-image: url("/wp-content/themes/nt-theme/assets/svg/cross_white.svg");
  object-position: center;
  object-fit: contain;
  width: 12px;
  height: 12px;
}

@media (max-width: 980px) {
  .catalog_page-search {
    max-width: 100%;
  }

  .active-filters {
    gap: 10px;
  }
}

/* Body */
.catalog_page .catalog_sidebar {
  width: 270px;
}

.catalog_page .catalog_page-listing {
  width: calc(100% - 320px);
}

@media (max-width: 1010px) {
}

@media (max-width: 820px) {
}

/* Listing */

.catalog__list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 16px;
}

.listing-product_el {
  position: relative;
  background: #161d2f;
  display: flex;
  flex-direction: column;
  width: calc(100% / 4 - 12px);
  padding: 8px;
  border-top: 1px solid #ffffff33;
  border-radius: 20px;
  transition: 0.3s;
}

.listing-product_el:hover {
  background: #2c3548;
}

@media (max-width: 1600px) {
  .listing-product_el {
    width: calc(100% / 3 - 10.7px);
  }
}

@media (max-width: 1210px) {
  .listing-product_el {
    width: calc(100% / 2 - 8px);
  }
}

@media (max-width: 980px) {
  .catalog_page {
    flex-direction: column;
    gap: 20px;
  }

  .catalog_page .catalog_page-listing,
  .catalog_page .catalog_sidebar {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .catalog_page {
    flex-direction: column;
    gap: 20px;
  }

  .listing-product_el {
    width: 100% !important;
  }
}

/* Preloader */
.loader-listing .listing-product_el {
  overflow: hidden;
}

.loader-listing .listing-product_el:before {
  content: "";
  display: block;
  background: linear-gradient(-45deg, #020617, #192031, #47556999);
  background-size: 400% 400%;
  animation: gradient 3s ease infinite;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  border-radius: 3px;
}

/* Filter */
.catalog_sidebar .toggle-filter {
  display: none;
}

.filter-body ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.filter-body input {
  display: none;
}

.filter-checkbox {
  display: flex;
  gap: 13px;
  align-items: center;
  transition-duration: 0.3s;
  cursor: pointer;
  position: relative;
}

.filter-checkbox label {
  cursor: pointer;
}

.filter-checkbox:hover {
  transform: translateX(8px);
}

.filter-checkbox img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  object-position: center;
}

.filter-body input:checked + span {
  color: #f87171;
}

.filter-body input:checked + :before {
  content: "";
  order: 0;
  display: block;
  position: absolute;
  left: -15px;
  border: 6px solid transparent;
  border-left: 6px solid #2dd4bf;
  top: 50%;
  transform: translateY(-50%);
}

.filter-body > ul > li {
  margin-bottom: 30px;
}

.filter-body > ul > li > a {
  display: block;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 16px;
}

.filter-body .filter-el_label {
  display: block;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.filter-el ul,
.filter-categories ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.filter-el.filter-attribute {
  margin-bottom: 35px;
}

.filter-body hr {
  border-color: #f1f5f9;
  margin: 40px 0;
}

.category-has_child > ul {
  display: none;
}

.category-has_child.category-open_child > ul {
  display: flex;
}

.toggle-filter {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2dd4bf;
  border-radius: 30px;
  text-align: center;
  min-width: 100px;
  fill: white;
  stroke: white;
}

.toggle-filter span {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.toggle-filter span svg {
  width: 18px;
  height: 18px;
}

.catalog_sidebar .no-active .toggle-filter .open-filter {
  display: flex;
}

.catalog_sidebar .toggle-filter .open-filter,
.catalog_sidebar .no-active .toggle-filter .close-filter {
  display: none;
}

@media (max-width: 980px) {
  .catalog_sidebar .toggle-filter {
    display: flex;
  }

  .catalog_sidebar .no-active .filter-body {
    display: none;
  }

  .filter-body > ul > li > a,
  .filter-body .filter-el_label {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .filter-checkbox img {
    width: 24px;
    height: 24px;
  }
  .filter-body {
    max-height: 60vh;
    min-height: 300px;
    padding: 20px;
    margin-top: 10px;
    background: #47556999;
    border-radius: 30px;
    overflow-y: auto;
  }
}

/* Pagination */
.load-more {
  margin-top: 25px;
  display: flex;
  justify-content: center;
}

.load-more-products {
  border: 1px solid #ffffff33;
}

.load-more-products.preload {
  opacity: 0.5;
}

/* Listing Element */

.listing-product_el {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
}

.listing-product_image {
  position: relative;
}

.listing-product_image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 172px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}

.video-duration {
  font-size: 12px;
  background: #020617;
  padding: 1px 6px;
  border-radius: 10px;
  position: absolute;
  top: 8px;
  right: 8px;
}

.listing-product_el .product-labels .product-label {
  padding: 1px 6px;
  font-size: 12px;
}

.listing-product_el .product-name {
  font-weight: 700;
  color: #f1f5f9;
}

.listing-product_el .product-coache img {
  width: 24px !important;
  height: 24px !important;
  object-fit: cover;
  object-position: top center;
}

.listing-product_el .product-rating {
  color: #cbd5e1;
}

.listing-product_info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.listing-product_el .product-coache {
  height: 24px;
}

.listing-product_el .product-rating_icon::before {
  width: 19px;
  height: 19px;
}

.listing-product_el .listing-product_add-to-cart {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.listing-product_add-to-cart .product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
}

.listing-product_add-to-cart .product-price del {
  color: #475569;
  order: 2;
}

.listing-product_add-to-cart .product-price ins {
  text-decoration: none !important;
}

.listing-product_el .listing-product_add-to-cart a {
  border: 1px solid;
  background: #f1f5f9;
  padding: 8px 16px !important;
  color: #0f172a;
  font-size: 16px;
  font-weight: 500;
  border-radius: 30px;
}

.listing-product_el .listing-product_add-to-cart a:hover {
  opacity: 0.7;
}

.listing-product_el .listing-product_add-to-cart a.product-link {
  background-color: #020617;
  color: #f1f5f9;
  border-top: 1px solid #ffffff66;
  border-width: 1px 0 0 0;
}

.listing-product_el .added_to_cart.wc-forward {
  width: 100%;
  text-align: center;
}
