/* =========================
   BOOK CARD - GLOBAL STYLE
   Amazon / JustBooks style
========================= */

.book-card{
    border:0;
    border-radius:18px;
    overflow:hidden;
    height:100%;
    display:flex;
    flex-direction:column;
    background:#fff;
    transition:all .3s ease;
    box-shadow:0 6px 18px rgba(0,0,0,.06);
}

.book-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 45px rgba(0,0,0,.15);
}

/* IMAGE WRAPPER */
.book-img-wrap{
    position:relative;
    overflow:hidden;
}

.book-img{
    height:270px;
    width:100%;
    object-fit:cover;
    transition:.4s ease;
    display:block;
}

.book-card:hover .book-img{
    transform:scale(1.05);
}

/* STOCK BADGE */
.stock-badge{
    position:absolute;
    top:10px;
    left:10px;
    font-size:12px;
    padding:5px 10px;
    border-radius:20px;
    font-weight:600;
}

/* QUICK VIEW BUTTON */
.quick-view{
    position:absolute;
    top:10px;
    right:10px;
    background:#fff;
    border:0;
    border-radius:50%;
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 4px 10px rgba(0,0,0,.15);
    cursor:pointer;
    transition:.2s;
}

.quick-view:hover{
    transform:scale(1.1);
}

/* BODY */
.book-body{
    flex:1;
    display:flex;
    flex-direction:column;
    padding:14px;
}

/* TITLE */
.book-title{
    font-size:16px;
    font-weight:700;
    min-height:45px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    color:#111;
}

/* META */
.book-meta{
    font-size:13px;
    color:#6b7280;
    min-height:38px;
    margin-top:6px;
}

/* PRICE */
.book-price{
    font-size:18px;
    font-weight:800;
    color:#16a34a;
    margin-top:8px;
}

/* FOOTER */
.book-footer{
    margin-top:auto;
}

.stat-card{
    background:#fff;
    border-radius:18px;
    padding:30px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    transition:.3s;
}

.stat-card:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 35px rgba(0,0,0,.12);
}

.stat-icon{
    font-size:42px;
    margin-bottom:10px;
}

.stat-number{
    font-size:32px;
    font-weight:800;
    margin:0;
    color:#111827;
}

.stat-text{
    color:#6b7280;
    margin-top:5px;
    font-size:14px;
}

.stats{
    padding-top: 60px;
}

/* BUTTONS */
.book-actions .btn{
    border-radius:10px;
    font-size:14px;
}

/* RESPONSIVE */
@media(max-width:768px){
    .book-img{
        height:220px;
    }
}