/* --- Block Featured Category
-------------------------------------------------------- */

.wp-block-featured-category {

  .wc-block-featured-category {
    min-height: 280px !important;
    height: 100%;

    .wc-block-featured-category__inner-blocks {
      display: flex;
      z-index: 1;
      align-items: center;
      background: var(--wp--preset--color--background);
      position: absolute;
      bottom: 20px;
      left: 20px;
      right: 20px;
      padding: 15px 20px;
      border-radius: 6px;
      justify-content: space-between;
      gap: 10px;
      margin: 0 auto;
      max-width: calc(100% - 40px);
      box-sizing: border-box;
      flex-wrap: wrap;

      .block-editor-inner-blocks {
        width: 100%;

        .block-editor-block-list__layout {
          display: flex;
          justify-content: space-between;
        }
      }
    }

    .wp-block-woocommerce-category-description {
      display: none;
    }

    .wc-block-featured-category__background-image {
      transform: scale(1.05);
      transition: all 0.4s;
      transform-origin: center;
    }

    &:hover .wc-block-featured-category__background-image {
      transform: scale(1);
    }

    .background-dim__overlay {
      display: none;
    }

    .wp-block-woocommerce-category-title,
    .wc-block-featured-category__link {
      padding: 0;
      width: auto;
      transition: all 0.4s;

      div {
        gap: 0;
      }
    }

    .wp-block-woocommerce-category-title {
      font-size: var(--wp--preset--font-size--normal);
      line-height: var(--wp--custom--typography--line-height--normal);
      font-weight: var(--wp--custom--typography--font-weight--normal);
      color: var(--wp--preset--color--foreground);
      text-align: left;
      margin: 0;
    }






    .wp-block-button .wp-block-button__link {
      padding: 7px 21px;
      font-size: var(--wp--preset--font-size--extra-small);
      margin: 0;
      font-weight: var(--wp--custom--typography--font-weight--semi-bold);
      width: max-content;
      background-color: transparent;
      border: 1px solid var(--wp--preset--color--border-default-color);
      color: var(--wp--preset--color--foreground);

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


.wp-block-featured-category .wc-block-featured-category .wc-block-featured-category__background-image {
  object-fit: cover !important;
}

.wp-block-featured-category .wp-block-woocommerce-featured-category {
  height: 100%;
}

.block-editor-block-list__block .wp-block-feature-content .wp-block-heading {
  white-space: unset !important;
  margin-top: 1.5rem !important;
}

.block-editor-block-list__block .wc-block-featured-category__wrapper {
  min-height: auto !important;
}

.wp-block-featured-category-product-slider .fse-slider-wrapper {
  margin: 0 auto;
  max-width: 400px;
}

.wp-block-featured-category-product-slider .fse-slider-wrapper .wc-block-featured-product .wc-block-featured-product__background-image {
  position: relative;
  margin-bottom: 21px;
}



.wp-block-featured-category-product-slider .fse-slider-wrapper .swiper-button {
  top: auto;
  bottom: auto;
  transform: none;
  width: 40px;
  height: 40px;
  left: auto;
  right: auto;
  background-color: transparent;
  border: 1px solid var(--wp--preset--color--foreground);
  margin-left: 10px;
  position: relative;
  color: var(--wp--preset--color--foreground);
}

.wp-block-featured-category-product-slider .wc-block-featured-product__title {
  font-size: var(--wp--custom--typography--font-size--post-title)
}

.wp-block-featured-category-product-slider .fse-slider-wrapper .swiper-button-prev {
  margin-right: 10px;
  margin-left: 0;
}

.wp-block-featured-category-product-slider .navigation-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 35px;
}

.wp-block-featured-category-product-slider .wp-block-buttons.is-content-justification-center .wp-block-button {
  text-align: center;
}
