        * { margin:0; padding:0; box-sizing:border-box; }
        body {
            font-family: 'Segoe UI', Tahoma, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
            padding: 15px;
        }
        .container { max-width: 1200px; margin: 0 auto; }

        h1 {
            text-align: center;
            color: #1e3a8a;
            font-size: 2.2rem;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
        }

        .search-card {
            background: white;
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }

        .search-row {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            align-items: end;
        }

        .form-group {
            flex: 1;
            min-width: 280px;
        }

        label {
            display: block;
            margin-bottom: 6px;
            font-weight: 600;
            color: #374151;
        }

        input[type="text"], select {
            width: 100%;
            padding: 12px;
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            font-size: 1rem;
        }

        .checkbox-group {
            margin-top: 10px;
        }
        .checkbox-group label {
            display: inline-flex;
            align-items: center;
            margin-right: 15px;
            font-weight: normal;
        }

        button {
            padding: 12px 24px;
            background: #1e40af;
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 1.1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        button:hover { background: #1e3a8a; }

        .reset-btn {
            background: #6b7280;
        }

        .books-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 18px;
            padding: 10px 0;
        }

        .book-card {
            background: white;
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        .book-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        }

        .book-cover {
            height: 220px;
            background: #f1f5f9;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8px;
        }
        .book-cover img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            border-radius: 8px;
        }

        .book-info {
            padding: 12px;
        }
        .book-info h3 {
            font-size: 0.95rem;
            line-height: 1.3;
            margin-bottom: 6px;
            color: #1f2937;
        }
        .book-info p {
            font-size: 0.85rem;
            color: #64748b;
            margin-bottom: 4px;
        }

        .book-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            background: #f8fafc;
            font-size: 0.8rem;
        }

        .cart-icon {
            font-size: 1.4rem;
            cursor: pointer;
            color: #eab308;
        }

        @media (min-width: 768px) {
            .books-grid {
                grid-template-columns: repeat(4, 1fr);
            }
            h1 { font-size: 2.8rem; }
        }

/* Modal Sinopsis */
/* ================== MODAL SINOPSIS ================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    overflow: auto;
}

.modal-content {
    background-color: #ffffff;
    margin: 40px auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 720px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    overflow: hidden;
}

.modal-header {
    padding: 18px 20px;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.35rem;
    padding-right: 20px;
}

.close-btn {
    font-size: 2.2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0 8px;
}

.close-btn:hover {
    color: #fecaca;
}

.modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.75;
    color: #1f2937;
    font-size: 1.05rem;
}

.modal-footer {
    padding: 15px 20px;
    background: #f8fafc;
    text-align: right;
    border-top: 1px solid #e2e8f0;
}

.btn-close {
    padding: 10px 28px;
    background: #475569;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.book-cover {
    cursor: pointer;
}

/* Popup Menu */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.menu-btn {
    font-size: 2rem;
    background: none;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    color: #1e40af;
}

/* Popup */
.popup-menu {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
}

.popup-content {
    background: white;
    margin: 70px auto;
    width: 90%;
    max-width: 360px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.popup-header {
    padding: 15px 20px;
    background: #1e40af;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-item {
    padding: 18px 22px;
    font-size: 1.1rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: 0.2s;
}

.menu-item:hover {
    background: #eff6ff;
    padding-left: 28px;
}
