/* ========== Стили для страниц брендов ========== */

.brand-cards {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.brand-cards.brand-cards::-webkit-scrollbar {
    display: none;
}

.brand-card {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    border: 1px solid #F4F5F8;
    border-radius: 16px;
    background-color: #F4F5F8;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-cards-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
    margin-top: 42px;
}

.brand-cards-filter__btns {
    display: flex;
    gap: 12px;
}

.brand-cards-filter__btn {
    padding: 11px;
}

.brand-cards-filter__btn.btn.active {
    background-color: #262633;
    color: #fff;
}

.brand-cards-letters {
    width: 100%;
    display: flex;
    overflow-x: auto;
    gap: 6px;
    scrollbar-width: none;
}

.brand-cards-letters ::-webkit-scrollbar {
    display: none;
}

.brand-cards-letter {
    padding: 6px;
    background-color: #F4F5F8;
    border-radius: 8px;
    min-width: fit-content;
}

.page-brands .publish-search {
    width: 340px;
}

@media (max-width: 1500px) {
    .section-brand-cards .container {
        padding-right: 0;
        padding-left: 0;
    }
}

@media (max-width: 1500px) {
    .section-brand-cards .brand-cards {
        padding-left: 20px;
    }
}

@media (max-width: 768px) {
    .page .title-wrap {
        margin-top: 8px;
    }
}

@media (max-width: 768px) {
    .page .subtitle {
        font-weight: 500;
        font-size: 12px;
        line-height: 100%;
        letter-spacing: 0%;
        color: #E6342A;
        margin-bottom: 2px;
    }
}

@media (max-width: 768px) {
    .brand-cards-filter {
        gap: 16px;
        margin-top: 18px;
    }
}

@media (max-width: 768px) {
    .section-brand-cards {
        display: none;
    }
}

@media (max-width: 768px) {
    .section-brand-cards .brand-cards {
        padding-left: 12px;
    }
}

@media (max-width: 768px) {
    .brand-cards-filter .publish-search {
        width: 100%;
        order: 1;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .page-brand-detail .publish-search {
        width: calc(100% - 40px);
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .brand-cards-filter .publish-search__btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .brand-cards-filter__btns {
        order: 2;
    }
}

@media (max-width: 768px) {
    .brand-cards-letters {
        order: 3;
    }
}

@media (max-width: 768px) {
    .brand-cards-filter__btns {
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .brand-cards-filter__btn {
        padding: 8px 12px;
        font-weight: 500;
        font-size: 12px;
        line-height: 100%;
        height: 32px;
    }
}

@media (max-width: 768px) {
    .brand-cards-letter {
        font-weight: 500;
        font-size: 12px;
        line-height: 100%;
    }
}