/* ════════════════════════════════════════════════════════════════
   CATEGORY-CARD.CSS — Category Card Component
   Prefix: .cat-card, .cat-icon, .cat-img, .cat-name, .cat-count
═══════════════════════════════════════════════════════════════ */

/* ── Card shell ──────────────────────────────────────────── */
.cat-card {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: .75rem;
    background: #ffffff; border: 1px solid var(--color-border); border-radius: 14px;
    padding: 1.75rem 1rem;
    transition: border-color 200ms ease, box-shadow 200ms ease, translate 200ms ease;
    cursor: pointer; text-decoration: none; color: inherit;
}
.cat-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), .13);
    translate: 0 -3px;
}

/* ── Icon circle — base ───────────────────────────────────── */
.cat-icon {
    width: 68px; height: 68px; border-radius: 50%; flex-shrink: 0;
    background: rgba(var(--color-primary-rgb), .08); color: var(--color-primary);
    display: flex; align-items: center; justify-content: center;
}

/* SVG hover: fill circle gold, icon turns white via currentColor */
.cat-card:hover .cat-icon:not(.cat-icon--img) {
    background: var(--color-primary);
    color: #fff;
}

/* ── Icon circle — image variant ────────────────────────── */
.cat-icon--img {
    overflow: hidden;
    padding: 10px;
}
.cat-card:hover .cat-icon--img {
    background: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), .28);
}

/* ── Image ───────────────────────────────────────────────── */
.cat-img {
    width: 44px; height: 44px;
    object-fit: contain;
    display: block;
    transition: transform 220ms ease;
}
.cat-card:hover .cat-img { transform: scale(1.1); }

/* ── Label & count ───────────────────────────────────────── */
.cat-name {
    font-weight: 600; font-size: .9rem; color: var(--color-text);
    line-height: 1.35;
}
.cat-count { font-size: .78rem; color: var(--text); }

