/* ============================================================
   BSM Brand Showcase — Ticker + Grid
   ============================================================ */

/* ── Brand Ticker (infinite horizontal scroll) ─────────── */
.bsm-brand-ticker {
    overflow: hidden;
    width: 100%;
    position: relative;
    height: var(--bsm-bt-h, 80px);
    background: #fff;
}

/* Fade edges */
.bsm-brand-ticker::before,
.bsm-brand-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}
.bsm-brand-ticker::before {
    left: 0;
    background: linear-gradient(to right, #fff 0%, transparent 100%);
}
.bsm-brand-ticker::after {
    right: 0;
    background: linear-gradient(to left, #fff 0%, transparent 100%);
}

.bsm-bt-track {
    display: flex;
    width: max-content;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}


.bsm-bt-scroll {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.bsm-bt-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--bsm-bt-h, 80px);
    padding: 10px 32px;
    text-decoration: none !important;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.bsm-bt-item:hover {
    opacity: 0.6;
}

.bsm-bt-item img {
    max-height: calc(var(--bsm-bt-h, 80px) - 20px);
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
}
.bsm-bt-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.bsm-bt-name {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1a1a2e;
    white-space: nowrap;
    opacity: 0.55;
    transition: opacity 0.3s;
}
.bsm-bt-item:hover .bsm-bt-name {
    opacity: 1;
}

/* Mobile: smaller */
@media (max-width: 768px) {
    .bsm-bt-item {
        padding: 8px 20px;
    }
    .bsm-bt-name {
        font-size: 11px;
    }
    .bsm-brand-ticker::before,
    .bsm-brand-ticker::after {
        width: 30px;
    }
}

/* ── Brand Grid ────────────────────────────────────────── */
.bsm-brand-grid {
    display: grid;
    grid-template-columns: repeat(var(--bsm-bg-cols, 6), 1fr);
    gap: 16px;
    padding: 20px 0;
}

.bsm-bg-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    text-decoration: none !important;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    text-align: center;
    min-height: 140px;
}
.bsm-bg-card:hover {
    border-color: #1a1a2e;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.bsm-bg-card img.bsm-bg-logo {
    max-height: 60px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}
.bsm-bg-card:hover img.bsm-bg-logo {
    filter: grayscale(0%);
}

/* Placeholder circle with first letter when no logo */
.bsm-bg-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1a1a2e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.bsm-bg-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.bsm-bg-name {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.bsm-bg-count {
    font-size: 11px;
    color: #888;
}

/* Responsive grid */
@media (max-width: 1200px) {
    .bsm-brand-grid { --bsm-bg-cols: 5; }
}
@media (max-width: 980px) {
    .bsm-brand-grid { --bsm-bg-cols: 4; }
}
@media (max-width: 768px) {
    .bsm-brand-grid { --bsm-bg-cols: 3; }
    .bsm-bg-card { padding: 16px 10px 12px; min-height: 110px; }
    .bsm-bg-placeholder { width: 44px; height: 44px; font-size: 18px; }
}
@media (max-width: 480px) {
    .bsm-brand-grid { --bsm-bg-cols: 2; gap: 10px; }
}
