/* All Brands directory. Typography follows the homepage; scoped to .brdx-page. */

.brdx-page {
    --bx-navy: #14213D;
    --bx-red: #BE1532;
    --bx-muted: #5d6374;
    --bx-line: #e6e8ec;
    --bx-paper: #FFFFFF;
    --bx-cream: #FFF5F7;
    color: var(--bx-navy);
    background: var(--bx-paper);
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.72;
    overflow: hidden;
}

.brdx-page .container { max-width: 1320px; }
.brdx-page h1, .brdx-page h2 { font-family: inherit; font-weight: 800; line-height: 1.18; letter-spacing: 0; color: #101828; }

/* Hero */
.brdx-hero { padding: 72px 0 48px; text-align: center; background: var(--bx-cream); }
.brdx-eyebrow { display: block; margin-bottom: 14px; color: var(--bx-red); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.brdx-hero h1 { margin: 0 0 16px; font-size: 52px; line-height: 1.08; }
.brdx-hero-copy { max-width: 620px; margin: 0 auto 28px; color: #4b5563; font-size: 17px; line-height: 1.7; }
.brdx-hero-stat b { display: block; font-family: inherit; font-weight: 800; font-size: 40px; line-height: 1.1; color: var(--bx-red); }
.brdx-hero-stat span { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; line-height: 1.35; letter-spacing: 0; color: var(--bx-muted); }

/* Search */
.brdx-search-section { padding: 48px 0 8px; text-align: center; }
.brdx-search-section h2 { margin: 0 0 20px; font-size: 34px; }
.brdx-search-form { position: relative; display: flex; align-items: center; max-width: 520px; margin: 0 auto; border: 1.5px solid var(--bx-line); border-radius: 50px; padding: 6px 6px 6px 20px; transition: border-color .2s; }
.brdx-search-form:focus-within { border-color: var(--bx-red); }
.brdx-search-form i.fa-magnifying-glass { color: var(--bx-muted); margin-right: 10px; }
.brdx-search-form input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 10px 0; font-size: 14px; background: transparent; color: var(--bx-navy); }
.brdx-search-clear { color: var(--bx-muted); padding: 0 8px; }
.brdx-search-form button { border: 0; border-radius: 50px; padding: 10px 24px; background: var(--bx-red); color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; transition: background .2s; }
.brdx-search-form button:hover { background: #8d0f26; }
.brdx-search-sub { margin: 14px 0 0; color: var(--bx-muted); font-size: 16px; line-height: 1.72; }

/* Alphabet filter */
.brdx-alpha-section { padding: 28px 0; border-bottom: 1px solid var(--bx-line); }
.brdx-alpha-row { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding-bottom: 4px; -ms-overflow-style: none; scrollbar-width: none; }
.brdx-alpha-row::-webkit-scrollbar { display: none; }
.brdx-alpha-item { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; border-radius: 8px; color: var(--bx-navy); font-size: 12.5px; font-weight: 700; transition: background .2s, color .2s; }
.brdx-alpha-item:hover { background: var(--bx-cream); color: var(--bx-red); }
.brdx-alpha-item.is-active { background: var(--bx-red); color: #fff !important; }

/* Featured */
.brdx-featured { padding: 56px 0 8px; }
.brdx-featured h2 { margin: 0 0 24px; font-size: 34px; }
.brdx-featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.brdx-featured-tile { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border: 1px solid var(--bx-line); border-radius: 14px; color: var(--bx-navy); font-weight: 800; font-size: 15px; letter-spacing: 0; transition: transform .2s, border-color .2s; }
.brdx-featured-tile i { color: var(--bx-red); font-size: 12px; transition: transform .2s; }
.brdx-featured-tile:hover { transform: translateY(-2px); border-color: var(--bx-red); }
.brdx-featured-tile:hover i { transform: translateX(4px); }

/* Directory */
.brdx-directory { padding: 56px 0 80px; }
.brdx-directory-head h2 { margin: 0 0 8px; font-size: 34px; }
.brdx-directory-head p { margin: 0; color: var(--bx-muted); font-size: 16px; line-height: 1.72; }
.brdx-result-count { margin: 22px 0 24px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bx-muted); }

.brdx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.brdx-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-height: 160px;
    padding: 26px;
    border: 1px solid var(--bx-line);
    border-radius: 14px;
    background: var(--bx-paper);
    color: var(--bx-navy);
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease;
}
.brdx-card:before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--bx-red); transform: scaleY(0); transform-origin: bottom; transition: transform .25s ease; }
.brdx-card-name { font-family: inherit; font-weight: 800; font-size: 22px; line-height: 1.3; letter-spacing: 0; color: #101828; overflow-wrap: anywhere; transition: transform .2s ease; }
.brdx-card-count { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bx-muted); }
.brdx-card-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; font-weight: 800; color: var(--bx-red); }
.brdx-card-cta i { font-size: 11px; transition: transform .2s ease; }

.brdx-card:hover { transform: translateY(-2px); border-color: #c7cbd3; }
.brdx-card:hover:before { transform: scaleY(1); }
.brdx-card:hover .brdx-card-name { transform: translateX(3px); }
.brdx-card:hover .brdx-card-cta i { transform: translateX(4px); }

/* Pagination */
.brdx-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 48px; }
.brdx-page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 16px; border: 1px solid var(--bx-line); border-radius: 10px; background: #fff; color: var(--bx-navy); font-size: 13px; font-weight: 800; transition: border-color .2s, background .2s, color .2s; }
.brdx-page-btn:hover { border-color: var(--bx-red); color: var(--bx-red); }
.brdx-page-btn.is-active { background: var(--bx-red); border-color: var(--bx-red); color: #fff !important; }
.brdx-page-btn.is-disabled { opacity: .4; pointer-events: none; }
.brdx-page-prev, .brdx-page-next { padding: 0 18px; }

.brdx-empty { padding: 40px 0; text-align: center; color: var(--bx-muted); }
.brdx-empty p { margin-bottom: 18px; }

/* Mobile */
@media (max-width: 1199.98px) {
    .brdx-hero h1 { font-size: 44px; }
}
@media (max-width: 991px) {
    .brdx-grid { grid-template-columns: repeat(2, 1fr); }
    .brdx-featured-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
    .brdx-hero h1 { font-size: 36px; line-height: 1.12; }
    .brdx-hero-copy { font-size: 15px; line-height: 1.65; }
    .brdx-search-section h2, .brdx-featured h2, .brdx-directory-head h2 { font-size: 28px; }
    .brdx-search-sub, .brdx-directory-head p, .brdx-empty p { font-size: 15px; }
}
@media (max-width: 575.98px) {
    .brdx-hero h1 { font-size: 31px; }
    .brdx-search-section h2, .brdx-featured h2, .brdx-directory-head h2 { font-size: 25px; }
}
@media (max-width: 480px) {
    .brdx-hero { padding: 48px 0 32px; }
    .brdx-card { min-height: 140px; padding: 20px; }
    .brdx-card-name { font-size: 19px; }
    .brdx-page-btn { min-width: 38px; height: 38px; padding: 0 12px; }
}
