.custom-category-banner {
    display: flex;
    flex-direction: row;
    width: 100%;
    background: linear-gradient(to right, #02C1A6 0%, #00CD7C 100%);
    border-radius: 20px;
    position: relative;
    margin-bottom: 1em;
}

.custom-category-logo {
    position: absolute;
    left: 4%;
    bottom: 0;
    width: 100%;
    height: auto !important;
}

.custom-category-banner .banner-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    background: transparent;
    flex: 2;
    padding: 16px;
}

.custom-category-banner .category-title {
    display: flex;
    flex-direction: column;
    width: calc(100% - 30%);
    margin-left: 30%;
    background: transparent;
}

.custom-category-banner .category-title h2 {
    font-size: 33px;
    font-weight: 700;
    color: #ffffff;
    width: 70%;
    text-transform: uppercase;
}

.custom-category-banner .category-title p {
    font-size: 17px;
    font-weight: 400;
    color: #ffffff;
}

.custom-category-banner .discount-banner {
    display: flex;
    flex-direction: row;
    width: 100%;
    background: linear-gradient(to right, #FBFFFE 0%, #D3FFEE 100%);
    border-radius: 20px;
    flex: 0.7;
    display: flex;
    align-items: center;
    position: relative;
}


.custom-category-banner .discount-banner span {
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    font-size: clamp(30px, 5vw, 35px);
    font-weight: 800;
    color: white;
    background: linear-gradient(to right, #E52525 0%, #FF4C4C 100%);
    height: fit-content;
    width: fit-content;
    padding: 15px;
    border-radius: 20px;
    position: absolute;
    top: 50%;
    transform: translate(-20%, -50%);
}

.custom-category-logo-mobile {
    display: none;
}

@media (max-width: 991px) {
    .custom-category-logo {
        max-width: 170px;
        left: 3%;
    }

    .custom-category-banner .category-title h2 {
        font-size: 24px;
    }

    .custom-category-banner .category-title p {
        font-size: 18px;
    }

    .custom-category-banner .discount-banner span {
        font-size: 30px;
    }
}


@media (max-width: 768px) {
    .custom-category-banner {
        flex-direction: column;
        align-items: center;
        padding: 24px 10px;
        min-height: unset;
        overflow: hidden;
    }

    .custom-category-banner .category-title h2 {
        width: 90%;
    }

    .custom-category-logo {
        display: none;
    }

    .custom-category-logo-mobile {
        display: block;
        position: absolute;
        width: 100%;
        height: auto !important;
        max-width: 140px;
        right: -7%;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }

    .custom-category-banner .banner-content {
        flex-direction: column;
        align-items: flex-end;
        padding: 12px 8px 0 8px;
        position: relative;
    }

    .custom-category-banner .category-title {
        width: 100%;
        margin-left: 0;
        align-items: center;
        text-align: center;
        padding: 0;
    }

    .custom-category-banner .discount-banner {
        background: transparent;
    }

    .custom-category-banner .discount-banner span {
        width: 70%;
        text-align: center;
        position: static;
        top: unset;
        left: unset;
        transform: none;
        margin: 0 auto;
        display: block;
    }
}

@media (min-width: 992px) {
    .custom-category-logo {
        max-width: 205px;
        height: auto !important;
    }
}

@media (max-width: 576px) {
    .custom-category-logo-mobile {
        width: 100px;
    }
}