.brands-container {
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;
}

.brands-hero {
    padding: 110px 0 90px;
    background:
        linear-gradient(
            135deg,
            #17171b,
            #2a2832
        );
    color: #ffffff;
}

.brands-eyebrow {
    margin: 0 0 14px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.brands-eyebrow-dark {
    color: #6c4cff;
}

.brands-hero h1 {
    margin: 0;
    font-size: clamp(52px, 7vw, 90px);
    letter-spacing: -5px;
    line-height: 0.95;
}

.brands-hero-description {
    max-width: 650px;
    margin: 25px 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    line-height: 1.7;
}

.brands-page {
    padding: 80px 0 110px;
    background: #ffffff;
}

.brands-heading {
    margin-bottom: 30px;
}

.brands-heading h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 48px);
    letter-spacing: -2px;
}

.brands-heading span {
    display: block;
    margin-top: 10px;
    color: #77777f;
    font-size: 12px;
}

.brands-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 230px auto auto;
    gap: 12px;
    margin-bottom: 36px;
    padding: 15px;
    border: 1px solid #e4e4e9;
    border-radius: 15px;
    background: #fafafd;
}

.brands-search {
    position: relative;
}

.brands-search i {
    position: absolute;
    top: 50%;
    left: 15px;
    color: #898991;
    transform: translateY(-50%);
}

.brands-search input,
.brands-sort select {
    width: 100%;
    height: 47px;
    border: 1px solid #dfdfe5;
    border-radius: 11px;
    background: #ffffff;
    outline: none;
}

.brands-search input {
    padding: 0 16px 0 43px;
}

.brands-sort select {
    padding: 0 14px;
}

.brands-search input:focus,
.brands-sort select:focus {
    border-color: #6c4cff;
}

.brands-toolbar > button {
    min-height: 47px;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    background: #17171b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.brands-toolbar .brands-clear {
    border: 1px solid #dfdfe5;
    background: #ffffff;
    color: #55555d;
}

.brands-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.brands-grid.loading {
    min-height: 360px;
    opacity: 0.45;
    pointer-events: none;
}

.brands-grid.loading::after {
    content: "";
    position: absolute;
    top: 120px;
    left: 50%;
    width: 36px;
    height: 36px;
    border: 3px solid #ddddE3;
    border-top-color: #17171b;
    border-radius: 50%;
    animation: brands-spin 0.7s linear infinite;
}

.brand-card {
    overflow: hidden;
    border: 1px solid #e5e5ea;
    border-radius: 18px;
    background: #ffffff;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(20, 20, 25, 0.08);
}

.brand-card-media {
    display: block;
    aspect-ratio: 1.45;
    overflow: hidden;
    background: #f0f0f2;
}

.brand-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.brand-card:hover .brand-card-media img {
    transform: scale(1.035);
}

.brand-card-content {
    padding: 22px;
}

.brand-card-heading {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-card-logo {
    display: flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e3e3e8;
    border-radius: 12px;
    background: #ffffff;
}

.brand-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-card-initial {
    background: #17171b;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
}

.brand-card-heading h3 {
    margin: 0;
    font-size: 17px;
}

.brand-card-heading h3 a {
    color: #17171b;
    text-decoration: none;
}

.brand-card-heading span {
    display: block;
    margin-top: 5px;
    color: #828289;
    font-size: 10px;
}

.brand-card-content > p {
    min-height: 45px;
    margin: 18px 0 0;
    color: #6f6f77;
    font-size: 11px;
    line-height: 1.6;
}

.brand-card-action {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    color: #17171b;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.brand-card-action:hover {
    color: #6c4cff;
}

.brands-empty-state {
    grid-column: 1 / -1;
    display: flex;
    min-height: 340px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px dashed #d7d7de;
    border-radius: 17px;
    text-align: center;
}

.brands-empty-state i {
    margin-bottom: 17px;
    color: #6c4cff;
    font-size: 32px;
}

.brands-empty-state h3 {
    margin: 0;
}

.brands-empty-state p {
    color: #77777f;
}

.brands-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 55px;
}

.brands-pagination button {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid #e0e0e5;
    border-radius: 9px;
    background: #ffffff;
    color: #55555d;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.brands-pagination > div {
    display: flex;
    gap: 7px;
}

.brands-pagination button.active {
    border-color: #17171b;
    background: #17171b;
    color: #ffffff;
}

.brands-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.brands-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 2500;
    padding: 14px 18px;
    border-radius: 11px;
    background: #17171b;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: 0.25s ease;
}

.brands-toast.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes brands-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1050px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .brands-toolbar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 580px) {
    .brands-container {
        width: calc(100% - 24px);
    }

    .brands-hero {
        padding: 80px 0 65px;
    }

    .brands-toolbar,
    .brands-grid {
        grid-template-columns: 1fr;
    }

    .brands-pagination {
        align-items: stretch;
        flex-direction: column;
    }
}