.home-brands {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 5% 15%, rgb(181 18 27 / 6%), transparent 22rem),
        #fff;
}

.home-brand-card {
    display: block;
    color: inherit;
}

.home-brand-card:hover {
    color: inherit;
}

.home-brand-card .cat-item {
    position: relative;
    min-height: 118px;
    padding: 17px;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
}

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

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

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

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

.home-brand-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #b5121b;
    border-radius: 12px;
    background: #fff2f3;
    font-size: 27px;
    font-weight: 950;
}

.home-brand-card__content {
    min-width: 0;
    padding-inline-end: 22px;
}

.home-brand-card__content h3 {
    margin: 0 0 9px;
    overflow: hidden;
    color: #171717;
    font-size: 16px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-brand-card__content p {
    font-size: 12px;
}

.home-brand-card__arrow {
    position: absolute;
    inset: 50% auto auto 15px;
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    color: #b5121b;
    border-radius: 9px;
    background: #fff2f3;
    transform: translateY(-50%);
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.home-brand-card:hover .home-brand-card__arrow {
    color: #fff;
    background: #b5121b;
    transform: translate(-3px, -50%);
}

@media (max-width: 575.98px) {
    .home-brand-card .cat-item {
        min-height: 105px;
        padding: 13px;
    }

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