.card{
    width: 300px;
    height: 400px;
    background: #f4f4f4;
    position: relative;
    border-radius: 10px;
    box-shadow: 0;
    transform: scale(0.95);
    transition: box-shadow .5s ease-in-out,
                transform .5s ease-in-out; 
    overflow: hidden;
}

.card:hover{
    transform: scale(1);
    box-shadow: 5px 20px 30px rgba(0,0,0,.2);
}

.card .imgBox{
    width: 100%;
    height: 80%;
    overflow: hidden;
}
.card .imgBox img{
    width: 100%;
    height: 100%;
}

.card .details{
    position: absolute;
    width: 100%;
    height: 50%;
    background: #f4f4f4be;
    padding: 10px 20px;
    bottom: -30%;
    transition: .5s;
}

.card .details:hover{
    bottom: 0;
}

.textContent{
    position: relative;
    margin-top: 2px;
    color: var(--first-color);
}

.textContent h3{
    font-size: 20px;
    padding: 5px 0;
}

.textContent .price{
    position: absolute;
    top: 28px;
    right: 0;
    font-size: 15px;
    font-weight: 400;
    color:crimson;
}

.details h4{
    font-size: 18px;
    margin-top: 15px;
    padding: 10px 0;
    font-weight: bold;
    color: #555;
}

.details ul{
    display: flex;
}

.details ul li{
    list-style: none;
    width: 35px;
    height: 25px;
    margin-right: 10px;
    padding: auto;
    text-align: center;
    cursor: pointer;
}

.details ul li:nth-child(1){
    background: #3399cc;
}

.details ul li:nth-child(2){
    background: #9966cc;
}

.details ul li:nth-child(3){
    background: #99ff33;
}

.details button{
    width: 100%;
    padding: 5px 0;
    background: var(--hover-color);
    margin: 6px 0;
    font-size: 18px;
    border-radius: 5px;
    border: none;
    outline: none;
    cursor: pointer;
}

.details button a{
    color: #fff;
}

.card .description{
    background: #92879b;
    position: absolute;
    width: 140px;
    height: 140px;
    top: -70px;
    right: -70px;
    border-radius: 0 0 200px 200px;
    transition: all .5s, border-radius 1s, top 1s;
}

.card .description .icon{
    position: absolute;
    top: 85px;
    right: 85px;
    color: #fff;
    opacity: 1;
}

.card .description:hover{
    width: 100%;
    height: 80%;
    right: 0;
    top: 0;
    border-radius: 0;
}

.card .description:hover .icon{
    opacity: 0;
}

.card .description .contents{
    color: #fff;
    padding: 5%;
    transform: scale(0.5);
    transform: translateY(-200%);
    transition: opacity .2s, transform .8s;
    opacity: 0;        
}

.card .description:hover .contents{
    transform: scale(1);
    opacity: 1;
    transform: translateY(0);
}

.card .description h2{
    margin: 6px 0;
    font-size: 20px;
    color: var(--first-color);
    text-align: center;
}

.card .description p{
    font-size: var(--small-font-size);
    line-height: 1.2;
    text-align: justify;
}












