/*======================================
EIVOX CATEGORIES CSS
Version: 1.0
======================================*/


/*======================================
CATEGORY GRID
======================================*/

.categories-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
    gap:20px;
}


/*======================================
CATEGORY CARD
======================================*/

.category-card{

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    gap:15px;

    padding:24px 18px;

    background:var(--card);

    border:1px solid var(--border);

    border-radius:var(--radius-lg);

    transition:var(--transition);

    text-align:center;

    cursor:pointer;

}

.category-card:hover{

    transform:translateY(-5px);

    border-color:var(--primary);

    box-shadow:var(--shadow-lg);

}


/*======================================
CATEGORY ICON
======================================*/

.category-icon{

    width:70px;

    height:70px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:var(--surface);

    color:var(--primary);

    transition:var(--transition);

}

.category-icon i,
.category-icon svg{

    width:32px;

    height:32px;

}

.category-card:hover .category-icon{

    background:var(--primary);

    color:#fff;

    transform:scale(1.08);

}


/*======================================
CATEGORY IMAGE
======================================*/

.category-image{

    width:70px;

    height:70px;

    border-radius:50%;

    overflow:hidden;

}

.category-image img{

    width:100%;

    height:100%;

    object-fit:cover;

}


/*======================================
CATEGORY TITLE
======================================*/

.category-title{

    font-size:var(--font-md);

    font-weight:var(--weight-bold);

    color:var(--text);

}


/*======================================
CATEGORY COUNT
======================================*/

.category-count{

    font-size:var(--font-sm);

    color:var(--text-muted);

}


/*======================================
CATEGORY BADGE
======================================*/

.category-badge{

    position:absolute;

    top:12px;

    right:12px;

    min-width:24px;

    height:24px;

    padding:0 8px;

    border-radius:999px;

    background:var(--danger);

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:12px;

    font-weight:700;

}


/*======================================
CATEGORY SLIDER
======================================*/

.categories-slider{

    display:flex;

    gap:16px;

    overflow-x:auto;

    padding-bottom:10px;

    scroll-behavior:smooth;

    scrollbar-width:none;

}

.categories-slider::-webkit-scrollbar{

    display:none;

}

.categories-slider .category-card{

    min-width:140px;

}


/*======================================
ACTIVE CATEGORY
======================================*/

.category-card.active{

    background:var(--primary);

    border-color:var(--primary);

}

.category-card.active .category-title{

    color:#fff;

}

.category-card.active .category-count{

    color:rgba(255,255,255,.8);

}

.category-card.active .category-icon{

    background:#fff;

    color:var(--primary);

}


/*======================================
RESPONSIVE
======================================*/

@media(max-width:991px){

    .categories-grid{

        grid-template-columns:repeat(4,1fr);

    }

}

@media(max-width:767px){

    .categories-grid{

        grid-template-columns:repeat(2,1fr);

        gap:16px;

    }

    .category-card{

        padding:18px 12px;

    }

    .category-icon{

        width:60px;

        height:60px;

    }

}

@media(max-width:480px){

    .categories-grid{

        grid-template-columns:repeat(2,1fr);

    }

}

/*======================================
CATEGORY SLIDER
======================================*/

.category-slider{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(150px,1fr));

    gap:18px;

}


/*======================================
CATEGORY CARD
======================================*/

.category-card{

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    min-height:150px;

    padding:24px 18px;

    border-radius:22px;

    text-decoration:none;

    background:var(--card);

    border:1px solid var(--border);

    color:var(--text);

    transition:all .3s ease;

    box-shadow:var(--shadow);

}

.category-card:hover{

    transform:translateY(-8px);

    border-color:var(--primary);

}

.category-icon{

    width:70px;

    height:70px;

    border-radius:20px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:var(--surface);

    margin-bottom:15px;

}

.category-icon svg{

    width:32px;

    height:32px;

    color:var(--primary);

}

.category-card span{

    text-align:center;

    font-size:15px;

    font-weight:600;

}


/*======================================
TABLET
======================================*/

@media(max-width:992px){

    .category-slider{

        grid-template-columns:repeat(4,1fr);

    }

}


/*======================================
PHONE
======================================*/

@media(max-width:768px){

    .category-slider{

        display:flex;

        overflow-x:auto;

        gap:14px;

        scroll-behavior:smooth;

        scrollbar-width:none;

        padding-bottom:8px;

    }

    .category-slider::-webkit-scrollbar{

        display:none;

    }

    .category-card{

        flex:0 0 110px;

        min-height:120px;

        padding:16px;

    }

    .category-icon{

        width:52px;

        height:52px;

        margin-bottom:10px;

    }

    .category-icon svg{

        width:24px;

        height:24px;

    }

    .category-card span{

        font-size:13px;

    }

}