.wc-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.wc-cat-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wc-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
}

.wc-cat-card__image-wrap {
    display: block;
    background: #f7f7f7;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.wc-cat-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wc-cat-card__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.wc-cat-card__title {
    margin: 0 0 10px;
    font-size: 1.2rem;
    line-height: 1.35;
    font-weight: 700;
}

.wc-cat-card__title a {
    text-decoration: none;
    color: #111111;
}

.wc-cat-card__count {
    margin-bottom: 16px;
    color: #666666;
    font-size: 0.95rem;
}

.wc-cat-card__button {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wc-cat-card__button:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    color: #ffffff;
}

@media (max-width: 1024px) {
    .wc-cat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 767px) {
    .wc-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .wc-cat-card__content {
        padding: 16px;
    }

    .wc-cat-card__title {
        font-size: 1.05rem;
    }

    .wc-cat-card__button {
        width: 100%;
        min-height: 42px;
        padding: 10px 14px;
    }
}
