/*
=========================================
WooCommerce Brands Grid Premium v2.1
=========================================
*/

:root{

    --wcbg-card-bg:#ffffff;
    --wcbg-border:#ececec;
    --wcbg-shadow:0 4px 18px rgba(0,0,0,.05);
    --wcbg-shadow-hover:0 12px 30px rgba(0,0,0,.12);

    --wcbg-title:#222;
    --wcbg-count:#777;

    --wcbg-transition:.30s ease;

}

/*=============================
Grid
==============================*/

.wcbg-grid{

    display:grid;

    grid-template-columns:repeat(4,minmax(0,1fr));

    gap:24px;

    margin:25px 0;

}


/*=============================
Card
==============================*/

.wcbg-card{

    background:#fff;

    border:1px solid #f1f1f1;

    border-radius:18px;

    overflow:hidden;

    transition:all .35s ease;

    box-shadow:0 4px 15px rgba(0,0,0,.04);

    height:100%;

}

.wcbg-card:hover{

    transform:translateY(-8px);

    border-color:#e2e2e2;

    box-shadow:0 18px 40px rgba(0,0,0,.10);

}


/*=============================
Link
==============================*/

.wcbg-card-link{

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    text-align:center;

    text-decoration:none;

    color:inherit;

    padding:28px 20px;

    height:100%;

}


/*=============================
Logo Wrapper
==============================*/

.wcbg-image-wrap{

    height:95px;

    display:flex;

    align-items:center;

    justify-content:center;

    margin-bottom:18px;

}


/*=============================
Image
==============================*/

.wcbg-image{

    width:100%;

    max-width:160px;

    height:75px;

    object-fit:contain;

    transition:.35s ease;

}

.wcbg-card:hover .wcbg-image{

    transform:scale(1.08);

}


/*=============================
Content
==============================*/

.wcbg-content{

    width:100%;

}


/*=============================
Brand Name
==============================*/

.wcbg-title{

    font-size:17px;

    font-weight:600;

    line-height:1.5;

    color:#1d1d1d;

    margin:0;

}


/*=============================
Product Count
==============================*/

.wcbg-count{

    display:block;

    margin-top:10px;

    font-size:12px;

    color:#9b9b9b;

    letter-spacing:.4px;

}


/*=============================
Focus
==============================*/

.wcbg-card-link:focus{

    outline:none;

}

.wcbg-card-link:focus-visible{

    outline:2px solid #2b7cff;

    outline-offset:3px;

    border-radius:12px;

}


/*=============================
Tablet
==============================*/

@media(max-width:991px){

.wcbg-grid{

grid-template-columns:repeat(3,1fr);

gap:20px;

}

}


/*=============================
Mobile
==============================*/

@media(max-width:767px){

.wcbg-grid{

grid-template-columns:repeat(2,1fr);

gap:14px;

}

.wcbg-card-link{

padding:16px 12px;

}

.wcbg-image-wrap{

height:65px;

margin-bottom:12px;

}

.wcbg-image{

height:50px;

max-width:100%;

}

.wcbg-title{

font-size:14px;

line-height:1.4;

}

.wcbg-count{

font-size:11px;

margin-top:6px;

}

}


/*=============================
Small Phones
==============================*/

@media (max-width:360px){

    .wcbg-grid{

        gap:10px;

    }

    .wcbg-card-link{

        padding:12px;

    }

}


/*=============================
Smooth Rendering
==============================*/

.wcbg-card,
.wcbg-image{

    backface-visibility:hidden;

    -webkit-font-smoothing:antialiased;



}


/*=========================
Brand Search
==========================*/

.wcbg-search{

    margin:0 0 28px;

}

.wcbg-search-input{

    width:100%;

    height:52px;

    border:1px solid #e5e5e5;

    border-radius:14px;

    padding:0 18px;

    font-size:15px;

    transition:.3s;

    outline:none;

    background:#fff;

    box-shadow:0 2px 10px rgba(0,0,0,.03);

}

.wcbg-search-input:focus{

    border-color:#111;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

}

@media(max-width:767px){

.wcbg-search{

margin-bottom:16px;

}

.wcbg-search-input{

height:46px;

font-size:14px;

}

}




/* Desktop */

.wcbg-alpha-toggle{

display:none;

}

/* Mobile */

@media(max-width:767px){

.wcbg-alpha-toggle{

display:block;

margin-bottom:12px;

}

#wcbg-toggle-filter{

width:100%;

height:44px;

border:none;

border-radius:12px;

background:#111;

color:#fff;

font-weight:600;

cursor:pointer;

}

.wcbg-alpha-wrapper{

display:none;

margin-bottom:18px;

}

.wcbg-alpha-wrapper.active{

display:block;

}

}



/*=========================
Alphabet Filter
==========================*/

@media (max-width:767px){

.wcbg-alpha-filter{
    display:none;
}

}

.wcbg-alpha-filter{

display:flex;

flex-wrap:wrap;

gap:8px;

margin-bottom:25px;

}

.wcbg-alpha-filter button{

height:36px;

min-width:36px;

border:1px solid #e5e5e5;

background:#fff;

border-radius:10px;

cursor:pointer;

transition:.3s;

font-size:13px;

font-weight:600;

}

.wcbg-alpha-filter button:hover{

background:#111;

color:#fff;

}

.wcbg-alpha-filter button.active{

background:#111;

color:#fff;

border-color:#111;

}

