* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "DM Sans", sans-serif; }
a { text-decoration: none; color: inherit; }
button, input, select { font: inherit; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: auto; }
.page-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 8px 0 25px; }
.page-title h1 { font: 700 36px "Playfair Display", serif; color: var(--navy); margin: 0 0 7px; }
.page-title p { margin: 0; color: var(--muted); font-size: 13px; }
.result-count { font-size: 12px; color: var(--muted); padding-bottom: 4px; }
.toolbar { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 13px; display: flex; gap: 10px; margin-bottom:-22px; }
.search { display: flex; flex: 1; min-width: 180px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.search span { padding: 11px 12px; color: #91a0b0; }
.search input { border: 0; outline: 0; min-width: 0; flex: 1; font-size: 12px; }
.toolbar select { border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: #52647a; padding: 0 12px; font-size: 12px; min-width: 200px; outline: none; cursor: pointer; }
.products-top { display: flex; justify-content: space-between; align-items: center; margin: 0 0 14px; color: #8290a0; font-size: 11px; }
.products-top b { color: #40546b; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; padding-bottom: 70px; }
.product { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: .2s; min-width: 0; }
.product:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(18, 59, 109, 0.08); }
.product-cover {
width: 100%;
height: 220px;
background: linear-gradient(145deg, #edf3f9, #e6edf5); /* Latar belakang lembut khas katalog */
display: flex;
align-items: center;
justify-content: center;
position: relative;
padding: 15px;
overflow: hidden;
}
.product-cover img {
width: 110px;        /* Lebar proporsional selayaknya buku fisik */
height: 155px;       /* Tinggi proporsional buku */
object-fit: cover;   /* Memastikan gambar cover pas tanpa distorsi */
border-radius: 3px 6px 6px 3px; /* Lengkungan sudut menyerupai sampul buku */
box-shadow: 8px 10px 20px rgba(22, 57, 88, 0.22); /* Efek bayangan 3D buku */
display: block;
transition: transform 0.3s ease;
}
.product:hover .product-cover img {
transform: translateY(-4px) scale(1.02);
}
.pagination {
display: flex;
justify-content: center;
gap: 6px;
margin-top: 35px;
padding-bottom: 70px;
}
.pagination a, .pagination span {
border: 1px solid var(--line);
background: var(--white);
color: #66778b;
border-radius: 7px;
min-width: 34px;
height: 34px;
padding: 0 10px;
font-size: 11px;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
text-decoration: none;
transition: all 0.2s;
}
.pagination a:hover, .pagination .active {
background: var(--navy);
border-color: var(--navy);
color: var(--white);
}
.pagination .disabled {
opacity: 0.4;
pointer-events: none;
}
.book { width: 110px; height: 150px; border-radius: 3px 7px 7px 3px; box-shadow: 9px 10px 18px rgba(22, 57, 88, 0.2); padding: 15px 12px; color: var(--white); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.book:before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, 0.36); }
.book span { font-size: 6px; letter-spacing: 1px; font-weight: 800; }
.book strong { font: 700 13px/1.17 "Playfair Display", serif; }
.book small { font-size: 6px; letter-spacing: .7px; }
.b1 { background: linear-gradient(145deg, #5689b8, var(--navy)); }
.product-body { padding: 15px; }
.category { font-size: 9px; color: var(--blue); font-weight: 800; letter-spacing: .9px; text-transform: uppercase; }
.product h3 { font-size: 12px; line-height: 1.5; color: #263d56; margin: 8px 0 7px; min-height: 37px; }
.author { font-size: 10px; line-height: 1.5; color: #8794a4; min-height: 29px; margin: 0 0 13px; }
.product-foot { border-top: 1px solid #eff2f6; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.price { font-size: 11px; font-weight: 800; color: var(--navy); }
.detail { background: var(--pale); color: var(--blue); border: 0; border-radius: 7px; padding: 8px 10px; font-size: 10px; font-weight: 800; cursor: pointer; }
.detail:hover { background: var(--blue); color: var(--white); }
.no-results { grid-column: 1/-1; background: var(--white); border: 1px dashed var(--line); border-radius: 12px; padding: 45px 20px; text-align: center; color: var(--muted); font-size: 13px; }
@media(max-width: 1024px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media(max-width: 768px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width: 390px) { .grid { grid-template-columns: 1fr; } }
