/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.2.0
 Text Domain:  woodmart
*/


/* common */

.toggle {
  width: 44px;
  height: 24px;
  background-color: #cbd2d6;
  border-radius: 15px;
  position: relative;
  align-self: center;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
}

.toggle:after,
.toggle:before {
  position: absolute;
  border-radius: 15px;
  transition: all 0.4s ease-in-out;
}

.toggle:before {
  content: "";
  height: 20px;
  width: 20px;
  display: block;
  left: 2px;
  top: 2px;
  background-color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
}

.toggle:after {
  content: "";
  height: 4px;
  width: 4px;
  left: 9px;
  top: 10px;
  background-color: #3aaa35;
  opacity: 0;
}

.close-all.active .toggle:before,
.filter-option-sub.active .toggle:before,
.filter-type.active .toggle:before {
  left: calc(100% - 22px);
}

.close-all.active .toggle:after,
.filter-option-sub.active .toggle:after,
.filter-type.active .toggle:after {
  left: calc(100% - 14px);
  opacity: 1;
}

.close-all.active .toggle,
.filter-option-sub.active .toggle,
.filter-type.active .toggle {
  background-color: #3aaa35;
}

.wd-product {
  position: relative;
}

/* banner */
.banner-category {
  border-radius: 4px;
  background-color: #eef0f0;
  overflow: hidden;
  display: flex;
}

.banner-category .content {
  width: 100%;
  margin: auto;
  display: flex;
  margin-left: 0;
  padding: 30px 0 30px 30px;
}

.banner-category .content .banner-img-wrapper {
  border-radius: 4px;
  width: 80px;
  height: 80px;
  background: #fff;
  padding: 15px;
}

.banner-category-img {
  border-radius: 4px;
  width: 80px;
  height: 80px;
}

.banner-category .inner_content {
  margin-left: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.banner-category .title {
  font-size: 34px;
  line-height: 41px;
  padding-bottom: 5px;
  margin: 0;
}

.banner-category p {
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  margin: 0;
}

.banner-category .collection_image {
  display: block;
  position: relative;
  width: 100%;
  max-width: 50%;
}

.banner-category .collection_image img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
  object-fit: cover;
}

/* filter */

.collection-filter {
  margin: 20px 0;
}

.collection-filter .collection-filter--inner {
  background-color: #eef0f0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  padding: 10px;
  display: flex;
}

.collection-filter .collection-filter--title {
  font-size: 15px;
  line-height: 18px;
  font-weight: 700;
  white-space: nowrap;
  margin: auto 0;
  padding: 0 20px 0 10px;
}

.collection-filter .main-filters {
  width: 50%;
  gap: 10px;
  display: flex;
}

.collection-filter .filter-container {
  position: relative;
  width: 100%;
}

.collection-filter select {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  -moz-appearance: none;
  appearance: none;
  -webkit-appearance: none;
}

.collection-filter .filter-element {
  background-color: #ffffff;
  border: 1px solid #cbd2d6;
  padding: 5px 20px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  color: #000000;
}

.collection-filter .filter-container.active .filter-element {
  background-color: #e7f4e6;
  border-color: #3aaa35;
}

.collection-filter .filter-element b {
  font-size: 15px;
  color: #646b72;
  text-transform: capitalize;
  position: absolute;
  right: 50px;
}

.collection-filter .filter-container.active .filter-element b {
  color: #3aaa35;
}

