/* ==========================================
   TRANG THƯƠNG HIỆU - KHỚP GIAO DIỆN TỔNG THỂ
   ========================================== */
.page-header {
    margin: 2rem 0 1.5rem;
}
.page-header h1 {
    color: var(--chu-chinh);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}
.page-header p {
    color: var(--chu-phu);
    font-size: 14px;
}

/* THƯƠNG HIỆU NỔI BẬT */
.section-brands-featured h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--chu-chinh);
    margin-bottom: 1rem;
}
.brands-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}
.brands-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 0;
    flex: 1;
}
.brands-slider::-webkit-scrollbar { display: none; }
.brand-card {
    min-width: 160px;
    padding: 1.2rem 1rem;
    border: 1px solid var(--hong-phan-the);
    border-radius: 12px;
    text-align: center;
    background: white;
    transition: 0.2s;
    cursor: pointer;
}
.brand-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(244, 114, 182, 0.08);
}
.brand-card img {
    max-height: 45px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}
.brand-card p {
    font-weight: 600;
    color: var(--chu-chinh);
    margin-bottom: 2px;
}
.brand-card span {
    font-size: 13px;
    color: var(--chu-phu);
}
.btn-slider-brands {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--hong-phan-the);
    background: white;
    color: var(--hong-man-nhan);
    cursor: pointer;
    flex-shrink: 0;
    transition: 0.2s;
}
.btn-slider-brands:hover {
    background: var(--hong-phan-the);
}
.btn-slider-brands.prev { margin-right: 0.5rem; }
.btn-slider-brands.next { margin-left: 0.5rem; }

/* Ô TÌM + CHỮ CÁI */
.brand-filter {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
#tim-thuong-hieu {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--hong-phan-the);
    outline: none;
}
.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.btn-char {
    min-width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: white;
    color: var(--chu-chinh);
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}
.btn-char.active {
    background: var(--hong-chu-dao);
    color: white;
}
.btn-char:hover:not(.active) {
    background: var(--hong-phan-the);
}

/* DANH SÁCH NHÓM THƯƠNG HIỆU */
.section-brands-list {
    margin-bottom: 3rem;
}
.brand-group {
    margin-bottom: 2rem;
}
.group-char {
    font-size: 22px;
    font-weight: 700;
    color: var(--chu-chinh);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--hong-phan-the);
    padding-bottom: 0.3rem;
}
.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem 1rem;
}
.brand-item {
    font-size: 14px;
}
.brand-item a {
    color: var(--chu-chinh);
    font-weight: 500;
    text-decoration: none;
}
.brand-item a:hover {
    color: var(--hong-chu-dao);
}
.brand-item span {
    color: var(--chu-phu);
    margin-left: 4px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .brand-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .brand-grid { grid-template-columns: repeat(2, 1fr); }
    .brand-card { min-width: 140px; padding: 1rem 0.8rem; }
}
@media (max-width: 480px) {
    .brand-grid { grid-template-columns: 1fr; }
}