/* --- Featured Products
-------------------------------------------------------- */


.wp-thumbnail-product {
  padding: 0;

  .wp-block-columns {
    gap: 0 30px;
  }

  .wc-block-grid__products {
    margin: 0;
  }
}

.wp-product-category-thumbnail {
  height: 100%;

  .wp-block-cover {
    height: 100%;
  }
}

.wp-thumbnail-product .wc-block-featured-category,
.wp-thumbnail-product .wp-product-cateogry-block {
  height: 100%;
}

.wp-block-group.alignfull.wp-thumbnail-product {
  margin: 30px !important;
  max-width: 100% !important;
  background-color: transparent;
  padding-left: 0 !important;
  padding-right: 0 !important;
}


.wc-block-featured-category__description p {
  margin: 0;
  line-height: 1.75;
}

/* --- three column product showcase **/
.wp-product-showcase .wc-block-featured-product .wc-block-featured-product__link,
.wp-product-showcase .wc-block-featured-product .wc-block-featured-product__price,
.wp-product-showcase .wc-block-featured-product .wc-block-featured-product__title {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 10px;
}

.wp-product-showcase .wc-block-featured-product .wc-block-featured-product__price {
  color: var(--wp--preset--color--foreground);
  font-size: var(--wp--preset--font-size--upper-heading);
  font-weight: var(--wp--custom--typography--font-weight--semi-bold);
}

.wp-product-cateogry-block .wc-block-featured-category .wc-block-featured-category__description,
.wp-product-showcase .wc-block-featured-product .wc-block-featured-product__description {
  color: var(--wp--preset--color--body-text);
  padding-left: 0;
  padding-right: 0;
}

.wp-product-cateogry-block .wc-block-featured-category .wc-block-featured-category__background-image,
.wp-product-showcase .wc-block-featured-product .wc-block-featured-product__background-image {
  position: relative;
  width: auto;
  height: auto;
  object-fit: contain !important;
  margin: 0 0 7px 0;
  transition: all 0.4s;
  max-width: 100%;
  z-index: 2;
}

.wp-block-latest-products .wc-block-grid__product:hover .wc-block-grid__product-image img,
.wp-product-cateogry-block .wc-block-featured-category:hover img.wc-block-featured-category__background-image,
.wp-thumbnail-product .wc-block-product-category:hover img,
.wc-block-featured-product:hover img.wc-block-featured-product__background-image {
  transform: scale(1.05);
}

.wp-product-showcase .wc-block-featured-product.has-background-dim .background-dim__overlay:before {
  opacity: 0;
}


.wp-thumbnail-product .wp-block-columns .wp-product-category-thumbnail {
  overflow: hidden;
}

.wp-thumbnail-product .wp-block-columns .wp-product-category-thumbnail img {
  transform: scale(1.1);
  transition: all 0.4s;
}

.wp-thumbnail-product .wp-block-columns:hover .wp-product-category-thumbnail img {
  transform: scale(1);
}

.wp-product-showcase .wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color) {
  color: var(--wp--preset--color--foreground);
  padding-top: max(0.7rem, 0.73vw);
  padding-bottom: max(0.7rem, 0.73vw);
  padding-left: max(1.35rem, 1.5vw);

  &:hover,
  &:focus {
    color: var(--wp--preset--color--color-light);
  }

}

.wp-product-showcase .wc-block-featured-product .wp-block-button__link {
  padding: 12px !important;
  width: 100%;
  display: none;
}

.wp-product-showcase .wc-block-featured-product .wp-block-buttons>.wp-block-button {
  width: 100%;
}

.wp-product-showcase .wc-block-featured-product .wp-block-button__link:after {
  display: none;
}

ul.wc-block-grid__products li.wc-block-grid__product .add_to_cart_button,
.woocommerce ul.products li.product .button,
.wc-block-featured-product .wp-block-button__link,
.wc-block-product-template .wc-block-product .wc-block-components-product-button__button {

  font-size: 16px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  padding: 12px !important;
  margin-top: 0;
  margin-right: 14px;
  text-decoration: none;
  border: none;
  position: relative;
  padding-right: 1.5rem !important;
  text-transform: capitalize;


  &:hover::before,
  &:focus::before {
    background-color: var(--wp--preset--color--foreground);
  }

  &::after {
    content: "+";
    display: inline-block;
    margin-left: 10px;
    font-weight: normal;
    font-size: 24px;
    line-height: 1;
  }



}

.wc-block-featured-product:hover .wp-block-button__link {
  top: 0;
  opacity: 1;
  visibility: visible;
}


.wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link.loading:after {
  content: '' !important;
  width: 0.45rem;
  height: 0.45rem;
}

.wc-block-components-product-rating__link {
  font-size: var(--wp--preset--font-size--medium);

}

.wc-block-grid__product-price.price+.wc-block-components-product-rating.wc-block-grid__product-rating {
  margin: -14px 0 7px;
}

.wp-product-showcase {
  .wp-block-woocommerce-featured-product {
    .wc-block-featured-product__inner-blocks {
      padding: 0;

      .wp-block-woocommerce-product-summary {
        display: none;
      }

      .wp-block-post-title {
        margin-bottom: 7px;
        font-size: var(--wp--preset--font-size--normal);
      }

      .wp-block-post-title,
      .wp-block-woocommerce-product-summary,
      .wp-block-woocommerce-product-price {
        color: var(--wp--preset--color--foreground);
      }

    }

  }

}