/* Category cards — shared by the products index (/products/) and the product
   wizard's category step (/start/ and the homepage wizard). Single owner of the
   category-card look so both surfaces stay visually identical. */

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.category-card__image {
    aspect-ratio: 4 / 3;
    width: 100%;
    background-color: var(--background-white, #ffffff);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.category-card__image i {
    font-size: 4rem;
    color: var(--text-muted, #999999);
}

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

.category-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-title-color, #1f2937);
    margin: 0 0 10px 0;
}

.category-card__desc {
    font-size: 0.9rem;
    color: var(--text-muted, #4b5563);
    margin: 0 0 15px 0;
    line-height: 1.5;
    flex-grow: 1;
}

.category-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.category-card__count {
    font-size: 0.9rem;
    color: var(--text-muted, #666);
}

.category-card__action {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color, #213a86);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.category-card:hover .category-card__action {
    gap: 10px;
}

@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card__image i {
        font-size: 2.5rem;
    }
}
