/*=========================================================
SHOP BY BRANDS
=========================================================*/

.brand-section{
    padding:60px 0;
    background:#f8f9fa;
    overflow:hidden;
}

.brand-section .container{
    position:relative;
}

/*=========================================================
SECTION HEADER
=========================================================*/

.brand-section .section-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:28px;
    gap:20px;
}

.brand-section .section-title{
    margin:0;
    font-size:30px;
    font-weight:700;
    color:#222;
}

.brand-section .section-subtitle{
    margin-top:6px;
    margin-bottom:0;
    color:#6c757d;
    font-size:15px;
}

.view-all-brands{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 18px;
    border-radius:8px;
    background:#198754;
    color:#fff;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.view-all-brands:hover{
    background:#157347;
    color:#fff;
}

.view-all-brands i{
    transition:.3s;
}

.view-all-brands:hover i{
    transform:translateX(4px);
}

/*=========================================================
SLIDER
=========================================================*/

.brand-slider{
    position:relative;
    display:flex;
    align-items:center;
    gap:14px;
}

.brand-track-wrapper{
    overflow:hidden;
    flex:1;
}

.brand-track{
    display:flex;
    align-items:stretch;
    gap:20px;
    will-change:transform;
}

/*=========================================================
BRAND CARD
=========================================================*/

.brand-card{
    width:180px;
    min-width:180px;
    background:#fff;
    border:1px solid #e9ecef;
    border-radius:12px;
    text-decoration:none;
    text-align:center;
    padding:18px;
    transition:.3s ease;
    flex-shrink:0;
}

.brand-card:hover{
    border-color:#198754;
    transform:translateY(-5px);
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    text-decoration:none;
}

.brand-logo{
    width:100%;
    height:90px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:14px;
}

.brand-logo img{
    width:100%;
    height:100%;
    object-fit:contain;
    transition:.3s;
}

.brand-card:hover .brand-logo img{
    transform:scale(1.06);
}

/*=========================================================
NO LOGO
=========================================================*/

.brand-placeholder{
    width:80px;
    height:80px;
    border-radius:50%;
    background:#f5f5f5;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#198754;
    font-size:34px;
}

/*=========================================================
BRAND NAME
=========================================================*/

.brand-name{
    font-size:16px;
    font-weight:600;
    color:#212529;
    line-height:1.4;
    transition:.3s;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.brand-card:hover .brand-name{
    color:#198754;
}

/*=========================================================
SLIDER ARROWS
=========================================================*/

.brand-arrow{
    width:44px;
    height:44px;
    border:none;
    border-radius:50%;
    background:#ffffff;
    border:1px solid #dee2e6;
    color:#198754;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:.3s;
    flex-shrink:0;
    z-index:5;
}

.brand-arrow:hover{
    background:#198754;
    color:#ffffff;
    border-color:#198754;
    transform:scale(1.05);
}

.brand-arrow i{
    font-size:20px;
}

/*=========================================================
HOVER EFFECT
=========================================================*/

.brand-card:hover{
    background:#ffffff;
}

.brand-card:hover .brand-logo img{
    filter:brightness(1.05);
}

/*=========================================================
SMOOTH ANIMATION
=========================================================*/

.brand-track{
    transition:transform .45s ease;
}

.brand-card,
.brand-logo img,
.brand-name,
.brand-arrow{
    transition:all .30s ease;
}

/*=========================================================
RESPONSIVE
=========================================================*/

/* Large Desktop */

@media (min-width:1400px){

    .brand-card{
        width:180px;
        min-width:180px;
    }

}

/* Laptop */

@media (max-width:1199px){

    .brand-card{
        width:170px;
        min-width:170px;
    }

}

/* Tablet */

@media (max-width:991px){

    .brand-section{
        padding:50px 0;
    }

    .brand-section .section-title{
        font-size:26px;
    }

    .brand-card{
        width:150px;
        min-width:150px;
        padding:16px;
    }

    .brand-logo{
        height:75px;
    }

}

/* Small Tablet */

@media (max-width:768px){

    .brand-section .section-header{
        flex-direction:column;
        align-items:flex-start;
    }

    .view-all-brands{
        width:100%;
        justify-content:center;
    }

    .brand-card{
        width:140px;
        min-width:140px;
    }

    .brand-logo{
        height:70px;
    }

    .brand-name{
        font-size:14px;
    }

}

/* Mobile */

@media (max-width:576px){

    .brand-section{
        padding:35px 0;
    }

    .brand-section .section-title{
        font-size:22px;
    }

    .brand-section .section-subtitle{
        font-size:13px;
    }

    .brand-track{
        gap:12px;
    }

    .brand-card{
        width:46%;
        min-width:46%;
        padding:14px;
        border-radius:10px;
    }

    .brand-logo{
        height:60px;
        margin-bottom:10px;
    }

    .brand-name{
        font-size:13px;
    }

    .brand-arrow{
        display:none;
    }

}