.card-buku-modern {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-buku-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.buku-cover-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: #f8f9fa;
}

.img-buku {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.judul-buku {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* height: 25px; */
    line-height: 1.5;
}

.badge-kategori {
    background: rgba(13, 110, 253, 0.1);
    color: var(--base-color);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 5px;
    text-transform: uppercase;
}

.divider-modern {
    border: none;
    height: 1px;
    margin: 10px 0;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.1), transparent);
}

.buku-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 26, 93, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.buku-cover-wrapper:hover .buku-overlay { 
  opacity: 1; 
}
.buku-cover-wrapper:hover .img-buku { 
  transform: scale(1.1); 
}
.harga-box {
   display: flex;
   flex-direction: column;
   width: 100%;
}
    
.harga-diskon {
    font-size: 15px;
    font-weight: 600;
    color: var(--base-color);
    display: block;
    text-align: left;
}
    
.harga-asli {
   font-size: 10px;
   color: #888;
   text-decoration: line-through;
}
    
.badge-diskon {
   background-color: #ff4d4f;
   color: #fff;
   font-size: 10px;
   font-weight: 600;
   padding: 2px 4px;
   border-radius: 4px;
}

.btn-beli-buku {
   background: linear-gradient(135deg, #0b1a5d, #0928af);
   color: #fff !important;
   padding: 8px 15px;
   font-size: 12px;
   border-radius: 6px;
   text-decoration: none;
   font-weight: 600;
   display: inline-block; 
   width: auto;
}

.divider-modern {
    border: none;
    height: 2px !important;
    margin: 10px 0;
    background: linear-gradient(to right, transparent, rgb(0 0 0 / 43%), transparent);
}

.book-meta-card {
  background: white;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  padding: 35px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}