.modern-brands-page {
    min-height: 100vh;
    background: #f7f9fc;
}

.brands-header {
    background: #ffffff;
    border-bottom: 1px solid #edf0f4;
    padding: 28px 0 34px;
}

.brands-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 13px;
    color: #8a94a6;
}

.brands-breadcrumb a {
    color: #183f68;
    font-weight: 600;
    text-decoration: none;
}

.brands-breadcrumb i {
    font-size: 9px;
    color: #aeb7c2;
}

.brands-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brands-eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: #e59b28;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.brands-heading h1 {
    margin: 0 0 8px;
    color: #162c42;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 750;
}

.brands-heading p {
    margin: 0;
    color: #7d8997;
    font-size: 14px;
}

.brands-count {
    min-width: 125px;
    padding: 15px 22px;
    background: #eef5fb;
    border-radius: 15px;
    text-align: center;
}

.brands-count strong {
    display: block;
    color: #183f68;
    font-size: 24px;
    line-height: 1.2;
}

.brands-count span {
    display: block;
    margin-top: 3px;
    color: #7b8794;
    font-size: 11px;
}

.brands-content {
    padding: 30px 0 60px;
}

.brands-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding: 15px 18px;
    background: #ffffff;
    border: 1px solid #edf0f4;
    border-radius: 15px;
}

.brands-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-toolbar-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef5fb;
    color: #183f68;
    border-radius: 11px;
}

.brands-toolbar-left h4 {
    margin: 0 0 3px;
    color: #25384c;
    font-size: 15px;
    font-weight: 700;
}

.brands-toolbar-left span {
    color: #929daa;
    font-size: 11px;
}

.brand-search {
    width: 280px;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 13px;
    background: #f8fafc;
    border: 1px solid #e6ebf0;
    border-radius: 10px;
}

.brand-search i {
    color: #9ba6b2;
    font-size: 13px;
}

.brand-search input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #293b4e;
    font-size: 12px;
}

.brand-search input::placeholder {
    color: #a2abb5;
}

.brands-grid {
    display: grid;
    grid-template-columns:
        repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.modern-brand-card {
    display: block;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #edf0f4;
    border-radius: 15px;
    text-decoration: none;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.modern-brand-card:hover {
    transform: translateY(-5px);
    border-color: #dbe5ee;
    box-shadow: 0 12px 30px rgba(25, 63, 104, .10);
    text-decoration: none;
}

.modern-brand-logo {
    height: 135px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #fafbfd;
    border-radius: 11px;
    overflow: hidden;
}

.modern-brand-logo img {
    width: 100%;
    height: 100%;
    max-width: 180px;
    max-height: 115px;
    object-fit: contain;
    transition: transform .3s ease;
}

.modern-brand-card:hover
.modern-brand-logo img {
    transform: scale(1.07);
}

.brand-no-image {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef5fb;
    color: #183f68;
    font-size: 24px;
}

.modern-brand-name {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 2px 2px;
}

.modern-brand-name span {
    overflow: hidden;
    color: #26394c;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color .2s ease;
}

.modern-brand-name i {
    flex-shrink: 0;
    color: #a8b2bd;
    font-size: 10px;
    transition:
        color .2s ease,
        transform .2s ease;
}

.modern-brand-card:hover
.modern-brand-name span {
    color: #183f68;
}

.modern-brand-card:hover
.modern-brand-name i {
    color: #183f68;
    transform: translateX(3px);
}

.no-brand-results {
    padding: 70px 20px;
    background: #ffffff;
    border-radius: 16px;
    text-align: center;
}

.no-brand-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef5fb;
    color: #183f68;
    border-radius: 50%;
    font-size: 23px;
}

.no-brand-results h3 {
    margin: 0 0 7px;
    color: #26394c;
    font-size: 19px;
}

.no-brand-results p {
    margin: 0;
    color: #8a94a6;
    font-size: 13px;
}

.brands-empty {
    padding: 90px 20px;
    background: #ffffff;
    border-radius: 18px;
    text-align: center;
}

.brands-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef5fb;
    color: #183f68;
    border-radius: 50%;
    font-size: 28px;
}

.brands-empty h3 {
    margin-bottom: 8px;
    color: #26394c;
    font-size: 21px;
}

.brands-empty p {
    color: #8a94a6;
    font-size: 13px;
}

.brands-empty-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 11px 22px;
    background: #183f68;
    color: #ffffff;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.brands-empty-btn:hover {
    color: #ffffff;
    text-decoration: none;
}

.brands-pagination {
    display: flex;
    justify-content: center;

    margin-top: 30px;
}

.brands-pagination .pagination {
    gap: 6px;
}

.brands-pagination .page-item {
    margin: 0;
}

.brands-pagination .page-link {
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    background: #ffffff;
    color: #647385;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.brands-pagination .page-item.active .page-link {
    background: #183f68;
    color: #ffffff;
}

.brands-pagination .page-link:hover {
    background: #eef5fb;
    color: #183f68;
}

@media (max-width: 1199px) {
    .brands-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .brands-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .modern-brand-logo {
        height: 125px;
    }

    .brands-heading h1 {
        font-size: 29px;
    }
}

@media (max-width: 767px) {
    .brands-header {
        padding: 20px 0 25px;
    }

    .brands-heading-row {
        align-items: flex-start;
    }

    .brands-heading h1 {
        font-size: 25px;
    }

    .brands-heading p {
        font-size: 12px;
        max-width: 260px;
    }

    .brands-count {
        min-width: 85px;
        padding: 10px;
    }

    .brands-count strong {
        font-size: 20px;
    }

    .brands-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .brand-search {
        width: 100%;
    }

    .brands-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 10px;
    }

    .modern-brand-card {
        padding: 9px;
        border-radius: 12px;
    }

    .modern-brand-logo {
        height: 105px;
    }

    .modern-brand-name {
        min-height: 38px;
        padding-top: 8px;
    }

    .modern-brand-name span {
        font-size: 11px;
    }
}

@media (max-width: 575px) {
    .brands-content {
        padding-top: 20px;
    }

    .brands-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .modern-brand-logo {
        height: 120px;
    }

    .modern-brand-logo img {
        max-width: 150px;
        max-height: 100px;
    }

    .brands-heading h1 {
        font-size: 22px;
    }

    .brands-heading p {
        max-width: 210px;
    }

    .brands-eyebrow {
        font-size: 9px;
    }
}