.category-card {
    display: block;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(16, 24, 40, 0.12);
    border-color: transparent;
}

.category-card__media {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f6f7f9;
}

.category-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.category-card:hover .category-card__media img {
    transform: scale(1.08);
}

.category-card__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 16px;
}

.category-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
}

.category-card__arrow {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.category-card:hover .category-card__title {
    color: var(--primary, #16a34a);
}

.category-card:hover .category-card__arrow {
    background: var(--primary, #16a34a);
    color: #fff;
    transform: translateX(-3px);
}

@media (max-width: 575px) {
    .category-card {
        border-radius: 14px;
    }
    .category-card__body {
        padding: 10px 12px;
    }
    .category-card__title {
        font-size: 13px;
    }
    .category-card__arrow {
        width: 26px;
        height: 26px;
    }
}
