﻿
/* Alphabet Bar */
.alpha-bar {
    background: #fff;
    border-bottom: 1px solid #eaeef2;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.alpha-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.alpha-btn {
    min-width: 32px;
    height: 32px;
    border: 1.5px solid #e0e6ef;
    background: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #555;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .alpha-btn:hover, .alpha-btn.active {
        background: #0f3460;
        border-color: #0f3460;
        color: #fff;
    }

    .alpha-btn.disabled {
        opacity: .3;
        cursor: not-allowed;
    }

.alpha-all {
    padding: 0 12px;
    font-size: 12px;
}

/* Content */
.brands-page {
    padding: 48px 0 80px;
    background: #f4f7fb;
    min-height: 60vh;
}

/* Letter Group */
.brand-group {
    margin-bottom: 48px;
    scroll-margin-top: 70px;
}

.brand-group-letter {
    font-size: 13px;
    font-weight: 800;
    color: #e94560;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .brand-group-letter::after {
        content: '';
        height: 1px;
        background: #e0e6ef;
    }

.brand-group-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.brand-item {
    background: #fff;
    border: 1px solid #e0e6ef;
    border-radius: 10px;
    padding: 18px 12px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

    .brand-item:hover {
        box-shadow: 0 6px 20px rgba(15,52,96,.12);
        transform: translateY(-3px);
        border-color: #0f3460;
    }

.brand-name-text {
    font-size: 14px;
    font-weight: 700;
    color: #0f3460;
    line-height: 1.3;
}

.brand-count-text {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Search */
.brand-search-row {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eaeef2;
}

.brand-search-box {
    display: flex;
    align-items: center;
    border: 2px solid #e0e6ef;
    border-radius: 10px;
    overflow: hidden;
    max-width: 420px;
}

    .brand-search-box input {
        flex: 1;
        padding: 11px 16px;
        border: none;
        outline: none;
        font-size: 14px;
    }

    .brand-search-box button {
        padding: 11px 18px;
        background: #0f3460;
        border: none;
        color: #fff;
        cursor: pointer;
        font-size: 14px;
        transition: background .2s;
    }

        .brand-search-box button:hover {
            background: #e94560;
        }

/* Empty / Loading */
.brands-empty {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

    .brands-empty i {
        font-size: 48px;
        color: #d0dae8;
        margin-bottom: 16px;
    }

@media (max-width: 1024px) {
    .brand-group-grid {
        grid-template-columns: repeat(4,1fr);
    }
}

@media (max-width: 640px) {
    .brand-group-grid {
        grid-template-columns: repeat(3,1fr);
    }
}