
.categoryGrid{
    display: flex;
    /* justify-content: center; */
    align-items: center ;
    gap: 15px 10px;
    flex-wrap: wrap;
    width: 90%;
    margin: auto;
}
.categoryGrid .card{
    width: 190px;
    border: none;
    transition: .5s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    text-decoration: none;
    color: var(--black-color);
    text-align: center;
}
.categoryGrid .card img  {
    aspect-ratio: 2 / 3 ;  
    width: 100%;           
    object-fit: cover; 
    border-radius: 5px;
    overflow: hidden;
    margin: 0;
}
.categoryGrid .card .overlay{
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 71%;
    background-color: rgba(0,0,0,0.1); /* شفافية حلوة */
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    color: var(--white-color);
    top: -100%;
    transition: .7s;
}
.categoryGrid .card .overlay i {
    margin-right: 5px;
}
.categoryGrid .card:hover .overlay   {
    top: 0px;
}
.categoryGrid .card h2{
    font-size: 15px;
    text-align: center;
    margin: 0;
    margin-top: 10px;
}
.categoryGrid .card p{
    margin-bottom: 5px;
    font-size: 14px;
    
}
.categoryGrid .card div{
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0px 5px;
}
.categoryGrid .card div button:first-of-type{
    flex-grow: 1;
    border: 1px solid var(--main-color);
    padding: 5px;
    border-radius: 10px;
    transition: .5s;
    color: var(--main-color);
    font-size: 15px;
}
.categoryGrid .card div button:first-of-type:hover{
    background-color: var(--main-color);
    color: var(--white-color);
}
.categoryGrid .card div button:last-of-type{
    border: none;
    outline: none;
    height: fit-content;
    display: flex;
    align-items: center;
}
.categoryGrid .card div .heart{
    font-size: 25px;
    transition: .5s;
    color: var(--main-color);
}
.categoryGrid .card div .heart:hover{
    color: #FF0000;
}
.categoryGrid .card div .heart.active{
    color: #FF0000;
}
@media (max-width:800px){
    .categoryGrid   {
        width: 96%;
        gap: 10px 5px;
    }
    .categoryGrid .card  {
        width: 150px;
    }
    .categoryGrid .card .overlay {
        height: 66%;
    }
}
@media (max-width:600px){
    .categoryGrid .card .overlay {
            height: 43%;
    }
    .categoryGrid .card  {
        width: 95px;
    }
    .categoryGrid .card h2 {
        font-size: 12px;
    }
    .categoryGrid .card div{
        gap: 0;
        padding: 0px;
    }
    .categoryGrid .card div button:first-of-type{
        font-size: 13px;
        width: 100%;
    }
    .categoryGrid{
        justify-content: center;
    }
    .categoryGrid .card div i{
        position: absolute;
        top: 10px;
        right: 5px;
        font-size: 20px;
    }
    .categoryGrid .card p{
        font-size: 13px;
    }
    
}
.add-fav.active i {
    color: red;
}
