.brand-directory {
    --brand-page-red: #b5121b;
    --brand-page-ink: #171717;
    --brand-page-muted: #6f737b;
    --brand-page-surface: #fff;
    --brand-page-soft: #fff4f4;
    background:
        radial-gradient(circle at 8% 8%, rgb(181 18 27 / 7%), transparent 24rem),
        #fafafa;
}

.brand-directory__hero {
    padding: 30px 0 18px;
}

.brand-directory__hero-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 42px;
    align-items: center;
    overflow: hidden;
    min-height: 260px;
    padding: 42px 48px;
    color: #fff;
    border-radius: 30px;
    background:
        radial-gradient(circle at 88% 10%, rgb(255 255 255 / 13%) 0 85px, transparent 86px),
        linear-gradient(125deg, #111 0%, #242424 62%, #8f0d15 140%);
    box-shadow: 0 24px 55px rgb(20 20 20 / 16%);
}

.brand-directory__hero-card::after {
    content: "";
    position: absolute;
    inset: auto -55px -90px auto;
    width: 230px;
    height: 230px;
    border: 46px solid rgb(255 255 255 / 5%);
    border-radius: 50%;
}

.brand-directory__intro,
.brand-directory__search {
    position: relative;
    z-index: 1;
}

.brand-directory__eyebrow {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
    color: #ffb8bc;
    font-size: 14px;
    font-weight: 800;
}

.brand-directory__intro h1 {
    margin-bottom: 14px;
    color: #fff;
    font-size: clamp(29px, 4vw, 47px);
    font-weight: 950;
    line-height: 1.35;
}

.brand-directory__intro h1 span {
    color: #ff7078;
}

.brand-directory__intro p {
    max-width: 580px;
    margin: 0;
    color: rgb(255 255 255 / 72%);
    font-size: 15px;
    line-height: 2;
}

.brand-directory__search {
    padding: 22px;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 22px;
    background: rgb(255 255 255 / 8%);
    backdrop-filter: blur(12px);
}

.brand-directory__search label {
    display: block;
    margin-bottom: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.brand-directory__search-field {
    position: relative;
    display: flex;
    align-items: center;
    padding: 6px 7px 6px 6px;
    border-radius: 15px;
    background: #fff;
}

.brand-directory__search-field > i {
    flex: 0 0 40px;
    color: var(--brand-page-muted);
    text-align: center;
}

.brand-directory__search-field input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 4px;
    color: var(--brand-page-ink);
    border: 0;
    outline: 0;
    background: transparent;
}

.brand-directory__search-field button {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 22px;
    color: #fff;
    border: 0;
    border-radius: 11px;
    background: var(--brand-page-red);
    font-weight: 800;
    transition: transform .2s ease, background-color .2s ease;
}

.brand-directory__search-field button:hover {
    background: #920d14;
    transform: translateY(-1px);
}

.brand-directory__clear {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    margin-top: 12px;
    color: rgb(255 255 255 / 78%);
    font-size: 12px;
}

.brand-directory__clear:hover {
    color: #fff;
}

.brand-directory__content {
    padding-bottom: 70px;
}

.brand-directory__count {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 9px 14px;
    color: var(--brand-page-muted);
    border: 1px solid #ececec;
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
}

.brand-directory__count strong {
    color: var(--brand-page-red);
    font-size: 16px;
}

.brand-card {
    position: relative;
    min-height: 124px;
    padding: 18px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--brand-page-surface);
}

.brand-card__link {
    display: block;
    color: inherit;
}

.brand-card__link:hover {
    color: inherit;
}

.brand-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--brand-page-red), transparent);
    opacity: 0;
    transition: opacity .22s ease;
}

.brand-card:hover::before {
    opacity: 1;
}

.brand-card__image {
    display: grid;
    flex: 0 0 82px;
    width: 82px;
    height: 82px;
    place-items: center;
    padding: 9px;
    overflow: hidden;
    border: 1px solid #eee;
    border-radius: 17px;
    background: #fff;
}

.brand-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--brand-page-red);
    border-radius: 12px;
    background: var(--brand-page-soft);
    font-size: 27px;
    font-weight: 950;
}

.brand-card__content {
    min-width: 0;
}

.brand-card__content h3 {
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--brand-page-ink);
    font-size: 16px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-card__content p {
    direction: ltr;
    overflow: hidden;
    font-size: 12px;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-card__mark {
    position: absolute;
    inset: 14px auto auto 14px;
    color: rgb(181 18 27 / 25%);
}

.brand-directory__empty {
    max-width: 680px;
    margin: 0 auto;
    padding: 58px 24px;
    text-align: center;
    border: 1px dashed #ddd;
    border-radius: 26px;
    background: #fff;
}

.brand-directory__empty > span {
    display: grid;
    width: 74px;
    height: 74px;
    margin: 0 auto 20px;
    place-items: center;
    color: var(--brand-page-red);
    border-radius: 22px;
    background: var(--brand-page-soft);
    font-size: 28px;
}

.brand-directory__empty h2 {
    margin-bottom: 10px;
    font-size: 21px;
    font-weight: 900;
}

.brand-directory__empty p {
    margin-bottom: 22px;
    color: var(--brand-page-muted);
}

.brand-directory__pagination {
    margin-top: 42px;
}

.brand-directory__pagination .pagination {
    gap: 7px;
}

.brand-directory__pagination .page-link {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    color: var(--brand-page-ink);
    border: 1px solid #e7e7e7;
    border-radius: 12px !important;
    background: #fff;
    box-shadow: none;
}

.brand-directory__pagination .active .page-link {
    color: #fff;
    border-color: var(--brand-page-red);
    background: var(--brand-page-red);
}

@media (max-width: 991.98px) {
    .brand-directory__hero-card {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 34px;
    }
}

@media (max-width: 575.98px) {
    .brand-directory__hero {
        padding-top: 16px;
    }

    .brand-directory__hero-card {
        padding: 26px 20px;
        border-radius: 22px;
    }

    .brand-directory__search {
        padding: 14px;
    }

    .brand-directory__search-field button {
        padding-inline: 14px;
    }

    .brand-directory__count {
        margin-top: 4px;
    }

    .brand-card {
        min-height: 108px;
        padding: 14px;
    }

    .brand-card__image {
        flex-basis: 72px;
        width: 72px;
        height: 72px;
    }
}

.brand-products-page {
    min-height: 70vh;
    padding-top: 22px;
    background: #fafafa;
}

.brand-products-page__heading-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 30px 34px;
    overflow: hidden;
    border: 1px solid #eee;
    border-radius: 28px;
    background:
        radial-gradient(circle at 5% 15%, rgb(181 18 27 / 9%), transparent 220px),
        #fff;
    box-shadow: 0 18px 45px rgb(15 15 15 / 7%);
}

