/* Custom Brands Grid - CSS */

/* Reset & Container */
.cbg-brands-grid {
    display: grid;
    gap: 24px;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

/* Coloane responsive */
.cbg-columns-3 { grid-template-columns: repeat(3, 1fr); }
.cbg-columns-4 { grid-template-columns: repeat(4, 1fr); }
.cbg-columns-5 { grid-template-columns: repeat(5, 1fr); }
.cbg-columns-6 { grid-template-columns: repeat(6, 1fr); }

/* Card */
.cbg-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.cbg-brand-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Logo */
.cbg-brand-logo {
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.cbg-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Placeholder pentru branduri fără logo */
.cbg-brand-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cbg-brand-placeholder span {
    font-size: 28px;
    font-weight: 600;
    color: #6b7280;
    line-height: 1;
}

/* Info */
.cbg-brand-info {
    text-align: center;
}

.cbg-brand-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.cbg-brand-card:hover .cbg-brand-name {
    color: #2563eb;
}

.cbg-brand-count {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 400;
}

/* Error */
.cbg-error {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 40px 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .cbg-columns-5,
    .cbg-columns-6 { grid-template-columns: repeat(3, 1fr); }
    .cbg-columns-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .cbg-columns-3,
    .cbg-columns-4,
    .cbg-columns-5,
    .cbg-columns-6 { grid-template-columns: repeat(2, 1fr); }
    
    .cbg-brands-grid { gap: 16px; }
    .cbg-brand-card { padding: 20px 12px; }
}

@media (max-width: 480px) {
    .cbg-columns-3,
    .cbg-columns-4,
    .cbg-columns-5,
    .cbg-columns-6 { grid-template-columns: repeat(2, 1fr); }
    
    .cbg-brands-grid { gap: 12px; }
    .cbg-brand-card { padding: 16px 10px; }
    .cbg-brand-logo { width: 90px; height: 60px; }
    .cbg-brand-name { font-size: 13px; }
}
