﻿.thumbnail-cat-list {
    text-align: center;
    padding: 3.38rem 0;

    .item {
        display: inline-block;
        vertical-align: top;
        width: 7.69rem;
        white-space: normal;
        margin: 0 1.38rem;

        .img-box {
            width: 7.69rem;
            height: 7.69rem;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                border-radius: var(--radius);
                -webkit-border-radius: var(--radius);
                -moz-border-radius: var(--radius);
                -ms-border-radius: var(--radius);
                -o-border-radius: var(--radius);
            }
        }

        .title {
            font-size: 1.1rem;
            font-weight: 700;
            margin-top: 0.5rem;
            line-height: 2.2;
        }
    }
}
.main-category > :first-child {
    background-color: var(--primary-light-5);
    .sub-category{
        p{ 
            background-color: var(--primary-light-4);
            
        }
    }
   
}
.main-category > :nth-child(2) {
    background-color: var(--secondary-light-6);
    .sub-category{
        p{ 
            background-color: var(--secondary-light-5);
            
        }
    }
   
}
.main-category > :nth-child(3) {
    background-color: var(--danger-4);
    .sub-category{
        p{ 
            background-color: var(--danger-3);
            
        }
    }
   
}
.main-category > :nth-child(4){
    background-color: var(--info-4);
    .sub-category{
        p{ 
            background-color: var(--info-5);
            
        }
    }
   
}

.img-wrapper{
    width: 44rem;
    height: 25rem;
    overflow: hidden;
    
    img{
       width: 50%;
       height: 80%;
       transition: transform 0.8s ease;
       
    }
    
    
}
.img-wrapper:hover > :first-child{
    transform: translate(2rem , 0);
}
.img-wrapper:hover > :nth-child(2){
    transform: translate(1.5rem , 0);
}
.img-wrapper:hover > :nth-child(3) {
    transform: translate(1rem , 0);
}
.img-wrapper:hover > :nth-child(5){
    transform: translate(-1rem , 0);
}
.img-wrapper:hover > :nth-child(6){
    transform: translate(-1.5rem , 0);
}
.img-wrapper:hover > :nth-child(7) {
    transform: translate(-2rem , 0);
}
.img-wrapper > :first-child{
    top: 8rem;
    right: 2rem ;
    z-index: 1;
}
.img-wrapper > :nth-child(2){
    top: 7rem;
    right: 5rem;
    z-index: 2;
}
.img-wrapper > :nth-child(3){
    top: 6rem;
    right: 8rem;
    z-index: 3;
}
 .img-wrapper > :nth-child(4){
    top:5rem;
    right: 11rem;
    z-index:4;
}
.img-wrapper > :nth-child(5){
    top: 6rem;
    right: 14rem;
    z-index: 3;
}
.img-wrapper > :nth-child(6){
    top: 7rem;
    right: 17rem;
    z-index: 2;
}
.img-wrapper > :nth-child(7){
    top: 8rem;
    right: 20rem;
    z-index: 1;
}
.contact-ecommerce{
    svg{
    fill: var(--text-color-1);
}
}
.book-finder-cats{
    margin-top: 20rem;
}
@media (max-width:460px){
    .book-finder-cats{
        margin-top: 30rem;
    }
    .main-category{
        .img-box{
            width: 90%;
        }
    }
    .img-wrapper{
        width: 22rem;
        height: 25rem;
        overflow: hidden;
        
        img{
           width:60%;
           height: 70%;
           
        }
    }
    .img-wrapper > :first-child{
        top: 11rem;
        right:0 ;
        z-index: 1;
    }
    .img-wrapper > :nth-child(2){
        top: 10rem;
        right: 1.5rem;
        z-index: 2;
    }
    .img-wrapper > :nth-child(3){
        top: 9rem;
        right: 3rem;
        z-index: 3;
    }
     .img-wrapper > :nth-child(4){
        top:8rem;
        right:4.5rem;
        z-index:4;
    }
    .img-wrapper > :nth-child(5){
        top: 9rem;
        right: 6rem;
        z-index: 3;
    }
    .img-wrapper > :nth-child(6){
        top: 10rem;
        right: 7.5rem;
        z-index: 2;
    }
    .img-wrapper > :nth-child(7){
        top: 11rem;
        right: 9rem;
        z-index: 1;
    }

}



