
/* =========================================
   SHOP STAR GLOW — BRANDS DIRECTORY
========================================= */

.brands-page {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px clamp(16px, 3vw, 28px) 70px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* PAGE HEADER */

.brands-page__header {
    margin-bottom: 38px;
}

.brands-page__eyebrow {
    margin: 0 0 9px;
    color: #b89548;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.8px;
}

.brands-page__title {
    margin: 0;
    color: #171717;
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 500;
    line-height: 1.2;
}

.brands-page__description {
    margin: 8px 0 0;
    color: #777;
    font-size: 12px;
    line-height: 1.6;
}

/* DIRECTORY TOP */

.brands-directory__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.brands-directory__heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.brands-directory__heading h2 {
    margin: 0;
    color: #171717;
    font-size: 17px;
    font-weight: 600;
}

.brands-directory__count {
    color: #999;
    font-size: 10px;
}

/* SEARCH */

.brands-directory__search {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 250px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e9e5dd;
    border-radius: 3px;
    background: #fff;
    box-sizing: border-box;
}

.brands-directory__search > span {
    color: #b89548;
    font-size: 21px;
    line-height: 1;
}

.brands-directory__search input {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #222;
    font-family: inherit;
    font-size: 11px;
    box-shadow: none;
}

.brands-directory__search input::placeholder {
    color: #999;
}

/* ALPHABET FILTER */

.brands-alphabet {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 22px;
    padding: 12px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.brands-alphabet__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 29px;
    height: 29px;
    padding: 0 7px;
    border: 0;
    border-radius: 2px;
    background: #f8f6f2;
    color: #555;
    font-family: inherit;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.brands-alphabet__item:hover,
.brands-alphabet__item.is-active {
    background: #d5b56a;
    color: #fff;
}

.brands-alphabet__item:disabled {
    opacity: .3;
    cursor: not-allowed;
}

/* BRAND GRID */

.brands-directory__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.brands-directory__card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 68px;
    padding: 14px 30px;
    border: 1px solid #eee;
    background: #fff;
    color: #222;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    box-sizing: border-box;
    transition: border-color .2s ease, background .2s ease;
}

.brands-directory__card:hover {
    border-color: #d5b56a;
    background: #fcfaf5;
    color: #171717;
}

.brands-directory__arrow {
    position: absolute;
    right: 12px;
    color: #b89548;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .2s ease, transform .2s ease;
}

.brands-directory__card:hover .brands-directory__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* EMPTY STATE */

.brands-directory__empty {
    padding: 30px 15px;
    color: #888;
    text-align: center;
    font-size: 12px;
}

/* TABLET */

@media (max-width: 900px) {
    .brands-directory__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .brands-alphabet {
        flex-wrap: wrap;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .brands-page {
        padding: 30px 16px 45px;
    }

    .brands-page__header {
        margin-bottom: 27px;
    }

    .brands-page__title {
        font-size: 29px;
    }

    .brands-page__description {
        font-size: 11px;
    }

    .brands-directory__top {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 15px;
    }

    .brands-directory__heading h2 {
        font-size: 15px;
    }

    .brands-directory__search {
        width: 100%;
        height: 36px;
    }

    .brands-alphabet {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 5px;
        margin: 0 -16px 17px;
        padding: 10px 16px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .brands-alphabet::-webkit-scrollbar {
        display: none;
    }

    .brands-alphabet__item {
        flex: 0 0 29px;
        min-width: 29px;
        height: 28px;
        font-size: 10px;
    }

    .brands-alphabet__item:first-child {
        flex-basis: 38px;
    }

    .brands-directory__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .brands-directory__card {
        min-height: 58px;
        padding: 12px 9px;
        font-size: 11px;
    }

    .brands-directory__arrow {
        display: none;
    }
}
