.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.collection-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.15s ease;
}

.collection-card:hover {
    transform: translateY(-3px);
}

.collection-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 2px;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.collection-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 0;
    min-width: 0;
}

/* 1 imagem */
.collection-preview img:only-child {
    grid-column: span 2;
    grid-row: span 2;
}

/* 2 imagens */
.collection-preview img:nth-child(1):nth-last-child(2),
.collection-preview img:nth-child(2):nth-last-child(1) {
    grid-row: span 2;
}

/* 3 imagens */
.collection-preview img:nth-child(1):nth-last-child(3) {
    grid-column: span 2;
}

/* empty state inside preview */
.collection-preview-empty {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted);
    background: #f5f5f5;
}

.collection-body {
    padding: 14px;
}

.collection-body h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.author,
.count {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.view-btn {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}