.category-product {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    width: 85%;
    max-width: 85%;
    margin: 15px auto;
    justify-content: space-between;
    align-content: center;
    align-items: stretch;
}

.category-product > span {
    width: 100%;
    display: block;
    border-radius: 7px;
    position: relative;
}

.category-product > span img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    position: absolute;
    z-index: -1;
    border-radius: 7px;
    filter: brightness(80%);
}

.category-product > span a {
    position: relative;
    display: block;
    bottom: 0;
    width: 80%;
    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.57);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin: 100px auto 5px;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
}

.category-product > span a span {
    width: 55px;
    height: 55px;
    fill: #000;
    margin: auto;
    background: #fff;
    border-radius: 50%;
    padding: 7px;
    transform: translateY(-50%);
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.category-product > span a span svg {
    width: 35px;
    height: 35px;
    fill: #9B795D;
}

.category-product > span a h4 {
    font-size: 12px;
    color: #000;
    margin-top: -20px;
    margin-bottom: 10px;

}

@media (max-width: 900px) {

    .category-product > span img {
        display: none;
    }

    .category-product {
        gap: 0;
        width: 95%;
        max-width: 95%;
    }

    .category-product > span {
        
    }

    .category-product > span a {
        display: flex;
        align-content: center;
        align-items: center;
        margin-top: auto;
    }

    .category-product > span a.active {
        background: #9B795D;
        color: #fff;
    }

    .category-product span a {
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
        background: rgba(255, 255, 255, 0.35);
        backdrop-filter: blur(1.5px) saturate(180%);
        -webkit-backdrop-filter: blur(1.5px) saturate(180%);
    }

    .category-product span.active a {
        background: #9B795D;
        color: #fff;
    }

    .category-product > span a span {
        transform: translateY(0) translateX(50%);
        margin: 0;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
        width: 35px;
        height: 35px;
    }

    .category-product > span h4 {
        display: contents;
        margin-right: -20px;
        font-size: 0.6rem !important;
    }

    .category-product > span.active h4 {
        color: #fff;
    }
    
}
