/* Brand page header */
.brand-hero {
    background-color: var(--secondary-color-alt5);
    padding: 30px 0;
}

.brand-hero .container {
    gap: 24px;
}

.brand-hero-logo {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #ececec;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-hero-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.brand-hero-title {
    color: var(--secondary-color-alt3);
    font-weight: var(--font-weight-sizeTwo);
    font-size: 1.6rem;
    margin: 0;
}

.brand-hero-description {
    color: var(--secondary-color-alt3);
    font-size: 1.083rem;
    margin-top: 8px;
    max-width: 720px;
}

.brand-hero-description p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .brand-hero .container {
        gap: 16px;
    }

    .brand-hero-logo {
        width: 72px;
        height: 72px;
    }

    .brand-hero-title {
        font-size: 1.3rem;
    }
}

/* Brands listing */
.brands-page-title {
    font-size: 1.6rem;
    font-weight: var(--font-weight-sizeTwo);
    margin-bottom: 24px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-align: center;
    text-decoration: none !important;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.brand-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.brand-card-logo {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-card-logo img {
    max-width: 80%;
    max-height: 100%;
    object-fit: contain;
}

.brand-card-initial {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary-color-op-5);
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-card-name {
    font-size: 1.083rem;
    font-weight: 600;
    margin: 0;
}

.brand-card-count {
    font-size: .95rem;
    color: #888;
}

@media (max-width: 767px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.brands-empty {
    text-align: center;
    color: #888;
    padding: 40px 0;
}
