/* --- Product Category
-------------------------------------------------------- */

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

.wc-block-featured-category__wrapper,
.wc-block-featured-category {
    align-content: flex-end;
    align-items: flex-end;
}

.wc-block-featured-category,
.wc-block-featured-category__title,
.wp-block-woocommerce-category-title {
    position: relative;
    background-color: transparent;
    text-transform: capitalize;
    font-size: var(--wp--preset--font-size--content-heading);
    line-height: var(--wp--custom--typography--line-height--heading-two);
    width: auto;
    padding: 0 35px 21px;
    box-sizing: border-box;
}

.wc-block-featured-category {

    .wc-block-featured-category__title,
    .wp-block-woocommerce-category-title {
        margin-top: 0;
        padding-left: 0;
        padding-right: 0;

        &:after {
            content: "";
            border-bottom: 3px solid var(--wp--preset--color--primary);
            width: 30%;
            position: absolute;
            left: 50%;
            bottom: 7px;
            transform: translateX(-50%);
        }
    }
}

.wc-block-featured-category .wc-block-featured-category__title:after {
    content: "";
    border-bottom: 3px solid var(--wp--preset--color--primary);
    width: 30%;
    position: absolute;
    left: 50%;
    bottom: 7px;
    transform: translateX(-50%);
}

.wc-block-featured-category .wp-block-button .wp-block-button__link:hover {
    box-shadow: 0 0 1px var(--wp--preset--color--primary);
}

.wc-block-featured-category .wp-block-button .wp-block-button__link {
    margin-top: 0;
}

.wc-block-featured-category .wp-block-woocommerce-category-description {
    transition: all 0.5s ease-in-out;
    transform: translateY(50px);
    font-size: var(--wp--preset--font-size--extra-small);

    p {
        margin-top: 0;
        margin-bottom: 25px;
    }
}

.wc-block-featured-category .wc-block-featured-category__title,
.wc-block-featured-category .wp-block-woocommerce-category-title {
    transform: translateY(65px);
    transition: all 0.5s ease-in-out;
}

.wc-block-featured-category:hover .wc-block-featured-category__title,
.wc-block-featured-category:hover .wp-block-woocommerce-category-title,
.wc-block-featured-category:hover .wp-block-woocommerce-category-description {
    transform: translateY(0px);
    animation: smoothScrollBack 0.8s backwards, fadein 1s;
}

.wc-block-featured-category .wc-block-featured-category__link,
.wc-block-featured-category .wp-block-buttons {
    transform: translateY(120px);
    padding-bottom: 28px;
    transition: 0.5s;
}

.wc-block-featured-category:hover .wc-block-featured-category__link,
.wc-block-featured-category:hover .wp-block-buttons {
    animation: fadein 1s;
    transform: translateY(0px);
}

.wc-block-featured-category:before {
    content: "";
    width: 100%;
    height: 100%;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(47, 47, 47, 0.1), rgba(47, 47, 47, 0.8));
    z-index: 1;
    transition: opacity 0.5s ease-in-out;
}

.components-placeholder.wc-block-featured-category:before {
    content: none;
}

.wc-block-featured-category:hover::before {
    opacity: 1;
}
.wc-block-featured-category .wc-block-featured-category__background-image {
    transition: all 0.5s ease-in-out;
}

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

.wc-block-featured-category__inner-blocks {
    padding: 0;
}


.wc-block-featured-category__inner-blocks .wp-block-woocommerce-category-title a {
    text-decoration: none;

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

