.category-image-buttons {
    padding: 48px 0;
}

.category-image-buttons--homepage {
    background: rgba(236, 250, 254, 0.75);
    background: color-mix(in srgb, var(--light-teal) 75%, transparent);
    position: relative;
    z-index: 1;
}

.category-image-buttons__pattern {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}

.category-image-buttons__heading {
    margin: 0 0 35px;
}

.category-image-buttons__heading h3 {
    font-size: 25px;
    font-family: var(--fx-h3-heading-style-font-family);
    font-weight: var(--fx-h3-heading-style-font-weight);
    line-height: var(--fx-h3-heading-style-line-height);
    letter-spacing: var(--fx-h3-heading-style-letter-spacing);
    color: var(--fx-text-heading-default);
    margin: 0;
}

.category-image-buttons__subheading {
    margin: var(--fx-text-spacing-sub-and-main-heading) 0 0;
    font-family: var(--fx-paragraph-style-font-family);
    font-size: var(--fx-text-font-size-paragraph);
    font-weight: var(--fx-paragraph-style-font-weight);
    line-height: var(--fx-paragraph-style-line-height);
    color: var(--text-color);
}

.category-image-buttons__empty {
    margin: 0;
    text-align: center;
    color: var(--text-color);
}

.category-image-button__image {
    height: 100px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.category-image-button {
    position: relative;
    display: block;
    background: transparent;
}

.category-image-button__text {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 32px;
    min-width: 181px;
    border-radius: 25px 0 0 0;
    background: var(--light-teal);
    padding: 10px 0 0 31px;
}

.category-image-button__text h4 {
    width: max-content;
    line-height: 1em;
    color: var(--primary-hover-color);
    font-size: 22px;
    font-weight: 400;
    margin: 0;
    position: relative;
    padding: 0 26px 0 0;
}

.category-image-button__text h4:after {
    content: '\e900';
    font-family: 'renovated-icons';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(0, -50%);
    font-weight: normal;
    font-size: 20px;
}

.category-image-buttons-row {
    gap: var(--fx-section-spacing-inner-content-multi-row) 0;
}

.category-image-button__text::before {
    content: "";
    display: block;
    position: absolute;
    transform: rotate(270deg);
    height: 30px;
    width: 30px;
    background-image: radial-gradient(ellipse farthest-corner at right top, transparent 70%, var(--light-teal) 70%);
    left: -24px;
    bottom: 0;
}

.category-image-button__text::after {
    content: "";
    display: block;
    position: absolute;
    right: 0;
    top: -31px;
    height: 32px;
    width: 32px;
    transform: scaleX(-1);
    background-image: radial-gradient(circle farthest-corner at right top, transparent 70%, var(--light-teal) 70%);
}

@media(min-width: 768px) {
    .category-image-button__image {
        height: 272px;
        border-radius: 24px;
    }

    .category-image-buttons__heading h3 {
        font-size: 36px;
    }

    .category-image-button__text h4 {
        font-size: 30px;
    }

    .category-image-button__text {
        height: 42px;
        min-width: 232px;
        border-radius: 24px 0 0 0;
        padding: 13px 0 0 34px;
    }


    .category-image-button__text::before {
        height: 32px;
        width: 32px;
        left: -29px;
        bottom: 0;
    }

    .category-image-button__text::after {
        top: -31px;
        height: 32px;
        width: 32px;
    }

    .category-image-buttons {
        padding: 76px 0;
    }
}



@media(min-width: 1200px) {
    .category-image-button__text {
        min-width: 216px;
        padding: 13px 0 0 31px;
        z-index: 2;
    }

    .category-image-button__text h4:after {
        opacity: 0;
    }

    .category-image-button__text h4 {
        color: var(--black-coffee);
    }

    .category-image-button:hover .category-image-button__text h4 {
        color: var(--primary-hover-color);
    }

    .category-image-button:hover .category-image-button__text h4:after {
        opacity: 1;
    }

    .category-image-button:before {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        width: 0;
        height: 0;
        transition: all ease 0.3s;
        background: linear-gradient(126.68deg, rgba(227, 123, 79, 0.1) 0%, rgba(227, 123, 79, 0.6) 100%);
        background: linear-gradient(126.68deg, color-mix(in srgb, var(--secondary-hover-color) 10%, transparent) 0%, color-mix(in srgb, var(--secondary-hover-color) 60%, transparent) 100%);
        border-radius: 28px;
        opacity: 0;
        z-index: 1;
        pointer-events: none;
    }

    .category-image-button:hover:before {
        height: 100%;
        width: 100%;
        opacity: 1;
    }

    .category-image-button__image:after {
        content: "\e918";
        font-family: 'renovated-icons';
        position: absolute;
        bottom: 42px;
        right: -6px;
        font-size: 112px;
        color: var(--white);
        opacity: 0;
        z-index: 2;
        transition: all ease 0.3s;
    }

    .category-image-button:hover .category-image-button__image:after {
        opacity: 1;
    }

    .category-image-buttons__heading h3 {
        font-size: var(--fx-text-font-size-h3);
    }

    .category-image-buttons__heading {
        margin: 0 0 52px;
    }

    .category-image-button__image {
        height: 252px;
        border-radius: 28px;
    }

    .category-image-button__text h4 {
        font-size: var(--fx-text-font-size-h4);
    }
}
