/* ===================================
   BOOKS SECTION
=================================== */

.books-section{
    padding:120px 8%;
    background:#f8f6f2;
}

.section-title{
    text-align:center;
    max-width:760px;
    margin:0 auto 70px;
}

.section-title h5{
    color:#c8a24c;
    letter-spacing:4px;
    text-transform:uppercase;
    margin-bottom:15px;
    font-weight:600;
}

.section-title h2{
    font-family:"Playfair Display",serif;
    font-size:60px;
    color:#16263b;
    margin-bottom:20px;
}

.section-title p{
    font-size:18px;
    color:#666;
    line-height:1.8;
}

/* FILTER */

.book-filter{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:15px;
    margin-bottom:60px;
}

.book-filter button{
    padding:12px 28px;
    border:none;
    border-radius:40px;
    background:#ece8e2;
    cursor:pointer;
    font-weight:600;
    transition:.35s;
}

.book-filter button:hover,
.book-filter .active{
    background:#c8a24c;
    color:white;
}

/* GRID */

.books-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:35px;
}

/* CARD */

.book-card{
    background:white;
    border-radius:22px;
    overflow:hidden;
    transition:.4s;
    box-shadow:0 15px 35px rgba(0,0,0,.08);
}

.book-card:hover{
    transform:translateY(-12px);
    box-shadow:0 30px 60px rgba(0,0,0,.15);
}

.book-image{
    position:relative;
    overflow:hidden;
}

.book-image img{
    width:100%;
    height:420px;
    object-fit:cover;
    display:block;
    transition:.5s;
}

.book-card:hover img{
    transform:scale(1.06);
}

.favorite{
    position:absolute;
    top:18px;
    right:18px;
    width:45px;
    height:45px;
    border-radius:50%;
    background:white;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#d33;
    font-size:18px;
    cursor:pointer;
    box-shadow:0 8px 20px rgba(0,0,0,.15);
}

.book-content{
    padding:30px;
}

.book-content h3{
    font-family:"Playfair Display",serif;
    font-size:28px;
    color:#16263b;
    margin-bottom:10px;
}

.book-content p{
    color:#888;
    margin-bottom:18px;
}

.rating{
    color:#d4af37;
    font-size:20px;
    margin-bottom:25px;
}

/* BUTTONS */

.book-buttons{
    display:flex;
    gap:12px;
}

.buy-btn,
.details-btn{
    flex:1;
    text-align:center;
    padding:14px;
    border-radius:40px;
    text-decoration:none;
    font-weight:600;
    transition:.35s;
}

.buy-btn{
    background:#c8a24c;
    color:white;
}

.buy-btn:hover{
    background:#16263b;
}

.details-btn{
    border:2px solid #16263b;
    color:#16263b;
}

.details-btn:hover{
    background:#16263b;
    color:white;
}

/* VIEW ALL */

.view-all{
    text-align:center;
    margin-top:70px;
}

.main-btn{
    display:inline-block;
    padding:18px 45px;
    border-radius:50px;
    text-decoration:none;
    background:#16263b;
    color:white;
    font-weight:600;
    transition:.35s;
}

.main-btn:hover{
    background:#c8a24c;
}