.brand-products-page__logo {
    display: grid;
    width: 150px;
    height: 120px;
    padding: 15px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #eee;
    border-radius: 22px;
    background: #fff;
}

.brand-products-page__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-products-page__logo span {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--brand-page-red);
    border-radius: 15px;
    background: var(--brand-page-soft);
    font-size: 44px;
    font-weight: 950;
}

.brand-products-page__label {
    color: var(--brand-page-red);
    font-size: 13px;
    font-weight: 850;
}

.brand-products-page__intro h1 {
    margin: 7px 0 9px;
    color: var(--brand-page-ink);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 950;
}

.brand-products-page__intro p {
    max-width: 750px;
    margin: 0;
    color: var(--brand-page-muted);
    line-height: 2;
}

.brand-products-page__stat {
    display: grid;
    min-width: 125px;
    min-height: 96px;
    place-content: center;
    text-align: center;
    border-radius: 20px;
    background: var(--brand-page-soft);
}

.brand-products-page__stat strong {
    color: var(--brand-page-red);
    font-size: 28px;
    font-weight: 950;
}

.brand-products-page__stat span {
    color: var(--brand-page-muted);
    font-size: 12px;
}

.brand-products-page__toolbar {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
    padding: 14px;
    border: 1px solid #eee;
    border-radius: 20px;
    background: #fff;
}

.brand-products-page__toolbar form {
    display: flex;
    flex: 1 1 560px;
    max-width: 680px;
    align-items: center;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
}

.brand-products-page__toolbar form > i {
    padding-inline: 15px 5px;
    color: #8a8a8a;
}

.brand-products-page__toolbar input {
    width: 100%;
    height: 48px;
    padding-inline: 10px;
    border: 0;
    outline: 0;
}

.brand-products-page__toolbar button {
    height: 40px;
    margin-inline-end: 5px;
    padding-inline: 19px;
    color: #fff;
    border: 0;
    border-radius: 10px;
    background: var(--brand-page-red);
    font-weight: 800;
}

.brand-products-page__sort {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    align-items: center;
}

.brand-products-page__sort label {
    color: var(--brand-page-muted);
    font-size: 13px;
}

.brand-products-page__sort select {
    height: 46px;
    padding: 0 12px 0 34px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    outline: 0;
    background-color: #fff;
}

.brand-product-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
}

.brand-product-card .product-image,
.brand-product-card__placeholder {
    display: grid;
    height: 245px;
    place-items: center;
    background: #fff;
}

.brand-product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-product-card__placeholder {
    color: #c7c7c7;
    background: #f7f7f7;
    font-size: 44px;
}

.brand-product-card__badges {
    position: absolute;
    inset: 14px 14px auto auto;
    display: flex;
    gap: 6px;
}

.brand-product-card__badges span,
.brand-product-card__discount {
    padding: 5px 9px;
    color: #fff;
    border-radius: 8px;
    background: var(--brand-page-red);
    font-size: 11px;
    font-weight: 850;
}

.brand-product-card .product-title h2 {
    min-height: 52px;
    margin-bottom: 0;
    color: var(--brand-page-ink);
    font-size: 15px;
    font-weight: 850;
    line-height: 1.8;
}

.brand-products-page__empty {
    padding: 65px 20px;
    text-align: center;
    border: 1px dashed #ddd;
    border-radius: 24px;
    background: #fff;
}

.brand-products-page__empty > i {
    color: var(--brand-page-red);
    font-size: 48px;
}

.brand-products-page__empty h2 {
    margin: 18px 0 10px;
    font-size: 21px;
    font-weight: 900;
}

.brand-products-page__empty p {
    color: var(--brand-page-muted);
}

@media (max-width: 991.98px) {
    .brand-products-page__heading-card {
        grid-template-columns: 120px 1fr;
    }

    .brand-products-page__logo {
        width: 120px;
        height: 105px;
    }

    .brand-products-page__stat {
        grid-column: 1 / -1;
        min-height: 72px;
    }

    .brand-products-page__toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .brand-products-page__toolbar form {
        flex-basis: auto;
        max-width: none;
    }

    .brand-products-page__sort {
        justify-content: space-between;
    }
}

@media (max-width: 575.98px) {
    .brand-products-page__heading-card {
        grid-template-columns: 1fr;
        padding: 24px 20px;
        text-align: center;
    }

    .brand-products-page__logo {
        width: 130px;
        margin: 0 auto;
    }

    .brand-products-page__stat {
        grid-column: auto;
    }

    .brand-products-page__toolbar button {
        padding-inline: 12px;
    }

    .brand-products-page__sort select {
        min-width: 0;
        max-width: 190px;
    }
}