.collection-filter .icon-container {
  pointer-events: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.collection-filter .icon-container svg {
  width: 20px;
  max-width: 12px;
  max-height: 12px;
  pointer-events: none;
  margin: 0;
}

.collection-filter svg.icon.icon-close {
  cursor: pointer;
  pointer-events: all;
  z-index: 1;
}

.collection-filter .icon-container svg:first-child {
  transform: rotate(90deg);
}

.collection-filter .icon-container svg:last-child {
  display: none;
}

/* .collection-filter .filter-controls.visibly-hidden {
    display: none;
} */

.collection-filter .filter-controls {
  margin-top: 0;
  width: 50%;
  display: flex;
}

.filter-controls.visibly-hidden {
  display: none;
}

.collection-filter .filter-controls .search-filter {
  position: relative;
  width: 100%;
  padding: 0 0 0 10px;
  flex: 1;
}

.collection-filter .filter-controls .search-filter .input-wrapper {
  width: 100%;
  height: 100%;
  border: 1px solid #cbd2d6;
  border-radius: 20px;
  background-color: #ffffff;
  overflow: hidden;
}

.collection-filter .filter-controls .search-filter svg {
  position: absolute;
  top: 9px;
  left: 22px;
  width: 18px;
  height: 18px;
}

.collection-filter .filter-controls .search-filter .search-icon {
  stroke: #646b72;
}

.collection-filter .filter-controls .search-filter input {
  width: 100%;
  height: 100%;
  font-size: 16px;
  padding-left: 45px;
  border: none;
  border-radius: 4px;
  color: #646b72;
}

.collection-filter .filter-controls .close-all {
  padding: 0 0 0 20px;
  flex-direction: row;
  display: flex;
}

.collection-filter .filter-controls .close-all .text {
  color: #646b72;
  font-size: 13px;
  line-height: 16px;
  margin: auto 10px auto 0;
  font-weight: 600;
}

/* brand list */

.filter-type {
  background-color: #42474c;
  border-radius: 4px;
  padding: 5px 10px 5px 5px;
  margin-bottom: 10px;
  display: flex;
  cursor: pointer;
}

.filter-type img {
  display: block;
  max-width: 40px;
  border-radius: 4px;
}

.filter-type .type-title {
  font-size: 18px;
  line-height: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: auto;
  margin-left: 10px;
}

.type-title .search-count {
  font-size: 15px;
  margin-left: 20px;
  font-weight: 400;
}

.featured-brands .brands {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-column-gap: 20px;
  grid-row-gap: 20px;
  padding: 0;
}

.category-card {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  list-style: none;
  margin: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card .image {
  position: relative;
  display: block;
}

li.category-card img {
  aspect-ratio: 1;
  object-fit: contain;
}

.category-card .category-title {
  color: #646b72;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.46px;
  line-height: 15px;
  text-align: center;
  text-transform: uppercase;
  display: block;
  padding: 0 5px;
  margin-bottom: 10px;
}

/* product grid*/

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-column-gap: 20px;
  grid-row-gap: 20px;
  padding: 0;
}

.product-card {
  padding: 5px 4px;
  border-radius: 4px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
  position: relative;
  flex-direction: column;
  display: flex;
  margin: 0;
}

.product-card .image {
  position: relative;
}

.label--four {
  position: absolute;
  bottom: 5px;
  left: 5px;
  border: 1px solid #cbd2d6;
  background-color: #ffffff;
  border-radius: 20px;
  text-align: center;
  width: 32px;
  height: 32px;
  flex-direction: column;
  display: flex;
}

.label--four span {
  color: #1b1e21;
  font-size: 9px;
  font-weight: 700;
  line-height: 6px;
  margin: auto;
}

.label--four .top {
  font-size: 14px;
  line-height: 10px;
  margin-bottom: 0;
}

.label--five .bottom,
.label--four .bottom {
  margin-top: 0;
}

.product-card .product-info {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px;
}

.product-card .title--card {
  margin: 0;
}

.product-card .title--card a {
  font-weight: 500;
  color: #646b72;
  margin: 0;
  font-size: 14px;
  line-height: 18px;
  display: block;
}

.product-card .buy {
  border-top: 1px solid #eef0f0;
  flex-direction: row;
  display: flex;
  margin-top: 10px;
  padding-top: 10px;
  justify-content: space-between;
  align-items: center;
}

.product-card .buy .price {
  color: #42474c;
  font-size: 14px;
  font-weight: 700;
  line-height: 14px;
  display: flex;
  justify-content: space-between;
  margin-left: 0;
  justify-content: initial;
  padding: 0;
  flex-direction: column;
}

.quick-buy--component {
  position: relative;
  width: 32px;
  transition: 0.3s;
}

.home .quick-buy--component {
  position: absolute;
  right: 10px;
  bottom: 9px;
}

.home .wd-product.wd-hover-alt:not(.wd-variation-active):is(.purchasable, .product-type-grouped):hover .swap-elements {
  transform: translateY(0%);
}

.quick-buy--component.active {
  width: 120px;
}

.quick-buy--component .quickbuy {
  position: relative;
  background-color: #ffffff;
  border-radius: 30px;
  margin: auto 0 auto auto;
  width: 100%;
  height: 32px;
  z-index: 1;
  transition: all 0.2s ease-in-out;
}

.quick-buy--component .quickbuy .adjust {
  position: absolute;
  top: 0;
  margin: auto;
  background-color: #e7f4e6;
  width: 32px;
  height: 32px;
  border-radius: 30px;
  display: flex;
  border: 1px solid #3aaa35;
  touch-action: manipulation;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.quick-buy--component .quickbuy .minus {
  z-index: 1;
  left: 0;
  border-color: #cbd2d6;
  background-color: #ffffff;
  display: none;
}

.quick-buy--component.active .quickbuy .minus {
  display: flex;
}

.quick-buy--component .quickbuy .plus {
  z-index: 2;
  right: 0;
}

.quick-buy--component .quickbuy .quantity {
  width: 100%;
  height: 32px;
  font-size: 16px;
  line-height: 32px;
  text-align: center;
  font-weight: 700;
  z-index: 0;
  display: block;
  border: 0;
  padding: 0;
  border-top: 1px solid #3aaa35;
  border-bottom: 1px solid #3aaa35;
  border-radius: 16px;
  transition: all 0.2s ease-in-out;
  color: #1b1e21;
  background-color: #f8f9f9;
  display: none;
}

.quick-buy--component.active .quickbuy .quantity {
  display: block;
}

.quick-buy--component .quickbuy svg {
  width: 100%;
  max-width: 12px;
  margin: auto;
  pointer-events: none;
}

.quick-buy--component.active .quickbuy .adjust {
  background-color: #3aaa35;
  border-color: #3aaa35;
}

.quick-buy--component.active .quickbuy .adjust svg path {
  fill: #fff;
}

/* load more button */
.rtx-shop-load-more-wrapper {
  text-align: center;
}

a.rtx-shop-load-more-btn {
  padding: 10px 25px;
  min-height: 44px;
  border: 2px solid #0000001b;
  border-radius: 5px;
  color: #333;
  border-width: 2px;
  display: inline-block;
  font-weight: 700;
  margin-top: 10px;
  position: relative;
}

.loading a.rtx-shop-load-more-btn {
  padding-left: 55px;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.rtx-shop-load-more-wrapper.loading a:before {
  animation: spin 0.7s linear infinite;
  content: "";
  width: 20px;
  height: 20px;
  z-index: 1;
  position: absolute;
  border: 1px solid transparent;
  border-radius: 50%;
  border-right-color: #000;
  left: 25px;
}

/* responsive */

@media only screen and (max-width: 1024px) {
  .collection-filter--inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .collection-filter--title {
    display: block;
    width: 100%;
  }

  .collection-filter .main-filters {
    width: 100%;
  }

  .collection-filter .filter-controls {
    width: 100%;
  }

  .collection-filter .filter-controls .search-filter {
    padding: 0;
  }

  .collection-filter .filter-controls .search-filter input {
    height: 35px;
  }

  .collection-filter .filter-controls .search-filter svg {
    top: 10px;
  }

  .featured-brands .brands {
    grid-template-columns: repeat(6, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media only screen and (max-width: 768px) {
  .banner-category .content img {
    height: 50px;
    width: 50px;
  }

  .banner-category .content {
    padding: 15px 0 15px 15px;
  }

  .banner-category .title {
    font-size: 20px;
    padding: 0;
  }

  .banner-category .inner_content {
    margin-left: 15px;
  }

  .collection-filter .main-filters {
    flex-direction: column;
  }

  .featured-brands .brands {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .product-grid {
    gap: 10px;
  }

  .product-card .buy {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .quick-buy--component {
    width: 100%;
  }

  .quick-buy--component.active {
    width: 100%;
  }

  .elementor-widget-wd_products_tabs .product-element-bottom {
    padding-bottom: 40px;
  }

  .elementor-widget-wd_products_tabs .quick-buy--component {
    right: 0;
    border: 0;
    padding: 0 10px 0 0;
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media only screen and (max-width: 425px) {
  .banner-category .content {
    padding: 10px 0 10px 10px;
  }

  .banner-category .content img {
    height: 40px;
    width: 40px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Variation product form */
.collection-product .rtx_variations {
  margin-top: 15px;
}

.collection-product .rtx_variations select:not(:last-child) {
  margin-bottom: 5px;
}

