.myst-subcategories{
    display:grid;
    grid-template-columns:repeat(3,220px);
    justify-content:center;
    gap:20px;
    margin:25px auto 35px;
}

.myst-subcategories.two-items{
    grid-template-columns:repeat(2,220px);
}

.myst-subcategories.four-items{
    grid-template-columns:repeat(4,220px);
}

/* 5 items */
.myst-subcategories.horeca-items,
.myst-subcategories.spices-items{
    grid-template-columns:repeat(5,220px);
}

.myst-subcategory-card{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:12px;
    text-align:center;
    text-decoration:none;
    background:#fff;
    border:1px solid #e7e7e7;
    border-radius:14px;
    min-height:110px;
    padding:18px 14px;
    color:#222;
    transition:
        background-color .25s ease,
        border-color .25s ease,
        color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.myst-subcategory-card:hover{
    transform:translateY(-2px);
    border-color:#C8A24A;
    color:#C8A24A;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.myst-subcategory-icon{
    width:42px;
    height:42px;
    display:block;
    transition:.25s ease;
}

.myst-subcategory-card span{
    font-size:15px;
    line-height:1.2;
    font-weight:600;
    color:inherit;
}

.myst-subcategory-card.active{
    background:#C8A24A;
    border-color:#C8A24A;
    color:#fff;
    box-shadow:0 12px 30px rgba(200,162,74,.25);
}

.myst-subcategory-card.active .myst-subcategory-icon{
    filter:brightness(0) invert(1);
}

.myst-subcategory-card.active:hover{
    transform:none;
}

/* ================= TABLET ================= */

@media (max-width:1024px){

    .myst-subcategories,
    .myst-subcategories.two-items,
    .myst-subcategories.four-items{
        grid-template-columns:repeat(4,1fr);
        gap:12px;
        width:100%;
    }

    .myst-subcategories.horeca-items,
    .myst-subcategories.spices-items{
        grid-template-columns:repeat(5,1fr);
        gap:12px;
        width:100%;
    }

    .myst-subcategory-card{
        min-height:90px;
        padding:12px 8px;
        gap:8px;
        border-radius:12px;
    }

    .myst-subcategory-icon{
        width:32px;
        height:32px;
    }

    .myst-subcategory-card span{
        font-size:12px;
        line-height:1.15;
    }

}

/* ================= MOBILE ================= */

@media (max-width:767px){

    .myst-subcategories{
        grid-template-columns:repeat(3,1fr);
        gap:10px;
        width:100%;
        margin:20px 0 25px;
    }

    .myst-subcategories.two-items{
        grid-template-columns:repeat(2,1fr);
    }

    .myst-subcategories.four-items{
        grid-template-columns:repeat(2,1fr);
    }

    .myst-subcategories.horeca-items,
    .myst-subcategories.spices-items{
        grid-template-columns:repeat(2,1fr);
    }

    .myst-subcategories.horeca-items .myst-subcategory-card:last-child,
    .myst-subcategories.spices-items .myst-subcategory-card:last-child{
        grid-column:1 / -1;
    }

    .myst-subcategory-card{
        min-height:72px;
        padding:8px 5px;
        border-radius:12px;
        gap:4px;
    }

    .myst-subcategory-icon{
        width:22px;
        height:22px;
    }

    .myst-subcategory-card span{
        font-size:9.5px;
        line-height:1.1;
        font-weight:600;
    }

}