.nexab-catalog-sections .nexab-catalog-sections__grid {
    display: grid;
    gap: 20px;
}
.nexab-catalog-sections__grid.nexab-cs-cols-2 { grid-template-columns: repeat(2, 1fr); }
.nexab-catalog-sections__grid.nexab-cs-cols-3 { grid-template-columns: repeat(3, 1fr); }
.nexab-catalog-sections__grid.nexab-cs-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .nexab-catalog-sections__grid.nexab-cs-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .nexab-catalog-sections__grid.nexab-cs-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .nexab-catalog-sections__grid.nexab-cs-cols-2,
    .nexab-catalog-sections__grid.nexab-cs-cols-3,
    .nexab-catalog-sections__grid.nexab-cs-cols-4 { grid-template-columns: 1fr; }
}

.nexab-cs-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--nx-border, #e5e7eb);
    border-radius: var(--nx-radius, 10px);
    overflow: hidden;
    background: var(--nx-bg, #fff);
    transition: box-shadow var(--nx-duration, .3s) var(--nx-ease),
                transform var(--nx-duration, .3s) var(--nx-ease);
}
.nexab-cs-card:hover {
    box-shadow: var(--nx-shadow-lg, 0 10px 30px rgba(0,0,0,.12));
    transform: translateY(-4px);
}
.nexab-cs-card__img {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--nx-surface, #f4f7f6);
}
.nexab-cs-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s var(--nx-ease, cubic-bezier(.16,1,.3,1));
}
.nexab-cs-card:hover .nexab-cs-card__img img {
    transform: scale(1.06);
}
.nexab-cs-card__img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--nx-border, #e5e7eb);
    font-size: 2.5rem;
}
.nexab-cs-card__body {
    flex: 1;
    padding: 1rem 1.125rem .625rem;
}
.nexab-cs-card__name {
    margin: 0 0 .375rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--nx-heading, #10243d);
    line-height: 1.35;
    transition: color .2s ease;
}
.nexab-cs-card:hover .nexab-cs-card__name { color: var(--nx-accent, #0d9488); }
.nexab-cs-card__desc {
    margin: 0 0 .5rem;
    font-size: .85rem;
    color: var(--nx-muted, #6b7280);
    line-height: 1.55;
}
.nexab-cs-card__count {
    display: inline-block;
    font-size: .75rem;
    color: var(--nx-muted, #6b7280);
    background: var(--nx-surface, #f4f7f6);
    padding: .1875rem .5rem;
    border-radius: 100px;
    border: 1px solid var(--nx-border, #e5e7eb);
}
.nexab-cs-card__footer {
    padding: 0 1.125rem 1rem;
}
.nexab-cs-card__link {
    font-size: .875rem;
    font-weight: 600;
    color: var(--nx-accent, #0d9488);
    transition: opacity .2s ease;
}
.nexab-cs-card:hover .nexab-cs-card__link { opacity: .8; }
.nexab-catalog-sections__empty {
    color: var(--nx-muted, #6b7280);
    font-size: .9rem;
    padding: 20px 0;
}
