/* ================= SHOP BY BRANDS ================= */

.sec-brands {
    background-color: var(--cream);
}

.brand-grid {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 -8px;
    padding: 0;
}

.brand-grid--static {
    align-items: flex-start;
    row-gap:20px;
}

.brand-grid--static .brand-card {
    height: 140px;
}

.brand-grid.slick-initialized {
    display: block;
}

.brand-grid .slick-track {
    display: flex;
}
.brand-grid .slick-slide
{
   height:auto; 
}
.brand-grid .slick-slide>div{
    display:flex;
    flex-wrap:wrap;
    height:100%;
}

.brand-grid li {
    box-sizing: border-box;
    width: 16.6667%;
    margin-bottom: 16px;
    padding: 0 8px;
}
.js-home-brands .brand-grid li:not(:nth-child(-n + 6)){
    display:none;
}
.brand-grid.slick-initialized li {
    margin-bottom: 0;
}

.brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 24px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}
.brand-card:hover{
    border: 1px solid var(--gold-light);
}
.brand-card > img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-name {
    margin-top: 14px;
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: var(--black);
    text-align: center;
}

.brand-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 46px;
    padding: 18px 20px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--white) 48.558%, rgba(255, 255, 255, 0) 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-default);
    text-align: center;
}

.brand-contact__text {
    font-size: 16px;
    line-height: 23px;
    color: var(--black);
}

.brand-contact strong {
    font-weight: var(--font-weight-bold);
}

.brand-contact__link {
    display: inline-flex;
    align-items: center;
    gap:6px;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    color: var(--theme);
    text-decoration: underline;
}
.brand-contact__link:hover{
    color:var(--primary);
}
.brand-contact__link img {
    display: block;
    filter: brightness(0) saturate(100%) invert(55%) sepia(16%) saturate(1305%) hue-rotate(359deg) brightness(95%) contrast(83%);
}

@media (max-width: 1439.98px) {
    .brand-grid {
        margin: 0 -4px;
    }

    .brand-grid li {
        margin-bottom: 8px;
        padding: 0 4px;
    }

    .brand-card {
        padding: 15px;
        height:100px;
    }

    .brand-grid--static .brand-card {
        height: 124px;
    }

    .brand-name {
        margin-top: 12px;
        font-size: 15px;
        line-height:1.2;
    }

    .brand-contact {
        margin-top: 36px;
        padding: 16px 18px;
    }
}

@media (max-width: 1199.98px) {
    .brand-grid li {
        width: 25%;
    }
    .js-home-brands .brand-grid li:not(:nth-child(-n + 4)){
        display:none;
    }
    .brand-grid--static{
        row-gap:10px;
    }
}

@media (max-width: 991.98px) {
   
    .brand-grid li {
        width: 33.3333%;
       
        
    }
.js-home-brands .brand-grid li:not(:nth-child(-n + 3)){
    display:none;
}
    .brand-card {
        padding: 14px;
    }

    .brand-grid--static .brand-card {
        height: 108px;
    }

    .brand-name {
        margin-top: 10px;
        font-size: 14px;
    }

    .brand-contact {
        margin-top: 28px;
        padding: 14px 16px;
    }

    .brand-contact__text {
        font-size: 15px;
    }
}

@media (max-width: 575.98px) {
    .brand-grid {
        margin: 0 -4px;
    }

    .brand-grid li {
        margin-bottom: 8px;
        padding: 0 4px;
       
    }

    
    .brand-card {
        padding: 10px;
        height:80px;
    }

    .brand-grid--static .brand-card {
        height: 90px;
    }

    .brand-name {
        margin-top: 8px;
        font-size: 12px;
    }

    .brand-contact {
        margin-top: 20px;
        padding: 12px 14px;
        justify-content: flex-start;
        text-align: left;
    }

    .brand-contact__text {
        font-size: 13px;
    }

    .brand-contact__link {
        font-size: 13px;
    }
}
