/* ===== Brand Catalog Page ===== */

.ty-brands-catalog__letters {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
}

.ty-brands-catalog__letter-link {
    font-size: 16px;
    font-weight: bold;
    padding: 2px 6px;
    text-decoration: none;
    color: #0d5ca3;
}

.ty-brands-catalog__letter-link:hover {
    color: #ff5722;
}

.ty-brands-catalog__letter-link.active {
    color: #fff;
    background: #0d5ca3;
    border-radius: 3px;
}

.ty-brands-catalog__letter-sep {
    color: #ccc;
    margin: 0 2px;
}

.ty-brands-catalog__group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.ty-brands-catalog__letter-col {
    width: 36px;
    flex-shrink: 0;
    padding-top: 4px;
}

.ty-brands-catalog__group-letter {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.ty-brands-catalog__list-col {
    flex: 1;
}

.ty-brands-catalog__list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 55px;
    margin-bottom: 0;
}

.ty-brands-catalog__item {
    width: 180px;
    text-align: left;
}

.ty-brands-catalog__item-link {
    display: block;
    padding: 3px 0;
    text-decoration: none;
    border: none;
    border-radius: 0;
    transition: color 0.2s;
    color: #333;
}

.ty-brands-catalog__item-link:hover {
    box-shadow: none;
    color: #0d5ca3;
}

.ty-brands-catalog__img {
    max-width: 120px;
    max-height: 60px;
    margin: 0;
}

.ty-brands-catalog__name {
    display: block;
    margin-top: 0;
    font-size: 14px;
    line-height: 1.3;
}

/* ===== Brand Alphabet Block (Homepage) ===== */

.ty-brand-alphabet {
    border: 1px solid rgb(229, 229, 229);
    border-radius: 0;
    padding: 18px 20px;
}

.ty-brand-alphabet__row {
    display: flex;
    justify-content: space-between;
}

.ty-brand-alphabet__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    color: #000;
    transition: color 0.2s;
}

.ty-brand-alphabet__link:hover {
    color: #0d5ca3;
}

/* ===== Brand Grid Block (Homepage HTML block) ===== */

.ty-brand-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 0;
}

.ty-brand-grid__item {
    width: 215px;
    height: 135px;
    border: 1px solid rgb(229, 229, 229);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ty-brand-grid__item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ty-brand-grid__item img {
    max-width: 165px;
    max-height: 77px;
    object-fit: contain;
}

.ty-brand-grid__item:hover {
    border-color: #bbb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
